message
stringlengths
6
474
diff
stringlengths
8
5.22k
Enable light bindings for additional manufacturers
@@ -1701,6 +1701,18 @@ void DeRestPluginPrivate::checkLightBindingsForAttributeReporting(LightNode *lig else if (lightNode->manufacturerCode() == VENDOR_NETVOX) // Netvox smart plug { } + else if (lightNode->manufacturer() == QLatin1String("Immax")) + { + } + else if (lightNode->manufacturer() == QLatin1String("sengled...
picotls-cli exists by `close $child_in`, which makes waitpid to fail
@@ -65,7 +65,6 @@ subtest "http/2" => sub { "\x00\x00\x00\x04\x00\x00\x00\x00\x00", # SETTINGS "\x00\x00@{[chr length $hpack]}\x01\x05\x00\x00\x00\x01$hpack", # HEADERS ); - close $child_in; while (waitpid($pid, 0) != $pid) {}
Add atomic flag for 16-bit ticks PIC24 This change allows the PIC24 family of 16 bit processors to read the tick count without a critical section when the tick count is 16 bits. Inspired from discussion
@@ -59,6 +59,9 @@ typedef unsigned short UBaseType_t; #if( configUSE_16_BIT_TICKS == 1 ) typedef uint16_t TickType_t; #define portMAX_DELAY ( TickType_t ) 0xffff +/* 16-bit tick type on a 16-bit architecture, so reads of the tick count do + * not need to be guarded with a critical section. */ + #define portTICK_TYPE_IS...
Fix no-ec, no-tls1_3 and no-tls
@@ -1197,6 +1197,7 @@ static int test_session_with_both_cache(void) #endif } +#ifndef OPENSSL_NO_TLS1_3 static SSL_SESSION *sesscache[6]; static int do_cache; @@ -1324,6 +1325,7 @@ static int test_tickets(int idx) return testresult; } +#endif #define USE_NULL 0 #define USE_BIO_1 1
fix dos identifier
@@ -138,7 +138,7 @@ class Panda(object): HW_TYPE_BLACK_PANDA = b'\x03' HW_TYPE_PEDAL = b'\x04' HW_TYPE_UNO = b'\x05' - HW_TYPE_DOS = b'\x05' + HW_TYPE_DOS = b'\x06' CLOCK_SOURCE_MODE_DISABLED = 0 CLOCK_SOURCE_MODE_FREE_RUNNING = 1
[Net] Add `RT_USING_NETUTILS` to LwIP 2.0.2 SConscript.
@@ -76,6 +76,10 @@ if GetDepend(['RT_LWIP_PPP']): src += ppp_src path += [GetCurrentDir() + '/src/netif/ppp'] +# For testing apps +if GetDepend(['RT_USING_NETUTILS']): + src += Glob('./apps/*.c') + group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'RT_USING_LWIP202'], CPPPATH = path) Return('group')
SOVERSION bump to version 2.9.1
@@ -67,7 +67,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 9) -set(LIBYANG_MICRO_SOVERSION 0) +set(LIBYANG_MICRO_SOVERSION 1) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
When a USB error occurs, chip-id does not appear to be initialized.
@@ -1305,7 +1305,7 @@ int stlink_load_device_params(stlink_t *sl) { DLOG("Loading device parameters....\n"); const struct stlink_chipid_params *params = NULL; stlink_core_id(sl); - uint32_t chip_id; + uint32_t chip_id = 0; uint32_t flash_size; stlink_chip_id(sl, &chip_id);
Add missing conn_on_crypto_timeout call and error handling
@@ -9112,9 +9112,16 @@ int ngtcp2_conn_on_loss_detection_timer(ngtcp2_conn *conn, ngtcp2_tstamp ts) { if (!conn->server && !(conn->flags & NGTCP2_CONN_FLAG_HANDSHAKE_COMPLETED)) { if (hs_pktns->crypto.tx.ckm) { + rv = conn_on_crypto_timeout(conn, hs_pktns); + if (rv != 0) { + return rv; + } hs_pktns->rtb.probe_pkt_left...
include/btle_hci2.h: Format with clang-format BRANCH=none TEST=none
@@ -14,11 +14,11 @@ struct hciCmdHdr { uint16_t opcode; uint8_t paramLen; } __packed; -#define CMD_MAKE_OPCODE(ogf, ocf) ((((uint16_t)((ogf) & 0x3f)) << 10) | ((ocf) & 0x03ff)) +#define CMD_MAKE_OPCODE(ogf, ocf) \ + ((((uint16_t)((ogf)&0x3f)) << 10) | ((ocf)&0x03ff)) #define CMD_GET_OGF(opcode) (((opcode) >> 10) & 0x3f...
BugID:19675668: Fix check_python_syntax_flake8.py
@@ -4,13 +4,13 @@ from util import info, warn name = "flake8" short_help = "Check python syntax with flake8" -requires = ["flake9"] +requires = ["flake8"] help = """ -Usage: aos check <ID> [python files ...] +Usage: aos check %s [python files ...] Check python syntax with Flake8. -""" +""" % name ## Flake8 check config...
add build-all flag and BUILD_ALL_APPS ci environment variable
import argparse +import errno import json import os import re @@ -20,7 +21,12 @@ SPECIAL_REFS = [ ] -def _judge_build_all(): +def _judge_build_all(args_build_all): + if args_build_all: + return True + if os.getenv('BUILD_ALL_APPS'): + return True + ref = os.getenv('CI_COMMIT_REF_NAME') pipeline_src = os.getenv('CI_PIPE...
do not clone aomp repo with repo command
<project remote="roctools" path="llvm-project" name="llvm-project" revision="aomp-dev" /> <project remote="roctools" path="flang" name="flang" revision="aomp-dev" /> <project remote="roctools" path="aomp-extras" name="aomp-extras" revision="aomp-dev" /> -<project remote="roctools" path="aomp" name="aomp" revision="aomp...
.github/workflows: fix shelter test error
@@ -43,8 +43,8 @@ jobs: - name: Build and run shelter run: | docker exec $rune_test bash -c "cd /root/inclavare-containers-test/shelter; - make -j1" - docker exec $rune_test bash -c "./shelter remoteattestation" + make -j1; + ./shelter remoteattestation" - name: Kill the container run: docker stop $rune_test
hv: Add a helper to account bitmap weight Sometimes we need know the number of 1 in one bitmap. This patch provide a inline function bitmap_weight for it. Acked-by: Eddie Dong
@@ -291,4 +291,9 @@ build_bitmap_testandclear(bitmap_test_and_clear_lock, "q", uint64_t, BUS_LOCK) build_bitmap_testandclear(bitmap32_test_and_clear_nolock, "l", uint32_t, "") build_bitmap_testandclear(bitmap32_test_and_clear_lock, "l", uint32_t, BUS_LOCK) +static inline uint16_t bitmap_weight(uint64_t bits) +{ + retur...
skb: setting coreoffset to 0 for ioat driver
@@ -162,8 +162,8 @@ pci_driver{ supported_cards: [ pci_card{ vendor: 16'8086, device: 16'0e20, function: _, subvendor: _, subdevice: _ }, pci_card{ vendor: 16'8086, device: 16'2f20, function: _, subvendor: _, subdevice: _ } ], - core_hint: 4, - core_offset: 20, + core_hint: 0, + core_offset: 0, multi_instance: 1, inter...
Fix codepoint label in blit2x.
@@ -767,7 +767,7 @@ void getPattern(const TCOD_color_t desired[4], TCOD_color_t palette[2], */ static int flagToAscii[8] = { 0, - 0x259D, // Quadrant lower right. + 0x259D, // Quadrant upper right. 0x2597, // Quadrant lower left. -0x259A, // Quadrant upper left and lower right. 0x2596, // Quadrant lower right.
Fix udp-client example, now using NETSTACK_ROUTING
@@ -45,6 +45,7 @@ PROCESS_THREAD(udp_client_process, ev, data) { static struct etimer periodic_timer; static unsigned count; + uip_ipaddr_t dest_ipaddr; PROCESS_BEGIN(); @@ -56,13 +57,10 @@ PROCESS_THREAD(udp_client_process, ev, data) while(1) { PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&periodic_timer)); - if(rpl_is_rea...
Shell: skip empty lines
@@ -98,6 +98,8 @@ PT_THREAD(shell_input(struct pt *pt, shell_output_func output, const char *cmd)) cmd++; } + /* Skip empty lines */ + if(*cmd != '\0') { /* Look for arguments */ args = strchr(cmd, ' '); if(args != NULL) { @@ -112,6 +114,7 @@ PT_THREAD(shell_input(struct pt *pt, shell_output_func output, const char *cm...
Remove obsolete comments re s/gAMA/hAMA/ PNG chunk The one-byte patch was added in commit but no longer applied as of commit
@@ -564,10 +564,6 @@ test_mimic_png_decode_bad_crc32_checksum_critical() { const char* // bench_wuffs_png_decode_image_19k_8bpp() { CHECK_FOCUS(__func__); - // libpng automatically applies the "gAMA" chunk (with no matching "sRGB" - // chunk) but Wuffs does not. To make the comparison more like-for-like, - // especiall...
fix: endpoint of pin_message() and unpin_message()
@@ -63,7 +63,7 @@ pin_message(client *client, const uint64_t channel_id, const uint64_t message_id NULL, NULL, HTTP_PUT, - "channels/%llu/pins/%llu", channel_id, message_id); + "/channels/%llu/pins/%llu", channel_id, message_id); } void @@ -83,7 +83,7 @@ unpin_message(client *client, const uint64_t channel_id, const ui...
lexer: Use a more straightforward check here.
@@ -167,8 +167,7 @@ lily_lex_state *lily_new_lex_state(lily_raiser *raiser) lex->label = lily_malloc(lex->label_size * sizeof(*lex->label)); lex->ch_class = ch_class; lex->token = tk_eof; - /* This must start at 0 since the line reader will bump it by one. This also - lets loading know the first entry is unused. */ + /...
memif: fix zero-copy arg overwrite Type: fix
@@ -149,9 +149,6 @@ vl_api_memif_create_t_handler (vl_api_memif_create_t * mp) args.is_zero_copy = mp->no_zero_copy ? 0 : 1; - /* enable zero-copy */ - args.is_zero_copy = 1; - /* rx/tx queues */ if (args.is_master == 0) {
cowbench: use new pmap vnode mgmt data layout
@@ -128,7 +128,7 @@ static errval_t alloc_vnode_noalloc(struct pmap_x86 *pmap, struct vnode *root, { errval_t err; - struct vnode *newvnode = slab_alloc(&pmap->p.m->slab); + struct vnode *newvnode = slab_alloc(&pmap->p.m.slab); if (newvnode == NULL) { return LIB_ERR_SLAB_ALLOC_FAIL; }
Fix misuse of CELIX_DO_IF.
@@ -151,13 +151,13 @@ celix_status_t celixThreadCondition_init(celix_thread_cond_t *condition, celix_t celix_status_t status = CELIX_SUCCESS; if(attr) { status = pthread_condattr_setclock(attr, CLOCK_MONOTONIC); - CELIX_DO_IF(status, pthread_cond_init(condition, attr)); + status = CELIX_DO_IF(status, pthread_cond_init(...
Update behavior of 'Q'
@@ -780,8 +780,8 @@ BEGIN_DUAL_PHASE_0(query) PORT(0, -1, IN | HASTE); // len I32 in_x = data[0] + 1; I32 in_y = data[1]; - I32 len = data[2]; - I32 out_x = -len + 1; + I32 len = data[2] + 1; + I32 out_x = 1 - len; // todo direct buffer manip for (I32 i = 0; i < len; ++i) { PORT(in_y, in_x + i, IN); @@ -798,8 +798,8 @@...
channel.js: fire delete event on beforeUnload
@@ -66,7 +66,7 @@ class Channel { } deleteOnUnload() { - window.addEventListener("unload", (event) => { + window.addEventListener("beforeunload", (event) => { this.delete(); }); }
[util] do not drop error in setenv
@@ -48,9 +48,18 @@ TString GetEnv(const TString& key, const TString& def) { } void SetEnv(const TString& key, const TString& value) { + bool isOk = false; + int errorCode = 0; #ifdef _win_ - SetEnvironmentVariable(~key, ~value); + isOk = SetEnvironmentVariable(~key, ~value); + if (!isOk) { + errorCode = GetLastError();...
Reduce Max Pacing Window
@@ -191,8 +191,8 @@ QuicCongestionControlGetSendAllowance( if (SendAllowance > (Cc->CongestionWindow - Cc->BytesInFlight)) { SendAllowance = Cc->CongestionWindow - Cc->BytesInFlight; } - if (SendAllowance > (Cc->CongestionWindow >> 1)) { - SendAllowance = Cc->CongestionWindow >> 1; // Don't send more than half the curr...
Check PTM215ZE Ilumra via sourceID prefix Fix Hue Tap detection on commissioning. Related PR
@@ -1526,7 +1526,7 @@ void DeRestPluginPrivate::gpDataIndication(const deCONZ::GpDataIndication &ind) Sensor sensorNode; sensorNode.setType("ZGPSwitch"); - if (gpdDeviceId == deCONZ::GpDeviceIdOnOffSwitch && options.byte == 0x81 && ind.payload().size() == 27) + if (gpdDeviceId == deCONZ::GpDeviceIdOnOffSwitch && option...
Add -DOFFLOAD_ARCH in build_qmcpack.sh to correct failing tests. QMCPack defaults to gfx906 configuration if OFFLOAD_ARCH is not specified.
@@ -116,6 +116,7 @@ $AOMP_CMAKE -DCMAKE_C_COMPILER=$OPENMPI_INSTALL/bin/mpicc \ -DCMAKE_CXX_COMPILER=$OPENMPI_INSTALL/bin/mpicxx \ -DOMPI_CC=$AOMP/bin/clang -DOMPI_CXX=$AOMP/bin/clang++ \ -DQMC_MPI=1 \ +-DOFFLOAD_ARCH=$AOMP_GPU \ -DCMAKE_C_FLAGS="-march=native" \ -DCMAKE_CXX_FLAGS="-march=native -Xopenmp-target=amdgcn-...
schema compile BUGFIX fix owerflow uint32_t when LY_TYPE_BITS compiling
@@ -1155,7 +1155,7 @@ lys_compile_type_enums(struct lysc_ctx *ctx, struct lysp_type_enum *enums_p, LY_ LY_ERR ret = LY_SUCCESS; LY_ARRAY_COUNT_TYPE u, v, match = 0; int32_t highest_value = INT32_MIN, cur_val; - uint32_t position = 0, cur_pos = 0; + uint32_t highest_position = 0, cur_pos; struct lysc_type_bitenum_item *...
ikev2: fix incorrect reply messages Type: fix
@@ -111,7 +111,7 @@ static void static void vl_api_ikev2_profile_set_id_t_handler (vl_api_ikev2_profile_set_id_t * mp) { - vl_api_ikev2_profile_add_del_reply_t *rmp; + vl_api_ikev2_profile_set_id_reply_t *rmp; int rv = 0; #if WITH_LIBSSL > 0 @@ -162,7 +162,7 @@ vl_api_ikev2_profile_set_ts_t_handler (vl_api_ikev2_profil...
arch/esp32/gpio: disable previous GPIO direction before changing before changing gpio direction, previous flag should be disabled. if INPUT & OUTPUT are set together, it occurs bugs.
@@ -144,8 +144,10 @@ static int esp32_gpio_setdir(FAR struct gpio_lowerhalf_s *lower, unsigned long a priv->pincfg &= ~FUNCTION_MASK; if (arg == GPIO_DIRECTION_OUT) { + priv->pincfg &= ~INPUT; priv->pincfg |= OUTPUT; } else { + priv->pincfg &= ~OUTPUT; priv->pincfg |= INPUT; }
Add an option in the SPOD configuration to enable memory optimization for spod controller
@@ -258,6 +258,11 @@ type SPODSpec struct { // EnableProfiling tells the operator whether or not to enable profiling // support for this SPOD instance. EnableProfiling bool `json:"enableProfiling,omitempty"` + // EnableMemoryOptimization enables memory optimization in the controller + // running inside of SPOD instance...
Don't send ZCL Default Response to answer one
@@ -71,6 +71,11 @@ static bool ZCL_SendDefaultResponse(deCONZ::ApsController *apsCtrl, const deCONZ //! Returns true if \p zclFrame requires a ZCL Default Response. static bool ZCL_NeedDefaultResponse(const deCONZ::ApsDataIndication &ind, const deCONZ::ZclFrame &zclFrame) { + if (zclFrame.isDefaultResponse()) + { + ret...
codegen: fix bug in header template
@@ -56,7 +56,10 @@ extern "C" { int /*%& init_function_name %*/ (Elektra ** elektra, ElektraError ** error); void /*%& help_function_name %*/ (Elektra * elektra, const char * usage, const char * prefix); + +/*%# embed_spec? %*/ void /*%& specload_function_name %*/ (int argc, const char ** argv); +/*%/ embed_spec? %*/ /...
Add utilities tests to visualstudio unit tests list.
@@ -42,6 +42,26 @@ namespace UnitTest1 Assert::AreEqual(ret, 0); } + TEST_METHOD(connection_id_print) + { + int ret = util_connection_id_print_test(); + + Assert::AreEqual(ret, 0); + } + + TEST_METHOD(connection_id_parse) + { + int ret = util_connection_id_parse_test(); + + Assert::AreEqual(ret, 0); + } + + TEST_METHOD...
Get installed homebridge-hue version faster
@@ -105,6 +105,7 @@ function installHomebridge { node_installed=false npm_installed=false node_ver="" + hb_hue_version="" which homebridge &> /dev/null if [ $? -eq 0 ]; then @@ -115,6 +116,14 @@ function installHomebridge { if [ -d "$i/homebridge-hue" ]; then # homebridge-hue installation found hb_hue_installed=true + ...
Makefile is not available until after configure The `make` command fails when run *before* configure, this is confusing users which are not familiar with `automake`. ```bash make distclean make: *** No rule to make target `distclean'. Stop. make make: *** No targets specified and no makefile found. Stop. ```
@@ -116,9 +116,9 @@ Then to install the C library: ``` git clone https://github.com/openvenues/libpostal cd libpostal -make distclean ./bootstrap.sh ./configure --datadir=[...some dir with a few GB of space...] +make distclean make -j4 sudo make install
doc: fixup jenkins -> Jenkins
@@ -167,7 +167,7 @@ If you feel like your inquiry does not warrent a issue on its own, please use [our buildserver issue](https://issues.libelektra.org/160). ## Jenkins -This section describes how to replicate the current jenkins configuration. +This section describes how to replicate the current Jenkins configuration....
Typo in rust port readme example.
@@ -39,7 +39,7 @@ fn main() { let scripts = ["sum.ts".to_string()]; - if let Err(e) = crate::load_from_file("ts", &scripts) { + if let Err(e) = metacall::load_from_file("ts", &scripts) { println!("{}", e); panic!(); }
VirtualScroller: aggressively cleanup refs Prevents a memory leak, as it appears React holds onto the class instance after unmounting
@@ -222,9 +222,8 @@ export default class VirtualScroller<T> extends Component<VirtualScrollerProps<T if(this.cleanupRefInterval) { clearInterval(this.cleanupRefInterval); } - if(this.initScroll) { - clearTimeout(this.initScroll); - } + this.cleanupRefs(); + this.childRefs.clear(); } startOffset() {
Deallocate previously loaded SSL CONF module data If application explicitly calls CONF_modules_load_file() the SSL conf module will be initialized twice and the module data would leak. We need to free it before initializing it again. Fixes
@@ -76,6 +76,7 @@ static int ssl_module_init(CONF_IMODULE *md, const CONF *cnf) goto err; } cnt = sk_CONF_VALUE_num(cmd_lists); + ssl_module_free(md); ssl_names = OPENSSL_zalloc(sizeof(*ssl_names) * cnt); ssl_names_count = cnt; for (i = 0; i < ssl_names_count; i++) {
removed debug code - improved detection of damaged ESSIDs
@@ -1553,7 +1553,7 @@ if((apstaessidlistecleaned != NULL) && (hccapxbestoutname != NULL)) { break; } - if((memcmp(zeiger->mac_ap, zeigeressid->mac_ap, 6) == 0)) + if((memcmp(zeiger->mac_ap, zeigeressid->mac_ap, 6) == 0) && ((memcmp(zeiger->mac_sta, zeigeressid->mac_sta, 6) == 0) || (memcmp(&mac_broadcast, zeigeressid->...
Do not prepend /proc multiple times in bcc_resolve_symname
@@ -730,7 +730,7 @@ int bcc_resolve_symname(const char *module, const char *symname, } if (sym->module == NULL) return -1; - if (pid != 0 && pid != -1) { + if (pid != 0 && pid != -1 && strstr(sym->module, "/proc") != sym->module){ char *temp = (char*)sym->module; sym->module = strdup(tfm::format("/proc/%d/root%s", pid,...
fix shadow variable + update comments + free in realloc
#include <unistd.h> #include "picoquic_internal.h" +/* This implementation is mostly a translation from C++ to C of the + * implementation proposed by Ben Kenwright in "Fast Efficient + * Fixed-Size Memory Pool: No Loops and No Overhead", presented at + * COMPUTATION TOOLS 2012. + */ + #define MAGIC_NUMBER 0xa110ca7ab1...
launch: get tutorial state from zustand The check for rendering the tutorial modal was relying on a passed prop that does not exist now.
@@ -49,7 +49,18 @@ export default function LaunchApp(props) { const baseHash = useLaunchState(state => state.baseHash); const [hashText, setHashText] = useState(baseHash); const [exitingTut, setExitingTut] = useState(false); + const seen = useSettingsState(s => s?.tutorial?.seen) ?? true; const associations = useMetada...
vec: project vec3 a onto vec3 b and store
@@ -473,4 +473,19 @@ glm_vec_rotate_m4(mat4 m, vec3 v, vec3 dest) { glm_vec_dup(res, dest); } +/*! + * @brief project a vector onto b vector + * + * @param[in] a + * @param[in] b + * @param[out] dest projected vector + */ +CGLM_INLINE +void +glm_vec_proj(vec3 a, vec3 b, vec3 dest) { + glm_vec_scale(b, + glm_vec_dot(a, ...
fix config path issue in windows
@@ -277,7 +277,9 @@ endif endif endif endif +ifndef ANY_MSYS DEFINE_CONFIG_PATH := -DCONFIG_PATH=\"$(CONFIG_AFTER_INST_PATH)\" +endif # Define sources SRC_SOURCES := $(sort $(shell find $(SRCDIR) -name "*.c" -or -name "*.cc"))
linux-raspberrypi: Uprev to v5.4.83
-LINUX_VERSION ?= "5.4.79" +LINUX_VERSION ?= "5.4.83" LINUX_RPI_BRANCH ?= "rpi-5.4.y" -SRCREV_machine = "9797f1a4938c20139b00a25de93cc99efb5c291b" +SRCREV_machine = "08ae2dd9e7dc89c20bff823a3ef045de09bfd090" SRCREV_meta = "5d52d9eea95fa09d404053360c2351b2b91b323b" KMETA = "kernel-meta"
Update: english_parser.py: Capture the case where the subject is doing an activity about itself rather than affecting an object, like in >sebastian is jogging in the park< where the predicate becomes a property of performing an activity
@@ -143,9 +143,14 @@ while True: predicate = lastpredicate lastsubject = subject_modifiers.replace("_subject_", subject) lastpredicate = predicate_modifiers.replace("_predicate_", predicate) + if subject != "" and predicate !="" and object == "": + object = subject if subject != "" and predicate != "" and object != "":...
adding note about fix for
@@ -108,6 +108,7 @@ enhancements and bug-fixes that were added to this release.</p> <ul> <li>Host profiles were removed for the Lawrence Livermore National Laboratories' Rzmerl and Rzzeus systems, which were retired.</li> <li>Host profiles for running client/server to machines at TACC were removed. Users should use VNC...
Rename check_shortcut_model to get_active_binding
@@ -49,7 +49,7 @@ static void update_shortcut_model(struct sway_shortcut_state *state, * Returns a binding which matches the shortcut model state (ignoring the * `release` flag). */ -static struct sway_binding *check_shortcut_model( +static struct sway_binding *get_active_binding( struct sway_shortcut_state *state, lis...
HLS: Fixing typo mem and not mems
@@ -398,7 +398,7 @@ void action_wrapper(snap_membus_t *din_gmem, { // Host Memory AXI Interface #pragma HLS INTERFACE m_axi depth=256 port=din_gmem bundle=host_mem -#pragma HLS INTERFACE m_axi depth=256 port=dout_gmem bundle=host_mems +#pragma HLS INTERFACE m_axi depth=256 port=dout_gmem bundle=host_mem #pragma HLS INT...
moved RAM initialization to sys.c unit
@@ -48,7 +48,9 @@ _Entry_Point: move #0x2700,%sr tst.l 0xa10008 bne.s SkipJoyDetect + tst.w 0xa1000c + SkipJoyDetect: bne.s SkipSetup @@ -59,6 +61,7 @@ SkipJoyDetect: move.b -0x10ff(%a1),%d0 andi.b #0x0f,%d0 beq.s WrongVersion + * Sega Security Code (SEGA) move.l #0x53454741,0x2f00(%a1) WrongVersion: @@ -68,28 +71,18 @...
transport: fix transport ssl blocking In SSL mode, if `esp_transport_poll_read` function is used, the cache data in mebdtls will be blocked
@@ -87,6 +87,7 @@ static int ssl_poll_read(esp_transport_handle_t t, int timeout_ms) { transport_ssl_t *ssl = esp_transport_get_context_data(t); int ret = -1; + int remain = 0; struct timeval timeout; fd_set readset; fd_set errset; @@ -95,6 +96,10 @@ static int ssl_poll_read(esp_transport_handle_t t, int timeout_ms) FD...
Fix underscores not printing; Signed arithmetic strikes again. Before the padding was configurable, padding was just a #define'd constant, so signedness didn't matter.
@@ -166,8 +166,9 @@ void lovrFontRender(Font* font, const char* str, size_t length, float wrap, Hori // Triangles if (glyph->w > 0 && glyph->h > 0) { - float x1 = cx + glyph->dx - font->padding; - float y1 = cy + (glyph->dy + font->padding) * (flip ? -1.f : 1.f); + int32_t padding = font->padding; + float x1 = cx + gly...
Clear GPU memory pointer later;
@@ -2580,6 +2580,8 @@ static gpu_memory* gpu_allocate(gpu_memory_type type, VkMemoryRequirements info, memory->handle = NULL; return NULL; } + } else { + memory->pointer = NULL; } allocator->block = memory; @@ -2597,7 +2599,6 @@ static gpu_memory* gpu_allocate(gpu_memory_type type, VkMemoryRequirements info, static voi...
hook up c++ thread safety test (main Makefile)
@@ -34,7 +34,7 @@ endif LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast,$(LAPACK_FFLAGS)) -SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench +SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test .PHONY : all libs netlib $(RELA) test ctest shared i...
Support uninstalling modules after the sandbox path changed
@@ -30,6 +30,8 @@ import operator import traceback import codecs +from ntpath import basename + import six from distutils.util import convert_path from fnmatch import fnmatchcase @@ -897,6 +899,10 @@ class PackageRepository(object): if files_installed: for f in files_installed: + + if not os.path.isfile(f) and not os.p...
adc: use common init
@@ -147,8 +147,8 @@ static void adc_init_dev(adc_devs_t index) { if (!__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(dev->common)) { LL_ADC_CommonInitTypeDef adc_common_init; + LL_ADC_CommonStructInit(&adc_common_init); adc_common_init.CommonClock = LL_ADC_CLOCK_SYNC_PCLK_DIV4; - adc_common_init.Multimode = LL_ADC_MULTI_INDEP...
Coverity CID Control flow issues
@@ -42,8 +42,7 @@ int info_main(int argc, char **argv) prog = opt_init(argc, argv, info_options); while ((o = opt_next()) != OPT_EOF) { switch (o) { - case OPT_EOF: - case OPT_ERR: + default: opthelp: BIO_printf(bio_err, "%s: Use -help for summary.\n", prog); goto end;
admin/meta-packages: restore mfem and superlu_dist for mpich|openmpi4 parallel-libs
@@ -232,14 +232,14 @@ Summary: OpenHPC parallel libraries for GNU and MPICH Requires: boost-%{compiler_family}-mpich%{PROJ_DELIM} Requires: fftw-%{compiler_family}-mpich%{PROJ_DELIM} Requires: hypre-%{compiler_family}-mpich%{PROJ_DELIM} -## TODO Requires: mfem-%{compiler_family}-mpich%{PROJ_DELIM} +Requires: mfem-%{com...
SOVERSION bump to version 4.1.17
@@ -38,7 +38,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 4) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 16) +set(SYSREPO_MICRO_S...
Fix web interface link handling for status page.
@@ -437,17 +437,18 @@ serverProcessHTTP( case HTTP_STATE_HEAD : if (!strncmp(client->uri, "/ipp/print/", 11)) { - if ((uriptr = strchr(client->uri + 11, '/')) == NULL) - uriptr = client->uri + 10; - + if ((uriptr = strchr(client->uri + 11, '/')) != NULL) *uriptr++ = '\0'; + else + uriptr = client->uri + strlen(client->...
Update: use quiet NLTK download in evaluation
@@ -145,7 +145,7 @@ QuestionsTotalGlobalTemp = QuestionsTotalGlobal #Evaluate tests & performance English examples: for filename in glob.glob('./examples/english/*.english'): - Test(filename, subprocess.getoutput("python3 english_to_narsese.py < " + filename + " | ./NAR shell")) + Test(filename, subprocess.getoutput("p...
Test: Add variable to tune number of values
@@ -19,12 +19,13 @@ int opt_write = 0; /* If 1 write handle to file */ static int encode_values(grib_handle* h, char *output_file) { double *values; - size_t size = 1000 * 1000; + const size_t DIM = 1000; + size_t size = DIM * DIM; size_t i = 0; values = (double*)malloc(size*sizeof(double)); for (i=0; i<size; ++i) { do...
framework/arastorage: fix tuple file overwrite issue 1. apply missing code of closing fd after open it.
@@ -232,8 +232,10 @@ db_result_t storage_put_relation(relation_t *rel) if (rel->tuple_filename[0] == '\0') { snprintf(tuple_path, TUPLE_NAME_LENGTH, "%s.%x\0", TUPLE_FILE_NAME, (unsigned)(random_rand() & 0xffff)); - while (storage_open(tuple_path, O_RDWR) > 0) { + int nfd; + while ((nfd = storage_open(tuple_path, O_RDW...
add pdgssvx back
mc64ad_dist.c static_schedule.c xerr_dist.c -@@ -47,7 +46,6 @@ - dmyblas2_dist.c - dsp_blas2_dist.c - dsp_blas3_dist.c -- pdgssvx.c - pdgssvx_ABglobal.c - dreadhb.c - dreadrb.c -@@ -88,7 +86,6 @@ - zmyblas2_dist.c - zsp_blas2_dist.c - zsp_blas3_dist.c -- pzgssvx.c - pzgssvx_ABglobal.c - zreadhb.c - zreadrb.c --- SuperL...
Remove lineout from the skip list.
{"category":"hybrid","file":"cinema-c.py"}, {"category":"hybrid","file":"clonecopy.py"}, {"category":"hybrid","file":"ddf_vs_dbinning.py"}, - {"category":"hybrid","file":"lineout.py"}, {"category":"hybrid","file":"merge_tree.py","cases":["rect2d_mtree","rect2d_localt_mt"]}, {"category":"hybrid","file":"movie.py"}, {"ca...
fix HFP client parse CLCC command response bug
@@ -978,20 +978,25 @@ static char *bta_hf_client_parse_clcc(char *buffer) return NULL; } + /* Abort in case offset not set because of format error */ + if (offset == 0) { + APPL_TRACE_ERROR("%s: Format Error %s", __func__, buffer); + return NULL; + } + buffer += offset; + offset = 0; /* check optional part */ if (*buff...
Remove hippopotamus.interlaced.png "wuffs test" Coverage now comes from build-all.sh's nia-checksums-of-data.txt test.
@@ -182,29 +182,13 @@ const char* // test_wuffs_png_decode_interface() { CHECK_FOCUS(__func__); wuffs_png__decoder dec; - - { CHECK_STATUS("initialize", wuffs_png__decoder__initialize( &dec, sizeof dec, WUFFS_VERSION, WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED)); - CHECK_STRING(do_test__wuffs_base__image_de...
sysdeps/managarm: allow empty modifiers in DRM_MODE_ADDFB2
@@ -2487,8 +2487,8 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { << frg::hex_fmt(param->pixel_format) << frg::endlog; __ensure(param->pixel_format == DRM_FORMAT_XRGB8888 || param->pixel_format == DRM_FORMAT_ARGB8888); - __ensure(!param->flags); - __ensure(!param->modifier[0]); + __ensure(!pa...
odissey: turn off auto-cancel if route cancel is off
@@ -328,6 +328,15 @@ int od_bereset(od_server_t *server) goto drop; } + /* support route cancel off */ + if (! route->scheme->cancel) { + if (! od_server_is_sync(server)) { + od_debug(&pooler->od->log, server->io, + "S (reset): not synchronized, dropping"); + goto drop; + } + } + /* Server is not synchronized. * * Numb...
Add tls1.3 extension IANA values
#define MBEDTLS_TLS_EXT_TRUNCATED_HMAC 4 #define MBEDTLS_TLS_EXT_SUPPORTED_ELLIPTIC_CURVES 10 +#define MBEDTLS_TLS_EXT_SUPPORTED_GROUPS 10 /* Renamed in TLS 1.3 */ + #define MBEDTLS_TLS_EXT_SUPPORTED_POINT_FORMATS 11 #define MBEDTLS_TLS_EXT_SIG_ALG 13 #define MBEDTLS_TLS_EXT_SESSION_TICKET 35 +/* TLS 1.3 */ +#define MB...
Check log->fd == -1 in top level function
@@ -394,10 +394,6 @@ static void log_fr_pong(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, static void log_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_frame *fr, const char *dir) { - if (log->fd == -1) { - return; - } - switch (fr->type) { case NGTCP2_FRAME_STREAM: log_fr_stream(log, hd, &fr->stream, dir); @@...
Fix of prefix bio filter (bf_prefix.c): rely on the given length The assumption that the received buffer has to be NUL-terminated was faulty. Fault found in
@@ -96,7 +96,7 @@ static int prefix_write(BIO *b, const char *out, size_t outl, *numwritten = 0; - while (*out != '\0') { + while (outl > 0) { size_t i; char c; @@ -111,7 +111,7 @@ static int prefix_write(BIO *b, const char *out, size_t outl, } /* Now, go look for the next LF, or the end of the string */ - for (i = 0; ...
sysdeps/linux: fix sys_pselect prototype
@@ -314,7 +314,7 @@ int sys_connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { } int sys_pselect(int nfds, fd_set *readfds, fd_set *writefds, - fd_set *exceptfds, struct timeval *timeout, const sigset_t sigmask, int *num_events) { + fd_set *exceptfds, const struct timespec *timeout, const sigset_t *s...
extmod/vfs: Raise OSError(ENODEV) if mounting bdev without a filesystem. This commit prevents uos.mount() from raising an AttributeError. vfs_autodetect() is supposed to return an object that has a "mount" method, so if no filesystem is found it should raise an OSError(ENODEV) and not return the bdev itself which has n...
@@ -191,7 +191,8 @@ STATIC mp_obj_t mp_vfs_autodetect(mp_obj_t bdev_obj) { return mp_fat_vfs_type.make_new(&mp_fat_vfs_type, 1, 0, &bdev_obj); #endif - return bdev_obj; + // no filesystem found + mp_raise_OSError(MP_ENODEV); } mp_obj_t mp_vfs_mount(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
Added some sort of scaling to trees.
@@ -176,7 +176,11 @@ void render(uint32_t time_ms) { Rect sr(120, 112, 8, 16); - screen.blit(sprites, sr, o.vs - Point(4, 15)); + float scale = 200.0f / o.dist; + + Rect dr(o.vs - Point(4, 15) * scale, sr.size() * scale); + + screen.stretch_blit(sprites, sr, dr); } }
These two -W options cause my compilation to fail, gcc 5.4.1.
@@ -145,7 +145,7 @@ OBJDUMP_FLAGS += --disassemble-all --source --disassembler-options=force-thumb - CPPFLAGS += -Wdate-time # # warn if __TIME__, __DATE__, or __TIMESTAMP__ used # ^on b/c flashing assumes same code => no flash, these enforce -CPPFLAGS += -Wduplicated-cond # # if (p->q != NULL) { ... } else if (p->q !=...
Update the Ubuntu 20 Docker file for building Qt.
@@ -23,6 +23,7 @@ RUN apt-get update && apt-get install -y \ libx11-xcb-dev \ libxcb-dri2-0-dev \ libxcb-xfixes0-dev \ + libxkbcommon-dev \ xutils-dev \ xorg-dev \ libfreetype6-dev \
User bool type instead of int for boolean variables.
@@ -656,10 +656,10 @@ static int _yr_re_emit( size_t inst_size; size_t jmp_size; - int emit_split; - int emit_repeat; - int emit_prolog; - int emit_epilog; + bool emit_split; + bool emit_repeat; + bool emit_prolog; + bool emit_epilog; RE_REPEAT_ARGS repeat_args; RE_REPEAT_ARGS* repeat_start_args_addr;
parallel-libs/boost: update version to v1.71.0
Summary: Boost free peer-reviewed portable C++ source libraries Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} -Version: 1.70.0 +Version: 1.71.0 -%define version_exp 1_70_0 +%define version_exp 1_71_0 Release: 1%{?dist} License: BSL-1.0
trying to convince coveralls
@@ -7,6 +7,7 @@ from ccl_test_growth import * from ccl_test_core import * from ccl_test_power import * from ccl_test_cclerror import * +from ccl_test_pk2d import * # Overall interface functionality tests from ccl_test_pyccl_interface import *
Fix possible compile error
@@ -5123,7 +5123,7 @@ void test_ngtcp2_conn_recv_new_connection_id(void) { frs[i].new_connection_id.seq = i + 8; frs[i].new_connection_id.retire_prior_to = 8; ngtcp2_cid_init(&frs[i].new_connection_id.cid, cid, sizeof(cid)); - frs[i].new_connection_id.cid.data[0] = (uint8_t)i + 8; + frs[i].new_connection_id.cid.data[0]...
util/find-doc-nits: ignore macros ending in _fnsig These are helper macros alongside the IMPLEMENT_ and DECLARE_ macros.
@@ -647,11 +647,12 @@ sub checkmacros { next unless /^#\s*define\s*(\S+)\(/; my $macro = $1; next if $docced{$macro} || defined $seen{$macro}; - next if $macro =~ /i2d_/ - || $macro =~ /d2i_/ - || $macro =~ /DEPRECATEDIN/ - || $macro =~ /IMPLEMENT_/ - || $macro =~ /DECLARE_/; + next if $macro =~ /^i2d_/ + || $macro =~ ...
fix(chart) fixed cursor positioning with large Y rescaling without LV_USE_LARGE_COORD
@@ -303,9 +303,10 @@ void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint1 p_out->x += lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; p_out->x -= lv_obj_get_scroll_left(obj); - p_out->y = (int32_t)((int32_t)ser->y_points[id] - chart->ymin[ser->y_axis_sec]) * h; - p_out->y = p_ou...
cleans up +till:asn1 (length-prefixed byte parser)
=/ faz (end 0 7 fuz) ?: =(0 (cut 0 [7 1] fuz)) [0 faz] - =/ fiz (rep 3 (scag faz t.q.tub)) - ?. =(faz (met 3 fiz)) !! :: XX - [faz fiz] - =/ zuf (scag len (slag nex t.q.tub)) + [faz (rep 3 (scag faz t.q.tub))] + ?: ?& !=(0 nex) + !=(nex (met 3 len)) + == + (fail tub) + =/ zuf (swag [nex len] t.q.tub) ?. =(len (lent zuf...
time_utils: added extra argument to flb_sched_timer_cb_create call
@@ -61,7 +61,7 @@ static FLB_INLINE void flb_time_sleep(int ms) assert(sched != NULL); ret = flb_sched_timer_cb_create(sched, FLB_SCHED_TIMER_CB_ONESHOT, - ms, flb_time_thread_wakeup, coro); + ms, flb_time_thread_wakeup, coro, NULL); if (ret == -1) { return; }
Move the Dictu executable to the project root
set(DICTU_CLI_SRC main.c linenoise.c linenoise.h) set(DISABLE_LINENOISE OFF CACHE BOOL "Determines if the REPL uses linenoise. Linenoise requires termios.") +SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}) if(DISABLE_LINENOISE) add_compile_definitions(DISABLE_LINENOISE) endif() -add_executable(Dictu ${DICTU_CLI...
Fix gp_resource_group_queuing_timeout bug WaitLatch() asserts timeout >= 0 when flag WL_TIMEOUT is set.
@@ -2791,25 +2791,29 @@ waitOnGroup(ResGroupData *group) { for (;;) { + ResetLatch(&proc->procLatch); + + CHECK_FOR_INTERRUPTS(); + + if (!procIsWaiting(proc)) + break; + if (gp_resource_group_queuing_timeout > 0) { curTime = GetCurrentIntegerTimestamp(); - if (curTime - groupWaitStart >= gp_resource_group_queuing_time...
drv_fmc1: clear flags before erasing
#include "drv_fmc.h" #include "project.h" +#include "usb_configurator.h" #ifdef F0 // address 32768 - 1024 = 31k - last flash block @@ -58,7 +59,11 @@ void fmc_lock() { } int fmc_erase(void) { + #ifdef F405 + FLASH_ClearFlag(FLASH_FLAG_PGSERR | FLASH_FLAG_PGPERR | + FLASH_FLAG_PGAERR | FLASH_FLAG_WRPERR | + FLASH_FLAG_...
Mention the GNU parallel dependency in the README As suggested in the PR review.
@@ -33,6 +33,13 @@ sudo apt install libreadline-dev # for Ubuntu & Debian-based distros sudo dnf install readline-devel # for Fedora ``` +Another optional dependency is GNU parallel, which speeds up how long it takes to run the test suite. + +```sh +sudo apt install parallel # for Ubuntu & Debian-based distros +sudo dn...
bloog: add support keyboard backlight BRANCH=octopus TEST=make buildall -j, make sure ec console kbkight can adjust keyboard backlight brightness. Commit-Ready: Marco Chen
#define CONFIG_LID_ANGLE_UPDATE #define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL #define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL - +#define CONFIG_PWM +#define CONFIG_PWM_KBLIGHT #define CONFIG_TEMP_SENSOR #define CONFIG_THERMISTOR #define CONFIG_STEINHART_HART_3V3_13K7_47K_4050B
framework/media: Fix the search logic for the closest sample rate. A default sample rate is now set as the maximum one supported by the device.
@@ -403,7 +403,7 @@ static audio_manager_result_t get_actual_audio_out_card_id() static uint32_t get_closest_samprate(unsigned int origin_samprate, audio_io_direction_t direct) { int i; - uint32_t result; + uint32_t result = 0; uint32_t samprate_types; int count = sizeof(g_audio_samprate_entry) / sizeof(struct audio_sa...
Update README.md Those links were actually correct.
| ------------- | --------------------------------------------------------------------------------------------------- | | main (use 1.14.x) | ![master](https://github.com/pupnp/pupnp/workflows/Build/badge.svg) | | branch-1.14.x | ![1.14.x](https://github.com/pupnp/pupnp/workflows/Build/badge.svg?branch=branch-1.14.x) |...
Fix PhShowError2 flags
@@ -418,7 +418,7 @@ INT PhShowError2( config.hwndParent = hWnd; config.hInstance = PhLibImageBase; - config.dwFlags = TDF_ALLOW_DIALOG_CANCELLATION | TDF_SIZE_TO_CONTENT | (IsWindowVisible(hWnd) ? TDF_POSITION_RELATIVE_TO_WINDOW : 0); + config.dwFlags = TDF_ALLOW_DIALOG_CANCELLATION | (IsWindowVisible(hWnd) ? TDF_POSIT...
docker: Update pcre packagename from debian sid, close
@@ -35,7 +35,7 @@ RUN apt-get update && apt-get -y install \ libglib2.0-dev \ libgpgme-dev \ liblua5.3-dev \ - libpcre++-dev \ + libpcrecpp0v5 \ libpcre3-dev \ libpython3-dev \ libssl-dev \