message
stringlengths
6
474
diff
stringlengths
8
5.22k
[hsa] add hsa-native labels instead of overwriting them
@@ -217,10 +217,34 @@ set_tests_properties(clblast_test_xswap clblast_test_xscal clblast_test_xcopy PROPERTIES LABELS "CLBlast") -# Skipped some of the slowest test cases: -# clblast_test_xtbmv clblast_test_xtpmv clblast_test_xgemm -# clblast_test_xgbmv clblast_test_xhbmv clblast_test_xsbmv -# clblast_test_xtrmv clblast_test_xsymm clblast_test_xhemm -# clblast_test_xtrmm clblast_test_xtrsm clblast_test_xhad -# clblast_test_xgemmbatched clblast_test_xgemmstridedbatched -# clblast_test_override_parameters +set_property(TEST + clblast_test_xswap clblast_test_xscal clblast_test_xcopy + clblast_test_xdot clblast_test_xdotu clblast_test_xdotc + clblast_test_xnrm2 clblast_test_xasum clblast_test_xamax clblast_test_xgemv + clblast_test_xhemv clblast_test_xhpmv + clblast_test_xsymv clblast_test_xspmv + clblast_test_xtrsv clblast_test_xger + clblast_test_xgeru clblast_test_xgerc clblast_test_xher clblast_test_xhpr + clblast_test_xher2 clblast_test_xhpr2 clblast_test_xsyr clblast_test_xspr + clblast_test_xsyr2 clblast_test_xspr2 + clblast_test_xim2col clblast_test_xaxpybatched + clblast_test_retrieve_parameters clblast_test_preprocessor + APPEND PROPERTY LABELS "hsa-native") + +# These produce wrong some results with hsa and native compilation (but not +# with straight pthread, which is a bit weird): +# 131 - clblast_test_xaxpy (Failed) +# 164 - clblast_test_xsyrk (Failed) +# 165 - clblast_test_xherk (Failed) +# 166 - clblast_test_xsyr2k (Failed) +# 167 - clblast_test_xher2k (Failed) +# 171 - clblast_test_xomatcopy (Failed) + +set_property(TEST + clblast_test_xtbmv clblast_test_xtpmv + clblast_test_xgbmv clblast_test_xhbmv clblast_test_xsbmv + clblast_test_xtrmv clblast_test_xsymm clblast_test_xhemm + clblast_test_xtrmm clblast_test_xtrsm + clblast_test_xgemmbatched clblast_test_xgemmstridedbatched + clblast_test_override_parameters + APPEND PROPERTY LABELS "hsa-nat-slow")
publish: update remote metadata group properly and only send invites for unmanaged notebooks
|= who=@p ?. (allowed who %read u.book) [%give %kick [/notebook/[u.book]]~ `who]~ - ?: ?=(%remove -.upd) + ?: ?|(?=(%remove -.upd) (is-managed path.upd)) ~ =/ uid (sham %publish who u.book eny.bol) =/ inv=invite ?: use-preexisting.group ?~ grp !! ?. (is-managed group-path.group) !! - :_ [group-path.group group-path.group] - (generate-invites book (~(del in u.grp) our.bol)) + [~ [group-path.group group-path.group]] :: ?: make-managed.group ?^ grp [~ group-path.group group-path.group] ?. (is-managed group-path.group) !! =/ whole-grp (~(put in invitees.group) our.bol) :_ [group-path.group group-path.group] - %- zing - :~ [(contact-view-create [group-path.group whole-grp title about])]~ - (generate-invites book (~(del in invitees.group) our.bol)) - == + [(contact-view-create [group-path.group whole-grp title about])]~ :: make unmanaged group =* write-path group-path.group =/ read-path (weld write-path /read) ++ metadata-poke |= act=metadata-action ^- card - [%pass / %agent [our.bol %metadata-store] %poke %metadata-action !>(act)] + [%pass / %agent [our.bol %metadata-hook] %poke %metadata-action !>(act)] :: ++ metadata-scry |= [group-path=path app-path=path]
CoreValidation: Fix Arm Compiler 6 linker warnings. The compiler issues warning about unsupported (deprecated) target architectures when called with specific -march.
-#! armclang -E --target=arm-arm-none-eabi -xc +#! armclang -E --target=arm-arm-none-eabi -march=armv7-a -xc ;************************************************** ; Copyright (c) 2017 ARM Ltd. All rights reserved. ;**************************************************
remove handshakes if the belong to the same authentication sequence (anonce = anonce +1)
@@ -660,10 +660,11 @@ if(oldhcxrecord.message_pair == hcxrecord.message_pair) return; if((memcmp(oldhcxrecord.nonce_ap, hcxrecord.nonce_ap, 28) == 0) && (memcmp(oldhcxrecord.nonce_ap, hcxrecord.nonce_ap, 32) != 0)) + { anecflag = true; - + return; + } memcpy(&oldhcxrecord, &hcxrecord, HCX_SIZE); -hcxwritecount++; if(hcxrecord.keyver == 1) wpakv1c++; @@ -696,6 +697,7 @@ if((hcxoutnamenec != NULL) && ((hcxrecord.keyver == 1) || (hcxrecord.keyver == 2 } fwrite(&hcxrecord, 1 * HCX_SIZE, 1, fhhcx); fclose(fhhcx); + hcxwritecount++; showinfo(&hcxrecord); } return; @@ -743,10 +745,12 @@ if(oldhcxrecord.message_pair == hcxrecord.message_pair) return; if((memcmp(oldhcxrecord.nonce_ap, hcxrecord.nonce_ap, 28) == 0) && (memcmp(oldhcxrecord.nonce_ap, hcxrecord.nonce_ap, 32) != 0)) + { anecflag = true; + return; + } memcpy(&oldhcxrecord, &hcxrecord, HCX_SIZE); -hcxwritecount++; if(hcxrecord.keyver == 1) wpakv1c++; @@ -794,6 +798,7 @@ if((wdfhcxoutname != NULL) && (wldflagint == true) && ((hcxrecord.keyver == 1) | } fwrite(&hcxrecord, 1 * HCX_SIZE, 1, fhhcx); fclose(fhhcx); + hcxwritecount++; showinfo(&hcxrecord); }
Trembyle: enable external 32K crystal osc BRANCH=none TEST=make buildall -j
#define CONFIG_CHIPSET_CAN_THROTTLE #define CONFIG_CHIPSET_RESET_HOOK +/* Use external 32kHz OSC as LFCLK source */ +#define CONFIG_CLOCK_SRC_EXTERNAL + #undef CONFIG_EXTPOWER_DEBOUNCE_MS #define CONFIG_EXTPOWER_DEBOUNCE_MS 200 #define CONFIG_EXTPOWER_GPIO
Doc: Do reformatting of comments in .c-files
@@ -2450,8 +2450,9 @@ static Key * elektraLookupCreateKey (KeySet * ks, Key * key, ELEKTRA_UNUSED elek * * @par Hybrid search * When Elektra is compiled with `ENABLE_OPTIMIZATIONS=ON` a hybrid search decides - * dynamically between the binary search and the [OPMPHM](https://master.libelektra.org/doc/dev/data-structures.md#order-preserving-minimal-perfect-hash-map-aka-opmphm). - * The hybrid search can be overruled by passing ::KDB_O_OPMPHM or ::KDB_O_BINSEARCH in the options to ksLookup(). + * dynamically between the binary search and the + * [OPMPHM](https://master.libelektra.org/doc/dev/data-structures.md#order-preserving-minimal-perfect-hash-map-aka-opmphm). The hybrid + * search can be overruled by passing ::KDB_O_OPMPHM or ::KDB_O_BINSEARCH in the options to ksLookup(). * * * @param ks the KeySet that should be searched
[snitch] Adapt ro-cache for new lookup module
@@ -208,6 +208,7 @@ module snitch_read_only_cache #( TAG_WIDTH: AxiAddrWidth - $clog2(LineWidth/8) - $clog2(LineCount) + 1, ID_WIDTH_REQ: AxiIdWidth, ID_WIDTH_RESP: 2**AxiIdWidth, + META_WIDTH: AxiIdWidth, PENDING_IW: $clog2(PendingCount), default: 0 }; @@ -443,12 +444,12 @@ module snitch_read_only_cache #( // TODO(zarubaf): This is wrong, just for initial estimates. .in_addr_i ( in_addr ), - .in_id_i ( in_id ), + .in_meta_i ( in_id ), .in_valid_i ( in_valid ), .in_ready_o ( in_ready ), .out_addr_o ( lookup_addr ), - .out_id_o ( lookup_id ), + .out_meta_o ( lookup_id ), .out_set_o ( lookup_set ), .out_hit_o ( lookup_hit ), .out_data_o ( lookup_data ),
pull-hook: restart subscriptions in on-load
=| cards=(list card:agent:gall) |^ ?- -.old + %0 $(-.old %1) + :: %1 =^ og-cards pull-hook (on-load:og inner-state.old) - [(weld cards og-cards) this(state old)] - :: - %0 - %_ $ - -.old %1 - :: - cards - (weld cards (missing-subscriptions tracking.old)) + =. state old + =/ restart-cards + (restart-subscriptions tracking.old) + :_ this + :(weld restart-cards cards og-cards) == + :: + ++ check-subscription + |= [rid=resource =ship] + ^- ? + %+ lien + ~(tap in ~(key by wex.bowl)) + |= [=wire her=^ship app=term] + ^- ? + ?& =(app push-hook-name.config) + =(ship her) + =((scag 4 wire) /helper/pull-hook/pull/resource) + =(`rid (de-path-soft:resource (slag 4 wire))) == - ++ missing-subscriptions - |= tracking=(map resource ship) + :: + ++ restart-subscriptions + |= pulling=(map resource ship) ^- (list card:agent:gall) %+ murn - ~(tap by tracking) + ~(tap by pulling) |= [rid=resource =ship] ^- (unit card:agent:gall) - =/ =path - resource+(en-path:resource rid) - =/ =wire - (make-wire pull+path) - ?: (~(has by wex.bowl) [wire ship push-hook-name.config]) - ~ - `[%pass wire %agent [ship push-hook-name.config] %watch path] + ?: (check-subscription rid ship) ~ + ~& >> "restarting: {<rid>}" + =/ pax=(unit path) + (on-pull-kick:og rid) + ?~ pax ~ + `(watch-resource:hc rid u.pax) -- :: ++ on-save =. inner-state on-save:og !>(state) + :: ++ on-poke |= [=mark =vase] ^- [(list card:agent:gall) agent:gall] :: ++ remove |= =resource - :- ~[(leave-resource resource)] + :- (leave-resource resource) state(tracking (~(del by tracking) resource)) -- :: ++ leave-resource |= rid=resource - ^- card - =/ =ship - (~(got by tracking) rid) - =/ =wire - (make-wire pull+resource+(en-path:resource rid)) - [%pass wire %agent [ship push-hook-name.config] %leave ~] + ^- (list card) + %+ roll + ~(tap in ~(key by wex.bowl)) + |= [[=wire her=ship app=term] out=(list card)] + ?. =(`rid (de-path-soft:resource (slag 4 wire))) + out + =/ him=(unit ship) + (~(get by tracking) rid) + ?. =(`her him) out + :_ out + [%pass wire %agent [her push-hook-name.config] %leave ~] ++ watch-resource |= [rid=resource pax=path]
bootloader_efuse: Adds IRAM_ATTR for efuse API Fixes startup of app for case: bootloader with 40Mhz and app with 80Mhz (ESPTOOLPY_FLASHFREQ) Closes
#include "bootloader_common.h" #include "hal/efuse_ll.h" #include "hal/efuse_hal.h" +#include "esp_attr.h" -uint8_t bootloader_common_get_chip_revision(void) +IRAM_ATTR uint8_t bootloader_common_get_chip_revision(void) { return efuse_hal_get_chip_revision(); } -uint32_t bootloader_common_get_chip_ver_pkg(void) +IRAM_ATTR uint32_t bootloader_common_get_chip_ver_pkg(void) { return efuse_ll_get_chip_ver_pkg(); }
added upload stats
/*===========================================================================*/ /* globale Konstante */ +long int uploadcountok; +long int uploadcountfailed; const char *wpasecurl = "http://wpa-sec.stanev.org"; - /*===========================================================================*/ int testwpasec(long int timeout) { @@ -64,11 +65,16 @@ if(curl) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost); res = curl_easy_perform(curl); - if(res != CURLE_OK) - fprintf(stderr, "\x1B[31mupload to %s failed: %s\x1B[0m\n\n", wpasecurl, curl_easy_strerror(res)); - - else + if(res == CURLE_OK) + { printf("\x1B[32mupload done\x1B[0m\n\n"); + uploadcountok++; + } + else + { + fprintf(stderr, "\x1B[31mupload to %s failed: %s\x1B[0m\n\n", wpasecurl, curl_easy_strerror(res)); + uploadcountfailed++; + } curl_easy_cleanup(curl); curl_formfree(formpost); @@ -101,6 +107,8 @@ long int timeout = 30; char *eigenname = NULL; char *eigenpfadname = NULL; +uploadcountok = 0; +uploadcountfailed = 0; eigenpfadname = strdupa(argv[0]); eigenname = basename(eigenpfadname); @@ -132,6 +140,17 @@ for(index = optind; index < argc; index++) sendcap2wpasec(argv[index], timeout); } +if(uploadcountok == 1) + printf("\x1B[32m%ld cap uploaded to %s\x1B[0m\n", uploadcountok, wpasecurl); + +if(uploadcountok > 1) + printf("\x1B[32m%ld caps uploaded to %s\x1B[0m\n", uploadcountok, wpasecurl); + +if(uploadcountfailed == 1) + printf("\x1B[31m%ld cap failed to upload to %s\x1B[0m\n", uploadcountfailed, wpasecurl); + +if(uploadcountfailed > 1) + printf("\x1B[31m%ld caps failed to upload to %s\x1B[0m\n", uploadcountfailed, wpasecurl); return EXIT_SUCCESS; }
Do not error when failing to find a resolution symbol
@@ -230,7 +230,10 @@ InternalSolveSymbolNonWeak64 ( // return FALSE; } - + // + // Do not error when the referenced symbol cannot be found as some will be + // patched by the VTable code. This matches the KXLD behaviour. + // ResolveSymbol = InternalOcGetSymbolByName ( Kext, Name, @@ -238,10 +241,9 @@ InternalSolveSymbolNonWeak64 ( ); if (ResolveSymbol != NULL) { InternalSolveSymbolValue64 (ResolveSymbol->Value, Symbol); - return TRUE; } - return FALSE; + return TRUE; } /**
BugID:16787175:remove unneed print info
@@ -52,9 +52,9 @@ define Brief_Log if [ "$${FIRST_DEP}" != "" ]; then \ FIRST_DEP="$$(basename $${FIRST_DEP})"; \ fi; \ - printf "\r%-40s%s%s$(3)\n" "[$1] $$(echo -n "$$(basename $@)" | cut -c1-28)" "<=22 $${FIRST_DEP} $${SPACE_BAR}"; \ + printf "\r%-40s%s%s$(3)\n" "[$1] $$(echo -n "$$(basename $@)" | cut -c1-28)" "<= $${FIRST_DEP} $${SPACE_BAR}"; \ else \ - printf "\r%-40s%s%s$(3)\n" "[$1] $$(echo -n "$(2)" | cut -c1-28)" "<=11 $${FIRST_DEP} $${SPACE_BAR}"; \ + printf "\r%-40s%s%s$(3)\n" "[$1] $$(echo -n "$(2)" | cut -c1-28)" "<= $${FIRST_DEP} $${SPACE_BAR}"; \ fi; \ for i in $(wordlist 2,150,$(filter-out FORCE,$?)); do \ if [ "$$(echo $${i}|cut -c1)" != "/" ]; then \
kdb: spec-mount clarification added
@@ -43,7 +43,7 @@ public: virtual std::string getShortHelpText () override { - return "Mount a new backend by specification."; + return "Mount a new backend by specification. All necessary plugins will be loaded automatically, depending on the metadata."; } virtual std::string getLongHelpText () override
zuse: lightly restructure encode:rlp:ethereum
$% [%l l=(list item)] [%b b=byts] == + :: +encode-atoms: encode list of atoms as a %l of %b items :: - :: treat atoms as list of items ++ encode-atoms |= l=(list @) + ^- @ %+ encode %l %+ turn l |=(a=@ b+[(met 3 a) a]) :: ++ encode |= in=item - ^- @ + |^ ^- @ ?- -.in %b - ?: &(=(1 wid.b.in) (lth dat.b.in 0x80)) + ?: &(=(1 wid.b.in) (lte dat.b.in 0x7f)) dat.b.in %^ cat 3 dat.b.in ::TODO unsure if this should pass wid or (met 3 dat)... ?: (lth len 56) (add len off) =- (cat 3 len -) :(add (met 3 len) off 55) + -- :: ::TODO decode ::
[P2P] Fix all handshake contention (in progress)
@@ -329,7 +329,7 @@ func (pm *peerManager) addOutboundPeer(meta PeerMeta) bool { newPeer, ok := pm.remotePeers[peerID] if ok { // peer is already exist - pm.logger.Info().Str(LogPeerID, newPeer.meta.ID.Pretty()).Msg("Peer is already managed by peerService") + pm.logger.Info().Str(LogPeerID, newPeer.meta.ID.Pretty()).Msg("Peer is already managed by peermanager") if meta.Designated { // If remote peer was connected first. designated flag is not set yet. newPeer.meta.Designated = true @@ -364,14 +364,14 @@ func (pm *peerManager) addOutboundPeer(meta PeerMeta) bool { newPeer, ok = pm.remotePeers[peerID] if ok { if ComparePeerID(pm.selfMeta.ID, meta.ID) <= 0 { - pm.logger.Info().Str(LogPeerID, newPeer.meta.ID.Pretty()).Msg("Peer is added while handshaking. this peer is lower priority that remote.") + pm.logger.Info().Str(LogPeerID, newPeer.meta.ID.Pretty()).Msg("Inbound connection was already handshaked while handshaking outbound connection, and remote peer is higher priority and close this outbound connection.") pm.mutex.Unlock() - pm.sendGoAway(rw, "Already Handshaked") + pm.sendGoAway(rw, "Already handshaked") s.Close() return true } else { - pm.logger.Info().Str(LogPeerID, newPeer.meta.ID.Pretty()).Msg("Peer is added while handshaking. this peer is higher priority that remote.") - // TODO: disconnect lower valued connection + pm.logger.Info().Str(LogPeerID, newPeer.meta.ID.Pretty()).Msg("Inbound connection was already handshaked while handshaking outbound connection, and local peer is higher priority and reming this outbound connection.") + // disconnect lower valued connection pm.deletePeer(meta.ID) newPeer.stop() } @@ -548,9 +548,14 @@ func (pm *peerManager) tryAddInboundPeer(meta PeerMeta, rw MsgReadWriter) bool { peer, found := pm.remotePeers[peerID] if found { - // already found. drop this connection - if ComparePeerID(pm.selfMeta.ID, peerID) <= 0 { + if ComparePeerID(pm.selfMeta.ID, meta.ID) <= 0 { + pm.logger.Info().Str(LogPeerID, peer.meta.ID.Pretty()).Msg("Outbound connection was already handshaked while handshaking inbound connection, and remote peer is higher priority and close this inbound connection.") return false + } else { + pm.logger.Info().Str(LogPeerID, peer.meta.ID.Pretty()).Msg("Outbound connection was already handshaked while handshaking inbound connection, and local peer is higher priority and remain this inbound connection.") + // disconnect lower valued connection + pm.deletePeer(meta.ID) + peer.stop() } } peer = newRemotePeer(meta, pm, pm.actorServ, pm.logger, pm.mf, pm.signer, rw)
SampleApplication: Change the unit of result Correct the unit of sample-application result, which should be us(microseconds).
@@ -49,7 +49,7 @@ def create_hist(): figure = plt.hist(dataset) plt.title("Latency percentages") - plt.xlabel("Latency Value (ms)") + plt.xlabel("Latency Value (us)") plt.ylabel("Frequency") plt.savefig("hist.png")
free hard-restart timer more safely
@@ -1105,7 +1105,10 @@ _http_serv_restart_cb(uv_timer_t* tim_u) _http_serv_start_all(); - free(tim_u); + if ( 0 != u3_Host.fig_u.tim_u) { + free(u3_Host.fig_u.tim_u); + u3_Host.fig_u.tim_u = 0; + } } static void
zephyr/shim/include/usbc/ppc_sn5s330.h: Format with clang-format BRANCH=none TEST=none
#define SN5S330_COMPAT ti_sn5s330 #define PPC_CHIP_SN5S330(id) \ - { \ - .i2c_port = I2C_PORT(DT_PHANDLE(id, port)), \ + { .i2c_port = I2C_PORT(DT_PHANDLE(id, port)), \ .i2c_addr_flags = DT_STRING_UPPER_TOKEN(id, i2c_addr_flags), \ - .drv = &sn5s330_drv \ - }, + .drv = &sn5s330_drv },
The comma operator should not be used
@@ -397,7 +397,8 @@ void *USB_ReadPacket(void *dest, uint16_t len) { uint32_t i=0; uint32_t count32b = (len + 3) / 4; - for ( i = 0; i < count32b; i++, dest += 4 ) { + for ( i = 0; i < count32b; i++) { + dest += 4; // packed? *(__attribute__((__packed__)) uint32_t *)dest = USBx_DFIFO(0); } @@ -420,7 +421,8 @@ void USB_WritePacket(const uint8_t *src, uint16_t len, uint32_t ep) { USBx_INEP(ep)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); // load the FIFO - for (i = 0; i < count32b; i++, src += 4) { + for (i = 0; i < count32b; i++) { + src += 4; USBx_DFIFO(ep) = *((__attribute__((__packed__)) uint32_t *)src); } }
small speed increase
@@ -1595,7 +1595,7 @@ static handshakelist_t *zeiger; if(donotcleanflag == true) return false; zeiger = handshakelistptr; -for(c = 0; c < 20; c ++) +for(c = 0; c < 10; c ++) { zeiger--; if(zeiger < handshakelist) return false;
Better looking preload animation
@@ -92,6 +92,21 @@ lv_obj_t * lv_preload_create(lv_obj_t * par, const lv_obj_t * copy) a.repeat = 1; a.repeat_pause = 0; lv_anim_create(&a); + + lv_anim_t b; + b.var = new_preload; + b.start = ext->arc_length; + b.end = 360; + b.fp = (lv_anim_fp_t)lv_preload_set_arc_length; + b.path = lv_anim_path_ease_in_out; + b.end_cb = NULL; + b.act_time = 0; + b.time = LV_PRELOAD_DEF_SPIN_TIME; + b.playback = 1; + b.playback_pause = 0; + b.repeat = 1; + b.repeat_pause = 100; + lv_anim_create(&b); #endif /*Init the new pre loader pre loader*/
error: testfix haskell
@@ -93,8 +93,8 @@ typecheck p ks k c = withGlobalLogging (LogConfig Nothing ("@ENABLE_LOGGER@" == Left err -> do let errStr = errorString specFile err case c of - Set -> triggerError 193 k errStr - Get -> triggerWarnings 192 k errStr + Set -> triggerError "C04200" k errStr + Get -> triggerWarnings "C04200" k errStr logDebugT errStr return True Right () -> return False
test: Fix TypeError in run_device_tests.py TEST=run_device_tests.py --help BRANCH=none Code-Coverage: Zoss
@@ -397,7 +397,7 @@ def read_file_gsutil(path: str) -> bytes: return gsutil.stdout -def find_section_offset_size(section: str, image: bytes) -> Tuple(int, int): +def find_section_offset_size(section: str, image: bytes) -> Tuple[int, int]: """Get offset and size of the section in image""" areas = fmap.fmap_decode(image)["areas"] area = next(area for area in areas if area["name"] == section)
Add Flash Inforamtion for RCXVUP
@@ -79,19 +79,22 @@ config FLASH_INTERFACE string default "BPIx16" if S121B_BPIx16 || N250S || N250SP || ADKU3 || AD8K5 default "SPIx4" if S121B_SPIx4 + default "SPIx8" if RCXVUP #FLASH_SIZE: in MB, will be used by build_mcs.tcl config FLASH_SIZE string - default 256 if S121B_SPIx4 + default 256 if S121B_SPIx4 || RCXVUP default 128 if S121B_BPIx16 || N250SP || AD8K5 || ADKU3 default 64 if N250S +#FLASH_USERADDR: For BPIx16, it is two-bytes address; +# For SPI, it is byte address. config FLASH_USERADDR string default 0x01000000 if N250S || ADKU3 default 0x02000000 if S121B_BPIx16 || AD8K5 || N250SP - default 0x08000000 if S121B_SPIx4 + default 0x08000000 if S121B_SPIx4 || RCXVUP config S121B
feat: update gateway version to v8
#include "orka-utils.h" -#define BASE_GATEWAY_URL "wss://gateway.discord.gg/?v=6&encoding=json" +#define BASE_GATEWAY_URL "wss://gateway.discord.gg/?v=8&encoding=json" struct _event_cxt { pthread_t tid; // the thread id
Makefile: build less with nullnet Use the mechanism introduced in the previous commit to avoid building files when using nullnet.
@@ -200,6 +200,9 @@ MAKE_NET ?= MAKE_NET_IPV6 ifeq ($(MAKE_NET),MAKE_NET_NULLNET) CFLAGS += -DNETSTACK_CONF_WITH_NULLNET=1 MODULES += $(CONTIKI_NG_NET_DIR)/nullnet + # SLIP uses the rxbuf defined in uIP. + MODULES_SOURCES_EXCLUDES += slip.c + CONTIKI_SOURCES_EXCLUDES_NATIVE += tun6-net.c endif ifeq ($(MAKE_NET),MAKE_NET_IPV6)
add more steps to development guide for metadata
@@ -202,3 +202,10 @@ export const HANDLED_METADATA = [ + 'check/something', ] ``` + +- Validation can then be added by handling metadata in the + `client/src/components/TreeItem/fields/validateType.js` file to the + `validateType` function. + +- Rendering fields in a special way when certain metakeys are present can be + done by adjusting the `renderSpecialValue` function in the `client/src/components/TreeItem/index.js` file.
linkchecker: use merged branch in PRs
@@ -192,6 +192,16 @@ linux_task: container: dockerfile: scripts/docker/cirrus/Dockerfile + clone_script: | + if [ -z "$CIRRUS_PR" ]; then + git clone --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR + git reset --hard $CIRRUS_CHANGE_IN_REPO + else + git clone https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR + git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR + git merge --no-ff $CIRRUS_CHANGE_IN_REPO + fi + script: - mkdir build && cd build - >
fix: feature's template
--- name: Feature report about: Suggest an idea for this project -title: '' -labels: '' +title: '[FEATURES] [Subject of the issue]' +labels: 'enhancement' assignees: '' --- -## [FEATURES] [Subject of the issue] - -### Description +## Description Describe your issue in as much detail as possible here. -### Your environment +## Your environment * OS and version * branch that causes this issue
prints request path if %eyre fails to parse it
%- emule |. ^+ ..apex =* sec p.kyz :: ? :: https bit =* heq r.kyz :: httq :: request content - =+ ryp=`quri`(rash q.heq zest:de-purl) + =/ ryp=quri + =+ (rush q.heq zest:de-purl) + ?^(- u.- ~|(eyre-parse-url-failed+q.heq !!)) =+ maf=(eat-headers r.heq) =+ ^= pul ^- purl ?- -.ryp
Controller config file as a new cmd line argument
@@ -9,6 +9,7 @@ function print_usage_and_exit { (>&2 echo " - v14|v16") (>&2 echo " - cfg <config string>") (>&2 echo " - ctrl <controller name>") + (>&2 echo " - ctrcfg <controller config file>") exit $ERROR_CODE } @@ -107,6 +108,9 @@ while [ $# -gt 0 ]; do "cfg") shift DPDK_OPTS="$1" ;; + "ctrcfg") shift + CONTROLLER_PARAMS_FILE="$1" + ;; *) if [ ! -z ${P4_SOURCE+x} ]; then errmsg_exit "Error: extra parameter: $1" "P4 source file already defined: ${P4_SOURCE}" @@ -268,8 +272,8 @@ if [ "$T4P4S_RUN" == 1 ]; then # Step 3A-3: Run controller # TODO params for controller - # stdbuf -o 0 $CTRL_PLANE_DIR/$CONTROLLER $CONTROLLER_PARAMS_FILE > "${CONTROLLER_LOG}" & - stdbuf -o 0 $CTRL_PLANE_DIR/$CONTROLLER > "${CONTROLLER_LOG}" & + stdbuf -o 0 $CTRL_PLANE_DIR/$CONTROLLER $CONTROLLER_PARAMS_FILE > "${CONTROLLER_LOG}" & + #stdbuf -o 0 $CTRL_PLANE_DIR/$CONTROLLER > "${CONTROLLER_LOG}" & sleep 0.05 fi
Why are you here;
@@ -88,9 +88,6 @@ static void onMountChanged(bool mounted) { } static void onFrame(float* leftView, float* rightView, float* leftProjection, float* rightProjection, void* userdata) { - int width, height; - webvrGetDisplayDimensions(&width, &height); - Camera camera = { .canvas = NULL, .stereo = true }; memcpy(camera.projection[0], leftProjection, 16 * sizeof(float)); memcpy(camera.projection[1], rightProjection, 16 * sizeof(float));
Fix MSVC-specific warnings
@@ -37,7 +37,7 @@ static Texture* lookupTexture(uint32_t handle) { return *texture; } -static ovrTrackingState *refreshTracking() { +static ovrTrackingState *refreshTracking(void) { static ovrTrackingState ts; if (!state.needRefreshTracking) { return &ts; @@ -58,7 +58,7 @@ static ovrTrackingState *refreshTracking() { return &ts; } -static ovrInputState *refreshButtons() { +static ovrInputState *refreshButtons(void) { static ovrInputState is; if (!state.needRefreshButtons) { return &is; @@ -93,7 +93,7 @@ static bool oculus_init(float offset, uint32_t msaa) { return true; } -static void oculus_destroy() { +static void oculus_destroy(void) { const char* key; map_iter_t iter = map_iter(&state.textureLookup); while ((key = map_next(&state.textureLookup, &iter)) != NULL) { @@ -125,7 +125,7 @@ static bool oculus_getName(char* name, size_t length) { return true; } -static HeadsetOrigin oculus_getOriginType() { +static HeadsetOrigin oculus_getOriginType(void) { return ORIGIN_FLOOR; } @@ -385,7 +385,7 @@ static void oculus_renderTo(void (*callback)(void*), void* userdata) { state.needRefreshButtons = true; } -static Texture* oculus_getMirrorTexture() { +static Texture* oculus_getMirrorTexture(void) { uint32_t handle; ovr_GetMirrorTextureBufferGL(state.session, state.mirror, &handle); return lookupTexture(handle);
docs: remove rc watermark
\tcbuselibrary{skins} % for non-released DRAFT - comment out for GA release -\usepackage[firstpage]{draftwatermark} -%\usepackage{draftwatermark} -%\SetWatermarkText{Tech Preview} -%\SetWatermarkHorCenter{0.55\paperwidth} -\SetWatermarkVerCenter{0.6\paperheight} -\SetWatermarkText{\parbox{38cm}{\centering Release \\ Candidate}} -\SetWatermarkScale{0.4} +%% \usepackage[firstpage]{draftwatermark} +%% %\usepackage{draftwatermark} +%% %\SetWatermarkText{Tech Preview} +%% %\SetWatermarkHorCenter{0.55\paperwidth} +%% \SetWatermarkVerCenter{0.6\paperheight} +%% \SetWatermarkText{\parbox{38cm}{\centering Release \\ Candidate}} +%% \SetWatermarkScale{0.4} % ----------- Variables to change per release -------------
Updated instructions for disabling deCONZ GUI deCONZ GUI is started as a systemd service not an X11 autostart script
@@ -97,12 +97,12 @@ The beta version contains a systemd script, which allows deCONZ to run without a $ sudo systemctl enable deconz ``` -2. Disable X11 deCONZ autostart script +2. Disable deCONZ GUI Autostart -The dresden elektronik Raspbian sd-card image contains a autostart script for X11 which should be removed. +The dresden elektronik Raspbian sd-card image autostarts deCONZ GUI. ```bash -$ rm -f /home/pi/.config/autostart/deCONZ.desktop +$ sudo systemctl enable deconz-gui ``` Software requirements
tmp: debug printfs
++ install |= [=ship =desk] ^- (quip card _state) + ~& [dap.bowl %install ship desk] =+ .^(=treaty:treaty %gx (scry:io %treaty /treaty/(scot %p ship)/[desk]/noun)) ?: (~(has by charges) desk) ~| bad-install-desk/desk ++ uninstall |= =desk ^- (quip card _state) + ~& [dap.bowl %uninstall desk] =/ =charge ~|(no-charge-installed+desk (~(got by charges) desk)) =. charges (~(del by charges) desk) =? by-base ?=(%glob -.href.docket.charge) :: ++ take-kiln ^- (quip card _state) + ~& [dap.bowl %take-kiln -.sign] ?+ -.sign (on-agent:def:cc wire sign) %kick [(~(watch-our pass /kiln) %hood /kiln/vats)^~ state] :: %fact + ~& [dap.bowl %kiln-fact p.cage.sign] ?. ?=(%kiln-vats-diff-0 p.cage.sign) `state =+ !<(=diff:hood q.cage.sign) + ~& [dap.bowl %kiln-diff -.diff] =* cha ~(. ch desk.diff) - ?+ -.diff `state + ?- -.diff + ?(%block %reset %merge-sunk %merge-fail) + ~& [dap.bowl %ignoring-kiln-diff -.diff] ::TODO removeme + `state :: %commit =* cha ~(. ch desk.diff)
Fix BGZFile.read() behaviour near or at EOF Fix typo, which caused read() (with a size given) to return uninitialised data of exactly the size requested instead of ever signalling EOF.
@@ -115,7 +115,7 @@ cdef class BGZFile(object): if read_size < 0: raise IOError('Error reading from BGZFile') elif read_size < size: - chunk = chunk[:size] + chunk = chunk[:read_size] return chunk else: return b''
Resize permutability constraints with per cc objective
@@ -382,6 +382,17 @@ PlutoConstraints *get_permutability_constraints(PlutoProg *prog) { if (dep->cst == NULL) { /* First time, compute the constraints */ compute_permutability_constraints_dep(dep, prog); + if (options->per_cc_obj) { + int num_cols_to_add = (npar + 1) * (prog->ddg->num_ccs); + pluto_constraints_add_leading_dims(dep->cst, num_cols_to_add); + int cc_id = prog->stmts[dep->src]->cc_id; + unsigned source_col_offset = (npar + 1) * prog->ddg->num_ccs; + unsigned target_col_offset = npar + 1 + (npar + 1) * cc_id; + for (int j = 0; j < npar + 1; j++) { + pluto_constraints_interchange_cols(dep->cst, source_col_offset + j, + target_col_offset + j); + } + } IF_DEBUG(fprintf(stdout, "\tFor dep %d; num_constraints: %d\n", i + 1, dep->cst->nrows)); @@ -389,13 +400,17 @@ PlutoConstraints *get_permutability_constraints(PlutoProg *prog) { } } + int ncols = CST_WIDTH; + if (options->per_cc_obj) { + ncols += (npar + 1) * prog->ddg->num_ccs; + } if (!prog->globcst) { - prog->globcst = pluto_constraints_alloc(total_cst_rows, CST_WIDTH); + prog->globcst = pluto_constraints_alloc(total_cst_rows, ncols); } globcst = prog->globcst; - globcst->ncols = CST_WIDTH; + globcst->ncols = ncols; globcst->nrows = 0; /* Add constraints to globcst */
doc: Fix wrong page generating faults of the modules `doxygen -d commentscan` will help to resolve the problem. and `^^` will replace to `\_linebr` resolve
@@ -238,20 +238,20 @@ TAB_SIZE = 4 # "Side Effects:". You can put \n's in the value part of an alias to insert # newlines. -ALIASES = projectstart="---------------------\n### Using this library in your project ###\n" +ALIASES = projectstart="<hr><h3> Using this library in your project </h3>" ALIASES += projectinc{1}="Include the header file in your project:\n\code #include <\1> \endcode\n" ALIASES += projectlib{1}="Link the library to the executable:\n\code \1 \endcode \n" ALIASES += projectmod{1}="Load the required module:\n\code sceSysmoduleLoadModule(\1); \endcode \n" -ALIASES += projectend="---------------------\n" -ALIASES += notestart="---------------------\n### Notes ###\n" +ALIASES += projectend="<hr>" +ALIASES += notestart="<hr><h3> Notes </h3>" ALIASES += staticlib="This module is not available in homebrews cause the related library is a static one.\n" -ALIASES += noteend="---------------------\n" +ALIASES += noteend="<hr>" ALIASES += usage{1}="\projectstart \projectinc{\1} \projectend" ALIASES += usage{2}="\projectstart \projectinc{\1} \projectlib{\2} \projectend" ALIASES += usage{3}="\projectstart \projectinc{\1} \projectlib{\2} \projectmod{\3} \projectend" ALIASES += staticnote="\notestart \staticlib \noteend" -ALIASES += usergroup{1}="\defgroup \1User User\n \ingroup \1\n Exports for User\n\\{\n" -ALIASES += kernelgroup{1}="\defgroup \1Kernel Kernel\n \ingroup \1\n Exports for Kernel\n\\{\n" +ALIASES += usergroup{1}="^^ \addtogroup \1_User User ^^ \ingroup \1 ^^ Exports for User ^^ @{ ^^" +ALIASES += kernelgroup{1}="^^ \addtogroup \1_Kernel Kernel ^^ \ingroup \1 ^^ Exports for Kernel ^^ @{ ^^" # This tag can be used to specify a number of word-keyword mappings (TCL only). # A mapping has the form "name=value". For example adding "class=itcl::class"
fix when image is 1x1 blank, resize it to 2x2
@@ -9,6 +9,8 @@ class Images: def __init__(self, filename): self.filename = filename self.img = cv2.imread(self.filename, -1) + if self.img.shape[0] == 1 or self.img.shape[1] == 1: + self.img = np.zeros((2, 2, 4)) self.orig_img = np.copy(self.img) self.orig_rows = self.img.shape[0] self.orig_cols = self.img.shape[1]
actions: set JAVA_HOME
@@ -21,7 +21,7 @@ jobs: # well on Windows or Mac. You can convert this to a matrix build if you need # cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: macos-latest + runs-on: macos-10.15 steps: - uses: actions/checkout@v2 @@ -68,6 +68,7 @@ jobs: run: | PATH="/usr/local/opt/[email protected]/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH" PATH="/usr/local/opt/[email protected]/bin:$PATH" + JAVA_HOME=$JAVA_HOME_11_X64 SYSTEM_DIR="$PWD/kdbsystem" CMAKE_OPT+=( -GNinja
dm: clean up assert in virtio_input.c clean up assert in virtio_input.c Acked-by: Anthony Xu
#include <stdbool.h> #include <string.h> #include <unistd.h> -#include <assert.h> #include <pthread.h> #include "dm.h" @@ -251,7 +250,19 @@ virtio_input_notify_status_vq(void *vdev, struct virtio_vq_info *vq) while (vq_has_descs(vq)) { n = vq_getchain(vq, &idx, &iov, 1, NULL); - assert(n == 1); + if (n < 0) { + WPRINTF(("virtio_input: invalid descriptors\n")); + return; + } + if (n == 0) { + WPRINTF(("virtio_input: get no available descriptors\n")); + return; + } + if (n != 1) { + WPRINTF(("virtio_input: get wrong number of available descriptors\n")); + vq_relchain(vq, idx, sizeof(event)); /* Release the chain */ + return; + } if (vi->fd > 0) { memcpy(&event, iov.iov_base, sizeof(event)); @@ -292,7 +303,10 @@ virtio_input_send_event(struct virtio_input *vi, vi->event_queue = realloc(vi->event_queue, vi->event_qsize * sizeof(struct virtio_input_event_elem)); - assert(vi->event_queue); + if (!vi->event_queue) { + WPRINTF(("virtio_input: realloc memory for vi->event_queue failed!\n")); + return; + } } vi->event_queue[vi->event_qindex].event = *event; vi->event_qindex++; @@ -310,7 +324,19 @@ virtio_input_send_event(struct virtio_input *vi, goto out; } n = vq_getchain(vq, &idx, &iov, 1, NULL); - assert(n == 1); + if (n < 0) { + WPRINTF(("virtio-input: invalid descriptors\n")); + return; + } + if (n == 0) { + WPRINTF(("virtio-input: get no available desciptors\n")); + return; + } + if (n != 1) { + WPRINTF(("virtio_input: get wrong number of available descriptors\n")); + vq_relchain(vq, idx, sizeof(event)); /* Release the chain */ + return; + } vi->event_queue[i].iov = iov; vi->event_queue[i].idx = idx; }
change updater servers with fallback
@@ -305,7 +305,8 @@ ULONG64 ParseVersionString( } BOOLEAN QueryUpdateData( - _Inout_ PPH_UPDATER_CONTEXT Context + _Inout_ PPH_UPDATER_CONTEXT Context, + _In_ PWSTR ServerName ) { BOOLEAN success = FALSE; @@ -326,7 +327,7 @@ BOOLEAN QueryUpdateData( if (!PhHttpSocketConnect( httpContext, - L"systeminformer.sourceforge.io", + ServerName, PH_HTTP_DEFAULT_HTTPS_PORT )) { @@ -435,6 +436,26 @@ CleanupExit: return success; } +BOOLEAN QueryUpdateDataWithFailover( + _Inout_ PPH_UPDATER_CONTEXT Context + ) +{ + static PWSTR Servers[] = + { + L"systeminformer.sourceforge.io", + L"system-informer.com", + L"systeminformer.com" + }; + + for (USHORT i = 0; i < ARRAYSIZE(Servers); i++) + { + if (QueryUpdateData(Context, Servers[i])) + return TRUE; + } + + return FALSE; +} + NTSTATUS UpdateCheckSilentThread( _In_ PVOID Parameter ) @@ -451,7 +472,7 @@ NTSTATUS UpdateCheckSilentThread( PhDelayExecution(5 * 1000); // Query latest update information from the server. - if (!QueryUpdateData(context)) + if (!QueryUpdateDataWithFailover(context)) goto CleanupExit; // Compare the current version against the latest available version @@ -500,7 +521,7 @@ NTSTATUS UpdateCheckThread( // Check if we have cached update data if (!context->HaveData) { - context->HaveData = QueryUpdateData(context); + context->HaveData = QueryUpdateDataWithFailover(context); } if (!context->HaveData)
Simplify conditions and don't send ERROR chunks when not ready.
#if defined(__FreeBSD__) && !defined(__Userspace__) #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 362153 2020-06-13 18:38:59Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 362722 2020-06-28 14:11:36Z tuexen $"); #endif #include <netinet/sctp_os.h> @@ -5583,7 +5583,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, break; case SCTP_STREAM_RESET: SCTPDBG(SCTP_DEBUG_INPUT3, "SCTP_STREAM_RESET\n"); - if (((stcb == NULL) || (ch == NULL) || (chk_length < sizeof(struct sctp_stream_reset_tsn_req)))) { + if ((stcb == NULL) || (chk_length < sizeof(struct sctp_stream_reset_tsn_req))) { /* Its not ours */ *offset = length; return (stcb); @@ -5606,7 +5606,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, return (stcb); } - if ((ch != NULL) && (stcb != NULL) && (netp != NULL) && (*netp != NULL)) { + if ((stcb != NULL) && (netp != NULL) && (*netp != NULL)) { if (stcb->asoc.pktdrop_supported == 0) { goto unknown_chunk; } @@ -5642,8 +5642,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, goto next_chunk; } got_auth = 1; - if ((ch == NULL) || sctp_handle_auth(stcb, (struct sctp_auth_chunk *)ch, - m, *offset)) { + if (sctp_handle_auth(stcb, (struct sctp_auth_chunk *)ch, m, *offset)) { /* auth HMAC failed so dump the packet */ *offset = length; return (stcb); @@ -5656,7 +5655,11 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, default: unknown_chunk: /* it's an unknown chunk! */ - if ((ch->chunk_type & 0x40) && (stcb != NULL)) { + if ((ch->chunk_type & 0x40) && + (stcb != NULL) && + (SCTP_GET_STATE(stcb) != SCTP_STATE_EMPTY) && + (SCTP_GET_STATE(stcb) != SCTP_STATE_INUSE) && + (SCTP_GET_STATE(stcb) != SCTP_STATE_COOKIE_WAIT)) { struct sctp_gen_error_cause *cause; int len;
Doc: add shell recorder test for spec-tutorial
@@ -32,6 +32,8 @@ add_msr_test ( ENVIRONMENT KDB_EXEC_PATH=${CMAKE_SOURCE_DIR}/scripts/kdb) add_msr_test (tutorial_storage_plugins "${CMAKE_SOURCE_DIR}/doc/tutorials/storage-plugins.md" REQUIRED_PLUGINS type yamlcpp) add_msr_test (cmerge "${CMAKE_SOURCE_DIR}/doc/tutorials/cmerge.md" REQUIRED_PLUGINS hosts line PROPERTY LABELS memleak) +add_msr_test (tutorial_spec "${CMAKE_SOURCE_DIR}/doc/tutorials/specification.md") + if (ENABLE_ASAN) message (STATUS "Excluding Markdown Shell Recorder test for `validation`, as it leaks memory and fails with ASAN enabled")
Update oe_verify_evidence not to accept both endorsements baseline and endorsements
@@ -326,6 +326,12 @@ oe_result_t oe_verify_evidence( } } + // Endorsements buffer conflicts with endorsements baseline policy + if (endorsements_buffer && has_endorsements_baseline_policy) + { + OE_RAISE(OE_INVALID_PARAMETER); + } + if (!format_id) { // check whether evidence buffer structure is oe_report
minor sd cone tweak
@@ -489,9 +489,9 @@ static scs_int proj_semi_definite_cone(scs_float *X, const scs_int n, BLAS(syev)("Vectors", "Lower", &nb, Xs, &nb, e, work, &lwork, &info); if (info != 0) { scs_printf("WARN: LAPACK syev error, info = %i\n", info); - } if (info < 0) { - return -1; + return info; + } } first_idx = -1; @@ -724,7 +724,7 @@ static void proj_power_cone(scs_float *v, scs_float a) { /* project onto the primal K cone in the paper */ static scs_int proj_cone(scs_float *x, const ScsCone *k, ScsConeWork *c, scs_int normalize) { - scs_int i; + scs_int i, status; scs_int count = 0; if (k->z) { @@ -764,8 +764,9 @@ static scs_int proj_cone(scs_float *x, const ScsCone *k, ScsConeWork *c, if (k->ssize && k->s) { /* project onto PSD cones */ for (i = 0; i < k->ssize; ++i) { - if (proj_semi_definite_cone(&(x[count]), k->s[i], c) < 0) { - return -1; + status = proj_semi_definite_cone(&(x[count]), k->s[i], c); + if (status < 0) { + return status; } count += get_sd_cone_size(k->s[i]); }
CCode: Fix minor spelling mistakes in comments
@@ -219,7 +219,7 @@ size_t encode (char const * const value, size_t const size, CCodeData * mapping) extern "C" { /** - * @brief This function replaces escaped character in a key value with unescaped characters. + * @brief This function replaces escaped characters in a key value with unescaped characters. * * The function stores the unescaped result value both in `mapping->buffer` and the given key. * @@ -237,7 +237,7 @@ void elektraCcodeDecode (Key * key, CCodeData * mapping) } /** - * @brief This function replaces unescaped character in a key value with escaped characters. + * @brief This function replaces unescaped characters in a key value with escaped characters. * * The function stores the escaped result value both in `mapping->buffer` and the given key. *
[numerics] Arrow_mat interface was changed
@@ -40,7 +40,7 @@ static int Arrow_repr_3d_test() vec[4] = 5.0; vec[5] = 6.0; - NumericsMatrix * Arw_mat = Arrow_repr(vecSize, vec, varsCount); + NumericsMatrix * Arw_mat = Arrow_repr(vec, vecSize, varsCount); NumericsMatrix * D_Arw_mat = NM_create(NM_DENSE, vecSize, vecSize); NM_to_dense(Arw_mat, D_Arw_mat); // NM_display(D_Arw_mat); @@ -82,7 +82,7 @@ static int Arrow_repr_2d_test() vec[4] = 5.0; vec[5] = 6.0; - NumericsMatrix * Arw_mat = Arrow_repr(vecSize, vec, varsCount); + NumericsMatrix * Arw_mat = Arrow_repr(vec, vecSize, varsCount); NumericsMatrix * D_Arw_mat = NM_create(NM_DENSE, vecSize, vecSize); NM_to_dense(Arw_mat, D_Arw_mat); // NM_display(D_Arw_mat);
bump cmake to v3.9.0
%define pname cmake -%define major_version 3.8 -%define minor_version 2 +%define major_version 3.9 +%define minor_version 0 Summary: CMake is an open-source, cross-platform family of tools designed to build, test and package software. Name: %{pname}%{PROJ_DELIM}
+on-take-turf simple handler compiles
:: %memo: message to vane from peer :: %send: packet to unix :: %done: notify vane that peer (n)acked our message +:: :: %mass: memory usage report +:: %turf: domain report, relayed from jael :: +$ gift $% [%memo =message] [%send =lane =blob] [%done error=(unit error)] + :: [%mass mass] + [%turf turfs=(list turf)] == :: $note: request to other vane :: $% [%done error=(unit error)] [%memo =message] [%pubs public:able:jael] - [%turf turf=(list turf)] + [%turf turfs=(list turf)] [%vein =life vein=(map life ring)] == == == :: $message-pump-task: job for |message-pump [%j %memo *] (on-take-memo:event-core wire message.sign) :: [%j %pubs *] !! - [%j %turf *] !! + [%j %turf *] (on-take-turf:event-core turfs.sign) [%j %vein *] !! == :: :: =. peers.ames-state (~(del by peers.ames-state) ship) event-core + :: +on-take-turf: relay %turf move from jael to unix + :: + ++ on-take-turf + |= turfs=(list turf) + ^+ event-core + :: + (emit unix-duct.ames-state %give %turf turfs) :: +on-wegh: produce memory usage report :: ++ on-wegh
SOVERSION bump to version 2.18.10
@@ -66,7 +66,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 18) -set(LIBYANG_MICRO_SOVERSION 9) +set(LIBYANG_MICRO_SOVERSION 10) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION}) set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
main: add a max_quic_connections setting
@@ -155,6 +155,7 @@ static struct { char *pid_file; char *error_log; int max_connections; + int max_quic_connections; /** * array size == number of worker threads to instantiate, the values indicate which CPU to pin, -1 if not */ @@ -202,6 +203,7 @@ static struct { NULL, /* pid_file */ NULL, /* error_log */ 1024, /* max_connections */ + 256, /* max_quic_connections (25% of max_connections) */ {NULL}, /* thread_map, initialized in main() */ {0}, /* .quic = {num_threads (0 defaults to all), conn_callbacks (initialized in main()} */ 0, /* tfo_queues, initialized in main() */ @@ -1406,6 +1408,19 @@ static int on_config_max_connections(h2o_configurator_command_t *cmd, h2o_config return h2o_configurator_scanf(cmd, node, "%d", &conf.max_connections); } +static int on_config_max_quic_connections(h2o_configurator_command_t *cmd, h2o_configurator_context_t *ctx, yoml_t *node) +{ + if (h2o_configurator_scanf(cmd, node, "%d", &conf.max_quic_connections) != 0) + return -1; + + if (conf.max_quic_connections > conf.max_connections) { + h2o_configurator_errprintf(cmd, node, "max_quic_connections: %d must be less than or equal to max_connections: %d", + conf.max_quic_connections, conf.max_connections); + return -1; + } + return 0; +} + static inline int on_config_num_threads_add_cpu(h2o_configurator_command_t *cmd, h2o_configurator_context_t *ctx, yoml_t *node) { if (node->type != YOML_TYPE_SCALAR) { @@ -1968,7 +1983,7 @@ static void on_accept(h2o_socket_t *listener, const char *err) static h2o_http3_conn_t *on_http3_accept(h2o_http3_ctx_t *_ctx, struct sockaddr *sa, socklen_t salen, quicly_decoded_packet_t *packets, size_t num_packets) { - if (num_connections(0) >= conf.max_connections) { + if (num_connections(0) >= conf.max_connections || num_quic_connections(0) >= conf.max_quic_connections) { return NULL; } num_connections(1); @@ -2376,6 +2391,7 @@ static void setup_configurators(void) h2o_configurator_define_command(c, "error-log", H2O_CONFIGURATOR_FLAG_GLOBAL | H2O_CONFIGURATOR_FLAG_EXPECT_SCALAR, on_config_error_log); h2o_configurator_define_command(c, "max-connections", H2O_CONFIGURATOR_FLAG_GLOBAL, on_config_max_connections); + h2o_configurator_define_command(c, "max-quic-connections", H2O_CONFIGURATOR_FLAG_GLOBAL, on_config_max_quic_connections); h2o_configurator_define_command(c, "num-threads", H2O_CONFIGURATOR_FLAG_GLOBAL, on_config_num_threads); h2o_configurator_define_command(c, "num-quic-threads", H2O_CONFIGURATOR_FLAG_GLOBAL, on_config_num_quic_threads); h2o_configurator_define_command(c, "num-name-resolution-threads", H2O_CONFIGURATOR_FLAG_GLOBAL,
fix state logging level
@@ -410,7 +410,7 @@ extern int FIO_LOG_LEVEL; #endif #if FIO_PRINT_STATE -#define FIO_LOG_STATE(...) FIO_LOG_PRINT(0, __VA_ARGS__) +#define FIO_LOG_STATE(...) FIO_LOG_PRINT(FIO_LOG_LEVEL_INFO, __VA_ARGS__) #else #define FIO_LOG_STATE(...) #endif @@ -1193,6 +1193,9 @@ typedef struct fio_rw_hook_s { * Implement writing to a file descriptor. Should behave like the file system * `write` call. * + * If an internal buffer is implemented and it is full, errno should be set to + * EWOULDBLOCK and the function should return -1. + * * Note: facil.io library functions MUST NEVER be called by any r/w hook, or a * deadlock might occur. */
Added 'Android 8 Oreo' to the list of OSs.
@@ -121,7 +121,11 @@ static const char *os[][2] = { static char * get_real_android (const char *droid) { - if (strstr (droid, "7.1")) + if (strstr (droid, "8.1")) + return alloc_string ("Oreo 8.1"); + else if (strstr (droid, "8.0")) + return alloc_string ("Oreo 8.0"); + else if (strstr (droid, "7.1")) return alloc_string ("Nougat 7.1"); else if (strstr (droid, "7.0")) return alloc_string ("Nougat 7.0");
parser: ltsv: fix overflow (oss-fuzz)
@@ -105,7 +105,7 @@ static int ltsv_parser(struct flb_parser *parser, while (c < end) { label = c; - while (ltvs_label[*c] && (c < end)) { + while ((c < end) && ltvs_label[*c]) { c++; } label_len = c - label; @@ -120,7 +120,7 @@ static int ltsv_parser(struct flb_parser *parser, field = c; if (c != end) { - while (ltvs_field[*c] && (c < end)) { + while ((c < end) && ltvs_field[*c]) { c++; } }
rcu: defer timer creation
static DEFINE_SPINLOCK(rcu_lock); /* The head of the list of objects waiting to be freed */ static struct rcu_head *rcu_head; +static bool rcu_worker_launched; #ifdef DEBUG __thread int rcu_read_count; @@ -95,12 +96,19 @@ static void rcu_worker(void *arg) */ void rcu_free(struct rcu_head *head, rcu_callback_t func) { + bool launch_worker = false; + head->func = func; spin_lock_np(&rcu_lock); + if (unlikely(!rcu_worker_launched)) + launch_worker = rcu_worker_launched = true; head->next = rcu_head; rcu_head = head; spin_unlock_np(&rcu_lock); + + if (unlikely(launch_worker)) + BUG_ON(thread_spawn(rcu_worker, NULL)); } struct sync_arg { @@ -121,15 +129,21 @@ static void synchronize_rcu_finish(struct rcu_head *head) */ void synchronize_rcu(void) { + bool launch_worker = false; struct sync_arg tmp; tmp.rcu.func = synchronize_rcu_finish; tmp.th = thread_self(); spin_lock_np(&rcu_lock); + if (unlikely(!rcu_worker_launched)) + launch_worker = rcu_worker_launched = true; tmp.rcu.next = rcu_head; rcu_head = &tmp.rcu; thread_park_and_unlock_np(&rcu_lock); + + if (unlikely(launch_worker)) + BUG_ON(thread_spawn(rcu_worker, NULL)); } /** @@ -139,5 +153,5 @@ void synchronize_rcu(void) */ int rcu_init_late(void) { - return thread_spawn(rcu_worker, NULL); + return 0; }
[io, vview] not updating CP arrays leaves them on display when no contact Fixes
@@ -357,9 +357,6 @@ class CFprov(): self._dom_data[dom_id_f,-1] == self._data[id_f[imu],-1] )[0] - if self._data[id_f[imu]].shape[0]==0: - continue - self.cpa_at_time[mu] = self._data[ id_f[imu], 2:5] self.cpb_at_time[mu] = self._data[
publish: fix edit-book reducer
@@ -133,6 +133,10 @@ export class PrimaryReducer { state.notebooks[host][book]["num-notes"] = json[host][book]["num-notes"]; state.notebooks[host][book]["num-unread"] = json[host][book]["num-unread"]; state.notebooks[host][book]["title"] = json[host][book]["title"]; + state.notebooks[host][book]["writers-group-path"] = + json[host][book]["writers-group-path"]; + state.notebooks[host][book]["subscribers-group-path"] = + json[host][book]["subscribers-group-path"]; } }
Added addition check of connected target
#define STLINK_REG_CM3_CPUID 0xE000ED00 -#define STLINK_REG_CM3_CPUID_PARTNO(cpuid) ((cpuid)&STLINK_REG_CMx_CPUID_PARTNO_MASK) -#define STLINK_REG_CMx_CPUID_PARTNO_MASK 0xFFF0 -#define STLINK_REG_CMx_CPUID_PARTNO_CM0 0xC200 -#define STLINK_REG_CMx_CPUID_PARTNO_CM3 0xC230 -#define STLINK_REG_CMx_CPUID_PARTNO_CM7 0xC270 -#define STLINK_REG_CMx_CPUID_PARTNO_CM33 0xD210 +#define STLINK_REG_CMx_CPUID_PARTNO_CM0 0xC20 +#define STLINK_REG_CMx_CPUID_PARTNO_CM3 0xC23 +#define STLINK_REG_CMx_CPUID_PARTNO_CM4 0xC24 +#define STLINK_REG_CMx_CPUID_PARTNO_CM7 0xC27 +#define STLINK_REG_CMx_CPUID_PARTNO_CM33 0xD21 +#define STLINK_REG_CMx_CPUID_IMPL_ARM 0x41 #define STLINK_REG_CM3_FP_CTRL 0xE0002000 // Flash Patch Control Register
website: fix link + regenerate man page
@@ -63,7 +63,6 @@ Elektra: ## Installation Manuals These tutorials provide additional information on how to -install and set up specific plugins and tools. +install and set up specific tools. -- [Snippet Sharing REST-Service](snippet-sharing-rest-service.md) - [Webui](install-webui.md)
Treat internal requests as authenticated
@@ -98,6 +98,11 @@ bool DeRestPluginPrivate::checkApikeyAuthentification(const ApiRequest &req, Api return false; } + if (req.sock == 0) // allow internal requests, as they are issued by triggering rules + { + return true; + } + std::vector<ApiAuth>::iterator i = apiAuths.begin(); std::vector<ApiAuth>::iterator end = apiAuths.end();
BugID:17689689:fix alcs memory leak
@@ -254,8 +254,24 @@ void alcs_auth_subdev_init(CoAPContext *ctx, const char* productKey, const char* void alcs_auth_deinit(void) { +#ifdef SUPPORT_MULTI_DEVICES + device_auth_list *node = NULL, *next = NULL; +#endif + alcs_resource_cb_deinit(); alcs_auth_list_deinit(); + +#ifdef SUPPORT_MULTI_DEVICES + list_for_each_entry_safe(node, next, &device_list, lst, device_auth_list) { + if (node->lst_auth.list_mutex){ + HAL_MutexDestroy(node->lst_auth.list_mutex); + } + } +#else + if (_device.lst_auth.list_mutex){ + HAL_MutexDestroy(_device.lst_auth.list_mutex); + } +#endif } bool is_networkadd_same (NetworkAddr* addr1, NetworkAddr* addr2)
tests: internal: fuzzer: initialize timestamp
@@ -9,7 +9,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size){ /* Target the conversion of raw msgpack to gelf */ flb_sds_t record; - struct flb_time tm; + struct flb_time tm = {0}; struct flb_gelf_fields fields = {0}; fields.short_message_key = flb_sds_create("AAAAAAAAAA"); record = flb_msgpack_raw_to_gelf(data, size, &tm, &fields);
sds: new flb_sds_cmp() function
#include <fluent-bit/flb_info.h> #include <stdlib.h> +#include <string.h> #include <inttypes.h> #define FLB_SDS_HEADER_SIZE (sizeof(uint64_t) + sizeof(uint64_t)) @@ -60,10 +61,21 @@ static inline size_t flb_sds_avail(flb_sds_t s) return (h->alloc - h->len); } +static inline int flb_sds_cmp(flb_sds_t s, char *str, int len) +{ + if (flb_sds_len(s) != len) { + return -1; + } + + return strncmp(s, str, len); +} + flb_sds_t flb_sds_create(char *str); flb_sds_t flb_sds_create_len(char *str, int len); flb_sds_t flb_sds_create_size(size_t size); flb_sds_t flb_sds_cat(flb_sds_t s, char *str, int len); +flb_sds_t flb_sds_increase(flb_sds_t s, size_t len); + int flb_sds_destroy(flb_sds_t s); #endif
Add Raw/Native funcs benchmark
@@ -41,6 +41,10 @@ commands = [ "wasm": "./wasi/test-opt.wasm", "args": ["cat", "./wasi/0.txt"], "expect_pattern": "Hello world*Constructor OK*Args: *; cat; ./wasi/0.txt;*fib(20) = 6765*[* ms]*48 65 6c 6c 6f 20 77 6f 72 6c 64*=== done ===*" + }, { + "name": "Raw/Native funcs benchmark", + "wasm": "./wasi/test_native_vs_raw.wasm", + "expect_pattern": "Validation...*Native/Raw: *" }, { "name": "mandelbrot", "wasm": "./benchmark/mandelbrot/mandel.wasm",
Update DEVELOPERS-GUIDE.md Correct mistake for windows developer
@@ -23,7 +23,8 @@ $ virtualenv venv **Step 2.1** For uvision progen compilation, update tools and generate project files. **This should be done every time you pull new changes** ``` -$ venv/Scripts/activate +$ venv/Scripts/activate (For Linux) +$ venv/Scripts/activate.bat (For Windows) $ pip install -r requirements.txt $ progen generate -t uvision $ venv/Scripts/deactivate @@ -31,7 +32,8 @@ $ venv/Scripts/deactivate **Step 2.2** For mbed cli project compilation ``` -$ venv/Scripts/activate +$ venv/Scripts/activate (For Linux) +$ venv/Scripts/activate.bat (For Windows) $ pip install -r requirements.txt $ mbed deploy $ mbed config root .
Fixed invaild mv(move) command for travis.
@@ -43,6 +43,7 @@ if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi # Update OpenCR package manually git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch develop --single-branch rm -rf $HOME/.arduino15/packages/OpenCR/hardware +mkdir $HOME/Arduino/hardware/OpenCR mv $PWD/OpenCR/arduino/opencr_arduino/opencr $HOME/Arduino/hardware/OpenCR/OpenCR # install random lib so the arduino IDE grabs a new library index
Router: fixed nxt_http_route_arguments_parse(). A valid query string argument is a string of "key=value\[&key=value ...\]" pairs with non-empty keys. The fix removes invalid empty arguments.
@@ -2025,10 +2025,9 @@ static nxt_array_t * nxt_http_route_arguments_parse(nxt_http_request_t *r) { size_t name_length; - u_char c, *p, *dst, *dst_start, *start, *end, *name; + u_char *p, *dst, *dst_start, *start, *end, *name; uint8_t d0, d1; uint32_t hash; - nxt_bool_t valid; nxt_array_t *args; nxt_http_name_value_t *nv; @@ -2042,7 +2041,6 @@ nxt_http_route_arguments_parse(nxt_http_request_t *r) } hash = NXT_HTTP_FIELD_HASH_INIT; - valid = 1; name = NULL; name_length = 0; @@ -2055,24 +2053,20 @@ nxt_http_route_arguments_parse(nxt_http_request_t *r) end = start + r->args->length; for (p = start, dst = dst_start; p < end; p++, dst++) { - c = *p; - *dst = c; + *dst = *p; - switch (c) { + switch (*p) { case '=': - if (name != NULL) { - break; - } - + if (name == NULL) { name_length = dst - dst_start; - valid = (name_length != 0); name = dst_start; dst_start = dst + 1; + } continue; case '&': - if (valid) { + if (name_length != 0 || dst != dst_start) { nv = nxt_http_route_argument(args, name, name_length, hash, dst_start, dst); if (nxt_slow_path(nv == NULL)) { @@ -2082,14 +2076,12 @@ nxt_http_route_arguments_parse(nxt_http_request_t *r) hash = NXT_HTTP_FIELD_HASH_INIT; name_length = 0; - valid = 1; name = NULL; dst_start = dst + 1; continue; case '+': - c = ' '; *dst = ' '; break; @@ -2107,18 +2099,17 @@ nxt_http_route_arguments_parse(nxt_http_request_t *r) } p += 2; - c = (d0 << 4) + d1; - *dst = c; + *dst = (d0 << 4) + d1; break; } if (name == NULL) { - hash = nxt_http_field_hash_char(hash, c); + hash = nxt_http_field_hash_char(hash, *dst); } } - if (valid) { + if (name_length != 0 || dst != dst_start) { nv = nxt_http_route_argument(args, name, name_length, hash, dst_start, dst); if (nxt_slow_path(nv == NULL)) {
Fix remap line count for user partitions
@@ -123,7 +123,7 @@ static inline uint32_t ocf_remap_do(struct ocf_request *req) * priority in this case, as overflown partitions should * free its cachelines regardless of destination partition * priority. */ - remapped += ocf_evict_user_partitions(cache, req, remap_cline_no, + remapped += ocf_evict_user_partitions(cache, req, remap_cline_no - remapped, true, OCF_IO_CLASS_PRIO_PINNED); if (remapped >= remap_cline_no) return remapped;
Feat:replace socket with handle
#include <stdint.h> #include <stdbool.h> #include <sys/time.h> -#include "lwip/sockets.h" +#include "qapi_socket.h" //#define BOAT_HTTPCLIENT_SSL_ENABLE #ifdef BOAT_HTTPCLIENT_SSL_ENABLE @@ -132,7 +132,8 @@ typedef enum { */ /** @brief This structure defines the httpclient_t structure. */ typedef struct { - int socket; /**< Socket ID. */ +// int socket; /**< Socket ID. */ + int handle; /**< qapi socket handle returned from qapi_socket(), */ int remote_port; /**< HTTP or HTTPS port. */ int response_code; /**< Response code. */ char *header; /**< Request custom header. */
modnxtdevices/Ultrasonic: drop presence/silent This functionality appears unreliable, so remove it until further notice. In particular, presence/listen mode will not just return 0 or 1, but other values as well, which do not seem to be related to actual presence of another nearby sensor.
@@ -46,36 +46,16 @@ STATIC void nxtdevices_UltrasonicSensor_print(const mp_print_t *print, mp_obj_t // pybricks.nxtdevices.UltrasonicSensor.distance STATIC mp_obj_t nxtdevices_UltrasonicSensor_distance(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { - - PB_PARSE_ARGS_METHOD(n_args, pos_args, kw_args, - PB_ARG_DEFAULT_FALSE(silent) - ); nxtdevices_UltrasonicSensor_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]); - uint8_t distance; - if (mp_obj_is_true(silent)) { - pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_ULTRASONIC_SENSOR__SI_CM, &distance)); - } - else { pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_ULTRASONIC_SENSOR__DIST_CM, &distance)); - } return mp_obj_new_int(distance * 10); } STATIC MP_DEFINE_CONST_FUN_OBJ_KW(nxtdevices_UltrasonicSensor_distance_obj, 0, nxtdevices_UltrasonicSensor_distance); -// pybricks.nxtdevices.UltrasonicSensor.presence -STATIC mp_obj_t nxtdevices_UltrasonicSensor_presence(mp_obj_t self_in) { - nxtdevices_UltrasonicSensor_obj_t *self = MP_OBJ_TO_PTR(self_in); - uint8_t presence; - pb_assert(ev3device_get_values_at_mode(self->iodev, PBIO_IODEV_MODE_NXT_ULTRASONIC_SENSOR__LISTEN, &presence)); - return mp_obj_new_bool(presence); -} -STATIC MP_DEFINE_CONST_FUN_OBJ_1(nxtdevices_UltrasonicSensor_presence_obj, nxtdevices_UltrasonicSensor_presence); - // dir(pybricks.nxtdevices.UltrasonicSensor) STATIC const mp_rom_map_elem_t nxtdevices_UltrasonicSensor_locals_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_distance), MP_ROM_PTR(&nxtdevices_UltrasonicSensor_distance_obj) }, - { MP_ROM_QSTR(MP_QSTR_presence), MP_ROM_PTR(&nxtdevices_UltrasonicSensor_presence_obj) }, }; STATIC MP_DEFINE_CONST_DICT(nxtdevices_UltrasonicSensor_locals_dict, nxtdevices_UltrasonicSensor_locals_dict_table);
build/channel: extending line width for more compact header with comment apis
@@ -544,18 +544,19 @@ LIQUID_WDELAY_DEFINE_API(LIQUID_WDELAY_MANGLE_CFLOAT, liquid_float_complex) // TI : input data type #define LIQUID_CHANNEL_DEFINE_API(CHANNEL,TO,TC,TI) \ \ +/* Channel emulation */ \ typedef struct CHANNEL(_s) * CHANNEL(); \ \ -/* create channel object with default parameters */ \ +/* Create channel object with default parameters */ \ CHANNEL() CHANNEL(_create)(void); \ \ -/* destroy channel object, freeing all internal memory */ \ +/* Destroy channel object, freeing all internal memory */ \ void CHANNEL(_destroy)(CHANNEL() _q); \ \ -/* print channel object internals to standard output */ \ +/* Print channel object internals to standard output */ \ void CHANNEL(_print)(CHANNEL() _q); \ \ -/* apply additive white Gausss noise impairment */ \ +/* Include additive white Gausss noise impairment */ \ /* _q : channel object */ \ /* _N0dB : noise floor power spectral density [dB] */ \ /* _SNRdB : signal-to-noise ratio [dB] */ \ @@ -563,7 +564,7 @@ void CHANNEL(_add_awgn)(CHANNEL() _q, \ float _N0dB, \ float _SNRdB); \ \ -/* apply carrier offset impairment */ \ +/* Include carrier offset impairment */ \ /* _q : channel object */ \ /* _frequency : carrier frequency offset [radians/sample] */ \ /* _phase : carrier phase offset [radians] */ \ @@ -571,7 +572,7 @@ void CHANNEL(_add_carrier_offset)(CHANNEL() _q, \ float _frequency, \ float _phase); \ \ -/* apply multi-path channel impairment */ \ +/* Include multi-path channel impairment */ \ /* _q : channel object */ \ /* _h : channel coefficients (NULL for random) */ \ /* _h_len : number of channel coefficients */ \ @@ -579,15 +580,15 @@ void CHANNEL(_add_multipath)(CHANNEL() _q, \ TC * _h, \ unsigned int _h_len); \ \ -/* apply slowly-varying shadowing impairment */ \ +/* Include slowly-varying shadowing impairment */ \ /* _q : channel object */ \ -/* _sigma : std. deviation for log-normal shadowing */ \ -/* _fd : Doppler frequency, _fd in (0,0.5) */ \ +/* _sigma : standard deviation for log-normal shadowing */ \ +/* _fd : Doppler frequency, 0 <= _fd < 0.5 */ \ void CHANNEL(_add_shadowing)(CHANNEL() _q, \ float _sigma, \ float _fd); \ \ -/* apply channel impairments on single input sample */ \ +/* Apply channel impairments on single input sample */ \ /* _q : channel object */ \ /* _x : input sample */ \ /* _y : pointer to output sample */ \ @@ -595,7 +596,7 @@ void CHANNEL(_execute)(CHANNEL() _q, \ TI _x, \ TO * _y); \ \ -/* apply channel impairments on block of samples */ \ +/* Apply channel impairments on block of samples */ \ /* _q : channel object */ \ /* _x : input array, [size: _n x 1] */ \ /* _n : input array, length */ \
Describes what tests we do not have codes for
@@ -13,3 +13,5 @@ The source codes included in this directory can be used to reproduce all benchma * **bcm_bm.c** : this file shows an excerpt from a modified version of CLASS that was used to generate a benchmark power spectrum containing baryon corrections (used for test bcm:model_1). The file is just an excerpt, and therefore won't compile or run on its own. * **create_hiz_curv_massnu_benchmark.ipynb** : this python notebook can be used to generate the files used in tests distances_hiz_mnu:model_1-5. * **3dcorr_benchmark.ipynb** : this python notebook can be used to generate the files used in tests corrs_3d:model_1-3. + +Notice that for the cosmic emulator checks, we benchmark against simulated power spectra directly provided by the authors of the cosmic emulator work (Lawrence et al., 2017, arXiv:1705,03388). In addition, VARRIC tests discussed in the CCL paper assess the accuracy of CCL splines against direct CLASS outputs. Similarly for Figure 3 of the CCL paper. These checks are currently not automated. Finally, predictions of angular power spectra delivered by Angpow are benchmarked against a slower, brute force integration method that is available within CCL. \ No newline at end of file
Add a plugin misbehaving log severity
@@ -15,8 +15,10 @@ enum { CLAP_LOG_ERROR = 3, CLAP_LOG_FATAL = 4, - // This severity should be used to report misbehaviour of the host + // Those severities should be used to report misbehaviour. + // The plugin one can be used by a layer between the plugin and the host. CLAP_LOG_HOST_MISBEHAVING = 5, + CLAP_LOG_PLUGIN_MISBEHAVING = 6, }; typedef int32_t clap_log_severity;
power/mt8192.c: Format with clang-format BRANCH=none TEST=none Tricium: disable
@@ -516,15 +516,15 @@ static void power_button_changed(void) DECLARE_HOOK(HOOK_POWER_BUTTON_CHANGE, power_button_changed, HOOK_PRIO_DEFAULT); #ifdef CONFIG_POWER_TRACK_HOST_SLEEP_STATE -__overridable void power_chipset_handle_sleep_hang( - enum sleep_hang_type hang_type) +__overridable void +power_chipset_handle_sleep_hang(enum sleep_hang_type hang_type) { CPRINTS("Warning: Detected sleep hang! Waking host up!"); host_set_single_event(EC_HOST_EVENT_HANG_DETECT); } -__override void power_chipset_handle_host_sleep_event( - enum host_sleep_event state, +__override void +power_chipset_handle_host_sleep_event(enum host_sleep_event state, struct host_sleep_event_context *ctx) { CPRINTS("Handle sleep: %d", state); @@ -546,7 +546,6 @@ __override void power_chipset_handle_host_sleep_event( sleep_set_notify(SLEEP_NOTIFY_RESUME); task_wake(TASK_ID_CHIPSET); sleep_complete_resume(ctx); - } } #endif /* CONFIG_POWER_TRACK_HOST_SLEEP_STATE */
Missing rules in vpp-selinux-policy SELinux exceptions occurring for host interfaces and with the vmxnet3 driver.
@@ -46,7 +46,7 @@ files_tmp_file(vpp_tmp_t) allow vpp_t self:capability { dac_override ipc_lock setgid sys_rawio net_raw sys_admin net_admin chown }; # too benevolent dontaudit vpp_t self:capability2 block_suspend; allow vpp_t self:process { execmem execstack setsched signal }; # too benevolent -allow vpp_t self:packet_socket { bind create setopt ioctl }; +allow vpp_t self:packet_socket { bind create setopt ioctl map }; allow vpp_t self:tun_socket { create relabelto relabelfrom }; allow vpp_t self:udp_socket { create ioctl }; allow vpp_t self:unix_dgram_socket { connect create ioctl }; @@ -96,6 +96,7 @@ dev_rw_sysfs(vpp_t) dev_read_cpuid(vpp_t) dev_rw_vfio_dev(vpp_t) dev_rw_vhost( vpp_t ) +dev_rw_generic_chr_files(vpp_t) domain_obj_id_change_exemption(vpp_t)
lt: make the RETURN_LT and RETURN_LT0 safer
lt_release(lt, (void*) resource) #define RETURN_LT(lt, result) \ + do { \ destroy_lt(lt); \ - return result + return result; \ + } while (0) #define RETURN_LT0(lt) \ + do { \ destroy_lt(lt); \ - return + return; \ + } while (0) typedef struct lt_t lt_t; typedef void (*lt_destroy_t)(void*);
added filter by VENDOR
@@ -493,6 +493,17 @@ return; } /*===========================================================================*/ /*===========================================================================*/ +static bool isoui(uint8_t *mac) +{ +static ouilist_t *zeiger; + +for(zeiger = ouilist; zeiger < ouilist +ouicount; zeiger++) + { + if(memcmp(mac, zeiger->oui, 3) == 0) return true; + } +return false; +} +/*===========================================================================*/ static bool ispartof(int plen, uint8_t *pbuff, int slen, uint8_t *sbuff) { static int p; @@ -502,7 +513,6 @@ for(p = 0; p <= slen -plen; p++) { if(memcmp(&sbuff[p], pbuff, plen) == 0) return true; } -printf("hallo\n"); return false; } /*===========================================================================*/ @@ -524,7 +534,10 @@ if(filteressidpartptr != NULL) { if(ispartof(filteressidpartlen, (uint8_t*)filteressidpartptr, zeiger->essidlen, zeiger->essid) == false) return; } - +if(filtervendorptr != 0) + { + if(isoui(zeiger->ap) == false) return; + } @@ -593,6 +606,10 @@ if(filteressidpartptr != NULL) { if(ispartof(filteressidpartlen, (uint8_t*)filteressidpartptr, zeiger->essidlen, zeiger->essid) == false) return; } +if(filtervendorptr != 0) + { + if(isoui(zeiger->ap) == false) return; + }
Use this terrible github tar.gz ball, and see what happens.
@@ -9,8 +9,9 @@ Group: Misc %endif License: MIT URL: https://github.com/indigo-dc/oidc-agent -Source0: %{name}-%{version}.tar.gz +#Source0: %{name}-%{version}.tar # use `make rpmsource` to generate the required tarball +Source0: https://github.com/indigo-dc/oidc-agent/archive/refs/tags/v%{version}.tar.gz BuildRequires: libcurl-devel >= 7.29 BuildRequires: libsodium-devel >= 1.0.14
apps/testcase/wifi_manager: add UTC of newly added public API Add UTC of wifi_manager_get_connected_config in wifi_manager
@@ -440,6 +440,37 @@ static void utc_wifi_manager_remove_config_p(void) TC_SUCCESS_RESULT(); } +static void utc_wifi_manager_get_connected_config_n(void) +{ + wifi_manager_result_e ret = WIFI_MANAGER_FAIL; + wifi_manager_ap_config_s apconfig; + ret = wifi_manager_get_connected_config(&apconfig); + if (ret == WIFI_MANAGER_SUCCESS) { + printf("====================================\n"); + printf("SSID: %s\n", apconfig.ssid); + printf("SECURITY TYPE: %d\n", apconfig.ap_auth_type); + printf("CYPTO TYPE: %d\n", apconfig.ap_crypto_type); + printf("====================================\n"); + } + TC_ASSERT_EQ("wifi_manager_get_connected_config_n", ret, WIFI_MANAGER_FAIL); + TC_SUCCESS_RESULT(); +} + +static void utc_wifi_manager_get_connected_config_p(void) +{ + wifi_manager_result_e ret = WIFI_MANAGER_FAIL; + wifi_manager_ap_config_s apconfig; + ret = wifi_manager_get_connected_config(&apconfig); + if (ret == WIFI_MANAGER_SUCCESS) { + printf("====================================\n"); + printf("SSID: %s\n", apconfig.ssid); + printf("SECURITY TYPE: %d\n", apconfig.ap_auth_type); + printf("CYPTO TYPE: %d\n", apconfig.ap_crypto_type); + printf("====================================\n"); + } + TC_ASSERT_EQ("wifi_manager_get_connected_config_p", ret, WIFI_MANAGER_SUCCESS); + TC_SUCCESS_RESULT(); +} int wifi_manager_utc(int argc, FAR char *argv[]) { @@ -462,11 +493,13 @@ int wifi_manager_utc(int argc, FAR char *argv[]) */ utc_wifi_manager_connect_ap_n(); // try to connect to ap in softap mode + utc_wifi_manager_get_connected_config_n(); utc_wifi_manager_connect_ap_p(); // change to station mode and try to connect to ap WIFITEST_WAIT; sleep(5); + utc_wifi_manager_get_connected_config_p(); utc_wifi_manager_save_config_n(); utc_wifi_manager_get_config_n();
Tweak apps/build.info for VMS A bit of quoting is all that's needed, and it doesn't hurt other platforms.
@@ -62,8 +62,8 @@ IF[{- !$disabled{apps} -}] DEPEND[openssl]=libapps.a ../libssl DEPEND[${OPENSSLSRC/.c/.o}]=progs.h - GENERATE[progs.c]=progs.pl -C $(APPS_OPENSSL) - GENERATE[progs.h]=progs.pl -H $(APPS_OPENSSL) + GENERATE[progs.c]=progs.pl "-C" $(APPS_OPENSSL) + GENERATE[progs.h]=progs.pl "-H" $(APPS_OPENSSL) # progs.pl tries to read all 'openssl' sources, including progs.c, so we make # sure things are generated in the correct order. DEPEND[progs.h]=progs.c
mancomb: Enable EFS2 and CBI support Enable EFS2 and CBI for mancomb boards. BRANCH=None TEST=Build Tested-by: Matt Wang
#undef CONFIG_UART_TX_BUF_SIZE #define CONFIG_UART_TX_BUF_SIZE 4096 +/* Vboot Config */ +#define CONFIG_CRC8 +#define CONFIG_VBOOT_EFS2 +#define CONFIG_VBOOT_HASH +#define CONFIG_VSTORE +#define CONFIG_VSTORE_SLOT_COUNT 1 +#define GPIO_PACKET_MODE_EN GPIO_EC_GSC_PACKET_MODE + +/* CBI Config */ +#define CONFIG_CROS_BOARD_INFO +#define CONFIG_BOARD_VERSION_CBI + /* Undefs because Box */ #undef CONFIG_LID_SWITCH #undef CONFIG_HIBERNATE
cstring_array_from_char_array: return empty initializes cstring_array from empty string
@@ -710,20 +710,23 @@ cstring_array *cstring_array_new_size(size_t size) { } cstring_array *cstring_array_from_char_array(char_array *str) { + if (str == NULL) return NULL; + if (str->n == 0) + return cstring_array_new(); + cstring_array *array = malloc(sizeof(cstring_array)); - if (array == NULL || str == NULL) return NULL; + if (array == NULL) return NULL; array->str = str; array->indices = uint32_array_new_size(1); + uint32_array_push(array->indices, 0); char *ptr = str->a; - if (str->n > 0) { for (uint32_t i = 0; i < str->n - 1; i++, ptr++) { if (*ptr == '\0') { uint32_array_push(array->indices, i + 1); } } - } return array; }
Fix regression introduced by IN-GROUP change.
@@ -1416,7 +1416,7 @@ do_test(_ipp_file_t *f, /* I - IPP data file */ _ippVarsGet(vars, expect->if_not_defined)) continue; - if ((found = ippFindAttribute(response, expect->name, IPP_TAG_ZERO)) != NULL && expect->in_group != ippGetGroupTag(found)) + if ((found = ippFindAttribute(response, expect->name, IPP_TAG_ZERO)) != NULL && expect->in_group && expect->in_group != ippGetGroupTag(found)) { while ((found = ippFindNextAttribute(response, expect->name, IPP_TAG_ZERO)) != NULL) if (expect->in_group == ippGetGroupTag(found))
apply hardening flags to missing rules
@@ -81,9 +81,9 @@ endif GEN_LFLAGS = $(LFLAGS) -lmicrohttpd ADD_LFLAGS = $(LFLAGS) ifdef MAC_OS -CLIENT_LFLAGS = -L$(APILIB) -largp -loidc-agent.$(LIBVERSION) +CLIENT_LFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -L$(APILIB) -largp -loidc-agent.$(LIBVERSION) else -CLIENT_LFLAGS = -L$(APILIB) -l:$(SHARED_LIB_NAME_FULL) -lseccomp +CLIENT_LFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -L$(APILIB) -l:$(SHARED_LIB_NAME_FULL) -lseccomp endif ifdef HAS_CJSON CLIENT_LFLAGS += -lcjson @@ -478,9 +478,9 @@ $(APILIB)/liboidc-agent.a: $(APILIB) $(API_OBJECTS) $(APILIB)/$(SHARED_LIB_NAME_FULL): create_picobj_dir_structure $(APILIB) $(PIC_OBJECTS) ifdef MAC_OS - @gcc -dynamiclib -fpic -Wl, -o $@ $(PIC_OBJECTS) -lc + @$(LINKER) -dynamiclib -fpic -Wl, -o $@ $(PIC_OBJECTS) -lc else - @gcc -shared -fpic -Wl,-soname,$(SONAME) -o $@ $(PIC_OBJECTS) -lc + @$(LINKER) $(shell dpkg-buildflags --get LDFLAGS) -shared -fpic -Wl,-soname,$(SONAME) -o $@ $(PIC_OBJECTS) -lc endif .PHONY: shared_lib
Fix build error on custom app
C97B760822046CF100A05C8D /* kiwisolver.cpython-37m-darwin.so in Copy kiwisolver */ = {isa = PBXBuildFile; fileRef = C97B760422046CB700A05C8D /* kiwisolver.cpython-37m-darwin.so */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; C97B760A22046CFA00A05C8D /* Info.plist in Copy kiwisolver */ = {isa = PBXBuildFile; fileRef = C97B760222046C8700A05C8D /* Info.plist */; }; C97B760C22046DFB00A05C8D /* kiwisolver.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C97B760022046C7500A05C8D /* kiwisolver.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - C97E49C92213515000ACB42C /* EditorViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C94CC2D021FCF59D005E9556 /* EditorViewController.swift */; }; C97E49CF2213840800ACB42C /* NSImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = C97E49CE2213840800ACB42C /* NSImage.swift */; }; C97E869C221B764700D2F7BE /* Info.plist in Copy sparse */ = {isa = PBXBuildFile; fileRef = C97E869B221B764600D2F7BE /* Info.plist */; }; C97E869E221B767C00D2F7BE /* Info.plist in Copy _sas */ = {isa = PBXBuildFile; fileRef = C97E869D221B767C00D2F7BE /* Info.plist */; }; C91321D921FB684E00437845 /* PySelector.swift in Sources */, C9CEE20521EB95C100316D3C /* String.swift in Sources */, C9CEE20121EB8FFD00316D3C /* PyAlert.swift in Sources */, - C97E49C92213515000ACB42C /* EditorViewController.swift in Sources */, C9CEE20421EB95BE00316D3C /* UIWindow.swift in Sources */, C9CEE21021EB96D300316D3C /* AppDelegate.swift in Sources */, C93CA8B822022E6E008DD049 /* QuickLookHelper.swift in Sources */,
Ubuntu Eon build dependencies and version numbers Add updated list of dependencies to build on Ubuntu Eon (19.10) Add Ubuntu version numbers for increased clarity Capitalize release names to match official branding
@@ -329,7 +329,7 @@ To build the toolchain from source, one needs: ### Install build dependencies ``` -# Trusty and older +# Trusty (14.04 LTS) and older VER=trusty echo "deb http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main deb-src http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main" | \ @@ -337,10 +337,14 @@ deb-src http://llvm.org/apt/$VER/ llvm-toolchain-$VER-3.7 main" | \ wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get update -# For bionic +# For Bionic (18.04 LTS) sudo apt-get -y install bison build-essential cmake flex git libedit-dev \ libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev +# For Eon (19.10) +sudo apt install -y bison build-essential cmake flex git libedit-dev \ + libllvm7 llvm-7-dev libclang-7-dev python zlib1g-dev libelf-dev + # For other versions sudo apt-get -y install bison build-essential cmake flex git libedit-dev \ libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev
BUFR encoding memory leaks (part 6)
@@ -2949,8 +2949,10 @@ static int process_elements(grib_accessor* a, int flag, long onlySubset, long st self->numericValues = grib_vdarray_new(c, 1000, 1000); self->stringValues = grib_vsarray_new(c, 10, 10); - if (self->elementsDescriptorsIndex) + if (self->elementsDescriptorsIndex) { + grib_viarray_delete_content(c, self->elementsDescriptorsIndex); grib_viarray_delete(c, self->elementsDescriptorsIndex); + } self->elementsDescriptorsIndex = grib_viarray_new(c, 100, 100); } if (flag == PROCESS_NEW_DATA) {
gitlab-ci: Move shared tags to a default section. Move shared properties into a `default` stanza per current style recommendations.
+default: + tags: + - docker # Image from https://hub.docker.com/_/gcc/ based on Debian image: gcc @@ -15,8 +18,6 @@ autoconf: paths: - "lib/*.o" - "lib/.libs/*.o" - tags: - - docker cmake: stage: build @@ -28,5 +29,3 @@ cmake: - mkdir build - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release - cmake --build build - tags: - - docker
Bump version to reflect more structural changes
"license": "MIT", "tags": [ "cpp", "neko", "nme", "opengl", "sdl", "android", "ios" ], "description": "NME provides a backend for native iOS, Android, Windows, Mac and Linux applications, using a Flash inspired API", - "version": "5.7.0", - "binaryversion": "93", + "version": "6.0.0", + "binaryversion": "94", "releasenote": "see Changes.md", "contributors": [ "gamehaxe" ], "dependencies": {}
fix: add event unregister comment
@@ -120,6 +120,7 @@ void wifi_init_sta(void) ESP_LOGE(TAG, "UNEXPECTED EVENT"); } + /* The event will not be processed after unregister */ ESP_ERROR_CHECK(esp_event_handler_instance_unregister(IP_EVENT, IP_EVENT_STA_GOT_IP, instance_got_ip)); ESP_ERROR_CHECK(esp_event_handler_instance_unregister(WIFI_EVENT, ESP_EVENT_ANY_ID, instance_any_id)); vEventGroupDelete(s_wifi_event_group);
Fix minor documentation errors. When I migrated the predefined library to manifest files, I used a script to do the rollover. It seems that the script didn't format list elements correctly, and it went unnoticed.
@@ -74,8 +74,9 @@ predefined ByteString { ### ### On error, this generates an empty `ByteString`. Error conditions are: ### - ### * Either `start` or `stop` is out of range. * The `start` is larger than - ### the `stop` (reversed). + ### * Either `start` or `stop` is out of range. + ### + ### * The `start` is larger than the `stop` (reversed). public define slice(start: *Integer=0, stop: *Integer=-1): ByteString } @@ -150,9 +151,17 @@ predefined File { ### Attempt to open `path` using the `mode` given. `mode` may be one of the ### following: ### - ### * `"r"` (read only, must exist) * `"w"` (write only) * `"a"` (append, - ### create if not exist) * `"r+"` (read+write, must exist) * `"w+"` - ### (read+write, creates an empty file if needed) * `"a+"` (read+append) + ### * `"r"` (read only, must exist) + ### + ### * `"w"` (write only) + ### + ### * `"a"` (append, create if not exist) + ### + ### * `"r+"` (read+write, must exist) + ### + ### * `"w+"` (read+write, creates an empty file if needed) + ### + ### * `"a+"` (read+append) ### ### # Errors ### @@ -365,8 +374,9 @@ predefined List[A] { ### ### On error, this generates an empty `List`. Error conditions are: ### - ### * Either `start` or `stop` is out of range. * The `start` is larger than - ### the `stop` (reversed). + ### * Either `start` or `stop` is out of range. + ### + ### * The `start` is larger than the `stop` (reversed). public define slice(start: *Integer=0, stop: *Integer=-1): List[A] ### Inserts value at the front of self, moving all other elements to the @@ -505,8 +515,11 @@ predefined String { ### ### On error, this generates an empty `String`. Error conditions are: ### - ### * Either `start` or `stop` is out of range. * The resulting slice would - ### not be valid utf-8. * The `start` is larger than the `stop` (reversed). + ### * Either `start` or `stop` is out of range. + ### + ### * The resulting slice would not be valid utf-8. + ### + ### * The `start` is larger than the `stop` (reversed). public define slice(start: *Integer=0, stop: *Integer=-1): String ### This attempts to split `self` using `split_by`, with a default value of
readme UPDATE mention python bindings
@@ -195,6 +195,7 @@ If you are using `cmake` in you project, it is also possible to use the provided There are no bindings for other languages directly in this project but they are available separately. +* [Python](https://github.com/CESNET/libyang-python/) * [C++](https://github.com/CESNET/libyang-cpp/) * [Rust](https://github.com/rwestphal/yang2-rs/)
Fix false positive gcc warning on legitimate use of `strndup`.
@@ -124,6 +124,10 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set(CMAKE_C_FLAGS "-Wno-stringop-truncation ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-Wno-stringop-truncation ${CMAKE_CXX_FLAGS}") endif() + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 11.0) + set(CMAKE_C_FLAGS "-Wno-error=stringop-overread ${CMAKE_C_FLAGS}") + set(CMAKE_CXX_FLAGS "-Wno-error=stringop-overread ${CMAKE_CXX_FLAGS}") + endif() endif() option(ENABLE_MORE_WARNINGS "whether to enable more compiler warnings." OFF)
py/compile: Check that arch is set when compiling native, viper or asm.
@@ -852,6 +852,18 @@ STATIC bool compile_built_in_decorator(compiler_t *comp, int name_len, mp_parse_ compile_syntax_error(comp, name_nodes[1], "invalid micropython decorator"); } + #if MICROPY_DYNAMIC_COMPILER + if (*emit_options == MP_EMIT_OPT_NATIVE_PYTHON || *emit_options == MP_EMIT_OPT_VIPER) { + if (emit_native_table[mp_dynamic_compiler.native_arch] == NULL) { + compile_syntax_error(comp, name_nodes[1], "invalid arch"); + } + } else if (*emit_options == MP_EMIT_OPT_ASM) { + if (emit_asm_table[mp_dynamic_compiler.native_arch] == NULL) { + compile_syntax_error(comp, name_nodes[1], "invalid arch"); + } + } + #endif + return true; }
Clear the pointer to the socket when closing it also in case of an ungraceful operation. This fixes a use-after-free bug found and reported by Taylor Brandstetter from Google by testing the userland stack.
#if defined(__FreeBSD__) && !defined(__Userspace__) #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 363323 2020-07-19 12:34:19Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 363456 2020-07-23 19:43:49Z tuexen $"); #endif #include <netinet/sctp_os.h> @@ -4096,6 +4096,11 @@ sctp_inpcb_free(struct sctp_inpcb *inp, int immediate, int from) cnt = 0; LIST_FOREACH_SAFE(asoc, &inp->sctp_asoc_list, sctp_tcblist, nasoc) { SCTP_TCB_LOCK(asoc); + if (immediate != SCTP_FREE_SHOULD_USE_GRACEFUL_CLOSE) { + /* Disconnect the socket please */ + asoc->sctp_socket = NULL; + SCTP_ADD_SUBSTATE(asoc, SCTP_STATE_CLOSED_SOCKET); + } if (asoc->asoc.state & SCTP_STATE_ABOUT_TO_BE_FREED) { if (asoc->asoc.state & SCTP_STATE_IN_ACCEPT_QUEUE) { SCTP_CLEAR_SUBSTATE(asoc, SCTP_STATE_IN_ACCEPT_QUEUE);
BugID:19620416: Remove cli dependence in mqttapp's aos.mk
@@ -5,10 +5,14 @@ $(NAME)_VERSION := 1.0.0 $(NAME)_SUMMARY := mqtt examples $(NAME)_SOURCES := app_entry.c -$(NAME)_COMPONENTS := linkkit_sdk_c netmgr cjson cli +$(NAME)_COMPONENTS := linkkit_sdk_c netmgr cjson # MQTTAPP_CONFIG_TEST_LOOP ?= y +ifneq ($(HOST_MCU_FAMILY),mcu_esp8266) +$(NAME)_COMPONENTS += cli +endif + ifeq ($(MQTTAPP_CONFIG_CASE_DEFAULT),y) $(NAME)_SOURCES += mqtt_example.c endif
remove printf mixin in original config
@@ -149,7 +149,6 @@ class FireSimRocketChipOctaCoreConfig extends Config( // SHA-3 accelerator config class FireSimRocketChipSha3L2Config extends Config( new WithInclusiveCache ++ - new sha3.WithSha3Printf ++ new sha3.WithSha3Accel ++ new WithNBigCores(1) ++ new FireSimRocketChipConfig)
remove new menu item hilighting from the 17.0 menu items
@@ -656,13 +656,11 @@ houdiniEngineCreateUI() menuItem -label "Update Houdini Shelf" -imageOverlayLabel "UHS" - -version $mayaVersion -annotation "Replace your old Houdini shelf with the current version " -command "houdiniEngine_updateShelf"; menuItem -label "Update Houdini Tool Shelf" -imageOverlayLabel "UTS" - -version $mayaVersion -annotation "Rebuild your Tool shelf from the contents of the Tool directory " -command "houdiniEngine_updateToolsShelf"; @@ -687,22 +685,18 @@ houdiniEngineCreateUI() -command "houdiniEngine_syncSelectedAsset"; menuItem -label "Bake Asset" -imageOverlayLabel "BA" - -version $mayaVersion -annotation "Tear off a copy of the asset's current output nodes" -command "houdiniEngine_bakeSelectedAssets"; menuItem -label "Remove Asset From History" -imageOverlayLabel "RAH" -annotation "Remove this asset and its inputGeometry nodes and reconnect history across the gap" - -version $mayaVersion -command "houdiniEngine_removeSelectedHistory"; menuItem -label "Add Asset To Mesh History" -imageOverlayLabel "AAH" - -version $mayaVersion -annotation "Apply the selected asset as construction history to the selected mesh" -command "houdiniEngine_addSelectedHistory"; menuItem -label "Delete History" -imageOverlayLabel "DH" - -version $mayaVersion -annotation "Delete construction history including any houdiniAsset nodes\n" -command "houdiniEngine_deleteSelectedHistory"; menuItem -label "Reload Asset" @@ -737,26 +731,22 @@ houdiniEngineCreateUI() menuItem -label "Show/Hide" - -version $mayaVersion -subMenu true -tearOff true; menuItem -label "Hide All Assets in Outliner" -imageOverlayLabel "HAO" -annotation "Mark all asset nodes as hidden in the outliner" - -version $mayaVersion -command "houdiniEngine_showOutliner 0 0"; menuItem -label "Hide History Assets in Outliner" -imageOverlayLabel "HHO" -annotation "Mark all history asset nodes as hidden in the outliner" - -version $mayaVersion -command "houdiniEngine_showOutliner 0 1"; menuItem -label "Show All Assets in Outliner" -imageOverlayLabel "SAO" -annotation "Mark all asset nodes as visible in the outliner" - -version $mayaVersion -command "houdiniEngine_showOutliner 1 0"; setParent -menu ..;