message
stringlengths
6
474
diff
stringlengths
8
5.22k
Set OPENSSL_ENGINES for Windows
@@ -220,6 +220,7 @@ test: tests set BLDTOP=$(BLDDIR) set RESULT_D=$(BLDDIR)\test\test-runs set PERL=$(PERL) + set OPENSSL_ENGINES=$(MAKEDIR)\engines set OPENSSL_DEBUG_MEMORY=on "$(PERL)" "$(SRCDIR)\test\run_tests.pl" $(TESTS) @rem {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
doc: prettify OPAL_PCI_SET_PHB_CAPI_MODE
+.. _OPAL_PCI_SET_PHB_CAPI_MODE: + OPAL_PCI_SET_PHB_CAPI_MODE -=========================== +========================== + +.. code-block:: c + + #define OPAL_PCI_SET_PHB_CAPI_MODE 93 + + /* CAPI modes for PHB */ + enum { + OPAL_PHB_CAPI_MODE_PCIE = 0, + OPAL_PHB_CAPI_MODE_CAPI = 1, + OPAL_PHB_CAPI_MODE_SNOOP_OFF = 2, + ...
Fix menu anchor to SGB settings
@@ -346,7 +346,7 @@ const SettingsPage: FC = () => { l10n("FIELD_BORDER_IMAGE"), ]} > - <CardAnchor id="settingsColor" /> + <CardAnchor id="settingsSuper" /> <CardHeading>{l10n("SETTINGS_SGB")}</CardHeading> <SearchableSettingRow searchTerm={searchTerm}
Support OP_ADD for Array
@@ -665,6 +665,65 @@ static inline int op_jmpnil( mrbc_vm *vm, mrbc_value *regs ) + +//================================================================ +/*!@brief + Method call by symbol id + + @param vm pointer of VM. + @param method_name method name + @param regs pointer to regs + @retval 0 No error. +*/ +static inli...
Make buffer util functions accept const buffers So that they can be used both on const and non-const input buffers.
@@ -19,12 +19,12 @@ buffer_write32be(uint8_t *buf, uint32_t value) { } static inline uint32_t -buffer_read32be(uint8_t *buf) { +buffer_read32be(const uint8_t *buf) { return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; } static inline -uint64_t buffer_read64be(uint8_t *buf) { +uint64_t buffer_read64be(const...
Add value change event calls for dragging
@@ -346,14 +346,19 @@ static lv_res_t lv_rotary_signal(lv_obj_t * rotary, lv_signal_t sign, void * par if (ext->right_knob_area.y1 < p.y && p.y < ext->right_knob_area.y2) { if (p.x > ext->last_drag_x && p.x < ext->right_knob_area.x2) { + ext->last_drag_x = p.x; lv_rotary_set_value(rotary, lv_rotary_get_value(rotary) + ...
Create a function for gather all the keys. Prepare for using subclasses.
@@ -437,22 +437,27 @@ class StorageFormat: return [key for alg in self.constructors.generate_expressions(algorithms) for key in self.keys_for_algorithm(alg)] + def generate_all_keys(self) -> List[StorageKey]: + """Generate all keys for the test cases.""" + keys = [] #type: List[StorageKey] + keys += self.all_keys_for_l...
Update CMakeLissts.txt to copy libstdc++.so.5 Included in x86libs but not copied to /usr/lib when 'make installing'
@@ -450,6 +450,7 @@ if(NOT _x86 AND NOT _x86_64) RUNTIME DESTINATION bin) install(FILES ${CMAKE_SOURCE_DIR}/system/box86.conf DESTINATION /etc/binfmt.d/) install(FILES ${CMAKE_SOURCE_DIR}/x86lib/libstdc++.so.6 DESTINATION /usr/lib/i386-linux-gnu/) + install(FILES ${CMAKE_SOURCE_DIR}/x86lib/libstdc++.so.5 DESTINATION /u...
Fix lovr.graphics.setProjection; Needed to be using new frameData stuff.
@@ -527,8 +527,12 @@ void lovrGraphicsMatrixTransform(mat4 transform) { } void lovrGraphicsSetProjection(mat4 projection) { + lovrGraphicsFlush(); mat4_set(state.camera.projection[0], projection); mat4_set(state.camera.projection[1], projection); + mat4_set(state.frameData.projection[0], projection); + mat4_set(state.f...
DTLS: free allocated memory on error paths
@@ -1051,13 +1051,17 @@ int dtls1_buffer_message(SSL *s, int is_ccs) if (!ossl_assert(s->d1->w_msg_hdr.msg_len + ((s->version == DTLS1_BAD_VER) ? 3 : DTLS1_CCS_HEADER_LENGTH) - == (unsigned int)s->init_num)) + == (unsigned int)s->init_num)) { + dtls1_hm_fragment_free(frag); return 0; + } } else { if (!ossl_assert(s->d1...
northd: Fix memory leak. Commit cloned the external_ids to ids, then passed them to sbrec_port_binding_set_external_ids(). The intermediate step is unneeded (and caused a memory leak). Pass the external_ids directly. Acked-by: Ales Musil
@@ -3331,9 +3331,7 @@ ovn_port_update_sbrec(struct northd_input *input_data, sbrec_port_binding_set_mac(op->sb, &addresses, 1); ds_destroy(&s); - struct smap ids = SMAP_INITIALIZER(&ids); - smap_clone(&ids, &op->nbrp->external_ids); - sbrec_port_binding_set_external_ids(op->sb, &ids); + sbrec_port_binding_set_external_...
BugID:19174429: fix build error in cy8ckit-062
@@ -18,7 +18,7 @@ GLOBAL_INCLUDES += . AOS_NETWORK_SAL ?= y ifeq (y,$(AOS_NETWORK_SAL)) -$(NAME)_COMPONENTS += sal +$(NAME)_COMPONENTS += sal netmgr module ?= wifi.mk3060 else GLOBAL_DEFINES += CONFIG_NO_TCPIP
move NULL pointer check TBH, this looks like merge damage or some such. Perfectly fine NULL pointer check, about three lines after it was needed.
@@ -1820,11 +1820,6 @@ ip4_arp_inline (vlib_main_t * vm, vlib_packet_template_get_packet (vm, &im->ip4_arp_request_packet_template, &bi0); - b0 = vlib_get_buffer (vm, bi0); - - /* copy the persistent fields from the original */ - clib_memcpy_fast (b0->opaque2, p0->opaque2, sizeof (p0->opaque2)); - /* Seems we're out of...
enable python in flatc ([arc::pullid] e3ab872c-125a0130-4ba7428b-6c971d06)
@@ -55,6 +55,10 @@ int main(int argc, const char *argv[]) { nullptr, flatbuffers::IDLOptions::kJava, "Generate Java classes for tables/structs", flatbuffers::GeneralMakeRule }, + { flatbuffers::GeneratePython, "-p", "--python", "Python", true, nullptr, + flatbuffers::IDLOptions::kPython, + "Generate Python files for ta...
Trying to fix selinux install. Moving user and group installation to pre to be consistent with other packages. Also i think error is that semanage commands running before these exist
@@ -89,6 +89,22 @@ twamp server # Thrulay and I2Util get installed, but really, shouldn't be instaled. %define _unpackaged_files_terminate_build 0 +%pre -n owamp-client +/usr/sbin/groupadd -r owamp 2> /dev/null || : +/usr/sbin/useradd -g owamp -r -s /bin/nologin -d /tmp owamp || : + +%pre -n twamp-client +/usr/sbin/gro...
fix(makefile): honor DESTDIR and PREFIX for tic (terminfo generation), fixes
@@ -48,11 +48,18 @@ install: st mkdir -p $(DESTDIR)$(MANPREFIX)/man1 sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/xst.1 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/xst.1 - tic -sx st.info - @echo Please see the README file regarding the terminfo entry of st. + mkdir -p $(DESTDIR)$(PREFIX)/share/terminfo ...
Use dynamic memory for cached DNS names Fixes
@@ -177,7 +177,7 @@ struct dns_table_entry { u8_t seqno; u8_t err; u32_t ttl; - char name[DNS_MAX_NAME_LENGTH]; + char *name; ip_addr_t ipaddr; /* pointer to callback on DNS query done */ dns_found_callback found; @@ -924,11 +924,14 @@ dns_enqueue(const char *name, dns_found_callback found, void *callback_arg) LWIP_DEB...
modinfo UPDATE error for unknown top-level data
@@ -636,7 +636,13 @@ sr_modinfo_edit_apply(struct sr_mod_info_s *mod_info, const struct lyd_node *edi LY_LIST_FOR(edit, node) { ly_mod = lyd_owner_module(node); - if (ly_mod && !strcmp(ly_mod->name, "sysrepo")) { + if (!ly_mod && !node->schema) { + lyd_parse_opaq_error(node); + sr_errinfo_new_ly(&err_info, mod_info->co...
move the test root user check back to right place
@@ -165,6 +165,10 @@ sub new_memcached { croak("Failed to connect to specified memcached server.") unless $conn; } + if ($< == 0) { + $args .= " -u root"; + } + my $udpport; if ($args =~ /-l (\S+)/) { $port = free_port(); @@ -173,9 +177,6 @@ sub new_memcached { if (supports_udp()) { $args .= " -U $udpport"; } - if ($< ...
util/build_with_clang: eve and poppy now compile BRANCH=none TEST=CC=clang make BOARD=eve TEST=CC=clang make BOARD=poppy
@@ -89,7 +89,7 @@ BOARDS_THAT_COMPILE_SUCCESSFULLY_WITH_CLANG = [ "eldrid", "elemi", "endeavour", - # "eve", + "eve", "ezkinil", "felwinter", "fizz", @@ -144,7 +144,7 @@ BOARDS_THAT_COMPILE_SUCCESSFULLY_WITH_CLANG = [ "pazquel", "phaser", "pompom", - # "poppy", + "poppy", "primus", "puff", "quackingstick",
devtools support for Alice's *.nlg coverage
@@ -712,6 +712,10 @@ module _BASE_UNIT { LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping } + when ($NLG_COVERAGE && $NLG_COVERAGE != "no") { + CFLAGS+=-DNLG_COVERAGE + } + when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") { CFLAGS+=-fno-omit-frame-pointer
slightly more clarity in the diplomacy example [skip ci]
@@ -98,18 +98,19 @@ This example shows a Rocket Chip based SoC that merges multiple system component with HasPeripheryUARTModuleImp with HasPeripheryIceNICModuleImp -There are two "cakes" here. One for the lazy module and one for the module -implementation. The lazy module defines all the logical connections between -g...
ldns-signzone: Amend manpage for engine options.
-.TH ldns-signzone 1 "30 May 2005" +.TH ldns-signzone 1 "13 March 2018" .SH NAME ldns-signzone \- sign a zonefile with DNSSEC data .SH SYNOPSIS @@ -83,18 +83,18 @@ Use the EVP cryptographic engine with the given name for signing. This can have some extra options; see ENGINE OPTIONS for more information. .TP -\fB-k\fR \...
schema REFACTOR avoid code duplication and improve code readability lysc_node_children_p() and lysc_node_children_full() were wery similar, refactoring should avoid code duplication and emphasis the differences between the functions. Fixes
@@ -1468,7 +1468,7 @@ lysc_node_children(const struct lysc_node *node, uint16_t flags) return NULL; } - children = lysc_node_children_p((struct lysc_node *)node, flags); + children = lysc_node_children_p(node, flags); if (children) { return *children; } else { @@ -1479,30 +1479,19 @@ lysc_node_children(const struct lys...
driver/wpc/cps8100.c: Format with clang-format BRANCH=none TEST=none
@@ -85,18 +85,9 @@ struct cps8100_msg { BUILD_ASSERT(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__); static const char *const cps8100_func_names[] = { - [0] = "DPL", - [1] = "OPP", - [2] = "OTP", - [3] = "OVPK", - [4] = "OCP", - [5] = "UVP", - [6] = "OVP", - [7] = "FOD", - [8] = "SAMSUNG", - [9] = "APPLE", - [10] = "EPP", ...
[tb] Remove two unnecessary posedge lines
@@ -467,8 +467,6 @@ module mempool_tb; addr_t length; string binary; - @(posedge clk) - @(posedge clk) // Initialize memories void'($value$plusargs("PRELOAD=%s", binary)); if (binary != "") begin
spgram: adding autotest for checking counters
@@ -60,3 +60,54 @@ void autotest_spgramcf_noise_1024() { testbench_spgramcf_noise(1024, -80.0); } void autotest_spgramcf_noise_1200() { testbench_spgramcf_noise(1200, -80.0); } void autotest_spgramcf_noise_8400() { testbench_spgramcf_noise(8400, -80.0); } +void autotest_spgramcf_counters() +{ + // create spectral perio...
test: add cipher context dup test
@@ -427,6 +427,7 @@ static int digest_test_run(EVP_TEST *t) int xof = 0; OSSL_PARAM params[2]; + printf("test %s (%d %d)\n", t->name, t->s.start, t->s.curr); t->err = "TEST_FAILURE"; if (!TEST_ptr(mctx = EVP_MD_CTX_new())) goto err; @@ -707,7 +708,7 @@ static int cipher_test_enc(EVP_TEST *t, int enc, size_t in_len, out...
Fix migrate warning response
@@ -30,7 +30,6 @@ export default async projectPath => { currentVersion = "1.0.0"; } - return new Promise((resolve, reject) => { if (fromFuture(currentVersion)) { const dialogOptions = { type: "info", @@ -48,22 +47,19 @@ export default async projectPath => { version: LATEST_PROJECT_VERSION }) }; - dialog.showMessageBox(...
BUFR: Key spectralWaveDensity decoded incorrectly
@@ -767,7 +767,7 @@ static int descriptor_get_min_max(bufr_descriptor* bd, long width, long referenc { /* Maximum value is allowed to be the largest number (all bits 1) which means it's MISSING */ unsigned long max1 = (1UL << width) - 1; /* Highest value for number with 'width' bits */ - DebugAssert(width > 0 && width ...
[platform][riscv] move the supervisor mode switch to -S which makes more sense
@@ -12,7 +12,7 @@ function HELP { echo "-d a virtio display" echo "-e embeded platform" echo "-6 64bit" - echo "-u supervisor mode (using OpenSBI)" + echo "-S supervisor mode (using OpenSBI)" echo " currently only works in 64bit mode" echo "-m <memory in MB>" echo "-s <number of cpus>" @@ -36,7 +36,7 @@ SUDO="" PROJECT...
py/asmx86: Use generic emit function to simplify cmp emit function.
@@ -313,7 +313,7 @@ void asm_x86_sar_r32_by_imm(asm_x86_t *as, int r32, int imm) { #endif void asm_x86_cmp_r32_with_r32(asm_x86_t *as, int src_r32_a, int src_r32_b) { - asm_x86_write_byte_2(as, OPCODE_CMP_R32_WITH_RM32, MODRM_R32(src_r32_a) | MODRM_RM_REG | MODRM_RM_R32(src_r32_b)); + asm_x86_generic_r32_r32(as, src_r3...
Fix System.Device GpioPin.Read
@@ -21,9 +21,13 @@ HRESULT Library_sys_dev_gpio_native_System_Device_Gpio_GpioPin::Read___SystemDev CLR_RT_StackFrame &stack) { NANOCLR_HEADER(); - { + + CLR_RT_TypeDef_Index gpioPinTypeDef; + CLR_RT_HeapBlock *hbObj; bool pinValue; + CLR_RT_HeapBlock &top = stack.PushValue(); + CLR_RT_HeapBlock *pThis = stack.This(); ...
Fix for normalized diff
@@ -357,7 +357,7 @@ namespace MiningCore.Blockchain.Bitcoin share.Miner = minerName; share.Worker = workerName; share.UserAgent = worker.Context.UserAgent; - share.NormalizedDifficulty = stratumDifficulty / shareMultiplier; + share.NormalizedDifficulty = stratumDifficulty * shareMultiplier > 1.0 ? (1d / (BitcoinConstan...
VXLAN:fix api dump flipped src<->dst
@@ -1384,8 +1384,8 @@ static void *vl_api_vxlan_add_del_tunnel_t_print u8 *s; s = format (0, "SCRIPT: vxlan_add_del_tunnel "); - ip46_address_t src = to_ip46 (mp->is_ipv6, mp->dst_address); - ip46_address_t dst = to_ip46 (mp->is_ipv6, mp->src_address); + ip46_address_t src = to_ip46 (mp->is_ipv6, mp->src_address); + ip...
Deletion email account for test
@@ -4,13 +4,13 @@ PORT=27017 ALERTS=on DATABASE=Datafari HOURLYDELAY=31/07/2015/08\:42 -user=datafari.test@gmail.com -smtp=smtp.gmail.com +user= +smtp= DAILYDELAY=02/07/2015/16\:10 WEEKLYDELAY=21/07/2015/10\:55 COLLECTION=Alerts Daily=06/04/2016/15\:10 -from=datafari.test@gmail.com -pass=Datafari1 +from= +pass= HOST=12...
Update -help to match latest presets
@@ -314,7 +314,7 @@ ADVANCED COMPRESSION Higher numbers give better quality, as more complex blocks can be encoded, but will increase search time. Preset defaults are: - -fastest : 3 + -fastest : 2 -fast : 3 -medium : 4 -thorough : 4 @@ -326,10 +326,10 @@ ADVANCED COMPRESSION diminishing returns especially for smaller ...
build MAINTENANCE removed no longer needed compiler option
@@ -81,7 +81,7 @@ endif() option(GEN_CPP_BINDINGS "Enable C++ bindings generation." OFF) option(BUILD_CPP_EXAMPLES "Enable C++ example application compilation." ON) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_COVERAGE} -Wall -Wextra -Wpedantic -std=c99 -Wno-language-extension-token") +set(CMAKE_C_FLAGS "${CMAK...
Remove unused field from find handles window
@@ -60,7 +60,6 @@ typedef struct _PH_HANDLE_SEARCH_CONTEXT PH_SORT_ORDER TreeNewSortOrder; PPH_HASHTABLE NodeHashtable; PPH_LIST NodeList; - PPH_LIST NodeRootList; HANDLE TimerQueueHandle; HANDLE UpdateTimerHandle;
Update PhTimeoutFromMilliseconds, PhTimeoutFromMillisecondsEx
@@ -531,7 +531,7 @@ FORCEINLINE VOID PhProbeAddress( } FORCEINLINE PLARGE_INTEGER PhTimeoutFromMilliseconds( - _Inout_ PLARGE_INTEGER Timeout, + _Out_ PLARGE_INTEGER Timeout, _In_ ULONG Milliseconds ) { @@ -544,7 +544,7 @@ FORCEINLINE PLARGE_INTEGER PhTimeoutFromMilliseconds( } #define PhTimeoutFromMillisecondsEx(Milli...
[MQTT5] Fix will properties
@@ -960,9 +960,10 @@ PT_THREAD(connect_pt(struct pt *pt, struct mqtt_connection *conn)) PT_BEGIN(pt); #if MQTT_5 - struct mqtt_prop_list_t *will_props; -// will_props = (struct mqtt_prop_list_t *) list_head(conn->will.properties); - will_props = NULL; // TODO + struct mqtt_prop_list_t *will_props = MQTT_PROP_LIST_NONE;...
Fix declaration of constexpr_BankSymbol()
@@ -20,7 +20,7 @@ struct ConstExpression { }; void constexpr_Symbol(struct ConstExpression *expr, char *tzSym); -void constexpr_BanksSymbol(struct ConstExpression *expr, char *tzSym); +void constexpr_BankSymbol(struct ConstExpression *expr, char *tzSym); void constexpr_BankSection(struct ConstExpression *expr, char *tz...
update database.cpp - enable RStateValve
@@ -3759,6 +3759,7 @@ static int sqliteLoadAllSensorsCallback(void *user, int ncols, char **colval , c R_GetProductId(&sensor) == QLatin1String("Tuya_THD GS361A-H04 TRV") || R_GetProductId(&sensor) == QLatin1String("Tuya_THD SEA801-ZIGBEE TRV") || R_GetProductId(&sensor) == QLatin1String("Tuya_THD Smart radiator TRV") ...
Use hash_info_get_size in ssl_tls12_client This way the code does not rely on the MBEDTLS_MD_C define
#include "mbedtls/platform_util.h" #endif +#include "hash_info.h" + #if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED) int mbedtls_ssl_conf_has_static_psk( mbedtls_ssl_config const *conf ) { @@ -2453,14 +2455,13 @@ start_processing: #if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT) if( pk_alg == MBEDTLS_PK_RSASSA_PSS ) { - ...
DM USB: xHCI: fix bug in port unassigning function The function for port unassigning: pci_xhci_clr_native_port_assigned should reset the 'info' member to all zero when it is called. Acked-by: Yu Wang
@@ -588,6 +588,7 @@ pci_xhci_clr_native_port_assigned(struct pci_xhci_vdev *xdev, if (i >= 0) { xdev->native_ports[i].state = VPORT_FREE; xdev->native_ports[i].vport = 0; + memset(&xdev->native_ports[i].info, 0, sizeof(*info)); } }
usb: remove unused function definitions
@@ -110,18 +110,6 @@ queue_error_t usb_frame_reply( uint32_t cid, struct queue* queue); -/** - * Takes data and a channel id and constructs USB frames that are added - * to the USB queue and send back to the host as a FRAME_MSG. - */ -void usb_frame_send_message(const uint8_t* data, uint32_t len, uint8_t cid); - -/** -...
Changed delay on redirect to 3 seconds.
@@ -31,7 +31,7 @@ __thread int g_getdelim = 0; //temporary int g_urls = 1; #define REDIRECTURL "fluentd" -#define OVERURL "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta http-equiv=\"refresh\" content=\"5; URL='http://cribl.io'\" />\r\n</head>\r\n<body>\r\n<h1>Welcome to Cribl!</h1>\r\n</body>\r\n</html>\r\n\r\n" +#defin...
remove superfluous double escaping
@@ -1557,7 +1557,12 @@ sldns_str2wire_svcparam_value(const char *key, size_t key_len, case SVCB_KEY_ALPN: return sldns_str2wire_svcbparam_alpn_value(val, rd, rd_len); default: - return sldns_str2wire_svcbparam_key_value(svcparamkey, val, rd, rd_len); + sldns_write_uint16(rd, svcparamkey); + sldns_write_uint16(rd + 2, s...
Fix a leak in EVP_DigestInit_ex() If an EVP_MD_CTX is reused then memory allocated and stored in md_data can be leaked unless the EVP_MD's cleanup function is called. Fixes
#include "crypto/evp.h" #include "evp_local.h" +static void cleanup_old_md_data(EVP_MD_CTX *ctx, int force) +{ + if (ctx->digest != NULL) { + if (ctx->digest->cleanup != NULL + && !EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_CLEANED)) + ctx->digest->cleanup(ctx); + if (ctx->md_data != NULL && ctx->digest->ctx_size > 0 +...
Fix argument size when setting booleans.
@@ -31,6 +31,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <string.h> #include <stdlib.h> +#include <yara.h> + #include "args.h" #define args_is_long_arg(arg) \ @@ -99,7 +101,7 @@ args_error_type_t args_parse_option( switch (opt->type) { case ARGS_OPT_BOOLEAN: - *(int*) opt->value = 1; + *(...
Changed tolerance parameter for oxygen mass on planet b in tests/AbioticO2.
@@ -25,7 +25,7 @@ def test_AbioticO2(): # Planet b -- checks high XUV flux environment assert np.isclose(output.log.final.b.SurfWaterMass, 4.187987, rtol=1e-4) - assert np.isclose(output.log.final.b.OxygenMass, 251.127387) + assert np.isclose(output.log.final.b.OxygenMass, 251.127387,rtol=1e-4) # Planet e -- checks low...
Fix possible memory leakage
@@ -98,6 +98,8 @@ espi_conn_manual_tcp_read_data(esp_conn_p conn, size_t len) { ESP_ASSERT("conn != NULL", conn != NULL); /* Assert input parameters */ ESP_ASSERT("len > 0", len > 0); /* Assert input parameters */ + ESP_MSG_VAR_ALLOC(msg); + len = ESP_MIN(ESP_CFG_CONN_MAX_DATA_LEN, ESP_MIN(len, conn->tcp_available_data...
pbio/platform/prime_hub: fix dual boot comment
@@ -607,7 +607,7 @@ void SystemInit(void) { HAL_RCC_ClockConfig(&clk_init, FLASH_LATENCY_5); - // If we are running dual boot, jump to other firmware if right button is pressed + // If we are running dual boot, jump to other firmware if no buttons are pressed pbio_platform_dual_boot(); // enable 8-byte stack alignment ...
Re-add code to force high to be > low ...
@@ -988,6 +988,14 @@ void compute_quantized_weights_for_decimation( float quant_level_m1 = quant_levels_m1[quant_level]; // Quantize the weight set using both the specified low/high bounds and standard 0..1 bounds + + /* TODO: WTF issue that we need to examine some time. */ + if (!((high_bound - low_bound) > 0.5f)) + {...
Make sure we treat records written after HRR as TLSv1.3 This fixes a bug where some CCS records were written with the wrong TLS record version.
(SSL_IS_TLS13(s) || (s)->early_data_state == SSL_EARLY_DATA_CONNECTING \ || (s)->early_data_state == SSL_EARLY_DATA_CONNECT_RETRY \ || (s)->early_data_state == SSL_EARLY_DATA_WRITING \ - || (s)->early_data_state == SSL_EARLY_DATA_WRITE_RETRY) + || (s)->early_data_state == SSL_EARLY_DATA_WRITE_RETRY \ + || (s)->hello_re...
hv: cpu_state_tbl: fix multiple exits This patch fixes the MISRA-C violations in arch/x86/cpu_state_tbl.c * make the function have only one exit point Acked-by: Eddie Dong
@@ -106,19 +106,18 @@ static int32_t get_state_tbl_idx(const char *cpuname) { int32_t i; int32_t count = ARRAY_SIZE(cpu_state_tbl); + int32_t ret = -1; - if (cpuname == NULL) { - return -1; - } - + if (cpuname != NULL) { for (i = 0; i < count; i++) { - if (strcmp((cpu_state_tbl[i].model_name), - cpuname) == 0) { - retu...
SOVERSION bump to version 6.1.16
@@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 6) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 15) +set(SYSREPO_MICRO_S...
.travis.yml: omit linux-ppc64le target. Build jobs keep timing out initializing...
@@ -31,10 +31,10 @@ env: matrix: include: - - os: linux-ppc64le - sudo: false - compiler: clang - env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES" + #- os: linux-ppc64le + # sudo: false + # compiler: clang + # env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES" - os: linux addons: apt:
OcMachoLib: Allow header to have more space than needed reserved for LCs.
@@ -90,7 +90,7 @@ MachoInitializeContext ( CommandsSize += Command->CommandSize; } - if (MachHeader->CommandsSize != CommandsSize) { + if (MachHeader->CommandsSize < CommandsSize) { return FALSE; } //
vendor: add github.com/jackc/pgerrcode
@@ -89,6 +89,7 @@ ALLOW .* -> vendor/github.com/iancoleman/strcase ALLOW .* -> vendor/github.com/jackc/pgx/v4 ALLOW .* -> vendor/github.com/jackc/pgconn ALLOW .* -> vendor/github.com/jackc/pgtype +ALLOW .* -> vendor/github.com/jackc/pgerrcode # database/sql wrapper with a lot of helper functions ALLOW .* -> vendor/gith...
posix env: add spinlock trylock
@@ -455,6 +455,11 @@ static inline void env_spinlock_init(env_spinlock *l) ENV_BUG_ON(pthread_spin_init(&l->lock, 0)); } +static inline int env_spinlock_trylock(env_spinlock *l) +{ + return pthread_spin_trylock(&l->lock) ? -OCF_ERR_NO_LOCK : 0; +} + static inline void env_spinlock_lock(env_spinlock *l) { ENV_BUG_ON(pth...
write test key only once
@@ -30,6 +30,7 @@ static int thisyear; static bool netgearflag; static bool askeyarrisflag; static bool digit10flag; +static bool podaflag; static bool phomeflag; static bool tendaflag; static bool weakpassflag; @@ -1346,9 +1347,11 @@ static void testpoda(FILE *fhout, uint8_t essidlen, uint8_t *essid) static int k; sta...
voxel:: modify mb gpio pin for BB retimer INT. Add USB_C0_RT_INT_ODL/USB_C1_RT_INT_ODL default INPUT dtype for mb typec C0/C1 port. BRANCH=master TEST=make buildall PASS, check system can power on.
@@ -97,6 +97,8 @@ GPIO(USB_C0_RT_RST_ODL, PIN(4, 1), GPIO_ODR_LOW) GPIO(USB_C1_RT_RST_ODL, PIN(8, 3), GPIO_ODR_LOW) /* USB_C1 Reset on boards board ID >=1 */ GPIO(USB_C0_OC_ODL, PIN(B, 1), GPIO_ODR_HIGH) GPIO(USB_C1_OC_ODL, PIN(5, 0), GPIO_ODR_HIGH) +GPIO(USB_C0_RT_INT_ODL, PIN(C, 6), GPIO_INPUT) +GPIO(USB_C1_RT_INT_OD...
Small fix for DEF file
@@ -11,8 +11,8 @@ EXPORTS ENcloseH = _ENcloseH@0 ENcloseQ = _ENcloseQ@0 ENdeletecontrol = _ENdeletecontrol@4 - ENdeletelink = _ENdeletelink@4 - ENdeletenode = _ENdeletenode@4 + ENdeletelink = _ENdeletelink@8 + ENdeletenode = _ENdeletenode@8 ENdeleterule = _ENdeleterule@4 ENepanet = _ENepanet@16 ENgetaveragepatternvalue...
Remove 3.1 hip patch.
@@ -3,7 +3,7 @@ rocr-runtime: rocr-runtime.patch rocr-runtime-ppcpages.patch rocr_include.patch rocm-device-libs: devicelibs_2-10_revert_1d2127c.patch rocm-compilersupport: useOldSectionNameMethod.patch comgr_2-10_revert_15854f1_2d67c80_8f6fd6a.patch comgr_3-0_revert_db46b9b_cb9d7cd_7665c20.patch comgr-3-1_revert_733ad...
tests: python3 fixes for reassembly tests Type: fix
@@ -298,7 +298,7 @@ def fragment_rfc791(packet, fragsize, _logger=None): pkts = [] ihl = packet[IP].ihl otl = len(packet[IP]) - nfb = (fragsize - pre_ip_len - ihl * 4) / 8 + nfb = int((fragsize - pre_ip_len - ihl * 4) / 8) fo = packet[IP].frag p = packet.__class__(hex_headers + hex_payload[:nfb * 8]) @@ -406,7 +406,7 @...
ite: Fix SRAM size for The has 60Kb of SRAM. TEST=make -j buildall BRANCH=none
#if defined(CHIP_VARIANT_IT81302BX_512) #define CONFIG_FLASH_SIZE_BYTES 0x00080000 #define CONFIG_RAM_BASE 0x80080000 -#define CONFIG_RAM_SIZE 0x00010000 #else #define CONFIG_FLASH_SIZE_BYTES 0x00100000 #define CONFIG_RAM_BASE 0x80100000 -#define CONFIG_RAM_SIZE 0x0000f000 /* Set ILM (instruction local memory) size up ...
Bug fix advanced search when Solr down
@@ -515,7 +515,9 @@ AjaxFranceLabs.AdvancedSearchWidget = AjaxFranceLabs.AbstractWidget.extend({ var deleteButton = currentDiv.find('.delete_button'); deleteButton.click(function() { // Remove the separator line + if(currentDiv.next().hasClass( "separator" )) { currentDiv.next().remove(); + } // Remove the div itself c...
docs:fix a typo
@@ -102,7 +102,7 @@ Software Setup ^^^^^^^^^^^^^^ Please proceed to :doc:`../../get-started/index`, where Section :ref:`get-started-step-by-step` will quickly help you set up the development environment and then flash an application example onto your board. -DXF_ESP32-S3-DevKitM-1_V1_20210310AC.pdf + Contents and Packa...
Add gradient to widgets
@@ -24,6 +24,8 @@ import SwiftUI @objc var backgroundImage: WidgetImage? + @objc var backgroundGradient: [UIColor]? + @objc var link: String? @objc func addRow(_ row: NSArray, backgroundColor: UIColor?, cornerRadius: Float, identifier: String?) { @@ -115,6 +117,8 @@ import SwiftUI case backgroundColor + case background...
Fix search for system config (issue
@@ -160,6 +160,7 @@ static const char * const CONFIG_FILES[] = { "$XDG_CONFIG_HOME/jwm/jwmrc", "$HOME/.config/jwm/jwmrc", "$HOME/.jwmrc", + SYSTEM_CONFIG }; static const unsigned CONFIG_FILE_COUNT = ARRAY_LENGTH(CONFIG_FILES);
[rtdbg] Add simple API to rtdbg.h. Such as LOG_D, LOG_E.
* Change Logs: * Date Author Notes * 2016-11-12 Bernard The first version + * 2018-05-25 armink Add simple API, such as LOG_D, LOG_E */ /* * In your C/C++ file, enable/disable DEBUG_ENABLE macro, and then include this * header file. * + * #undef DBG_SECTION_NAME // avoid the macro is already defined + * #undef DBG_LEVE...
One more try at rpath
@@ -23,6 +23,8 @@ before_install: - sudo ln -s /usr/local/lib/neko/libneko.2.3.0.dylib /usr/local/lib/neko/libneko.dylib - sudo ln -s /usr/local/lib/neko/libneko.2.3.0.dylib /usr/local/bin/libneko.2.dylib - sudo ln -s /usr/local/lib/neko/libneko.2.3.0.dylib /usr/local/bin/libneko.dylib +- sudo ln -s /usr/local/lib/neko...
Fix MitigationOptionsMap POLICY2 index
@@ -223,7 +223,7 @@ INT_PTR CALLBACK PhpProcessMitigationPolicyDlgProc( if (context->SystemDllInitBlock && RTL_CONTAINS_FIELD(context->SystemDllInitBlock, context->SystemDllInitBlock->Size, MitigationOptionsMap)) { - if (context->SystemDllInitBlock->MitigationOptionsMap.Map[0] & PROCESS_CREATION_MITIGATION_POLICY2_LOAD...
TEST: Add some more smget test for bkey trimmed case.
#!/usr/bin/perl use strict; -use Test::More tests => 47; +use Test::More tests => 52; use FindBin qw($Bin); use lib "$Bin/lib"; use MemcachedTest; @@ -41,7 +41,7 @@ for ($num = 1; $num < 10; $num++) { # - key0: 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, trim # - key1: 9, 8, 7, 6, 5, 4, 3, 2, 1 -# smget: descending order (...
Implement entity name access.
@@ -49,6 +49,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount) "deduct_ammo", "energy_status", "exists", + "name", "opponent", "owner", "player_index", @@ -334,6 +335,12 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr break; + case _ENTITY_NAME: + + ScriptV...
fix krhino_work_init bug
@@ -211,6 +211,7 @@ kstat_t krhino_work_init(kwork_t *work, work_handle_t handle, void *arg, NULL_PARA_CHK(work); NULL_PARA_CHK(handle); + memset(work, 0, sizeof(kwork_t)); klist_init(&(work->work_node)); work->handle = handle; work->arg = arg;
Stop using mgmt queue for IO in pyocf
@@ -136,7 +136,7 @@ class Cache: self.io_queues = [] def start_cache( - self, mngt_queue: Queue = None, use_mngt_queue_for_io: bool = True + self, default_io_queue: Queue = None, mngt_queue: Queue = None, ): status = self.owner.lib.ocf_mngt_cache_start( self.owner.ctx_handle, byref(self.cache_handle), byref(self.cfg) @...
fix exception message "wrong column count: expected 760, found 760" => "wrong column count: found more than 760 values"
@@ -136,17 +136,17 @@ namespace NCB { TVector<TString> textFeatures; textFeatures.yresize(featuresLayout.GetTextFeatureCount()); - size_t tokenCount = 0; + size_t tokenIdx = 0; try { auto splitter = NCsvFormat::CsvSplitter(line, FieldDelimiter, catFeatures.empty() ? '\0' : '"'); do { TStringBuf token = splitter.Consume...
Fix parsing escaped quotes in config
@@ -146,6 +146,9 @@ static inline int od_parser_next(od_parser_t *parser, od_token_t *token) token->type = OD_PARSER_ERROR; return token->type; } + if (*parser->pos == '\\') + parser->pos += 2; + else parser->pos++; } if (od_unlikely(parser->pos == parser->end)) {
vec: use `_negate` instead of `_flipsign` and `_inv`
@@ -481,7 +481,7 @@ glm_vec_negate(vec3 v) { CGLM_INLINE void glm_vec_inv(vec3 v) { - glm_vec_flipsign(v); + glm_vec_negate(v); } /*! @@ -493,7 +493,7 @@ glm_vec_inv(vec3 v) { CGLM_INLINE void glm_vec_inv_to(vec3 v, vec3 dest) { - glm_vec_flipsign_to(v, dest); + glm_vec_negate_to(v, dest); } /*!
Flattened if-else case for math builtins.
@@ -863,25 +863,13 @@ function ToIR:exp_to_value(cmds, exp, _recursive) elseif def._tag == "checker.Def.Function" then decl = def.func elseif def._tag == "checker.Def.Builtin" then - if var._type._tag == "types.T.Float" then local bname = def.id - if bname == "math.pi" then - return ir.Value.Float(math.pi) - elseif bna...
vell: Set battery current Prochot# threshold Vell battery over-discharging current is 10.5A. This patch set battery current Prochot# threshold to 10.5A. BRANCH=none TEST=On Vell. Check the DC PROCHOT threshold is correct.
@@ -95,3 +95,10 @@ static void set_ac_prochot(void) isl9241_set_ac_prochot(CHARGER_SOLO, PD_MAX_CURRENT_MA); } DECLARE_HOOK(HOOK_INIT, set_ac_prochot, HOOK_PRIO_DEFAULT); + +/* Set the DCPROCHOT base on battery over discharging current 10.5A */ +static void set_dc_prochot(void) +{ + isl9241_set_dc_prochot(CHARGER_SOLO,...
better use gcc to link instead of g++ on ubuntu, use g++ will add a additional linkflag "-lstdc++" and this will result link failed.
@@ -27,7 +27,7 @@ if PLATFORM == 'gcc': CXX = PREFIX + 'g++' AS = PREFIX + 'gcc' AR = PREFIX + 'ar' - LINK = PREFIX + 'g++' + LINK = PREFIX + 'gcc' TARGET_EXT = 'elf' SIZE = PREFIX + 'size' OBJDUMP = PREFIX + 'objdump'
schema tree helpers MAINTENANCE check return value
@@ -327,6 +327,7 @@ static LY_ERR lysp_check_dup_typedef(struct lys_parser_ctx *ctx, struct lysp_node *node, const struct lysp_tpdf *tpdf, struct hash_table *tpdfs_global, struct hash_table *tpdfs_scoped) { + LY_ERR ret; struct lysp_node *parent; uint32_t hash; size_t name_len; @@ -369,7 +370,8 @@ lysp_check_dup_typede...
Update copyrights and versions for new release.
-INSTALL - CUPS v2.3.3op1 - 2020-11-27 +INSTALL - CUPS v2.3.3op2 - 2021-02-01 ===================================== This file describes how to compile and install CUPS from source code. For more
Fix MSVC compiler error.
@@ -197,7 +197,8 @@ static int os_exit(DstArgs args) { /* Clock shim for windows */ #ifdef DST_WINDOWS -static int clock_gettime(int, struct timespec *spec) { +static int clock_gettime(int x, struct timespec *spec) { + (void) x; int64_t wintime = 0LL; GetSystemTimeAsFileTime((FILETIME*)&wintime); /* Windows epoch is Ja...
wrap de-purl in parser gate
-- :: :: :: ++de-purl:html ++ de-purl :: url+header parser + =< |=(a/cord `(unit purl)`(rush a auri)) |% :: :: ++deft:de-purl:html ++ deft :: parse url extension
[CHANGELOG] Release 0.2.0
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased + +## 0.2.0 - 2021-03-29 + ### Added - Assertion checking that Snitch's instruction interface is stable during stalls
Update to 2k sector size on stm32f3
/* * Flash is organized in FLASH_PAGE_SIZE blocks, which for the * STM32F3 family is 2KB. - * Split entire flash into 16KB sectors. * */ -#define HAL_FLASH_SECTOR_SIZE (FLASH_PAGE_SIZE * 8) +#define HAL_FLASH_SECTOR_SIZE FLASH_PAGE_SIZE #define HAL_FLASH_SIZE ((*((uint16_t*)FLASH_SIZE_DATA_REGISTER)) * 1024U) @@ -92,7 ...
Warning on startup "parameter or file not processed: ."
@@ -2973,7 +2973,7 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config, // trying to load cart for (s32 i = 1; i < argc; i++) { - if(cmdLoadCart(console, argv[i])) + if(strcmp(argv[i], ".") == 0 || cmdLoadCart(console, argv[i])) { argp |= 1 << i; break;
extmod/modiodevices: implement write Write a tuple of values to the LUMPDevice.
@@ -73,9 +73,39 @@ STATIC mp_obj_t iodevices_LUMPDevice_read(size_t n_args, const mp_obj_t *pos_arg } MP_DEFINE_CONST_FUN_OBJ_KW(iodevices_LUMPDevice_read_obj, 0, iodevices_LUMPDevice_read); +// pybricks.iodevices.LUMPDevice.write +STATIC mp_obj_t iodevices_LUMPDevice_write(size_t n_args, const mp_obj_t *pos_args, mp_m...
Compile programs with pallenec in the coder tests Instead of directly calling the driver, let's have the tests call pallenec just like the programmer would.
-local driver = require "pallene.driver" local util = require "pallene.util" local function compile(pallene_code) setup(function() assert(util.set_file_contents("__test__.pln", pallene_code)) - local ok, errors = driver.compile("pallenec-tests", "pln", "so", "__test__.pln") - assert(ok, errors[1]) + local ok, _, _, err...
zephyr/test/drivers/src/ppc_sn5s330.c: Format with clang-format BRANCH=none TEST=none
@@ -194,8 +194,7 @@ ZTEST(ppc_sn5s330, test_vbus_source_sink_enable) } /* This test depends on EC GIPO initialization happening before I2C */ -BUILD_ASSERT( - CONFIG_PLATFORM_EC_GPIO_INIT_PRIORITY < CONFIG_I2C_INIT_PRIORITY, +BUILD_ASSERT(CONFIG_PLATFORM_EC_GPIO_INIT_PRIORITY < CONFIG_I2C_INIT_PRIORITY, "GPIO initializ...
In multiple choice box, pressing "B" chooses the cancel option
@@ -330,6 +330,14 @@ void UIOnInteract() set_win_tiles(1, 2, 1, 1, ui_cursor_tiles); choice_index = 1; } + else if (JOY(J_B)) + { + text_count = 0; + text_lines[0] = '\0'; + script_variables[choice_flag] = FALSE; + choice_enabled = FALSE; + UIMoveTo(0, MENU_CLOSED_Y, text_out_speed); + } } }
udp: Remove the unnessary check of addr size in udp_readahead
@@ -257,15 +257,6 @@ static inline void udp_readahead(struct udp_recvfrom_s *pstate) } #endif - if (0 -#ifdef CONFIG_NET_IPv6 - || src_addr_size == sizeof(struct sockaddr_in6) -#endif -#ifdef CONFIG_NET_IPv4 - || src_addr_size == sizeof(struct sockaddr_in) -#endif - ) - { if (pstate->ir_msg->msg_name) { pstate->ir_msg-...
Update main.mm Correct method calling sequence and add clarifying comment.
@@ -32,9 +32,10 @@ int main(int argc, char** argv){ [[cdc OutOfScopeIdentifiers] addObject:@"e1b2ece8-2451-4ea9-997a-6f37b50be8de"]; if(myLogger){ - [myLogger logEventWithName: @"Simple_ObjC_Event"]; - + //If you have the logger, initializePrivacyGuard before logging data to ensure everything is inspected. [myLogger in...
daos: add documentation for dsync and dcmp
@@ -5,7 +5,7 @@ Documentation is available on [ReadTheDocs](http://mpifileutils.readthedocs.io). ## DAOS Support -mpiFileUtils supports a DAOS backend for dcp. Details and usage examples are provided in [DAOS Support](DAOS-Support.md). +mpiFileUtils supports a DAOS backend for dcp, dsync, and dcmp. Details and usage ex...
Don't poll ZCL attributes for which reports are received in a timely manner
@@ -164,7 +164,22 @@ void PollManager::pollTimerFired() item = r->item(RStateOn); bool isOn = item ? item->toBool() : false; - const char *suffix = pitem.items.front(); + const char *&suffix = pitem.items[0]; + + for (size_t i = 0; pitem.items[0] == 0 && i < pitem.items.size(); i++) + { + if (pitem.items[i] != 0) + { +...
Fix quat:mul accidentally working on vec2/vec4;
@@ -1275,7 +1275,7 @@ static int l_lovrQuatMul(lua_State* L) { quat q = luax_checkvector(L, 1, V_QUAT, NULL); VectorType type; float* r = luax_tovector(L, 2, &type); - if (!r || type == V_MAT4) return luaL_typerror(L, 2, "quat or vec3"); + if (!r || (type != V_VEC3 && type != V_QUAT)) return luaL_typerror(L, 2, "quat o...