message
stringlengths
6
474
diff
stringlengths
8
5.22k
start serial driver at boot
//kernel drivers #include <kernel/drivers/pit/pit.h> +#include <kernel/drivers/serial/serial.h> #include <kernel/drivers/text_mode/text_mode.h> //higher-level kernel features @@ -41,6 +42,7 @@ void system_mem() { void drivers_init(void) { pit_timer_init(PIT_TICK_GRANULARITY_1MS); + serial_init(); } static void kernel_s...
1% speed-up training for NN with layernorm 2.5% faster backward with layernorm slightly faster forward
@@ -675,6 +675,37 @@ __forceinline__ __device__ float4 SharedReduce4(float4 val, float* tmp) { } +template <int BlockSize> +__forceinline__ __device__ void SharedReduce8(float4* val0, float4* val1, float* tmp) { + Float4ToSharedMemory<BlockSize>(*val0, tmp, threadIdx.x); + Float4ToSharedMemory<BlockSize>(*val1, tmp + 4...
haskell-build-fixes: document SHARED_ONLY_PLUGINS
@@ -17,6 +17,8 @@ set (INFO_PLUGINS_DOC "only for informational purposes. Modify PLUGINS to change set (ADDED_PLUGINS_DOC "List of plugins already added, ${INFO_PLUGINS_DOC}") set (ADDED_PLUGINS "" CACHE STRING ${PLUGINS_DOC} FORCE) +set (SHARED_ONLY_PLUGINS_DOC "List of plugins already added with the ONLY_SHARED confi...
Windows access() call is different to UNIX.
@@ -2272,6 +2272,7 @@ void wsgi_python_init(apr_pool_t *p) "Verify the supplied path.", getpid(), python_home); } +#if !defined(WIN32) else if (access(python_home, X_OK) == -1) { ap_log_error(APLOG_MARK, APLOG_WARNING, rv, wsgi_server, "mod_wsgi (pid=%d): Python home %s is not " @@ -2281,14 +2282,20 @@ void wsgi_python...
Use yr_lowercase array here.
@@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <ctype.h> #include <string.h> +#include <yara/globals.h> #include <yara/mem.h> #include <yara/sizedstr.h> @@ -41,7 +42,7 @@ int sized_string_cmp_nocase( while (s1->length > i && s2->length > i && - tolower(s1->c_string[i]) == tolowe...
Fix ShaderBlock:send(Blob) error message;
@@ -47,7 +47,7 @@ static int l_lovrShaderBlockSend(lua_State* L) { size_t bufferSize = lovrBufferGetSize(buffer); // TODO make/use shared helper to check srcOffset/dstOffset/size are non-negative to make these errors better lovrAssert(srcOffset <= blob->size, "Source offset is bigger than the Blob size (%d > %d)", srcO...
nimble/ll: Allow 2M params as fallback for ext conn create We ignore 2M values only for scanning since we do not scan on 2M when ext conn create is pending, but there's nothing wrong in using those parameters as fallback in case we established connection on phy that was not in phy mask.
@@ -707,6 +707,9 @@ ble_ll_ext_conn_create(const uint8_t *cmdbuf, uint8_t len) ble_ll_conn_itvl_to_ticks(conn_itvl_max, &hcc.params[1].conn_itvl_ticks, &hcc.params[1].conn_itvl_usecs); + if (!fallback_params) { + fallback_params = &hcc.params[1]; + } params++; } #endif
Scripts: Fix previous commit
@@ -90,7 +90,7 @@ package() { # Mark binaries to be recognisable by OcBootManagementLib. bootsig="${selfdir}/Library/OcBootManagementLib/BootSignature.bin" efiOCBMs=( - "BOOTx64.efi" + "Bootstrap.efi" "OpenCore.efi" ) for efiOCBM in "${efiOCBMs[@]}"; do
drivebase: drop servo dependency Leave a fake open loop dc driven start command in place to keep REPL usable for testing.
@@ -45,6 +45,10 @@ static pbio_error_t pbio_drivebase_setup(pbio_drivebase_t *drivebase, drivebase->wheel_diameter = wheel_diameter; drivebase->axle_track = axle_track; + // Claim servos + drivebase->left->state = PBIO_SERVO_STATE_CLAIMED; + drivebase->right->state = PBIO_SERVO_STATE_CLAIMED; + return PBIO_SUCCESS; } @...
btshell: Fix scan command in legacy mode When starting legacy scan code was also trying to start extended scan with garbage parameters.
@@ -1185,6 +1185,8 @@ cmd_scan(int argc, char **argv) console_printf("error scanning; rc=%d\n", rc); return rc; } + + return 0; } /* Copy above parameters to uncoded params */
settings: restore back button on s3 Fixes urbit/landscape#501
@@ -14,6 +14,7 @@ import { import GlobalApi from "~/logic/api/global"; import { BucketList } from "./BucketList"; import { S3State } from '~/types/s3-update'; +import { BackButton } from './BackButton'; interface FormSchema { s3bucket: string;
analyze OCSP response after communicate
@@ -154,18 +154,6 @@ def try_handshake(endpoint, port, cipher, ssl_version, server_cert=None, server_ cleanup_processes(s2nd, s_client) return -1 - # Validate that s_client accepted s2nd's stapled OCSP response - if ocsp is not None: - ocsp_success = False - for line in s_client.stdout: - line = line.decode("utf-8").st...
Docs: minor edits and fixes.
PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd"> <topic id="topic2" xml:lang="en"> <title id="iw157419">About the Greenplum Architecture</title> - <shortdesc>Greenplum Database is a massively parallel processing (MPP) database server - with an architecture specially designed to manage large-scale analytic data...
backtick string literal in documentation can be squashed
@@ -105,7 +105,7 @@ and use to get a basic plugin experience: ## Third-party extensions -- [cockos.reaper_extension](https://github.com/justinfrankel/reaper-sdk/blob/main/reaper-plugins/reaper_plugin.h#L138), access the [REAPER](http://reaper.fm) API +- [`cockos.reaper_extension`](https://github.com/justinfrankel/reape...
make sure src/h2olog/generated_raw_tracer.cc is up-to-date in CI
@@ -27,6 +27,7 @@ ossl1.1.1: CMAKE_ARGS='-DOPENSSL_ROOT_DIR=/opt/openssl-1.1.1' dtrace: + rm -rf src/h2olog/generated_raw_tracer.cc # make sure it's up-todate docker run $(DOCKER_RUN_OPTS) $(CONTAINER_NAME) env DTRACE_TESTS=1 make -f $(SRC_DIR)/misc/docker-ci/check.mk _check _check:
Fix I2C issues in ESP32
@@ -99,6 +99,9 @@ HRESULT Library_win_dev_i2c_native_Windows_Devices_I2c_I2cDevice::NativeInit___V // Set the Bus parameters SetConfig( bus, pConfig); + // If this is first devcie on Bus then init driver + if ( Esp_I2C_Initialised_Flag[bus] == 0 ) + { esp_err_t res = i2c_driver_install( bus, I2C_MODE_MASTER, 0, 0, 0); ...
Check malloc failure via app_malloc Thanks to GitHUb user murugesandins for reporting this.
@@ -3152,7 +3152,7 @@ static int do_multi(int multi, int size_num) int *fds; static char sep[] = ":"; - fds = malloc(sizeof(*fds) * multi); + fds = app_malloc(sizeof(*fds) * multi, "fd buffer for do_multi"); for (n = 0; n < multi; ++n) { if (pipe(fd) == -1) { BIO_printf(bio_err, "pipe failure\n");
Add non-allocating closure related functions. Dup closures into buffers.
use "alloc" use "die" use "sldup" +use "slcp" use "types" pkg std = + generic fnenvsz : (fn : @fn::function -> size) generic fndup : (fn : @fn::function -> @fn::function) + generic fnbdup : (fn : @fn::function, buf : byte[:] -> @fn::function) generic fnfree : (fn : @fn::function -> void) ;; generic fndup = {fn + var sl...
remove pygments setup
@@ -7,11 +7,6 @@ then WREN_PY="$WREN_PY_BINARY" fi -# Install the Wren Pygments lexer. -cd util/pygments-lexer -sudo $WREN_PY setup.py develop -cd ../.. - # Build the docs. mkdir -p build $WREN_PY ./util/generate_docs.py
Better localized fix for ecn_accounting
@@ -1849,7 +1849,7 @@ void picoquic_ecn_accounting(picoquic_cnx_t* cnx, unsigned char received_ecn, picoquic_packet_context_enum pc, picoquic_local_cnxid_t * l_cid) { picoquic_ack_context_t* ack_ctx = (pc == picoquic_packet_context_application && cnx->is_multipath_enabled) ? - &l_cid->ack_ctx : &cnx->ack_ctx[pc]; + ((l...
spi_slave: enable spi slave dual board test on esp32c3
@@ -581,6 +581,13 @@ UT_C3_FLASH: - ESP32C3_IDF - UT_T1_ESP_FLASH +UT_C3_SPI_DUAL: + extends: .unit_test_esp32c3_template + parallel: 2 + tags: + - ESP32C3_IDF + - Example_SPI_Multi_device + .integration_test_template: extends: - .target_test_job_template
check whether CONFIG_NAME is valid or not at create_appspec.sh If Kconfig_ENTRY is not existed, CONFIG_NAME is not valid. IF CONFIG_NAME is not valid, let's skip to make an application list. Here is an abnormal case. { aws_sample, aws_sample_main, CONFIG_, y, y, }
@@ -37,6 +37,9 @@ do APPNAME=`sed -n '/^APPNAME/p' $APPDIR$FILE$MAKEFILE | sed -n 's/APPNAME = //p'` FUNCTION=`sed -n '/^FUNCNAME/p' $APPDIR$FILE$MAKEFILE | sed -n 's/FUNCNAME = //p'` CONFIG_NAME=`sed -n '/depends/p' $APPDIR$FILE$KCONFIG_ENTRY | sed -n 's/.*depends on //p'` + if [ "$CONFIG_NAME" = "" ]; then + continue...
[stm32] perform an automatic ADC calibration to improve the conversion accuracy using function HAL_ADCEx_Calibration_Start().
@@ -209,10 +209,12 @@ static rt_err_t stm32_get_adc_value(struct rt_adc_device *device, rt_uint32_t ch #elif defined(SOC_SERIES_STM32MP1) ADC_ChanConf.SamplingTime = ADC_SAMPLETIME_810CYCLES_5; #endif + #if defined(SOC_SERIES_STM32F2) || defined(SOC_SERIES_STM32F4) || defined(SOC_SERIES_STM32F7) || defined(SOC_SERIES_S...
Handle 2D meshes in simv2_RectilinearMesh_check
@@ -520,19 +520,25 @@ simv2_RectilinearMesh_check(visit_handle h) for(int i = 0; i < obj->ndims; ++i) { int nCoordTuples = 0; + if(i == 0) simv2_VariableData_getData(obj->xcoords, owner, dataType, nComps, nCoordTuples, data); else if(i == 1) simv2_VariableData_getData(obj->ycoords, owner, dataType, nComps, nCoordTuples...
Enable zcl attribute reporting for OSRAM onoff and level clusters
@@ -560,6 +560,21 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt) maxInterval = 300; reportableChange8bit = 1; } + else if (bt.binding.clusterId == ONOFF_CLUSTER_ID) + { + dataType = deCONZ::Zcl8BitUint; + attributeId = 0x0000; // on/off + minInterval = 5; + maxInterval = 180; + } + else if ...
Fix function documentation CLA: trivial
@@ -573,11 +573,9 @@ int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p, * \param point EC_POINT object * \param form point conversion form * \param pbuf returns pointer to allocated buffer - * \param len length of the memory buffer * \param ctx BN_CTX object (optional) * \return the length of the encoded octet ...
Check for memory faster
@@ -24,7 +24,7 @@ import Foundation /// Starts listening for memory. func startListening() { // Yes, a timer. But it does not seem to slow down the app. - _ = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true, block: { (_) in + _ = Timer.scheduledTimer(withTimeInterval: 0.01, repeats: true, block: { (_) in #if ...
sdl/guid: use C.size_t for SDL_malloc for cross-platform compatibility
@@ -34,7 +34,7 @@ type GUID C.SDL_GUID // ToString returns an ASCII string representation for a given GUID. func (guid GUID) ToString() (ascii string) { - _cap := C.ulong(33) + _cap := C.size_t(33) _buf := (*C.char)(C.SDL_malloc(_cap)) defer C.SDL_free(unsafe.Pointer(_buf)) C.SDL_GUIDToString(C.SDL_GUID(guid), _buf, C....
fixed flickering on automatic exposure and added support for set_auto_exposure API
#include "omv_boardconfig.h" #define HIMAX_BOOT_RETRY (10) +#define HIMAX_LINE_LEN_PCK 0x172 +#define HIMAX_FRAME_LENGTH 0x232 #if (OMV_ENABLE_HM01B0 == 1) static const uint16_t default_regs[][2] = { {BLC_TGT, 0x08}, // BLC target :8 at 8 bit mode @@ -43,7 +45,7 @@ static const uint16_t default_regs[][2] = { {0x1001, 0...
Add more json allow_trailing_comments test cases
@@ -3427,6 +3427,14 @@ test_wuffs_json_decode_quirk_allow_trailing_comments() { // - '4' means that there is non-filler after eof-or-'\n' // - '5' means that there is non-filler before eof-or-'\n' // + // The second and third bytes are digits such that the overall string starts + // with a three digit number, which is ...
data BUGFIX check input node when anydata/anyxml expected Be more careful about the expected input data in API functions to avoid later segfaults when treating data as anyxml/anydata when they are something else.
@@ -266,6 +266,7 @@ lyd_any_value_str(const struct lyd_node *any, char **value_str) LY_ERR ret = LY_SUCCESS; LY_CHECK_ARG_RET(NULL, any, value_str, LY_EINVAL); + LY_CHECK_ARG_RET(NULL, any->schema, any->schema->nodetype & LYS_ANYDATA, LY_EINVAL); a = (struct lyd_node_any *)any; *value_str = NULL; @@ -318,6 +319,7 @@ ly...
don't decommit/reset parts of a region when using large os pages
@@ -312,12 +312,14 @@ void _mi_mem_free(void* p, size_t size, size_t id, mi_stats_t* stats) { // TODO: implement delayed decommit/reset as these calls are too expensive // if the memory is reused soon. // reset: 10x slowdown on malloc-large, decommit: 17x slowdown on malloc-large + if (!mi_option_is_enabled(mi_option_l...
Fix search language parser accepting only ASCII input, not full Unicode
@@ -28,7 +28,8 @@ namespace carto { using qi::_1; using qi::_2; - unesc_char.add("\\a", '\a')("\\b", '\b')("\\f", '\f')("\\n", '\n') + unesc_char.add + ("\\a", '\a')("\\b", '\b')("\\f", '\f')("\\n", '\n') ("\\r", '\r')("\\t", '\t')("\\v", '\v')("\\\\", '\\') ("\\\'", '\'')("\\\"", '\"'); @@ -44,7 +45,7 @@ namespace car...
runtime: reduce softirq budget for latency reasons
#define RUNTIME_STACK_SIZE 128 * KB #define RUNTIME_GUARD_SIZE 128 * KB #define RUNTIME_RQ_SIZE 32 -#define RUNTIME_SOFTIRQ_BUDGET 32 +#define RUNTIME_SOFTIRQ_BUDGET 16 #define RUNTIME_MAX_TIMERS 4096 #define RUNTIME_SCHED_POLL_ITERS 4 #define RUNTIME_WATCHDOG_US 50
Added NASM package to support SW crypto
@@ -95,7 +95,7 @@ endif RPM_SUSE_DEPENDS = autoconf automake bison ccache chrpath distribution-release gcc6 glibc-devel-static RPM_SUSE_DEPENDS += java-1_8_0-openjdk-devel libopenssl-devel libtool lsb-release make openssl-devel -RPM_SUSE_DEPENDS += python-devel python-pip python-rpm-macros shadow +RPM_SUSE_DEPENDS += p...
Remove Setting OpenSSL Groups List
@@ -148,11 +148,6 @@ typedef struct CXPLAT_TLS { #define CXPLAT_TLS_AES_256_GCM_SHA384 "TLS_AES_256_GCM_SHA384" #define CXPLAT_TLS_CHACHA20_POLY1305_SHA256 "TLS_CHACHA20_POLY1305_SHA256" -// -// Default list of curves for ECDHE ciphers. -// -#define CXPLAT_TLS_DEFAULT_SSL_CURVES "P-256:X25519:P-384:P-521" - // // Defau...
nrf: Use separate config for each PWM instance. The hard_configs table has entries for each PWM instance. Use them.
@@ -80,11 +80,10 @@ STATIC machine_pwm_config_t hard_configs[MP_ARRAY_SIZE(machine_hard_pwm_instance STATIC const machine_hard_pwm_obj_t machine_hard_pwm_obj[] = { #if defined(NRF52_SERIES) {{&machine_hard_pwm_type}, .p_pwm = &machine_hard_pwm_instances[0], .p_config = &hard_configs[0]}, - - {{&machine_hard_pwm_type}, ...
web-ui: implement undo/redo for copying, duplicating and moving keys
import { createUndoMiddleware } from 'redux-undo-redo-middleware' import { - setKey, deleteKey, createKey, + setKey, deleteKey, createKey, copyKey, moveKey, setMetaKey, deleteMetaKey, createMetaKey, } from './actions' @@ -33,7 +33,10 @@ const undoMiddleware = createUndoMiddleware({ action: ({ id, path, value }) => setK...
Update Makefile Hcxtools fails to cross build from source, because Makefile hard codes the build architecture pkg-config and thus fails finding required libraries. Please consider applying the attached patch to make it substitutable.
@@ -23,17 +23,18 @@ DEFS += -DWANTZLIB INSTALL ?= install INSTFLAGS = +PKG_CONFIG ?= pkg-config ifeq ($(HOSTOS), Linux) INSTFLAGS += -D endif -OPENSSL_LIBS=$(shell pkg-config --libs openssl) -OPENSSL_CFLAGS=$(shell pkg-config --cflags openssl) -CURL_LIBS=$(shell pkg-config --libs libcurl) -CURL_CFLAGS=$(shell pkg-confi...
Fix hid.py example.
# # Add the following script to boot.py: # -##import pyb (UNCOMMENT THIS LINE!) +##import pyb #(UNCOMMENT THIS LINE!) ##pyb.usb_mode('VCP+HID') # serial device + mouse (UNCOMMENT THIS LINE!) ##pyb.usb_mode('VCP+MSC') # serial device + storage device (default) ##pyb.usb_mode('VCP+HID', hid=pyb.hid_keyboard) # serial dev...
I updated the Plots chapter in the Sphynx users manual.
@@ -31,7 +31,7 @@ these settings to persist across VisIt sessions, you can either **Save session**, and then restart from this saved session later, or **Save settings** and then all VisIt sessions will use those defaults. For more about saving sessions and settings, see -:ref:`Preferences_How_to_save_your_settings`. Th...
luci-app-firewall: drop offloading option
@@ -70,7 +70,7 @@ return view.extend({ } /* Netfilter flow offload support */ - +/* if (L.hasSystemFeature('offloading')) { s = m.section(form.TypedSection, 'defaults', _('Routing/NAT Offloading'), _('Experimental feature. Not fully compatible with QoS/SQM.')); @@ -89,7 +89,7 @@ return view.extend({ o.optional = true; ...
Increased connection duration due to Azure pipeline.
@@ -165,7 +165,7 @@ testConnDuration(void** state) log = strtok_r(NULL, delim, &last); assert_non_null(log); int duration = strtol(log, NULL, 0); - if ((duration < 1000) || (duration > 1300)) + if ((duration < 1000) || (duration > 1400)) fail_msg("Duration %d is outside of allowed bounds (1000, 1300)", duration); free(...
fuzzing BUGFIX using internal functions in tests
#include <stdlib.h> #include <stdbool.h> -#include "common.h" -#include "tree_schema_internal.h" -#include "libyang.h" - -LY_ERR yang_parse_module(struct lys_parser_ctx **context, const char *data, struct lys_module *mod); +#include "../../src/common.h" +#include "../../src/tree_schema_internal.h" int LLVMFuzzerTestOne...
cancellable request
@@ -45,7 +45,6 @@ struct connect_request { static void on_error(struct connect_request *req, const char *errstr) { h2o_send_error_502(req->src_req, "Gateway Error", errstr, 0); - free(req); } static void on_connect(h2o_socket_t *sock, const char *err) @@ -59,8 +58,8 @@ static void on_connect(h2o_socket_t *sock, const c...
mmapstorage: document MmapAddr structure
#define SIZEOF_MMAPHEADER (sizeof (MmapHeader)) #define SIZEOF_MMAPMETADATA (sizeof (MmapMetaData)) #define SIZEOF_MMAPFOOTER (sizeof (MmapFooter)) -#define SIZEOF_ADDR_STRING (19) // format: 0xADDR -> ADDR in hex, for 64bit addr: 2 bytes (0x) + 16 bytes (ADDR) + 1 byte (ending null) +/** Size to store a 64-bit (max.) ...
Subscriptions now get ended if we no longer know their story.
?~ rum ~ [b %diff %hall-rumor u.rum]~ ?. ?=($circle -.qer) ~ + =+ qit=[b %quit ~]~ + :: kill the subscription if we forgot the story. + ?. (~(has by stories) nom.qer) qit :: kill the subscription if it's past its range. - =- ?:(done:- [b %quit ~]~ ~) + =- ?:(done:- qit ~) %. ran.qer =- ~(so-in-range so:ta nom.qer ~ -) ...
always allow posts/comments from team
?($submit $comment) =/ col (~(get by cols) col.act) ?~ col & + ?: (team:title our.bol src.bol) | ::REVIEW this is implicit yes? ?: publ.conf.u.col (~(has in mems.conf.u.col) src.bol) :: not on blacklist !(~(has in mems.conf.u.col) src.bol) :: is on whitelist
Save variables before first class function call
@@ -1377,32 +1377,36 @@ generate_exp = function(exp, ctx) local nargs = #fexp._type.params local nret = #fexp._type.rettypes - local push_function = {} - do - local cstats, cvalue = generate_exp(fexp, ctx) - local push = push_to_stack(ctx, fexp._type, cvalue) - table.insert(push_function, cstats) - table.insert(push_fu...
incorporate Gabriels new targets
@@ -741,17 +741,19 @@ deb: cleanapi create_obj_dir_structure preparedeb debsource @echo "Success: DEBs are in parent directory" .PHONY: buster-deb -buster-deb: cleanapi create_obj_dir_structure preparedeb buster-debsource - debuild -i -b -uc -us +buster-deb: cleanapi create_obj_dir_structure preparedeb buster-debsource...
VERSION bump to version 2.0.258
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 257) +set(LIBYANG_MICRO_VERSION 258) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
Add Platform Support Info to Readme
@@ -22,8 +22,8 @@ QUIC has many benefits when compared to existing TLS over TCP scenarios: > **Important** Several QUIC protocol features are not yet fully implemented: > -> * 0-RTT with Schannel and OpenSSL -> * Client Migration +> * 0-RTT +> * Client-side Migration > * Server Preferred Address > * Path MTU Discovery ...
Log how many listeners are in use for the socket print thread.
@@ -83,6 +83,8 @@ _papplPrinterRunRaw( int i; // Looping var + papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Running socket print thread with %d listeners.", printer->num_listeners); + while (printer->listeners[0].fd >= 0) { // Don't accept connections if we can't accept a new job...
reformat tab
// v1.0 : 03/24/2017 : creation // v1.1 : 04/05/2017 : multiple changes to fit new config reg mapping // v1.2 : 04/13/2017 : Add Hash/Sort and more steps +// v1.3 : 05/09/2017 : Refine Hash method to 22bit HT_ENTRY_NUM_EXP //-------------------------------------------------------------------------------------------- st...
[catboost] Add column name to pool metainfo for quantized pools
@@ -22,6 +22,7 @@ enum EColumnType { message TPoolMetainfo { map<uint32, EColumnType> ColumnIndexToType = 1; + map<uint32, string> ColumnIndexToName = 7; optional uint64 DocumentCount = 2; repeated uint32 IgnoredColumnIndices = 3; optional uint32 StringDocIdFakeColumnIndex = 4; // Index of additional DocId column with ...
Remove redundant RAND_get0_private() call The test called this twice which doesn't hurt but isn't ideal.
@@ -21,9 +21,6 @@ static int test_rand(void) unsigned char entropy2[] = { 0xff, 0xfe, 0xfd }; unsigned char outbuf[3]; - if (!TEST_ptr(privctx = RAND_get0_private(NULL))) - return 0; - *p++ = OSSL_PARAM_construct_octet_string(OSSL_RAND_PARAM_TEST_ENTROPY, entropy1, sizeof(entropy1)); *p = OSSL_PARAM_construct_end();
Release Notes: Add plugin information
@@ -72,11 +72,11 @@ TODO: https://book.libelektra.org ### Maturing of Plugins - The new [Directory Value plugin](https://www.libelektra.org/plugins/directoryvalue) supports storage plugins such as [YAJL](https://www.libelektra.org/plugins/yajl) and [YAML CPP ](https://www.libelektra.org/plugins/yamlcpp). It adds extra ...
Fix PhCmLoadSettingsEx scaling type
@@ -364,7 +364,6 @@ BOOLEAN PhCmLoadSettingsEx( PPH_TREENEW_COLUMN column; ULONG id; ULONG displayIndex; - ULONG width; PhSplitStringRefAtChar(&remainingColumnPart, L'|', &columnPart, &remainingColumnPart); @@ -432,7 +431,7 @@ BOOLEAN PhCmLoadSettingsEx( width = (ULONG)integer; if (scale != dpiValue && scale != 0) - wi...
Fix compile errors on Windows (strcasestr not available).
#include <Expression.h> #include <DebugStream.h> +#ifdef _MSC_VER +#include<shlwapi.h> +#endif + using std::string; using std::vector; #ifndef MAX @@ -2039,7 +2043,11 @@ avtTecplotFileFormat::PopulateDatabaseMetaData(avtDatabaseMetaData *md) variableNames[0] == "X" || variableNames[0] == "i" || variableNames[0] == "I" ...
lib/ev3dev/sysfs: scan for last character in port Don't scan for the 12th character, because for motors it is the 13th. We cannot seek from SEEK_END because this seeks from 4096. Also, add error checking.
@@ -41,9 +41,17 @@ pbio_error_t sysfs_get_number(pbio_port_t port, const char *rdir, int *sysfs_num } // Get the port from the address file - fseek(f_address, 12, SEEK_SET); - pbio_port_t port_found = fgetc(f_address); - fclose(f_address); + char address[MAX_PATH_LENGTH]; + int len; + + if (fscanf(f_address, "%" MAX_RE...
Workaround Ansible install via pip and py36
@@ -57,6 +57,10 @@ ARG GNAME=jenkins ARG UID=1000 ARG GID=1000 +# Workaround for https://githubmemory.com/repo/pypa/pip/issues/10219 +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 + # Install essential packages RUN apt-get update && \ apt-get -y --no-install-recommends upgrade && \
remove limitation from README since it has been fixed
@@ -18,15 +18,3 @@ You will likely want to tailor fuzzer options to your execution environment, but HTTP/1: `ASAN_OPTIONS=detect_leaks=0 ./h2o-fuzzer-http1 -max_len=$((16 * 1024 )) fuzz/http1-corpus` HTTP/2: `ASAN_OPTIONS=detect_leaks=0 ./h2o-fuzzer-http2 -max_len=$((16 * 1024 )) fuzz/http2-corpus` - -### Limitations -...
support .cpp files in GO SRCS
import base64 +import itertools import os from _common import rootrel_arc_src, tobuilddir import ymake @@ -96,7 +97,7 @@ def on_go_process_srcs(unit): basedirs[basedir] = [] basedirs[basedir].append(f) for basedir in basedirs: - unit.onadd_check(["gofmt"] + basedirs[basedir]) + unit.onadd_check(['gofmt'] + basedirs[bas...
CMake add compilation flag for Ruby support in Homebrew OSX fix * Due to an LLVM bug in AppleClang a flag has to be passed to the compiler in order to fix Ruby building
@@ -188,6 +188,17 @@ target_compile_options(${target} INTERFACE ) +# Fix Ruby MacOSX LLVM bug +# '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes + +include(Portability) +if("${PROJECT_OS_FAMILY}" STREQUAL "macos" ) + if("${CMAKE_C_COMPILER_ID}" ...
USE_COMMON_GOOGLE_APIS macro
@@ -424,6 +424,64 @@ macro PY_PROTO_PLUGIN2(NAME, EXT1, EXT2, TOOL, DEPS[]) { _ADD_PY_PROTO_OUT($EXT2) } +_GO_COMMON_GOOGLE_APIS = \ +vendor/google.golang.org/genproto/googleapis/api/annotations \ +vendor/google.golang.org/genproto/googleapis/api/configchange \ +vendor/google.golang.org/genproto/googleapis/api/distribu...
netutils: webserver: Replace license header with Apache License 2.0 Summary: This commit replaces license header in httpd_dirlist.c Impact: No impact Testing: Buid check only
/**************************************************************************** * netutils/webserver/httpd_dirlist.c * - * Copyright 2019 Sony Home Entertainment & Sound Products Inc. - * Author: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> + * Licensed to the Apache Software Foundation (ASF) under one or more + * c...
Refactor if-blocks Group all conditions requiring a controller in a single if-block.
@@ -707,13 +707,14 @@ sc_input_manager_process_mouse_button(struct sc_input_manager *im, bool down = event->type == SDL_MOUSEBUTTONDOWN; if (!im->forward_all_clicks) { + if (controller) { enum sc_action action = down ? SC_ACTION_DOWN : SC_ACTION_UP; - if (controller && event->button == SDL_BUTTON_X1) { + if (event->but...
test-suite: fix stdout summary alignment for plasma
@@ -48,7 +48,7 @@ echo echo '-------------------------------------------------- SUMMARY --------------------------------------------------' echo echo Package version............... : $PACKAGE-$VERSION -echo OHPC compiler toolchain........ : $LMOD_FAMILY_COMPILER +echo OHPC compiler toolchain....... : $LMOD_FAMILY_COMPI...
BugID:17960618:set pca10040 flash parttion
const hal_logic_partition_t hal_partitions[] = { + [HAL_PARTITION_BOOTLOADER] = + { + .partition_owner = HAL_FLASH_EMBEDDED, + .partition_description = "Bootloader", + .partition_start_addr = 0x000000, + .partition_length = 0x10000, //64k bytes + .partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN, + }, + [HAL_PART...
HV: modify HV RAM and serial config for apl-nuc To support grub multiboot for nuc6cayh, we should put hv ram start at a suitable address; Enable HSUART controller at PCI 0:18.0 as HV serail port; Acked-by: Eddie Dong
# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) CONFIG_BOARD="nuc6cayh" -CONFIG_SERIAL_LEGACY=y +# There is no ready-made serial connector on NUC6CAYH, but developer could +# enable HSUART at PCI 0:18.0 by soldering Tx/Rx wires from M.2 connector; +CONFIG_SERIAL_PCI=y +CONFIG_SERIAL_PCI_BDF="0:18.0"...
Warning: arithmetic on a pointer to void is a GNU extension.
@@ -1935,7 +1935,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) log_assert(c->tcp_write_and_read || sldns_buffer_remaining(buffer) > 0); log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2); if(c->tcp_write_and_read) { - r = send(fd, (void*)c->tcp_write_pkt + c->tcp_w...
Fix warnings for "atomic_init"
} #endif #if defined(__Userspace_os_Windows) -static void atomic_init() {} /* empty when we are not using atomic_mtx */ +static void atomic_init(void) {} /* empty when we are not using atomic_mtx */ #else -static inline void atomic_init() {} /* empty when we are not using atomic_mtx */ +static inline void atomic_init(v...
CI: use GitHub Actions to test with stack on Windows
@@ -103,3 +103,31 @@ jobs: - name: Test all run: cabal v2-test all + + windows: + name: Windows (stack) + runs-on: windows-2019 + steps: + - uses: actions/checkout@v2 + + - name: Cache stack global package db + id: stack-global-package-db + uses: actions/cache@v2 + with: + path: 'C:\Users\runneradmin\AppData\Roaming\st...
[numerics] complete NM_get_value function
@@ -480,8 +480,24 @@ void NM_zentry(NumericsMatrix* M, int i, int j, double val) double NM_get_value(NumericsMatrix* M, int i, int j) { assert(M); + + if ((i + 1 > M->size0) || (j + 1 > M->size1) ) + { + fprintf(stderr, "NM_get_value :: out of range \n"); + exit(EXIT_FAILURE); + } switch (M->storageType) { + case NM_DE...
Fix a mem leak in libssl Make sure we free up any ENGINE references after we have finished using them. Fixes
@@ -5849,12 +5849,17 @@ const EVP_CIPHER *ssl_evp_cipher_fetch(OPENSSL_CTX *libctx, const char *properties) { #ifndef OPENSSL_NO_ENGINE + ENGINE *eng; + /* * If there is an Engine available for this cipher we use the "implicit" * form to ensure we use that engine later. */ - if (ENGINE_get_cipher_engine(nid) != NULL) +...
esp_ipc: fix race condition in ipc task
@@ -78,7 +78,6 @@ static void IRAM_ATTR ipc_task(void* arg) if (s_ipc_wait[cpuid] == IPC_WAIT_FOR_END) { xSemaphoreGive(s_ipc_ack[cpuid]); } - s_func[cpuid] = NULL; } } @@ -149,6 +148,7 @@ static esp_err_t esp_ipc_call_and_wait(uint32_t cpu_id, esp_ipc_func_t func, voi s_ipc_wait[cpu_id] = wait_for; xSemaphoreGive(s_ip...
Travis: Add explicit stage `Test`.
if: tag IS blank +language: cpp +dist: bionic +sudo: true +osx_image: xcode11 + +jobs: + include: + - stage: Test os: - linux - osx @@ -10,28 +18,18 @@ compiler: env: - TINYSPLINE_FLOAT_PRECISION=OFF - TINYSPLINE_FLOAT_PRECISION=ON - -language: cpp -dist: bionic -sudo: true -osx_image: xcode11 - install: - if [ "$TRAVI...
[libgui] Use dependencies in std mode
@@ -3,6 +3,9 @@ name = "libgui" version = "0.1.0" edition = "2021" +[features] +run_with_std = ["pixels", "winit"] + [dependencies] cstr_core = "0.2.4" rand_core = { version = "0.5.1", default-features = false } @@ -13,3 +16,7 @@ axle_rt_derive = {path = "../axle_rt_derive" } awm_messages = {path = "../awm_messages" } ...
[CI] Debug meson script
@@ -19,7 +19,7 @@ def install_dependencies(): "xorriso", # OS build "nasm", - "mtools", + "mtools" ] run_and_check(["sudo", "apt", "install", "-y", *dependencies])
math/besseli0: use base liquid_besseli(nu,z) with nu=0
@@ -114,25 +114,9 @@ float liquid_besselif(float _nu, } // I_0(z) : Modified bessel function of the first kind (order zero) -#define NUM_BESSELI0_ITERATIONS 32 float liquid_besseli0f(float _z) { - // TODO : use better low-signal approximation - if (_z == 0.0f) - return 1.0f; - - unsigned int k; - float t, y=0.0f; - for...
armv8-m: Fix MPU Attribute Indirection reg offsets Both MPU_MAIR0 and MPU_MAIR1 were off by 0x10.
#define MPU_RBAR_A3_OFFSET 0x0024 #define MPU_RLAR_A3_OFFSET 0x0028 -#define MPU_MAIR_OFFSET(n) (0x0040 + 4 * ((n) >> 2)) -#define MPU_MAIR0_OFFSET 0x0040 /* MPU Memory Attribute Indirection Register 0 */ -#define MPU_MAIR1_OFFSET 0x0044 /* MPU Memory Attribute Indirection Register 1 */ +#define MPU_MAIR_OFFSET(n) (0x0...
better early skip?
@@ -1706,14 +1706,6 @@ static void search_pu_inter(encoder_state_t * const state, double bits = merge_flag_cost + merge_idx + CTX_ENTROPY_FBITS(&(state->search_cabac.ctx.cu_merge_idx_ext_model), merge_idx != 0); if(state->encoder_control->cfg.rdo >= 2 && cur_pu->part_size == SIZE_2Nx2N) { kvz_cu_cost_inter_rd2(state, x...
Fix CI_UPSTREAM_COMMIT_SHA
@@ -247,7 +247,7 @@ installer: CI_UPSTREAM_PIPELINE_SOURCE: $CI_PIPELINE_SOURCE CI_UPSTREAM_COMMIT_BRANCH: $CI_COMMIT_BRANCH CI_UPSTREAM_DEFAULT_BRANCH: $CI_DEFAULT_BRANCH - CI_UPSTREAM_COMMIT_SHA: ${CI_UPSTREAM_COMMIT_SHA} + CI_UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA PLUGIN_REF: main AGENT_REF: $CI_COMMIT_REF_NAME trigger...
fix segfault - copy last NULL as well
@@ -640,7 +640,7 @@ void conf_load_args( int argc, char **argv ) { int i; // Duplicate memory to get an array that can be appended to - g_argv = (char**) memdup(argv, argc * sizeof(char*)); + g_argv = (char**) memdup(argv, (argc + 1) * sizeof(char*)); g_argc = argc; for( i = 1; i < g_argc; i++ ) {
Allow alpha palettes in non bilinear grayscale draw_image
@@ -842,7 +842,13 @@ void imlib_draw_image(image_t *img, image_t *other, int x_off, int y_off, float if (!mask || image_get_mask_pixel(mask, other_x, other_y)) { uint8_t result_pixel = safe_map_pixel(IMAGE_BPP_GRAYSCALE, other_bpp, imlib_get_pixel_fast(other_bpp, other_row_ptr, other_x)); - if (alpha != 256) { + if (al...
brya: Enable i2cspeed console command BRANCH=none TEST=with follow-on patches, switched I2C bus speed between 400 kHz and 1 MHz.
#define CONFIG_USB_PD_TCPM_PS8815_FORCE_DID #define CONFIG_USBC_RETIMER_INTEL_BB +/* I2C speed console command */ +#define CONFIG_CMD_I2C_SPEED + #define CONFIG_USBC_PPC_SYV682X #define CONFIG_USBC_PPC_NX20P3483
JNA: Improve Maven integration into build system This commit closes
@@ -46,14 +46,46 @@ if (Java_JAVAC_EXECUTABLE) INPUT "${CMAKE_CURRENT_BINARY_DIR}/libelektra4j/pom.xml") - # then copy over the source files in the build folder as thats the easiest way to handle it - file (COPY "${CMAKE_CURRENT_SOURCE_DIR}/libelektra4j" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") - - # compile it and b...
Add WSL workaround
@@ -170,6 +170,11 @@ BOOLEAN PhInitializeLxssImageVersionInfo( return FALSE; } + if (PhEqualString2(lxssFileName, L"/init", FALSE)) + { + PhMoveReference(&lxssFileName, PhCreateString(L"/sbin/init")); + } + PhMoveReference(&lxssCommandLine, PhFormatString( L"rpm -qf %s --queryformat \"%%{VERSION}|%%{VENDOR}|%%{SUMMARY}...
[DeviceDriver][SFUD] Replace the vsnprintf to rt_vsnprintf.
@@ -189,7 +189,7 @@ void sfud_log_debug(const char *file, const long line, const char *format, ...) va_start(args, format); rt_kprintf("[SFUD] (%s:%ld) ", file, line); /* must use vprintf to print */ - vsnprintf(log_buf, sizeof(log_buf), format, args); + rt_vsnprintf(log_buf, sizeof(log_buf), format, args); rt_kprintf(...
fixed detection M23E2 if M2 is behind M3 in timeline
@@ -1962,7 +1962,6 @@ for(zeiger = messagelist; zeiger < messagelist +MESSAGELIST_MAX; zeiger++) } if((zeiger->message &HS_M1) != HS_M1) continue; if(zeiger->rc >= rc -1) rcgap = zeiger->rc -rc +1; - else rcgap = rc -zeiger->rc +1; if(rcgap > ncvalue) continue; if(memcmp(zeiger->client, macclient, 6) != 0) continue; if...
fixed cpp build error with adapters/libhv.h
@@ -56,7 +56,7 @@ static void redisLibhvCleanup(void *privdata) { static void redisLibhvTimeout(htimer_t* timer) { hio_t* io = (hio_t*)hevent_userdata(timer); - redisAsyncHandleTimeout(hevent_userdata(io)); + redisAsyncHandleTimeout((redisAsyncContext*)hevent_userdata(io)); } static void redisLibhvSetTimeout(void *priv...
data tree BUGFIX set when_true flag for implciti nodes So that they are silently removed during validation.
@@ -1405,7 +1405,7 @@ lyd_new_implicit_r(struct lyd_node *parent, struct lyd_node **first, const struc if (!(iter->flags & LYS_PRESENCE) && lyd_find_sibling_val(*first, iter, NULL, 0, NULL)) { /* create default NP container */ LY_CHECK_RET(lyd_create_inner(iter, &node)); - node->flags = LYD_DEFAULT; + node->flags = LYD...
Modify the IP & GW & MSK ADDR configure mode as string mode, insted separation mode
// <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" /> #define RT_LWIP_ETHTHREAD_STACKSIZE 512 // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" /> -#define RT_LWIP_IPADDR0 192 -#define RT_LWIP_IPADDR1 168 -#define RT_LWIP...
overwrite old output PSK file
@@ -1686,7 +1686,7 @@ if(apessidliste == NULL) if(pskname != NULL) { - if((fhpsk = fopen(pskname, "w")) == NULL) + if((fhpsk = fopen(pskname, "w+")) == NULL) { fprintf(stderr, "1 error opening psk file %s\n", pskname); exit(EXIT_FAILURE);
opae.admin: mtd: change `open` to return `self` This allows using it in a context manager: ```Python mtd_obj = mtd('/dev/mtd0') with mtd_obj.open('r') as m: # do stuff with m
@@ -60,6 +60,7 @@ class mtd(loggable): self.log.warn('device is currently open, closing') self._fp.close() self._fp = open(self._devpath, mode) + return self def close(self): """close Close an open mtd device."""
Make sim header size slightly more configurable This adds an HDR_SIZE constant to the simulator which allows for easier testing of images with different header sizes.
@@ -1011,11 +1011,13 @@ fn install_image(flash: &mut Flash, slots: &[SlotInfo], slot: usize, len: usize, let mut tlv = make_tlv(); + const HDR_SIZE: usize = 32; + // Generate a boot header. Note that the size doesn't include the header. let header = ImageHeader { magic: 0x96f3b83d, load_addr: 0, - hdr_size: 32, + hdr_s...
sse2: NEON implementation of srli_epi64 should mask 7 bits not 8
@@ -3965,7 +3965,7 @@ simde_mm_srli_epi64 (simde__m128i a, const int imm8) { # define simde_mm_srli_epi64(a, imm8) SIMDE__M128I_FROM_NATIVE(_mm_srli_epi64(a.n, imm8)) #elif defined(SIMDE_SSE2_NEON) # define simde_mm_srli_epi64(a, imm8) \ - SIMDE__M128I_NEON_C(u64, (((imm8)&255) < 0 || ((imm8)&255) > 63) ? (vdupq_n_u64(...
improved ESSID detection in case of a IE_TAG
@@ -3188,8 +3188,10 @@ return true; static bool gettags(int infolen, uint8_t *infoptr, tags_t *zeiger) { static ietag_t *tagptr; +static bool ef; memset(zeiger, 0, TAGS_SIZE); +ef = false; while(0 < infolen) { if(infolen == 4) return true; @@ -3200,7 +3202,11 @@ while(0 < infolen) infolen -= tagptr->len +IETAG_SIZE; co...
out_datadog: use 'unsigned int' instead of 'uint' `uint` is not a standard type and many compilers do not recognize it. This should fix the testing failure occurring on AppVeyor.
@@ -49,7 +49,7 @@ static void dd_remap_move_to_tags(const char* tag_name, msgpack_object attr_valu static void dd_remap_container_name(const char* tag_name, msgpack_object attr_value, flb_sds_t dd_tags) { /* remove the first / if present */ - uint adjust = attr_value.via.str.ptr[0] == '/' ? 1 : 0; + unsigned int adjust...
EVP: make evp_pkey_is_assigned() usable in the FIPS module
@@ -598,8 +598,13 @@ DEFINE_STACK_OF(OP_CACHE_ELEM) ((pk)->type == EVP_PKEY_NONE && (pk)->keymgmt == NULL) #define evp_pkey_is_typed(pk) \ ((pk)->type != EVP_PKEY_NONE || (pk)->keymgmt != NULL) +#ifndef FIPS_MODULE # define evp_pkey_is_assigned(pk) \ ((pk)->pkey.ptr != NULL || (pk)->keydata != NULL) +#else +# define ev...