message
stringlengths
6
474
diff
stringlengths
8
5.22k
Handle INVALID_SIGNATURE instead of INVALID_PADDING in rsa_verify_wrap()
@@ -215,9 +215,9 @@ static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, sig, sig_len ); if( status != PSA_SUCCESS ) { - if ( status == PSA_ERROR_INVALID_PADDING ) + if ( status == PSA_ERROR_INVALID_SIGNATURE ) { - ret = MBEDTLS_ERR_RSA_INVALID_PADDING; + ret = MBEDTLS_ERR_RSA_VERIFY_FAILED; } else {
hw/mcu/nrf5340: Fix build with 6pf lfxo trim
@@ -92,7 +92,7 @@ hal_system_clock_start(void) #if MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, external) NRF_OSCILLATORS->XOSC32KI.INTCAP = OSCILLATORS_XOSC32KI_INTCAP_INTCAP_External; #elif MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, c6pf) - NRF_OSCILLATORS->XOSC32KI.INTCAP = OSCILLATORS_XOSC32KI_INTCAP_INTCAP_C6PF + NRF_OSCILLATORS->XOSC32KI.INTCAP = OSCILLATORS_XOSC32KI_INTCAP_INTCAP_C6PF; #elif MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, c7pf) NRF_OSCILLATORS->XOSC32KI.INTCAP = OSCILLATORS_XOSC32KI_INTCAP_INTCAP_C7PF; #elif MYNEWT_VAL_CHOICE(MCU_LFCLK_XO_INTCAP, c9pf)
ci: only build gcc once
@@ -42,6 +42,7 @@ jobs: run: 'C=gcc-10 CXX=g++-10 meson test -v -C pkg-builds/${{matrix.builds}}' working-directory: build/ - name: Build GCC + if: ${{matrix.builds == 'mlibc'}} run: 'xbstrap install-tool gcc' working-directory: build/
Travis: Install specific version of cmake format
@@ -205,7 +205,7 @@ before_install: sudo apt-get install libev-dev sudo apt-get install libxerces-c-dev sudo apt-get install moreutils # contains `sponge` required by `reformat-cmake` - sudo pip install --upgrade cmake_format + sudo pip install --upgrade cmake_format==0.3.6 fi #
Allow table.insert to work with hash part too
@@ -1019,6 +1019,7 @@ local function generate_lvalue_write(lvalue, exp_cvalue, ctx) }) elseif tag == coder.Lvalue.ArraySlot then + -- TODO: GC local typ = lvalue.var._type local ui = ctx:new_cvar("lua_Unsigned", "ui") local arrslot = ctx:new_cvar("TValue *", "arrslot") @@ -1411,27 +1412,22 @@ local function generate_exp_builtin_table_insert(exp, ctx) local cstats_t, cvalue_t = generate_exp(args[1], ctx) local cstats_v, cvalue_v = generate_exp(args[2], ctx) local ui = ctx:new_cvar("lua_Unsigned", "ui") - local size = ctx:new_cvar("lua_Unsigned", "size") local slot = ctx:new_cvar("TValue *", "slot") - local cond_gc = gc_cond_gc(ctx) + local k = ctx:new_cvar("TValue") + --local cond_gc = gc_cond_gc(ctx) --TODO local cstats = util.render([[ ${CSTATS_T} ${CSTATS_V} ${UI_DECL} = luaH_getn(${CVALUE_T}); - ${SIZE_DECL} = ${CVALUE_T}->sizearray; - if (TITAN_UNLIKELY(${SIZE} <= ${UI})) { - if (${SIZE} < 8) { - /* avoid infinite loop if sizearray == 0 */ - ${SIZE} = 8; - } - while (${SIZE} <= ${UI}) { - ${SIZE} = ${SIZE}*2; - } - luaH_resizearray(L, ${CVALUE_T}, ${SIZE}); + ${SLOT_DECL}; + if (TITAN_LIKELY(${UI} < ${CVALUE_T}->sizearray)) { + ${SLOT} = &${CVALUE_T}->array[${UI}]; + } else { + ${K_DECL}; + setivalue(&${K}, ${UI}+1); + ${SLOT} = luaH_newkey(L, ${CVALUE_T}, &${K}); } - ${SLOT_DECL} = &${CVALUE_T}->array[${UI}]; ${SET_SLOT} - ${COND_GC} ]], { CSTATS_T = cstats_t, CVALUE_T = cvalue_t, @@ -1439,11 +1435,11 @@ local function generate_exp_builtin_table_insert(exp, ctx) CVALUE_V = cvalue_v, UI = ui.name, UI_DECL = c_declaration(ui), - SIZE = size.name, - SIZE_DECL = c_declaration(size), + SLOT = slot.name, SLOT_DECL = c_declaration(slot), + K = k.name, + K_DECL = c_declaration(k), SET_SLOT = set_heap_slot(args[2]._type, slot.name, cvalue_v, cvalue_t), - COND_GC = cond_gc, }) return cstats, "VOID" end
[chainmaker]add sdk Deinit
@@ -171,6 +171,7 @@ result = BoatHlchainmakerContractQuery(&tx_ptr, "find_by_file_hash","fact", &que /* step-6: chainmaker transaction structure Deinitialization */ BoatHlchainmakerTxDeInit(&tx_ptr); - +/* step-7: Boat SDK Deinitialization */ + BoatIotSdkDeInit(); return 0; }
Updates zlib download for Android build.
@@ -87,7 +87,7 @@ RUN curl -L -O http://downloads.sourceforge.net/libuuid/libuuid-1.0.3.tar.gz && # zlib -RUN curl -L -O http://zlib.net/zlib-1.2.10.tar.gz && \ +RUN curl -L -O http://zlib.net/zlib-1.2.11.tar.gz && \ tar -xvzf zlib-*.tar.gz && \ cd zlib-* && \ ./configure --prefix=/build/output/zlib && make && make install
crypto-native: fix ARM compilatiion flags Type: fix
@@ -25,7 +25,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*") endif() if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)") - list(APPEND VARIANTS "armv8\;-march=native") + list(APPEND VARIANTS "armv8\;-march=armv8.1-a+crc+crypto") set (COMPILE_FILES aes_cbc.c) set (COMPILE_OPTS -Wall -fno-common) endif()
[io] fix siconos_filter use of dataset.chunk
@@ -98,9 +98,11 @@ class CopyVisitor(object): # Determine chunks argument if obj.__class__ == h5py.Dataset: - chunks = obj.chunks - if np.any(np.array(chunks) > np.array(obj.shape)): chunks = None + if (hasattr(obj, 'chunks') + and obj.chunks is not None + and np.all(np.array(obj.chunks) <= np.array(obj.shape))): + chunks = obj.chunks shape = obj.shape time_idx = None
[Libc] Add some errno to dlib.
#define EPERM 1 /* Not super-user */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ +#define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ #define ENFILE 23 /* Too many open files in system */ #define ERANGE 34 /* Math result not representable */ #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ #define EAFNOSUPPORT 97 /* Address family not supported by protocol */ #define EADDRINUSE 98 /* Address already in use */ +#define EADDRNOTAVAIL 99 /* Cannot assign requested address */ #define ENETDOWN 100 /* Network is down */ #define ENETUNREACH 101 /* Network is unreachable */ #define ECONNABORTED 103 /* Software caused connection abort */ #define ECONNRESET 104 /* Connection reset by peer */ #define ENOBUFS 105 /* No buffer space available */ +#define EISCONN 106 /* Transport endpoint is already connected */ #define ENOTCONN 107 /* Transport endpoint is not connected */ #define EINPROGRESS 115 /* Operation now in progress */ #define ETIMEDOUT 116 /* Connection timed out */
[OpenGL] Always use QueryDrawable
@@ -110,20 +110,10 @@ static void do_imgui_swap(void *dpy, void *drawable) unsigned int width = -1, height = -1; - // glXQueryDrawable is buggy, use XGetGeometry instead Window unused_window; int unused; - static bool xgetgeom_failed = true; // FIXME XGetGeometry may not like the drawable so disable for now - if (xgetgeom_failed || !g_x11->XGetGeometry((Display*)dpy, - (Window)drawable, &unused_window, - &unused, &unused, - &width, &height, - (unsigned int*) &unused, (unsigned int*) &unused)) { - - xgetgeom_failed = true; glx.QueryDrawable(dpy, drawable, GLX_WIDTH, &width); glx.QueryDrawable(dpy, drawable, GLX_HEIGTH, &height); - } /*GLint vp[4]; glGetIntegerv (GL_VIEWPORT, vp); width = vp[2];
Compact 2 format functions to 1 In translate_ciphers.py there were 2 format functions that were virtually identical and a check was made beforehand to decide which one to call. Now the check is made inside a single function to reduce duplicate code
@@ -97,33 +97,23 @@ def translate_ossl(m_cipher): return m_cipher -def format_g(m_ciphers): - #ciphers = (re.findall(r"TLS-.+\s*\\", m_ciphers)) - m_ciphers = m_ciphers.split() - g_ciphers = [] - for i in m_ciphers: - g_ciphers.append(translate_gnu(i)) - return " ".join(g_ciphers) - -def format_o(m_ciphers): - m_ciphers = m_ciphers.split() - o_ciphers = [] - for i in m_ciphers: - o_ciphers.append(translate_ossl(i)) - return " ".join(o_ciphers) +def format(mode, ciphers): + ciphers = ciphers.split() + t_ciphers = [] + if mode == "g": + for i in ciphers: + t_ciphers.append(translate_gnu(i)) + if mode == "o": + for i in ciphers: + t_ciphers.append(translate_ossl(i)) + return " ".join(t_ciphers) def main(): # print command line arguments if len(sys.argv) <= 2: exit(1) - if sys.argv[1] == "g": - print(format_g(sys.argv[2])) - exit(0) - elif sys.argv[1] == "o": - print(format_o(sys.argv[2])) - exit(0) else: - exit(1) + print(format(sys.argv[1], sys.argv[2])) if __name__ == "__main__": main()
doccords: dprint improve default arm core docs the logic for getting the docs on the default arm of a core is now more similar to how other arm docs are gotten, rather than having its own system. there is still more room for improvement
:> arm-doc: docs written above the the arm :> product-doc: docs for the product of the arm :> core-doc: docs for the default arm of the core produced by the arm +:> this will be the first of the arm-doc or product-doc on the default +:> arm. maybe this should be recursive and/or give both but its a decision +:> ill leave for later ++ all-arm-docs |= [gen=hoon sut=type name=tape] ~? > debug %all-arm-docs ^- [what what what] =+ hoon-type=(~(play ut sut) gen) =+ arm-prod=(arm-product-docs hoon-type `@tas`(crip name)) - ~? >> debug arm-prod + ~? >> debug :- %arm-prod arm-prod |^ :: check arm-prod to determine how many layers to look into the type :: for core docs == :> grabs the first doc for the default arm of a core :> - :> this could end up being an arm doc or a product doc. or it might even - :> produce another core with docs in that. should I care? + :> this could end up being an arm doc or a product doc. ++ extract |= sut=type ^- what - ?: ?=([%core *] sut) - (what-from-hint (~(play ut sut) [%limb %$])) - ~ + ?. ?=([%core *] sut) + ~? > debug %no-nested-core ~ + ~? > debug %found-nested-core + =+ carm=(find-arm-in-coil %$ q.sut) + ?~ carm ~? > debug %empty-carm ~ + ~? > debug %found-default-arm + =+ carm-type=(~(play ut p.sut) u.carm) + (what-from-hint carm-type) -- :: :> returns an overview for a cores arms and chapters
Fix no-des Disable a recently added CMS test in the case of no-des.
@@ -640,8 +640,8 @@ subtest "CMS Decrypt message encrypted with OpenSSL 1.1.1\n" => sub { plan tests => 1; SKIP: { - skip "EC isn't supported in this build", 1 - if disabled("ec"); + skip "EC or DES isn't supported in this build", 1 + if disabled("ec") || disabled("des"); my $out = "smtst.txt";
[core] parse conf cmds with SHELL or /bin/sh (thx ryandesign) Use $SHELL -c to execute commands if SHELL is set and is not set to /usr/bin/false or /bin/false, else use /bin/sh -c x-ref:
@@ -2299,6 +2299,9 @@ int config_parse_cmd(server *srv, config_t *context, const char *cmd) { char *shell = getenv("SHELL"); char *args[4]; pid_t pid; + if (shell && (0 == strcmp(shell, "/usr/bin/false") + || 0 == strcmp(shell, "/bin/false"))) + shell = NULL; *(const char **)&args[0] = shell ? shell : "/bin/sh"; *(const char **)&args[1] = "-c"; *(const char **)&args[2] = cmd;
Use fixedarray instead of spans
@@ -31,7 +31,10 @@ public unsafe partial struct MobHunt { [FieldOffset(0x8)] public fixed byte unkArray[18]; [FieldOffset(0x1A)] public fixed byte MarkID[18]; + + [FixedArray(typeof(KillCounts), 18)] [FieldOffset(0x2C)] public fixed int CurrentKills[18 * 5]; + [FieldOffset(0x194)] public int ObtainedFlags; [StaticAddress("48 8D 0D ?? ?? ?? ?? 0F B6 50 08 E8 ?? ?? ?? ?? 84 C0 74 16", 3)] @@ -42,11 +45,11 @@ public unsafe partial struct MobHunt return (ObtainedFlags & 1 << index) != 0; } - public Span<int> GetKillCountsForIndex(int index) - { - fixed (int* ptr = CurrentKills) + [StructLayout(LayoutKind.Explicit, Size = 0x14)] + public struct KillCounts { - return new Span<int>(ptr + 5 * index, 5); - } + [FieldOffset(0x00)] public fixed int Counts[5]; + + public int this[int index] => Counts[index]; } } \ No newline at end of file
SOVERSION bump to version 2.8.12
@@ -63,7 +63,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 8) -set(LIBYANG_MICRO_SOVERSION 11) +set(LIBYANG_MICRO_SOVERSION 12) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION}) set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
SR: Use multiple commands instead of single one
Mountpoint: user/test/ls < kdb set user/test/ls/level1 'one' + < kdb ls user/test/ls + < kdb set user/test/ls/level1/level2 'two' + < kdb set user/test/ls/the 'roots' + < kdb ls user/test/ls + < kdb set user/test/ls/the/next/level
Added test code for zero jitting
@@ -90,6 +90,9 @@ int main(int argc, char* argv[]) for (i=0; i < desc.m; i++ ) { for (j=0; j < desc.n; j++) { a[j+desc.lda*i] = 1.0 * rand(); + if (desc.zero_source) { + b[j+desc.ldb*i] = 1.0 * rand(); + } } } @@ -111,7 +114,13 @@ int main(int argc, char* argv[]) for (i=0; i < desc.m; i++ ) { for (j=0; j < desc.n; j++) { - if ( (a[j+desc.lda*i] - b[j+desc.ldb*i]) > 0.000000001 ) { + if (desc.zero_source) { + if (b[j+desc.ldb*i] > 0.00000000) { + printf("ERROR!!!\n"); + error = 1; + } + } + else if ( (a[j+desc.lda*i] - b[j+desc.ldb*i]) > 0.000000001 ) { printf("ERROR!!!\n"); error = 1; }
esp_timer: fix the bug that when timeout of timer happens try to run callback, and high priority task delete the timer and break the callback
@@ -300,8 +300,10 @@ static void timer_process_alarm(esp_timer_dispatch_t dispatch_method) #if WITH_PROFILING uint64_t callback_start = now; #endif + esp_timer_cb_t callback = it->callback; + void* arg = it->arg; timer_list_unlock(); - (*it->callback)(it->arg); + (*callback)(arg); timer_list_lock(); now = esp_timer_impl_get_time(); #if WITH_PROFILING
Fixed seg-fault. Compiles and runs for full dataset.
@@ -51,10 +51,8 @@ void SoloReadFeature::record(SoloReadBarcode &soloBar, uint nTr, set<uint32> &re vector<array<uint64,2>> readSJs; - set<uint32> *readGe; - if (featureType==0) { - readGe = &readGene; - } else if (featureType==2) { + set<uint32> *readGe=&readGene; //for featureType==0 + if (featureType==2) { readGe = &readGeneFull; };
Use stored TCP address for callback.
@@ -2712,6 +2712,11 @@ serviced_tcp_callback(struct comm_point* c, void* arg, int error, { struct serviced_query* sq = (struct serviced_query*)arg; struct comm_reply r2; +#ifdef USE_DNSTAP + struct waiting_tcp* w = (struct waiting_tcp*)sq->pending; + struct pending_tcp* pend_tcp = (struct pending_tcp*)w->next_waiting; + struct port_if* pi = pend_tcp->pi; +#endif sq->pending = NULL; /* removed after this callback */ if(error != NETEVENT_NOERROR) log_addr(VERB_QUERY, "tcp error for address", @@ -2726,19 +2731,12 @@ serviced_tcp_callback(struct comm_point* c, void* arg, int error, if(error==NETEVENT_NOERROR && sq->outnet->dtenv && (sq->outnet->dtenv->log_resolver_response_messages || sq->outnet->dtenv->log_forwarder_response_messages)) { - if(addr_is_ip6(&sq->addr, sq->addrlen)) { - log_addr(VERB_ALGO, "response from upstream", &sq->addr, sq->addrlen); - log_addr(VERB_ALGO, "to local addr", &sq->outnet->ip6_ifs->addr, sq->outnet->ip6_ifs->addrlen); - dt_msg_send_outside_response(sq->outnet->dtenv, &sq->addr, &sq->outnet->ip6_ifs->addr, - c->type, sq->zone, sq->zonelen, sq->qbuf, sq->qbuflen, - &sq->last_sent_time, sq->outnet->now_tv, c->buffer); - } else { log_addr(VERB_ALGO, "response from upstream", &sq->addr, sq->addrlen); - log_addr(VERB_ALGO, "to local addr", &sq->outnet->ip4_ifs->addr, sq->outnet->ip4_ifs->addrlen); - dt_msg_send_outside_response(sq->outnet->dtenv, &sq->addr, &sq->outnet->ip4_ifs->addr, - c->type, sq->zone, sq->zonelen, sq->qbuf, sq->qbuflen, - &sq->last_sent_time, sq->outnet->now_tv, c->buffer); - } + log_addr(VERB_ALGO, "to local addr", &pi->addr, pi->addrlen); + dt_msg_send_outside_response(sq->outnet->dtenv, &sq->addr, + &pi->addr, c->type, sq->zone, sq->zonelen, sq->qbuf, + sq->qbuflen, &sq->last_sent_time, sq->outnet->now_tv, + c->buffer); } #endif if(error==NETEVENT_NOERROR && sq->status == serviced_query_TCP_EDNS &&
fix accounting of abandoned pages
@@ -1104,6 +1104,7 @@ static bool mi_segment_check_free(mi_segment_t* segment, size_t slices_needed, s if (mi_page_all_free(page)) { // if this page is all free now, free it without adding to any queues (yet) mi_assert_internal(page->next == NULL && page->prev==NULL); + _mi_stat_decrease(&tld->stats->pages_abandoned, 1); segment->abandoned--; slice = mi_segment_page_clear(page, tld); // re-assign slice due to coalesce! mi_assert_internal(!mi_slice_is_used(slice));
Include "tools" into source tarball The Makefile now includes AFL support files which require the "tools" directory to be present in the distribution tarball. Well, we should put integration testing tools there anyway for all make targets to work. So just add this directory to tarball. This fixes distribution packaging.
@@ -467,6 +467,7 @@ dist: rsync -avz gradle $(VERSION) rsync -avz jni $(VERSION) rsync -avz --exclude 'tests/soter/nist-sts/assess' tests $(VERSION) + rsync -avz tools $(VERSION) rsync -avz CHANGELOG.md $(VERSION) rsync -avz LICENSE $(VERSION) rsync -avz Makefile $(VERSION)
docs/library/usocket: Make xref to uerrno explicitly a module reference.
@@ -99,7 +99,7 @@ Functions of error in this function. MicroPython doesn't have ``socket.gaierror`` and raises OSError directly. Note that error numbers of `getaddrinfo()` form a separate namespace and may not match error numbers from - `uerrno` module. To distinguish `getaddrinfo()` errors, they are + the :mod:`uerrno` module. To distinguish `getaddrinfo()` errors, they are represented by negative numbers, whereas standard system errors are positive numbers (error numbers are accessible using ``e.args[0]`` property from an exception object). The use of negative values is a provisional
Add Size != operator
@@ -33,5 +33,6 @@ namespace blit { inline Size operator* (Size lhs, const float a) { lhs *= a; return lhs; } inline Size operator* (Size lhs, const int a) { lhs *= a; return lhs; } inline bool operator== (Size lhs, Size rhs) { return lhs.w == rhs.w && lhs.h == rhs.h; } + inline bool operator!= (Size lhs, Size rhs) { return lhs.w != rhs.w || lhs.h != rhs.h; } } \ No newline at end of file
esp32/test: Reduces a unit test execution time
@@ -343,19 +343,21 @@ TEST_CASE("disable source trigger behavior", "[deepsleep]") static RTC_DATA_ATTR struct timeval start; static void trigger_deepsleep(void) { - printf("Trigger deep sleep. Waiting 30 sec ...\n"); + printf("Trigger deep sleep. Waiting for 10 sec ...\n"); // Simulate the dispersion of the calibration coefficients at start-up. // Corrupt the calibration factor. - esp_clk_slowclk_cal_set(esp_clk_slowclk_cal_get() - 1000000); + esp_clk_slowclk_cal_set(esp_clk_slowclk_cal_get() / 2); esp_set_time_from_rtc(); // Delay for time error accumulation. - vTaskDelay(30000/portTICK_RATE_MS); + vTaskDelay(10000/portTICK_RATE_MS); // Save start time. Deep sleep. gettimeofday(&start, NULL); esp_sleep_enable_timer_wakeup(1000); + // In function esp_deep_sleep_start() uses function esp_sync_counters_rtc_and_frc() + // to prevent a negative time after wake up. esp_deep_sleep_start(); } @@ -371,4 +373,4 @@ static void check_time_deepsleep(void) TEST_ASSERT_MESSAGE(dt_ms > 0, "Time in deep sleep is negative"); } -TEST_CASE_MULTIPLE_STAGES("check a time after wakeup from deep sleep", "[deepsleep][reset=DEEPSLEEP_RESET][timeout=60]", trigger_deepsleep, check_time_deepsleep); +TEST_CASE_MULTIPLE_STAGES("check a time after wakeup from deep sleep", "[deepsleep][reset=DEEPSLEEP_RESET]", trigger_deepsleep, check_time_deepsleep);
docs: lyd_validate_*(): clarify the extent of possible data modification
@@ -400,7 +400,10 @@ LY_ERR lyd_parse_ext_op(const struct lysc_ext_instance *ext, struct lyd_node *pa /** * @brief Fully validate a data tree. * - * @param[in,out] tree Data tree to recursively validate. May be changed by validation. + * The data tree is modified in-place. As a result of the validation, some data might be removed + * from the tree. In that case, the removed items are freed, not just unlinked. + * + * @param[in,out] tree Data tree to recursively validate. May be changed by validation, might become NULL. * @param[in] ctx libyang context. Can be NULL if @p tree is set. * @param[in] val_opts Validation options (@ref datavalidationoptions). * @param[out] diff Optional diff with any changes made by the validation. @@ -412,7 +415,10 @@ LY_ERR lyd_validate_all(struct lyd_node **tree, const struct ly_ctx *ctx, uint32 /** * @brief Fully validate a data tree of a module. * - * @param[in,out] tree Data tree to recursively validate. May be changed by validation. + * The data tree is modified in-place. As a result of the validation, some data might be removed + * from the tree. In that case, the removed items are freed, not just unlinked. + * + * @param[in,out] tree Data tree to recursively validate. May be changed by validation, might become NULL. * @param[in] module Module whose data (and schema restrictions) to validate. * @param[in] val_opts Validation options (@ref datavalidationoptions). * @param[out] diff Optional diff with any changes made by the validation.
router_add_listener: fix address check to be only for IP sockets
@@ -947,7 +947,7 @@ router_add_listener( struct addrinfo *lswalk; int addrcnt; - if (saddrs == NULL) { + if (saddrs == NULL && (ctype == CON_UDP || ctype == CON_TCP)) { char msg[256]; snprintf(msg, sizeof(msg), "invalid listener %s for port %d", ip, port); return ra_strdup(rtr->a, msg);
added new tool wlanhashhcx
@@ -36,6 +36,7 @@ Detailed description | wlanhcx2john | Converts hccapx to format expected by John the Ripper | | wlanhcxinfo | Shows detailed info from contents of hccapxfile | | wlanhcxmnc | Manually do nonce correction on byte number xx of a nonce | +| wlanhashhcx | Generate hashlist from hccapx hashfile (md5_64 hash:mac_ap:mac_sta:essid) | | wlancap2wpasec | Upload multiple caps to http://wpa-sec.stanev.org | | wlancow2hcxpmk | Converts pre-computed cowpatty hashfiles for use with hashcat hash-mode 2501 | | wlangenpmk | Generates plainmasterkey from essid and password |
VMS: Correct faulty source directory specification $(SRCDIR)/doc doesn't work right on VMS.
@@ -886,9 +886,10 @@ EOF my $title = basename($args{src}, ".html"); my $pod = $gen0; my $mkpod2html = sourcefile('util', 'mkpod2html.pl'); + my $srcdoc = sourcedir('doc'); return <<"EOF"; $args{src} : $pod - \$(PERL) $mkpod2html -i $pod -o \$\@ -t "$title" -r "\$(SRCDIR)/doc" + \$(PERL) $mkpod2html -i $pod -o \$\@ -t "$title" -r "$srcdoc" EOF } elsif ($args{src} =~ /\.(\d)$/) { #
mimxrt: Enable built-in help.
#define MICROPY_PY_BUILTINS_FILTER (0) #define MICROPY_PY_BUILTINS_REVERSED (1) #define MICROPY_PY_BUILTINS_MIN_MAX (0) +#define MICROPY_PY_BUILTINS_HELP (1) #define MICROPY_PY___FILE__ (0) #define MICROPY_PY_MICROPYTHON_MEM_INFO (1) #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
tools/Config:Fix some error call DELFILE/DELDIR/CATFILE/CLEAN in Windows native build tools/Config:Fix some error call DELFILE/DELDIR/CATFILE in Windows native build
@@ -450,8 +450,12 @@ endef # DELFILE - Delete one file ifeq ($(CONFIG_WINDOWS_NATIVE),y) +define NEWLINE + + +endef define DELFILE - $(Q) if exist $1 (del /f /q $1) + $(foreach FILE, $(1), $(NEWLINE) $(Q) if exist $(FILE) (del /f /q $(FILE))) endef else define DELFILE @@ -463,7 +467,7 @@ endif ifeq ($(CONFIG_WINDOWS_NATIVE),y) define DELDIR - $(Q) if exist $1 (rmdir /q /s $1) + $(Q) if exist $1 (rmdir /q /s $1) $(NEWLINE) endef else define DELDIR @@ -501,7 +505,7 @@ endif ifeq ($(CONFIG_WINDOWS_NATIVE),y) define CATFILE - $(Q) type $(2) > $1 + $(foreach FILE, $(2), $(NEWLINE) $(Q) type $(FILE) >> $1) endef else define CATFILE @@ -529,20 +533,14 @@ ifeq ($(CONFIG_ARCH_COVERAGE),y) endif ifeq ($(CONFIG_WINDOWS_NATIVE),y) - -define NEWLINE - - -endef - define CLEAN $(Q) if exist *$(OBJEXT) (del /f /q *$(OBJEXT)) $(Q) if exist *$(LIBEXT) (del /f /q *$(LIBEXT)) $(Q) if exist *~ (del /f /q *~) $(Q) if exist (del /f /q .*.swp) - $(foreach OBJ, $(OBJS), $(NEWLINE) $(call DELFILE,$(OBJ))) - $(Q) if exist $(BIN) (del /f /q $(BIN)) - $(Q) if exist $(EXTRA) (del /f /q $(EXTRA)) + $(call DELFILE,$(subst /,\,$(OBJS))) + $(Q) if exist $(BIN) (del /f /q $(subst /,\,$(BIN))) + $(Q) if exist $(EXTRA) (del /f /q $(subst /,\,$(EXTRA))) endef else define CLEAN
board/meep/board.h: Format with clang-format BRANCH=none TEST=none Tricium: disable
@@ -80,18 +80,10 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum pwm_channel { - PWM_CH_KBLIGHT, - PWM_CH_COUNT -}; +enum pwm_channel { PWM_CH_KBLIGHT, PWM_CH_COUNT }; /* Motion sensors */ -enum sensor_id { - LID_ACCEL, - BASE_ACCEL, - BASE_GYRO, - SENSOR_COUNT -}; +enum sensor_id { LID_ACCEL, BASE_ACCEL, BASE_GYRO, SENSOR_COUNT }; enum battery_type { BATTERY_DYNAPACK_COS,
imxrt: Don't leave FPSCR uninitialized
@@ -76,6 +76,9 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t ((u32 *)ctx->psp)[5] = 0xeeeeeeee; /* lr */ ((u32 *)ctx->psp)[6] = (u32)start; /* pc */ ((u32 *)ctx->psp)[7] = 0x01000000; /* psr */ +#ifdef CPU_IMXRT + ((u32 *)ctx->psp)[24] = 0; /* fpscr */ +#endif ctx->irq_ret = RET_THREAD_PSP; } else { @@ -87,6 +90,9 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t ctx->lr = 0xeeeeeeee; ctx->pc = (u32)start; ctx->psr = 0x01000000; +#ifdef CPU_IMXRT + ctx->fpscr = 0; +#endif ctx->irq_ret = RET_THREAD_MSP; }
ps8743 : add definition to tune usb mux add register and value definition to tune usb and dp. BRANCH=None TEST=make -j BOARD=bugzzy
/* To reset the state machine to default */ #define PS8743_MODE_POWER_DOWN (PS8743_MODE_USB_REG_CONTROL | \ PS8743_MODE_DP_REG_CONTROL) +/* DP output setting */ +#define PS8743_REG_DP_SETTING 0x07 +#define PS8743_DP_SWG_ADJ_DFLT 0x00 +#define PS8743_DP_SWG_ADJ_N20P 0x40 +#define PS8743_DP_SWG_ADJ_N15P 0x80 +#define PS8743_DP_SWG_ADJ_P15P 0xc0 +#define PS8743_DP_OUT_SWG_400 0x00 +#define PS8743_DP_OUT_SWG_600 0x10 +#define PS8743_DP_OUT_SWG_800 0x20 +#define PS8743_DP_OUT_SWG_1000 0x30 +#define PS8743_DP_OUT_PRE_EM_0_DB 0x00 +#define PS8743_DP_OUT_PRE_EM_3_5_DB 0x04 +#define PS8743_DP_OUT_PRE_EM_6_0_DB 0x08 +#define PS8743_DP_OUT_PRE_EM_9_5_DB 0x0c +#define PS8743_DP_POST_CUR2_0_DB 0x00 +#define PS8743_DP_POST_CUR2_NEG_0_9_DB 0x01 +#define PS8743_DP_POST_CUR2_NEG_1_9_DB 0x02 +#define PS8743_DP_POST_CUR2_NEG_3_1_DB 0x03 /* USB equalization settings for Host to Mux */ #define PS8743_REG_USB_EQ_TX 0x32 #define PS8743_USB_EQ_TX_10_9_DB 0xc0 #define PS8743_USB_EQ_TX_4_5_DB 0xe0 +/* USB swing adjust for Mux to Type-C connector */ +#define PS8743_REG_USB_SWING 0x36 +#define PS8743_OUT_SWG_DEFAULT 0x00 +#define PS8743_OUT_SWG_NEG_20 0x40 +#define PS8743_OUT_SWG_NEG_15 0x80 +#define PS8743_OUT_SWG_POS_15 0xc0 +#define PS8743_LFPS_SWG_DEFAULT 0x00 +#define PS8743_LFPS_SWG_TD 0x08 + /* USB equalization settings for Connector to Mux */ #define PS8743_REG_USB_EQ_RX 0x3b #define PS8743_USB_EQ_RX_2_4_DB 0x00
allow 5Ghz channel 1..6
@@ -7376,7 +7376,7 @@ for(c = 0; c < 256; c++) if(frequency <= 1000) testchannel = frequency; else if((frequency >= 2407) && (frequency <= 2474)) testchannel = (frequency -2407)/5; else if((frequency >= 2481) && (frequency <= 2487)) testchannel = (frequency -2412)/5; - else if((frequency >= 5035) && (frequency <= 5980)) testchannel = (frequency -5000)/5; + else if((frequency >= 5005) && (frequency <= 5980)) testchannel = (frequency -5000)/5; else if((frequency >= 5955) && (frequency <= 6415)) testchannel = (frequency -5950)/5; if(testchannel > 0) {
patch loadpath init
@@ -440,8 +440,9 @@ ruby_init_loadpath_safe(int safe_level, const char* szRoot) VALUE load_path; ID id_initial_load_path_mark; const char *paths = ruby_initial_load_paths; + #if defined LOAD_RELATIVE -# if defined HAVE_DLADDR || defined __CYGWIN__ || defined _WIN32 +# if defined HAVE_DLADDR || defined __CYGWIN__//RHO: || defined _WIN32 # define VARIABLE_LIBPATH 1 # else # define VARIABLE_LIBPATH 0 @@ -460,7 +461,8 @@ ruby_init_loadpath_safe(int safe_level, const char* szRoot) strncpy(libpath, szRoot, sizeof(libpath) - 1); } else { -#if defined _WIN32 || defined __CYGWIN__ +//#if defined _WIN32 || defined __CYGWIN__ +#if 0 //RHO sopath = rb_str_new(0, MAXPATHLEN); libpath = RSTRING_PTR(sopath); GetModuleFileName(libruby, libpath, MAXPATHLEN); @@ -1935,6 +1937,7 @@ load_file(VALUE parser, VALUE fname, int script, struct cmdline_options *opt) arg.xflag = 0; arg.lineno = rb_gv_get("$."); arg.f = open_load_file(rb_str_encode_ospath(fname), &arg.xflag); + return (NODE *)rb_ensure(load_file_internal, (VALUE)&arg, restore_load_file, (VALUE)&arg); }
test build without thunderx patch
@@ -46,13 +46,12 @@ AMD64/MacOSX. %prep %setup -q -n %{pname}-%{version} %ifarch aarch64 -%global _default_patch_fuzz 3 # [email protected] (9/2/17) - disabling revVEX3352.patch; looks to have landed in 3.13.0 release #%patch1 -p0 %patch2 -p0 # [email protected] (9/2/17) - disabling rev16309.patch; looks to have landed in 3.13.0 release #%patch3 -p0 -%patch4 -p1 +#%patch4 -p1 %endif %build
typo in a maya plugin ui script
global proc AEhoudiniInputGeometryTemplate(string $nodeName) { - editorTemplate -beginScrollLayour; + editorTemplate -beginScrollLayout; editorTemplate -beginLayout "Inputs" -collapse false; editorTemplate
Testing: add tests for grib1 2nd order pack/unpack
@@ -93,12 +93,29 @@ nums=`${tools_dir}/grib_get -p numberOfDataPoints,numberOfCodedValues,numberOfMi res=`${tools_dir}/grib_get -l 33,88.5 $sec_ord_bmp` [ "$res" = "9999 5.51552 9999 9999 " ] -res=`${tools_dir}//grib_get -l 28.5,90 $sec_ord_bmp` +res=`${tools_dir}/grib_get -l 28.5,90 $sec_ord_bmp` [ "$res" = "3.51552 9999 5.26552 9999 " ] # GRIB-203 nearest on M-F second order boustrophedonic res=`${tools_dir}/grib_get -w count=1 -l 0,0 lfpw.grib1` [ "$res" = "20560.7 20563.4 20554.7 20559.5 " ] -rm -f $sec_ord_bmp +# Unpack/pack test for second order grib1 data +# -------------------------------------------- +g1files="lfpw.grib1 + gen_ext_spd_2.grib + gen_ext_spd_3.grib" +temp_grib1=temp.second_order.grib +temp_stat1=temp.second_order.stat1 +temp_stat2=temp.second_order.stat2 + +for f1 in $g1files; do + # This does unpack and repack + ${tools_dir}/grib_copy -r $f1 $temp_grib1 + ${tools_dir}/grib_get -n statistics $f1 > $temp_stat1 + ${tools_dir}/grib_get -n statistics $temp_grib1 > $temp_stat2 + perl ${test_dir}/number_compare.pl $temp_stat1 $temp_stat2 +done + +rm -f $temp_grib1 $sec_ord_bmp rm -f test.filter
Update Zephyr BT project configuration * Enables console output from IoTivity-Constrained, disables logging from the network stack to lower code size and clutter.
+CONFIG_NEWLIB_LIBC=y +CONFIG_CONSOLE_HANDLER=y +CONFIG_EARLY_CONSOLE=y +CONFIG_STDOUT_CONSOLE=y + CONFIG_NETWORKING=y CONFIG_NET_IPV6=y CONFIG_NET_UDP=y @@ -16,18 +21,13 @@ CONFIG_NET_MAX_CONTEXTS=3 CONFIG_MAIN_STACK_SIZE=2048 -CONFIG_BLUETOOTH_DEVICE_NAME="Sample OCF Node" +CONFIG_BLUETOOTH_DEVICE_NAME="OCF_BLE_NODE" CONFIG_BLUETOOTH=y -CONFIG_BLUETOOTH_DEBUG_LOG=y -CONFIG_BLUETOOTH_DEBUG_L2CAP=y CONFIG_BLUETOOTH_SMP=y CONFIG_BLUETOOTH_SIGNING=y CONFIG_BLUETOOTH_PERIPHERAL=y CONFIG_BLUETOOTH_L2CAP_DYNAMIC_CHANNEL=y -CONFIG_NETWORKING_WITH_LOGGING=y -CONFIG_NETWORKING_WITH_6LOWPAN=y CONFIG_6LOWPAN_COMPRESSION_IPHC=y CONFIG_NET_L2_BLUETOOTH=y -CONFIG_NET_DEBUG_L2_BLUETOOTH=y -CONFIG_IP_BUF_RX_SIZE=5 -CONFIG_IP_BUF_TX_SIZE=3 + +CONFIG_NET_L2_BLUETOOTH_ZEP1656=y
board/katsu/board.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_CHARGER_MT6370_BACKLIGHT - /* Motion Sensors */ #ifdef SECTION_IS_RW #define CONFIG_ACCELGYRO_ICM426XX /* Camera VSYNC */ #define CONFIG_SYNC #define CONFIG_SYNC_COMMAND -#define CONFIG_SYNC_INT_EVENT \ - TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) +#define CONFIG_SYNC_INT_EVENT TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) #endif /* SECTION_IS_RW */ /* I2C ports */
Bugfix op_super, call super->super pattern
@@ -779,6 +779,9 @@ inline static int op_super( mrbc_vm *vm, uint32_t code, mrbc_value *regs ) return 0; } + // Change class + regs[ra].instance->cls = cls; + // m is C func if( m->c_func ) { m->func(vm, regs + ra, rc);
specload: bugfixes
@@ -83,6 +83,8 @@ int elektraSpecloadClose (Plugin * handle, Key * errorKey) { Specload * specload = elektraPluginGetData (handle); + if (specload != NULL) + { elektraInvokeClose (specload->quickDump, errorKey); ksDel (specload->quickDumpConfig); @@ -91,6 +93,7 @@ int elektraSpecloadClose (Plugin * handle, Key * errorKey) elektraFree (specload); elektraPluginSetData (handle, NULL); + } return ELEKTRA_PLUGIN_STATUS_SUCCESS; }
Fix mipmaps with nearest filtering;
@@ -1932,8 +1932,13 @@ void lovrTextureSetFilter(Texture* texture, TextureFilter filter) { switch (filter.mode) { case FILTER_NEAREST: + if (texture->mipmaps) { + glTexParameteri(texture->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST); + glTexParameteri(texture->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + } else { glTexParameteri(texture->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(texture->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + } break; case FILTER_BILINEAR:
Tests: exclude shellrecorder test for spec-tutorial from ASAN builds and specify required plugins
@@ -32,12 +32,14 @@ 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" PROPERTY LABELS memleak) if (ENABLE_ASAN) - message (STATUS "Excluding Markdown Shell Recorder test for `validation`, as it leaks memory and fails with ASAN enabled") + message (STATUS "Excluding Markdown Shell Recorder tests for `validation` and 'spec', as they fail with ASAN enabled") else (ENABLE_ASAN) add_msr_test (tutorial_validation "${CMAKE_SOURCE_DIR}/doc/tutorials/validation.md" REQUIRED_PLUGINS ni validation range) + add_msr_test (tutorial_spec "${CMAKE_SOURCE_DIR}/doc/tutorials/specification.md" PROPERTY LABELS memleak + REQUIRED_PLUGINS ni type network date) + add_msr_test ( tutorial_crypto "${CMAKE_SOURCE_DIR}/doc/tutorials/crypto.md" REQUIRED_PLUGINS crypto fcrypt
Fix altcoins compilation issue
#include "shared_context.h" // TODO : rewrite as independant code #include "eth_plugin_internal.h" // TODO : rewrite as independant code +#ifdef HAVE_STARKWARE + typedef enum { STARKWARE_REGISTER = 0, @@ -448,3 +450,5 @@ void starkware_plugin_call(int message, void *parameters) { PRINTF("Unhandled message %d\n", message); } } + +#endif \ No newline at end of file
support flash w/o dfu mode entry
@@ -27,6 +27,11 @@ all: obj/bootstub.$(PROJ_NAME).bin obj/$(PROJ_NAME).bin ./tools/dfu-util-$(MACHINE) -a 0 -s 0x08004000 -D obj/$(PROJ_NAME).bin ./tools/dfu-util-$(MACHINE) --reset-stm32 -a 0 -s 0x08000000 +dfu: obj/bootstub.$(PROJ_NAME).bin obj/$(PROJ_NAME).bin + ./tools/dfu-util-$(MACHINE) -a 0 -s 0x08000000 -D obj/bootstub.$(PROJ_NAME).bin + ./tools/dfu-util-$(MACHINE) -a 0 -s 0x08004000 -D obj/$(PROJ_NAME).bin + ./tools/dfu-util-$(MACHINE) --reset-stm32 -a 0 -s 0x08000000 + bootstub: obj/bootstub.$(PROJ_NAME).bin ./tools/enter_download_mode.py ./tools/dfu-util-$(MACHINE) -a 0 -s 0x08000000 -D obj/bootstub.$(PROJ_NAME).bin
Version is detected with AT+GMR at the beginning of command instead
@@ -1462,20 +1462,6 @@ lwespi_get_reset_sub_cmd(lwesp_msg_t* msg, uint8_t* is_ok, uint8_t* is_error, ui SET_NEW_CMD(LWESP_CMD_SYSLOG); break; case LWESP_CMD_SYSLOG: -#if LWESP_CFG_ESP32 && LWESP_CFG_ESP8266 - SET_NEW_CMD(LWESP_CMD_BLEINIT_GET); - break; - case LWESP_CMD_BLEINIT_GET: - if (esp.m.device == LWESP_DEVICE_UNKNOWN) { - /* TODO: Set device the right way, not old-fashioned mode */ - if (*is_ok) { - esp.m.device = LWESP_DEVICE_ESP32; - /* TODO: Check if dev is ESP32-C3 */ - } else { - esp.m.device = LWESP_DEVICE_ESP8266; - } - } -#endif /* LWESP_CFG_ESP32 */ SET_NEW_CMD(LWESP_CMD_WIFI_CWMODE); break; case LWESP_CMD_WIFI_CWMODE:
add uthash to xcode project
385827B120737CC6009C83CB /* rpc_service.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rpc_service.h; sourceTree = "<group>"; }; 385827B220737CC6009C83CB /* rpc_wrapper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rpc_wrapper.c; sourceTree = "<group>"; }; 385827B320737CC6009C83CB /* rpc_wrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rpc_wrapper.h; sourceTree = "<group>"; }; + 388CB2CC208E328B00F2AA96 /* uthash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = uthash.h; sourceTree = "<group>"; }; + 388CB2CD208E328B00F2AA96 /* utlist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = utlist.h; sourceTree = "<group>"; }; 3895BF47205520AD00344AE0 /* bundle1.o */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.objfile"; name = bundle1.o; path = usr/lib/bundle1.o; sourceTree = SDKROOT; }; 389F043620544EDC003F3084 /* xdag */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = xdag; sourceTree = BUILT_PRODUCTS_DIR; }; 38A15E0920544F3E00598EC2 /* crc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = crc.h; sourceTree = "<group>"; }; path = "json-rpc"; sourceTree = "<group>"; }; + 388CB2CB208E328B00F2AA96 /* uthash */ = { + isa = PBXGroup; + children = ( + 388CB2CC208E328B00F2AA96 /* uthash.h */, + 388CB2CD208E328B00F2AA96 /* utlist.h */, + ); + path = uthash; + sourceTree = "<group>"; + }; 389F042D20544EDC003F3084 = { isa = PBXGroup; children = ( 38A15E4220544F3F00598EC2 /* client */ = { isa = PBXGroup; children = ( + 388CB2CB208E328B00F2AA96 /* uthash */, 385827A920737CC6009C83CB /* json-rpc */, 385827A420737CC6009C83CB /* utils */, 383256B7206BF098006CAE67 /* miner.c */,
tree data BUGFIX error for opaque node without module
@@ -536,8 +536,10 @@ lyd_parse_opaq_error(const struct lyd_node *node) opaq = (struct lyd_node_opaq *)node; parent = lyd_parent(node); - /* is always filled by parsers */ - LY_CHECK_ARG_RET(ctx, opaq->name.module_ns, LY_EINVAL); + if (!opaq->name.module_ns) { + LOGVAL(ctx, LYVE_REFERENCE, "Unknown module of node \"%s\".", opaq->name.name); + return LY_EVALID; + } /* module */ switch (opaq->format) {
ixfr-out, fix to log error on header write failure and whitespace and comment text cleanup.
@@ -1358,6 +1358,8 @@ static int ixfr_write_file(struct zone* zone, struct ixfr_data* data, } if(!ixfr_write_file_header(zone, data, out)) { + log_msg(LOG_ERR, "could not write file header for zone %s IXFR file %s: %s", + zone->opts->name, ixfrfile, strerror(errno)); fclose(out); return 0; } @@ -1386,7 +1388,7 @@ static void ixfr_write_files(struct zone* zone, const char* zfile) data->file_num == 0) { if(!ixfr_write_file(zone, data, zfile, num)) { /* there could be more files that are sitting on the - * disk, * remove them, they are not used without + * disk, remove them, they are not used without * this ixfr file */ ixfr_delete_rest_files(zone, data, zfile); return;
run make doc if doxygen and remove verbose makefile
@@ -81,7 +81,6 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then echo rm -rf $BUILD_AOMP/build/rocdbgapi rm -rf $BUILD_AOMP/build/rocdbgapi MYCMAKEOPTS="-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ - -DCMAKE_VERBOSE_MAKEFILE=1 \ -DCMAKE_INSTALL_PREFIX=$INSTALL_ROCDBGAPI \ -DCMAKE_PREFIX_PATH=$AOMP_INSTALL_DIR;$INSTALL_ROCDBGAPI/include \ $AOMP_ORIGIN_RPATH" @@ -111,6 +110,15 @@ if [ $? != 0 ] ; then exit 1 fi +doxygen=`which doxygen` +if [ ! -z $doxygen ] ; then + # the ROCdbgapi CMakeLists.txt will prepare docs install if doxygen found. + # However, the make doc has issues. But if you dont make doc, the install + # fails. This 'make doc' will do enough so install does not fail. + echo make -j $NUM_THREADS doc + make -j $NUM_THREADS doc 2>/dev/null >/dev/null +fi + # ----------- Install only if asked ---------------------------- if [ "$1" == "install" ] ; then cd $BUILD_AOMP/build/rocdbgapi
doc: fix function name typo
@@ -104,10 +104,10 @@ typedef TickType_t EventBits_t; * * Internally, within the FreeRTOS implementation, event groups use a [small] * block of memory, in which the event group's structure is stored. If an event - * groups is created using xEventGropuCreate() then the required memory is + * groups is created using xEventGroupCreate() then the required memory is * automatically dynamically allocated inside the xEventGroupCreate() function. * (see https://www.FreeRTOS.org/a00111.html). If an event group is created - * using xEventGropuCreateStatic() then the application writer must instead + * using xEventGroupCreateStatic() then the application writer must instead * provide the memory that will get used by the event group. * xEventGroupCreateStatic() therefore allows an event group to be created * without using any dynamic memory allocation. @@ -160,10 +160,10 @@ typedef TickType_t EventBits_t; * * Internally, within the FreeRTOS implementation, event groups use a [small] * block of memory, in which the event group's structure is stored. If an event - * groups is created using xEventGropuCreate() then the required memory is + * groups is created using xEventGroupCreate() then the required memory is * automatically dynamically allocated inside the xEventGroupCreate() function. * (see https://www.FreeRTOS.org/a00111.html). If an event group is created - * using xEventGropuCreateStatic() then the application writer must instead + * using xEventGroupCreateStatic() then the application writer must instead * provide the memory that will get used by the event group. * xEventGroupCreateStatic() therefore allows an event group to be created * without using any dynamic memory allocation.
Disable PKCS7 for some TLS 1.3 tests
@@ -3242,6 +3242,7 @@ component_test_tls13_only_psk () { scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION scripts/config.py unset MBEDTLS_ECDSA_C scripts/config.py unset MBEDTLS_PKCS1_V21 + scripts/config.py unset MBEDTLS_PKCS7_C make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'" msg "test_suite_ssl: TLS 1.3 only, only PSK key exchange mode enabled" @@ -3273,6 +3274,7 @@ component_test_tls13_only_psk_ephemeral () { scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION scripts/config.py unset MBEDTLS_ECDSA_C scripts/config.py unset MBEDTLS_PKCS1_V21 + scripts/config.py unset MBEDTLS_PKCS7_C make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'" msg "test_suite_ssl: TLS 1.3 only, only PSK ephemeral key exchange mode" @@ -3290,6 +3292,7 @@ component_test_tls13_only_psk_all () { scripts/config.py unset MBEDTLS_SSL_SERVER_NAME_INDICATION scripts/config.py unset MBEDTLS_ECDSA_C scripts/config.py unset MBEDTLS_PKCS1_V21 + scripts/config.py unset MBEDTLS_PKCS7_C make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/tls13-only.h\"'" msg "test_suite_ssl: TLS 1.3 only, PSK and PSK ephemeral key exchange modes"
doc: Add description for PGSSLCRLDIR This was missing in the section dedicated to the supported environment variables of libpq. Oversight in Discussion:
@@ -7836,6 +7836,16 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough) </para> </listitem> + <listitem> + <para> + <indexterm> + <primary><envar>PGSSLCRLDIR</envar></primary> + </indexterm> + <envar>PGSSLCRLDIR</envar> behaves the same as the <xref + linkend="libpq-connect-sslcrldir"/> connection parameter. + </para> + </listitem> + <listitem> <para> <indexterm>
update stm32f20x linker script: ensure last block HEAP.
@@ -28,8 +28,8 @@ do not initialize { section .noinit }; keep { section FSymTab }; keep { section VSymTab }; +keep { section .rti_fn* }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place in ROM_region { readonly, block RTT_INIT_FUNC }; -place in RAM_region { readwrite, - block CSTACK, block HEAP }; \ No newline at end of file +place in RAM_region { readwrite, block CSTACK, last block HEAP};
meta: adjust .gitignore file
-build - -# the menson vsocde extension auto generates another build directory -# called `builddir` -builddir - -subprojects/cxxshim -subprojects/frigg -.vscode -.clang-format +subprojects +!subprojects/*.wrap +*.xbstrap
Docs - remove initialization step/link from pxf upgrade
@@ -64,8 +64,6 @@ After you upgrade to the new version of Greenplum Database, perform the followin 1. Starting in Greenplum Database version 6.19.0, PXF is removed from the Greenplum Server distribution. You must download and install the standalone PXF `rpm` or `deb` package as described in [Installing PXF](https://docs.vmware.com/en/VMware-Tanzu-Greenplum-Platform-Extension-Framework/6.3/tanzu-greenplum-platform-extension-framework/GUID-installing_pxf.html). **Install the same PXF 5.x version as *PXF.from*.** -2. Initialize PXF on each segment host as described in [Initializing PXF](https://docs.vmware.com/en/VMware-Tanzu-Greenplum-Platform-Extension-Framework/6.3/tanzu-greenplum-platform-extension-framework/GUID-init_pxf.html). You may choose to use your existing `$PXF_CONF` for the initialization. - 3. Synchronize the PXF configuration from the master host to the standby master and each Greenplum Database segment host. For example: ``` shell
secvar: Free md context on hash error There were a few instances in `get_hash_to_verify` where NULL is returned before unallocating the md context. This commit ensures that this memory is properly freed before returning.
@@ -643,7 +643,7 @@ static char *get_hash_to_verify(const char *key, const char *new_data, || key_equals(key, "dbx")) guid = EFI_IMAGE_SECURITY_DATABASE_GUID; else - return NULL; + goto out; /* Expand char name to wide character width */ varlen = strlen(key) * 2; @@ -672,7 +672,7 @@ static char *get_hash_to_verify(const char *key, const char *new_data, hash = zalloc(32); if (!hash) - return NULL; + goto out; rc = mbedtls_md_finish(&ctx, hash); if (rc) { free(hash);
x509v3/v3_purp.c: resolve Thread Sanitizer nit.
@@ -351,12 +351,8 @@ static void x509v3_cache_extensions(X509 *x) ASN1_BIT_STRING *ns; EXTENDED_KEY_USAGE *extusage; X509_EXTENSION *ex; - int i; - if (x->ex_flags & EXFLAG_SET) - return; - CRYPTO_THREAD_write_lock(x->lock); if (x->ex_flags & EXFLAG_SET) { CRYPTO_THREAD_unlock(x->lock);
Added additional check to scrollbar drawing.
@@ -83,7 +83,7 @@ int level_picker_render(const LevelPicker *level_picker, const float number_of_items_in_scrolling_area = scrolling_area_height / ITEM_HEIGHT; const float percent_of_visible_items = number_of_items_in_scrolling_area / ((float) level_picker->items.count - 1); - if(percent_of_visible_items < 1) { + if(level_picker->items.count > 0 && percent_of_visible_items < 1) { SDL_Rect scrollbar = rect_for_sdl( rect_from_vecs( vec(level_picker->items_position.x + level_picker->items_size.x, level_picker->items_position.y),
Fix timer scripts which were breaking onscreen actor had a movement script
@@ -135,6 +135,7 @@ void ScriptRunnerUpdate() { if (!script_ptr_bank || script_update_fn) { // LOG("STOPPED SCRIPT FOR NOW\n"); ScriptSaveCtx(); + script_ptr = 0; return; } @@ -147,6 +148,7 @@ void ScriptRunnerUpdate() { Script_StackPop_b(); POP_BANK; ScriptSaveCtx(); + script_ptr = 0; return; } LOG("SCRIPT FINISHED\n");
requires less-recent libcurl release
@@ -296,7 +296,7 @@ configure_file(input : 'include/config.h.in', configuration : conf_data) # We expect these libs to supplied with the distribution -curl_dep = dependency('libcurl', version: '>=7.35.0') +curl_dep = dependency('libcurl', version: '>=7.19.0') if osdet == 'darwin' and not get_option('nix') libcrypto = meson.get_compiler('c').find_library('crypto', dirs: [ '/usr/local/opt/openssl/lib/' ])
1.feat: can go to previous search pages; 2.refactor: use static allocation when possible and improve clarity of code by having more specific variable naming
{ + "enable":false, "discord_bind_channel_ids": [834781038571552798, 834781058586902558], "keywords":[ "C Discord library",
note the removal of the list plugin in release notes
@@ -61,11 +61,9 @@ docker run -it elektra/elektra The following text lists news about the [plugins](https://www.libelektra.org/plugins/readme) we updated in this release. -### <<Plugin>> +### list -- <<TODO>> -- <<TODO>> -- <<TODO>> +- Removed the `list` plugin. _(Maximilian Irlinger @atmaxinger)_ ### <<Plugin>>
Don't enable 'read_cfg' too when 'full' is set in MANGOHUD_CONFIG Could use OVERLAY_PARAM_INTERNAL or something similar but currently less code to just save the boolean and reset.
@@ -219,6 +219,7 @@ parse_overlay_env(struct overlay_params *params, while ((num = parse_string(env, key, value)) != 0) { env += num; if (!strcmp("full", key)) { + bool read_cfg = params->enabled[OVERLAY_PARAM_ENABLED_read_cfg]; #define OVERLAY_PARAM_BOOL(name) \ params->enabled[OVERLAY_PARAM_ENABLED_##name] = 1; #define OVERLAY_PARAM_CUSTOM(name) @@ -226,6 +227,7 @@ parse_overlay_env(struct overlay_params *params, #undef OVERLAY_PARAM_BOOL #undef OVERLAY_PARAM_CUSTOM params->enabled[OVERLAY_PARAM_ENABLED_crosshair] = 0; + params->enabled[OVERLAY_PARAM_ENABLED_read_cfg] = read_cfg; } #define OVERLAY_PARAM_BOOL(name) \ if (!strcmp(#name, key)) { \
tests/run-tests: Add --list-tests switch. Lists tests to be executed, subject to all other filters requested. This options would be useful e.g. for scripts like tools/tinytest-codegen.py, which currently contains hardcoded filters for particular a particular target and can't work for multiple targets.
@@ -380,6 +380,10 @@ def run_tests(pyb, tests, args, base_path="."): skipped_tests.append(test_name) continue + if args.list_tests: + print(test_file) + continue + # get expected output test_file_expected = test_file + '.exp' if os.path.isfile(test_file_expected): @@ -430,6 +434,9 @@ def run_tests(pyb, tests, args, base_path="."): test_count += 1 + if args.list_tests: + return True + print("{} tests performed ({} individual testcases)".format(test_count, testcase_count)) print("{} tests passed".format(passed_count)) @@ -451,6 +458,7 @@ def main(): cmd_parser.add_argument('-p', '--password', default='python', help='the telnet login password') cmd_parser.add_argument('-d', '--test-dirs', nargs='*', help='input test directories (if no files given)') cmd_parser.add_argument('--write-exp', action='store_true', help='save .exp files to run tests w/o CPython') + cmd_parser.add_argument('--list-tests', action='store_true', help='list tests instead of running them') cmd_parser.add_argument('--emit', default='bytecode', help='MicroPython emitter to use (bytecode or native)') cmd_parser.add_argument('--heapsize', help='heapsize to use (use default if not specified)') cmd_parser.add_argument('--via-mpy', action='store_true', help='compile .py files to .mpy first') @@ -459,12 +467,12 @@ def main(): args = cmd_parser.parse_args() EXTERNAL_TARGETS = ('pyboard', 'wipy', 'esp8266', 'minimal') - if args.target in EXTERNAL_TARGETS: + if args.target == 'unix' or args.list_tests: + pyb = None + elif args.target in EXTERNAL_TARGETS: import pyboard pyb = pyboard.Pyboard(args.device, args.baudrate, args.user, args.password) pyb.enter_raw_repl() - elif args.target == 'unix': - pyb = None else: raise ValueError('target must be either %s or unix' % ", ".join(EXTERNAL_TARGETS))
Removed uncontext.h. This removal was missed the changeset
#if (NXT_MACOSX) -#define _XOPEN_SOURCE /* ucontext(3). */ #ifndef _DARWIN_C_SOURCE #define _DARWIN_C_SOURCE /* pthread_threadid_np(), mach_port_t. */ #endif #endif #include <sys/wait.h> #include <time.h> -#include <ucontext.h> #include <unistd.h> #include <pthread.h>
Comment why default case in storeEntityValue is never executed Also add comment tags so lcov can ignore unreachable code
@@ -5817,10 +5817,18 @@ storeEntityValue(XML_Parser parser, result = XML_ERROR_INVALID_TOKEN; goto endEntityValue; default: + /* This default case should be unnecessary -- all the tokens + * that XmlEntityValueTok() can return have their own explicit + * cases -- but should be retained for safety. We do however + * exclude it from the coverage statistics. + * + * LCOV_EXCL_START + */ if (enc == encoding) eventPtr = entityTextPtr; result = XML_ERROR_UNEXPECTED_STATE; goto endEntityValue; + /* LCOV_EXCL_STOP */ } entityTextPtr = next; }
hdata/i2c: update the list of known i2c devs This updates the list of known i2c devices - as of HDAT spec v10.5e - so that they can be properly identified during the hdat parsing.
@@ -91,8 +91,26 @@ struct hdat_i2c_type { }; static struct hdat_i2c_type hdat_i2c_devs[] = { + { 0x1, "gpio", "nxp,pca9551" }, /* XXX: Please verify that all VPD EEPROMs are of this type */ - { 0x2, "eeprom", "atmel,24c128" } + { 0x2, "eeprom", "atmel,24c128" }, + { 0x3, "tpm", "nuvoton,npct650" }, + { 0x4, "i2c", NULL }, /* MEX-FPGA */ + { 0x5, "i2c", NULL }, /* UCX90xx devs for PCI Hotplug */ + { 0x6, "gpio", "nxp,pca9552" }, + { 0x7, "gpio", "nxp,pca9553" }, + { 0x8, "gpio", "nxp,pca9554" }, + { 0x9, "gpio", "nxp,pca9555" }, + { 0xa, "i2c", NULL }, /* SMP/OpenCAPI Cable */ + { 0xb, "eeprom", "atmel,24c256" }, + { 0xc, "i2c", NULL }, /* Thermal Sensor */ + { 0xd, "eeprom", "atmel,24c04" }, + { 0xe, "eeprom", "atmel,24c412" }, + { 0xf, "eeprom", "atmel,24c32" }, + { 0x10, "eeprom", "atmel,24c64" }, + { 0x11, "eeprom", "atmel,24c16" }, + { 0x12, "i2c", NULL }, /* NVDIA GPU */ + { 0x13, "i2c", "nxp,lpc11u35" }, }; struct hdat_i2c_label { @@ -101,13 +119,24 @@ struct hdat_i2c_label { }; static struct hdat_i2c_label hdat_i2c_labels[] = { - { 0x1, "9551-led-controller" }, - { 0x2, "seeprom" }, + { 0x1, "led-controller" }, + { 0x2, "eeprom-pgood" }, + { 0x3, "eeprom-control" }, + { 0x4, "tpm" }, { 0x5, "module-vpd" }, { 0x6, "dimm SPD" }, { 0x7, "proc-vpd" }, { 0x8, "sbe-eeprom" }, - { 0x9, "planar-vpd" } + { 0x9, "planar-vpd" }, + { 0xa, "opencapi-topology" }, + { 0xb, "opencapi-micro-reset" }, + { 0xc, "nvlink-cable" }, + { 0xd, "secure-window-open" }, + { 0xe, "physical-presence" }, + { 0xf, "mex-fpga" }, + { 0x10, "thermal-sensor" }, + { 0x11, "host-i2c-enable" }, + { 0x12, "gpu-config" }, }; /*
jenkins: add debug info
@@ -1427,6 +1427,9 @@ def detectInterruption(Closure c) { c() } catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException fie) { // this ambiguous condition means a user probably aborted + println "causes size: ${fie.causes.size()}" + println "causes message: ${fie.message}" + println "causes message size: ${fie.message.size()}" if (fie.causes.size() == 0) { throw new UserInterruptedException(fie) } else {
launch: minor on-peek update
++ on-peek |= =path ^- (unit (unit cage)) - ?+ path (on-peek:def path) + ?. (team:title our.bowl src.bowl) ~ + ?+ path [~ ~] [%x %tiles ~] ``noun+!>([tiles tile-ordering]) [%x %first-time ~] ``noun+!>(first-time) [%x %keys ~] ``noun+!>(~(key by tiles))
Update sgemv_t_4.c
@@ -605,9 +605,9 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *a, BLASLO { sgemv_kernel_4x1(NB,a_ptr,xbuffer,ybuffer); - a_ptr += lda; + // a_ptr += lda; *y_ptr += ybuffer[0] * alpha; - y_ptr += inc_y; + // y_ptr += inc_y; } a += NB;
correct conversion uint32_t -> array of uint8_t
@@ -257,7 +257,7 @@ owerror_t openserial_printSniffedPacket(uint8_t* buffer, uint8_t length, uint8_t owerror_t openserial_print_uint32_t(uint32_t value) { #ifdef OPENSERIAL_PRINTF uint8_t i; - uint8_t pvalue[5]; + uint8_t pvalue[4]; INTERRUPT_DECLARATION(); DISABLE_INTERRUPTS(); @@ -265,7 +265,7 @@ owerror_t openserial_print_uint32_t(uint32_t value) { outputHdlcOpen(); outputHdlcWrite(SERFRAME_MOTE2PC_PRINTF); outputHdlcWrite(TYPE_INT); - pvalue = (uint8_t*)&value; + memcpy(pvalue, &value, 4); for (i=0;i<4;i++) outputHdlcWrite(pvalue[i]); outputHdlcClose();
Fixed incorrect recursion logic for finding permissions.
=+ rul=(~(get by pes) pax) ?^ rul [pax u.rul] ?~ pax [/ %white ~] - $(pax t.pax) + $(pax (scag (dec (lent pax)) `path`pax)) :: ++ may-read |= {who/ship car/care yon/aeon pax/path}
mmu: refine function map_mem_region function map_mem_region should return mapped_size, if something wrong, it return 0. the change is valid for release version, as at that time ASSERT() in map_mem_region is empty. Acked-by: Eddie Dong
@@ -173,6 +173,7 @@ static uint32_t map_mem_region(void *vaddr, void *paddr, || request_type >= PAGING_REQUEST_TYPE_UNKNOWN) { /* Shouldn't go here */ ASSERT(false, "Incorrect Arguments. Failed to map region"); + return 0; } /* switch based on of table */ @@ -280,8 +281,8 @@ static uint32_t map_mem_region(void *vaddr, void *paddr, break; } default: - ASSERT("Bad memory map request type" == 0, ""); - break; + ASSERT(0, "Bad memory map request type"); + return 0; } }
OpenCanopy: Detect click-ability by opacity
@@ -107,9 +107,6 @@ GuiClickableIsHit ( IN INT64 OffsetY ) { - UINT32 RowOffset; - UINT32 IndexX; - ASSERT (Image != NULL); ASSERT (Image->Buffer != NULL); @@ -118,33 +115,7 @@ GuiClickableIsHit ( return FALSE; } - RowOffset = (UINT32)OffsetY * Image->Width; - - if (Image->Buffer[RowOffset + OffsetX].Reserved != 0) { - return TRUE; - } - - for (IndexX = 0; IndexX < OffsetX; ++IndexX) { - if (Image->Buffer[RowOffset + IndexX].Reserved != 0) { - break; - } - } - - if (IndexX == OffsetX) { - return FALSE; - } - - for (IndexX = Image->Width - 1; IndexX > OffsetX; --IndexX) { - if (Image->Buffer[RowOffset + IndexX].Reserved != 0) { - break; - } - } - - if (IndexX == OffsetX) { - return FALSE; - } - - return TRUE; + return Image->Buffer[(UINT32) OffsetY * Image->Width + (UINT32) OffsetX].Reserved > 0; } VOID
Fix message text formatting from previous commit
@@ -614,12 +614,19 @@ BOOLEAN PhUiRestartComputer( break; case PH_POWERACTION_TYPE_NATIVE: { + PPH_STRING messageText; + + messageText = PhaFormatString( + L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", + L"preforms a hard", + L"restart"); + // Ignore the EnableWarnings preference and always show the warning prompt. (dmex) if (PhShowConfirmMessage( WindowHandle, L"restart", L"the computer", - PhaFormatString(L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", L"preforms a hard", L"restart")->Buffer, + messageText->Buffer, TRUE )) { @@ -636,12 +643,19 @@ BOOLEAN PhUiRestartComputer( break; case PH_POWERACTION_TYPE_CRITICAL: { + PPH_STRING messageText; + + messageText = PhaFormatString( + L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", + L"forces a critical", + L"restart"); + // Ignore the EnableWarnings preference and always show the warning prompt. (dmex) if (PhShowConfirmMessage( WindowHandle, L"restart", L"the computer", - PhaFormatString(L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", L"forces a critical", L"restart")->Buffer, + messageText->Buffer, TRUE )) { @@ -715,12 +729,19 @@ BOOLEAN PhUiShutdownComputer( break; case PH_POWERACTION_TYPE_NATIVE: { + PPH_STRING messageText; + + messageText = PhaFormatString( + L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", + L"preforms a hard", + L"shut down"); + // Ignore the EnableWarnings preference and always show the warning prompt. (dmex) if (PhShowConfirmMessage( WindowHandle, L"shut down", L"the computer", - PhaFormatString(L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", L"preforms a hard", L"shut down")->Buffer, + messageText->Buffer, TRUE )) { @@ -737,12 +758,19 @@ BOOLEAN PhUiShutdownComputer( break; case PH_POWERACTION_TYPE_CRITICAL: { + PPH_STRING messageText; + + messageText = PhaFormatString( + L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", + L"forces a critical", + L"shut down"); + // Ignore the EnableWarnings preference and always show the warning prompt. (dmex) if (PhShowConfirmMessage( WindowHandle, L"shut down", L"the computer", - PhaFormatString(L"This option %s %s in an disorderly manner and may cause corrupted files or instability in the system.", L"forces a critical", L"shut down")->Buffer, + messageText->Buffer, TRUE )) {
ip: remove dead code in ip6-svr Type: fix Fixes:
@@ -979,7 +979,6 @@ ip6_sv_reass_walk_expired (vlib_main_t * vm, uword thread_index = 0; int index; const uword nthreads = vlib_num_workers () + 1; - u32 *vec_icmp_bi = NULL; for (thread_index = 0; thread_index < nthreads; ++thread_index) { ip6_sv_reass_per_thread_t *rt = &rm->per_thread_data[thread_index]; @@ -1007,33 +1006,7 @@ ip6_sv_reass_walk_expired (vlib_main_t * vm, clib_spinlock_unlock (&rt->lock); } - while (vec_len (vec_icmp_bi) > 0) - { - vlib_frame_t *f = - vlib_get_frame_to_node (vm, rm->ip6_icmp_error_idx); - u32 *to_next = vlib_frame_vector_args (f); - u32 n_left_to_next = VLIB_FRAME_SIZE - f->n_vectors; - int trace_frame = 0; - while (vec_len (vec_icmp_bi) > 0 && n_left_to_next > 0) - { - u32 bi = vec_pop (vec_icmp_bi); - vlib_buffer_t *b = vlib_get_buffer (vm, bi); - if (PREDICT_FALSE (b->flags & VLIB_BUFFER_IS_TRACED)) - { - trace_frame = 1; - } - b->error = node->errors[IP6_ERROR_REASS_TIMEOUT]; - to_next[0] = bi; - ++f->n_vectors; - to_next += 1; - n_left_to_next -= 1; - } - f->frame_flags |= (trace_frame * VLIB_FRAME_TRACE); - vlib_put_frame_to_node (vm, rm->ip6_icmp_error_idx, f); - } - vec_free (pool_indexes_to_free); - vec_free (vec_icmp_bi); if (event_data) { _vec_len (event_data) = 0;
Abort if BIO_new fails CID
@@ -216,6 +216,8 @@ static void setup_bio(h2o_socket_t *sock) } BIO *bio = BIO_new(bio_methods); + if (bio == NULL) + h2o_fatal("no memory"); BIO_set_data(bio, sock); BIO_set_init(bio, 1); SSL_set_bio(sock->ssl->ssl, bio, bio);
arvo: moves formal interface gate to the end
-:::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::: -:::::: :::::: Postface :::::: -:::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::: -~> %slog.[0 leaf+"arvo: assembly"] -~< %slog.[0 leaf+"arvo: assembled"] -=< :: - :: Arvo formal interface - :: - :: this lifecycle wrapper makes the arvo door (multi-armed core) - :: look like a gate (function or single-armed core), to fit - :: urbit's formal lifecycle function. a practical interpreter - :: can ignore it. - :: - |= [now=@da ovo=ovum] - ^- * - ~> %slog.[0 leaf+"arvo: formal event"] - .(+> +:(poke now ovo)) -:::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::: -:::::: :::::: volume 3, Arvo models and skeleton :::::: -:::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::: => ..ride => |% ++ wish :: +10 |= txt=@ q:(slap zus.mod (ream txt)) --- +-- => :: :: larval stage :: |= txt=* q:(slap ?~(zus pit $:u.zus) (ream ;;(@t txt))) -- +:: +:: Arvo formal interface +:: +:: this lifecycle wrapper makes the arvo door (multi-armed core) +:: look like a gate (function or single-armed core), to fit +:: urbit's formal lifecycle function (see aeon:eden:part). +:: a practical interpreter can and will ignore it. +:: +|= [now=@da ovo=ovum] +^- * +.(+> +:(poke now ovo))
ossl_cmp_error_new(): Fix Coverity issue and consequently also issues and The issues are due to an integer overflow that may happen on '(ERR_SYSTEM_FLAG << 1)'.
@@ -748,7 +748,8 @@ OSSL_CMP_MSG *ossl_cmp_error_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si, goto err; if (!ASN1_INTEGER_set_int64(msg->body->value.error->errorCode, errorCode)) goto err; - if (errorCode > 0 && errorCode < (ERR_SYSTEM_FLAG << 1)) { + if (errorCode > 0 + && (uint64_t)errorCode < ((uint64_t)ERR_SYSTEM_FLAG << 1)) { lib = ERR_lib_error_string((unsigned long)errorCode); reason = ERR_reason_error_string((unsigned long)errorCode); }
rpz-triggers, fix memory allocation trouble on allocation error path.
@@ -387,11 +387,15 @@ rpz_clear(struct rpz* r) { /* must hold write lock on auth_zone */ local_zones_delete(r->local_zones); + r->local_zones = NULL; local_zones_delete(r->nsdname_zones); + r->nsdname_zones = NULL; respip_set_delete(r->respip_set); + r->respip_set = NULL; rpz_clientip_synthesized_set_delete(r->client_set); + r->client_set = NULL; rpz_clientip_synthesized_set_delete(r->ns_set); - // XXX: this approach seems to leak memory + r->ns_set = NULL; if(!(r->local_zones = local_zones_create())){ return 0; }
feat: Add wolfssl head files reference
@@ -18,7 +18,8 @@ EXTERNAL_INC := -I'$(CURDIR)/../inc/os' -I'$(CURDIR)/../inc/apb' -I'$(CURDIR)/. -I'$(CURDIR)/../inc' -I'$(CURDIR)/../inc/cm' \ -I'$(CURDIR)/../inc/os/include' -I'$(CURDIR)/../inc/cJSON' \ -I'$(CURDIR)/../prebuilt/ML302/LTE/components/newlib/include' \ - -I'$(CURDIR)/../prebuilt/ML302/LTE/components/newlib/include/sys' + -I'$(CURDIR)/../prebuilt/ML302/LTE/components/newlib/include/sys' \ + -I'$(CURDIR)/../src/demo/wolfssl-3.15.3/include'
vere: u3_nul in place of c3__null We want ~, not %null.
@@ -1015,7 +1015,7 @@ _pier_on_lord_live(void* vod_p) || c3n == u3a_is_cat(car) ) { u3m_p("pier: invalid scry", pex); - _pier_on_scry_done(pir_u, c3__null); + _pier_on_scry_done(pir_u, u3_nul); } else { // run the requested scry, jam to disk, then exit //
one more item for changelog
@@ -10,6 +10,7 @@ Version 1.2.1 (23 January 2017) * updated Requires stanza for mpiP packaging (https://github.com/openhpc/ohpc/issues/344) * added 'make_repo.sh' utility for inclusion with stand-alone tarballs (https://github.com/openhpc/ohpc/issues/363) * updated patches for mpiP to enable usage on aarch64 (https://github.com/openhpc/ohpc/pull/358) + * fix erroneous self-conflicts for munge packaging (https://github.com/openhpc/ohpc/issues/359) * updated modulefile compatibility packaging for Intel Parallel Studio toolchain - support "2017 Update 1" version string (https://github.com/openhpc/ohpc/pull/342) - support installation target that is a soft link (https://github.com/openhpc/ohpc/issues/347)
hv:clean io_request.c misra violations Clean the io_request.c's violations reported by the misra tools. V1->V2: remove violations which checked with NULL. Acked-by: Eddie Dong
@@ -73,7 +73,7 @@ void reset_vm_ioreqs(struct acrn_vm *vm) } } -static inline bool has_complete_ioreq(struct acrn_vcpu *vcpu) +static inline bool has_complete_ioreq(const struct acrn_vcpu *vcpu) { return (get_vhm_req_state(vcpu->vm, vcpu->vcpu_id) == REQ_STATE_COMPLETE); } @@ -169,13 +169,13 @@ uint32_t get_vhm_req_state(struct acrn_vm *vm, uint16_t vhm_req_id) req_buf = (union vhm_request_buffer *)vm->sw.io_shared_page; if (req_buf == NULL) { - return (uint32_t)-1; - } - + state = 0xffffffffU; + } else { stac(); vhm_req = &req_buf->req_queue[vhm_req_id]; state = atomic_load32(&vhm_req->processed); clac(); + } return state; } @@ -186,12 +186,10 @@ void set_vhm_req_state(struct acrn_vm *vm, uint16_t vhm_req_id, uint32_t state) struct vhm_request *vhm_req; req_buf = (union vhm_request_buffer *)vm->sw.io_shared_page; - if (req_buf == NULL) { - return; - } - + if (req_buf != NULL) { stac(); vhm_req = &req_buf->req_queue[vhm_req_id]; atomic_store32(&vhm_req->processed, state); clac(); } +}
Adding support for I2C LIS2DH12 driver
@@ -1089,8 +1089,6 @@ lis2dh12_config(struct lis2dh12 *lis2dh12, struct lis2dh12_cfg *cfg) lis2dh12->cfg.lc_s_mask = cfg->lc_s_mask; - os_time_delay((OS_TICKS_PER_SEC * 110)/1000); - return 0; err: return rc;
MIPS: ls1bdev: default instruction set MIPSr2 mips32 will break the compilation if FPU enabled.
@@ -36,7 +36,7 @@ OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' READELF = PREFIX + 'readelf' -DEVICE = ' -mips32' +DEVICE = ' -mips32r2' CFLAGS = DEVICE + ' -EL -G0 -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer' AFLAGS = ' -c' + DEVICE + ' -EL -fno-pic -fno-builtin -mno-abicalls -x assembler-with-cpp' LFLAGS = DEVICE + ' -nostartfiles -EL -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T ls1b_ram.lds'
Updated json file for 1.4.6 released.
"version": "1.0.0" } ] + }, + { + "name": "OpenCR", + "architecture": "OpenCR", + "version": "1.4.6", + "category": "Arduino", + "help": { + "online": "https://github.com/ROBOTIS-GIT/OpenCR" + }, + "url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.4.6/opencr_core_1.4.6.tar.bz2", + "archiveFileName": "opencr_core_1.4.6.tar.bz2", + "checksum": "SHA-256:59F903350D0767BDB4C8575C43CB3EF5EB80D425B0FFE7210A0E4BF9138379A0", + "size": "1961278", + "help": { + "online": "http://emanual.robotis.com/docs/en/parts/controller/opencr10/" + }, + "boards": [ + {"name": "OpenCR"} + ], + "toolsDependencies": [ + { + "packager": "OpenCR", + "name": "opencr_gcc", + "version": "5.4.0-2016q2" + }, + { + "packager": "OpenCR", + "name": "opencr_tools", + "version": "1.0.0" + } + ] } ], "tools":[
Solve minor bug in yaml for github workflow.
@@ -26,10 +26,11 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Pull MetaCall Docker Images + run: sh ./docker-compose.sh pull + - name: Build MetaCall Docker Images - run: - - sh ./docker-compose.sh pull - - sh ./docker-compose.sh build + run: sh ./docker-compose.sh build - name: Push MetaCall Docker Image to DockerHub run: sh ./docker-compose.sh push
Work CD-CI Update condition to skip build on ***NO_CI*** message. (hack to implement the expected behaviour from Azure Pipelines)
@@ -34,7 +34,7 @@ jobs: { $commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/commits/$(Build.SourceVersion)" -ContentType "application/json" -Method GET - if( ($commit.commit.author.name -eq "nfbot") -and ($commit.commit.message -like "*[version update]*") ) + if( ($commit.commit.author.name -eq "nfbot") -and (($commit.commit.message -like "*[version update]*") -or ($commit.commit.message -like "***NO_CI***")) ) { echo "##vso[task.setvariable variable=IS_VERSION_UPDATE;isOutput=true]true" }
jni: refer to segfault issue
@@ -36,6 +36,7 @@ The Java plugin itself needs to have the following methods: See [installation](/doc/INSTALL.md). The package is called `libelektra5-java`. To actually mount plugins, you will additionally need `java-elektra`. +Furthermore, at least JNA version 5.5 is required. ## Plugin Config @@ -51,17 +52,21 @@ Additionally, you can set: - ignore allows you to ignore broken options, default: `false` - print allows you to print java exceptions for debugging purposes -If Elektra is already installed: +If Elektra and a recent jna.jar (adapt path below) is already installed, following should output some debug logs and this README: ```sh kdb plugin-info -c classname=org/libelektra/plugin/Echo,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar,print= jni -kdb mount -c classname=elektra/plugin/PropertiesStorage,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar,print= file.properties /jni jni classname=elektra/plugin/PropertiesStorage,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar,print= ``` -Additionally, the Java implementation can request any other additional -configuration, read about it below in the section (specific java plugin). -If you are reading this page on GitHub, you won't see it, because the -plugins dynamically append text after the end of this page. +> Note: The Java implementation of the plugin can request any other additional +> plugin configuration, read about it in the end of the output of plugin-info. +> Plugins dynamically append text after the end of this page. + +You can also mount plugins (see [open issues](https://issues.libelektra.org/3881)): + +```sh +kdb mount -c classname=elektra/plugin/PropertiesStorage,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar,print= file.properties /jni jni classname=elektra/plugin/PropertiesStorage,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar,print= +``` ## Compiling the Plugin @@ -115,7 +120,6 @@ It has been experienced that if the project has been built already without this As a result, it will be resolved wrong in future builds, even though the environment variable is set. To resolve this, it should be enough to delete the CMakeCache.txt file in the build directory and reconfigure the build. - ## Development To know how the methods of your class are called, use:
Use a spinlock to synchronize tseqno and ikdb_seqno in ctxn commit...
@@ -58,6 +58,7 @@ struct kvdb_ctxn_set_impl { atomic64_t ktn_tseqno_head __aligned(SMP_CACHE_BYTES * 2); atomic64_t ktn_tseqno_tail __aligned(SMP_CACHE_BYTES * 2); sem_t ktn_tseqno_sema __aligned(SMP_CACHE_BYTES * 2); + spinlock_t ktn_tseqno_sync __aligned(SMP_CACHE_BYTES * 2); struct mutex ktn_list_mutex __aligned(SMP_CACHE_BYTES * 2); struct cds_list_head ktn_alloc_list __aligned(SMP_CACHE_BYTES); @@ -702,20 +703,17 @@ retry: */ rcu_read_lock(); if (dst) { - static struct { - atomic_t lock __aligned(SMP_CACHE_BYTES * 2); - } seq; + struct kvdb_ctxn_set_impl *kcs = kvdb_ctxn_set_h2r(ctxn->ctxn_kvdb_ctxn_set); /* merge */ /* * Ensure that threads mint commit sequence numbers in increasing order * of ctxn_tseqno_head. */ - while (!atomic_cas(&seq.lock, 0, 1)) - cpu_relax(); + spin_lock(&kcs->ktn_tseqno_sync); head = atomic64_inc_acq(ctxn->ctxn_tseqno_head); commit_sn = 1 + atomic64_fetch_add_rel(2, ctxn->ctxn_kvdb_seq_addr); - atomic_cas(&seq.lock, 1, 0); + spin_unlock(&kcs->ktn_tseqno_sync); rsvd_sn = c0kvms_rsvd_sn_get(dst); @@ -1216,6 +1214,7 @@ kvdb_ctxn_set_create(struct kvdb_ctxn_set **handle_out, u64 txn_timeout_ms, u64 atomic64_set(&ktn->ktn_tseqno_head, 0); atomic64_set(&ktn->ktn_tseqno_tail, 0); + spin_lock_init(&ktn->ktn_tseqno_sync); atomic_set(&ktn->ktn_reading, 0); ktn->ktn_queued = false; ktn->ktn_txn_timeout = txn_timeout_ms;
Generics get specialized. No capture.
@@ -171,7 +171,7 @@ Node *getdcl(Stab *st, Node *n) s = htget(st->dcl, n); if (s) { /* record that this is in the closure of this scope */ - if (fn && !s->decl.isglobl) + if (fn && !s->decl.isglobl && !s->decl.isgeneric) htput(fn->env, s->decl.name, s); return s; }
Proper permissions for actions.
++ poke-collections-action |= act/action ^- (quip move _+>) - ?. (team:title our.bol src.bol) [~ +>] + ?. ?- -.act + ?($create $delete) + (team:title src.bol our.bol) + :: + ?($submit $comment) + =+ col=(~(get by cols) nom.act) + ?~ col | + ?! .= publ.conf.u.col + (~(has in mems.conf.u.col) src.bol) + == + [~ +>] =< ta-done ?- -.act $create (ta-create:ta +.act)
Added refresh interval and set it to one hour
"name": "config/battery", "awake": true, "parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"}, - "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"} + "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}, + "refresh.interval": 3600 }, { "name": "config/on" { "name": "config/battery", "parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"}, - "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"} + "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}, + "refresh.interval": 3600 }, { "name": "config/offset" { "name": "config/battery", "parse": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021", "eval": "Item.val = Attr.val / 2"}, - "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"} + "read": {"fn": "zcl", "ep": 0, "cl": "0x0001", "at": "0x0021"}, + "refresh.interval": 3600 }, { "name": "config/on"
make the implementation resilient to interruptions
@@ -606,12 +606,16 @@ int picoquic_select(SOCKET_TYPE* sockets, } } +select_retry: ret_select = select(sockmax + 1, &readfds, NULL, NULL, &tv); if (ret_select < 0) { bytes_recv = -1; if (bytes_recv <= 0) { - DBG_PRINTF("Error: select returns %d\n", ret_select); + DBG_PRINTF("Error: select returns %d, error: %s\n", ret_select, strerror(errno)); + if (errno == EINTR) { + goto select_retry; + } } } else if (ret_select > 0) { for (int i = 0; i < nb_sockets; i++) {