message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add macOS builder, don't use sanitizer on old Ubuntu builder for now.
@@ -7,7 +7,7 @@ on: branches: [ master, v1.0.x ] jobs: - build: + build-linux: runs-on: ubuntu-latest @@ -15,6 +15,19 @@ jobs: - uses: actions/checkout@v2 - name: install prerequisites run: sudo apt-get install -y libavahi-client-dev libcups2-dev libcupsimage2-dev libgnutls28-dev libjpeg-dev libpam-dev libpng-dev libusb-1.0-0-dev zlib1g-dev + - name: configure + run: ./configure --enable-debug --enable-maintainer + - name: make + run: make + - name: test + run: make test + + build-macos: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 - name: configure run: ./configure --enable-debug --enable-maintainer --enable-sanitizer - name: make
Rename 'stats' to 'status' for readability.
@@ -17,7 +17,7 @@ static void caught_signal(int which) static int wait_for_process(pid_t pid) { int rv = EX_SOFTWARE; - int stats = 0; + int status = 0; int i = 0; struct sigaction sig_handler; @@ -32,12 +32,12 @@ static int wait_for_process(pid_t pid) /* Loop forever waiting for the process to quit */ for (i = 0; ;i++) { - pid_t p = waitpid(pid, &stats, 0); + pid_t p = waitpid(pid, &status, 0); if (p == pid) { /* child exited. Let's get out of here */ - rv = WIFEXITED(stats) ? - WEXITSTATUS(stats) : - (0x80 | WTERMSIG(stats)); + rv = WIFEXITED(status) ? + WEXITSTATUS(status) : + (0x80 | WTERMSIG(status)); break; } else { int sig = 0;
nimble/ll: Fix build with past and without privacy
@@ -1922,6 +1922,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_sm *connsm, rpa_index = -1; +#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY) /* check if need to resolve */ if (ble_ll_is_rpa(addr, addr_type)) { rpa_index = ble_ll_resolv_peer_rpa_any(addr); @@ -1931,6 +1932,7 @@ ble_ll_sync_periodic_ind(struct ble_ll_conn_sm *connsm, addr_type = g_ble_ll_resolv_list[rpa_index].rl_addr_type; } } +#endif OS_ENTER_CRITICAL(sr); /* check if already synchronized with this peer */
build CHANGE use version to check for SSH session option
@@ -215,15 +215,9 @@ if(ENABLE_SSH) endif() include_directories(${LIBSSH_INCLUDE_DIRS}) - set(LIBSSH_SESSION_OPTION_CHECK_CODE - "#include <libssh/libssh.h> - int main(void) { - ssh_session sess; - ssh_options_set(sess, SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, NULL); - return 0; - }" - ) - check_c_source_compiles("${LIBSSH_SESSION_OPTION_CHECK_CODE}" HAVE_LIBSSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES) + if(LibSSH_VERSION VERSION_GREATER 0.8.2) + set(HAVE_LIBSSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES 1) + endif() endif() # dependencies - libval
refactor: Simplify conditions for if
@@ -106,8 +106,7 @@ int strncasecmp(const char *str1, const char *str2, size_t len) return 0; } - if ((str1 == NULL && str2 != NULL) - || (str1 != NULL && str2 == NULL)) + if ((str1 == NULL) || (str2 == NULL)) { return -1; } @@ -1394,9 +1393,7 @@ int httpclient_get_response_code(httpclient_t *client) static HTTPCLIENT_RESULT httpclient_common(httpclient_t *client, char *url, int method, httpclient_data_t *client_data) { - HTTPCLIENT_RESULT ret = HTTPCLIENT_ERROR_CONN; - - ret = httpclient_connect(client, url); + HTTPCLIENT_RESULT ret = httpclient_connect(client, url); if (!ret) {
make dns interface bind to 127.0.0.1
@@ -725,7 +725,7 @@ void dns_setup( void ) { } } - g_sock4 = net_bind( "DNS", "0.0.0.0", gconf->dns_port, NULL, IPPROTO_UDP, AF_UNSPEC ); + g_sock4 = net_bind( "DNS", "127.0.0.1", gconf->dns_port, NULL, IPPROTO_UDP, AF_UNSPEC ); net_add_handler( g_sock4, &dns_handler ); g_sock6 = net_bind( "DNS", "::1", gconf->dns_port, NULL, IPPROTO_UDP, AF_UNSPEC );
ci, test: temporary increase IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING and IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA
#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_POLLING 15 #define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_POLLING_NO_DMA 15 -#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 30 -#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA 27 +#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 34 // TODO: IDF-5180 +#define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA 30 // TODO: IDF-5180 // floating point instructions per divide and per sqrt (configured for worst-case with PSRAM workaround) #define IDF_PERFORMANCE_MAX_CYCLES_PER_DIV 70
remove unused definitions for pm The pm_get_domainmetrics and pm_prune_history functions are called only when CONFIG_PM_METRICS is enabled. So definitions for them is not needed when config is disabled.
@@ -41,10 +41,6 @@ extern struct pm_global_s g_pmglobals; void pm_get_domainmetrics(int indx, struct pm_time_in_each_s *mtrics); void pm_prune_history(sq_queue_t *q); - -#else -#define pm_get_domainmetrics(indx, mtrics) -#define pm_prune_history(q) #endif #endif
tests: clBuildProgram pfn_notify case added -Werror case revised pfn_notify callback function registered and tested. A kernel with single warning added and forced to error with Werrror compile option.
@@ -48,6 +48,8 @@ static const char preprocess_fail[] = static const char invalid_kernel[] = "kernel void test_kernel(constant int a, j) { return 3; }\n"; +static const char warning_kernel[] = + "kernel void test_kernel(int j, k) { return; }\n"; /* kernel can have any name, except main() starting from OpenCL 2.0 */ static const char valid_kernel[] = @@ -56,6 +58,19 @@ static const char valid_kernel[] = static const char invalid_build_option[] = "-fnothing-to-see-here"; +#define FAKE_PTR 0xDEADBEEF + +void buildprogram_callback(cl_program program, void *user_data) +{ + fprintf(stderr, "cl_program callback (via pfn_notify)\n"); + + if (user_data == (void*)FAKE_PTR) + fprintf(stderr, "OK\n"); + else + fprintf(stderr, "FAIL\n"); +} + + int main(void){ cl_int err; @@ -189,7 +204,7 @@ main(void){ CHECK_CL_ERROR(clReleaseProgram(program)); } - /* TEST 6: valid kernel with Compile option -Werror */ + /* TEST 6: valid kernel build pfn-nofity */ { size_t kernel_size = strlen(valid_kernel); const char* kernel_buffer = valid_kernel; @@ -198,7 +213,8 @@ main(void){ &kernel_size, &err); CHECK_OPENCL_ERROR_IN("clCreateProgramWithSource"); - CHECK_CL_ERROR(clBuildProgram(program, num_devices, devices, "-Werror", NULL, NULL)); + /*pfn_notify function should print out "Test6" (userdata)*/ + CHECK_CL_ERROR(clBuildProgram(program, num_devices, devices, NULL, &buildprogram_callback, (void*)FAKE_PTR)); /* TODO FIXME: from here to the clFinish() should be removed once * delayed linking is disabled/removed in pocl, probably @@ -350,6 +366,7 @@ main(void){ } /*TEST 11: macro test */ + { char* macro_kernel = poclu_read_file(SRCDIR "/tests/runtime/test_clBuildProgram_macros.cl" ); size_t s = strlen(macro_kernel); program = clCreateProgramWithSource(context, 1, (const char**)&macro_kernel, @@ -359,6 +376,37 @@ main(void){ CHECK_CL_ERROR(clBuildProgram(program, num_devices, devices, NULL, NULL, NULL)); CHECK_CL_ERROR(clReleaseProgram(program)); + } + + /* TEST 12: warning into error */ + { + size_t kernel_size = strlen(warning_kernel); + const char* kernel_buffer = warning_kernel; + + program = clCreateProgramWithSource(context, 1, (const char**)&kernel_buffer, + &kernel_size, &err); + //clCreateProgramWithSource for invalid kernel failed + CHECK_OPENCL_ERROR_IN("clCreateProgramWithSource"); + + /* This kernel normally build with 1 warning: + *warning: type specifier missing, defaults to 'int' + *kernel void test_kernel(int j, k) { return; } + * ^ + *1 warning generated. + * + *with -Werror we make this 1 warning into error + *error: type specifier missing, defaults to 'int' + *kernel void test_kernel(int j, k) { return; } + * ^ + *1 error generated. + * + *If the Error is not generated this test should fail. + */ + err = clBuildProgram(program, num_devices, devices, "-Werror", NULL, NULL); + TEST_ASSERT(err == CL_BUILD_PROGRAM_FAILURE); + + CHECK_CL_ERROR(clReleaseProgram(program)); + } return EXIT_SUCCESS; }
Cirrus: Install Homebrew formulas after each other Currently installing fails when we install all packages using only a single `brew` command.
@@ -113,41 +113,40 @@ mac_task: install_script: - > # Install Homebrew casks brew cask install java oclint - - > # Install Homebrew formulas - brew install - antlr - antlr4-cpp-runtime - augeas - bison - boost - botan - cmake - dbus - discount - doxygen - glib - gpgme - graphviz - libev - libgcrypt - libgit2 - libuv - llvm - lua - maven - moreutils - ninja - openssl - pkg-config - prettier - qt - shfmt - swig - tree - xerces-c - yajl - yaml-cpp - zeromq + - | # Install Homebrew formulas + brew install antlr + brew install antlr4-cpp-runtime + brew install augeas + brew install bison + brew install boost + brew install botan + brew install cmake + brew install dbus + brew install discount + brew install doxygen + brew install glib + brew install gpgme + brew install graphviz + brew install libev + brew install libgcrypt + brew install libgit2 + brew install libuv + brew install llvm + brew install lua + brew install maven + brew install moreutils + brew install ninja + brew install openssl + brew install pkg-config + brew install prettier + brew install qt + brew install shfmt + brew install swig + brew install tree + brew install xerces-c + brew install yajl + brew install yaml-cpp + brew install zeromq - > # Try to install `checkbashisms` (The file server that hosts the package is unfortunately quite unreliable.) brew install checkbashisms || >&2 printf 'Warning: Unable to install `checkbashims`\n' - > # Start D-Bus session bus
typechecker-regex-prototype: correct forgotten file case
@@ -33,7 +33,7 @@ if (LIBFA_FOUND) COMMAND ${CABAL_EXECUTABLE} sandbox add-source -v0 "${CMAKE_BINARY_DIR}/src/libs/typesystem/libfa" COMMAND ${CABAL_EXECUTABLE} sandbox add-source -v0 - "${CMAKE_BINARY_DIR}/src/libs/typesystem/SpecElektra" + "${CMAKE_BINARY_DIR}/src/libs/typesystem/specelektra" COMMAND ${CABAL_EXECUTABLE} install --only-dependencies -v0 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/sandbox/") add_custom_target ("typechecker-ghc-plugin"
Change test case for covering issue
@@ -1481,7 +1481,7 @@ static void test_comments() assert_true_rule( "rule test { \ strings: $a = { 31 /* A */ 32 /*B*/ 33 34 35 36 /* C */} \ - condition: $a }", + condition: @a == 6 }", "1234567890"); }
Improve assert log for mismatched MD tag reads Include insertion length along with the MD and CIGAR details in assert error
@@ -705,7 +705,9 @@ cdef inline bytes build_alignment_sequence(bam1_t * src): cdef uint32_t md_len = get_md_reference_length(md_tag) if md_len + insertions > max_len: - raise AssertionError("Invalid MD tag: MD length {} mismatch with CIGAR length {}".format(md_len, max_len)) + raise AssertionError( + "Invalid MD tag: MD length {} mismatch with CIGAR length {} and {} insertions".format( + md_len, max_len, insertions)) while md_tag[md_idx] != 0: # c is numerical
Update Interop Servers
@@ -67,7 +67,7 @@ struct QuicPublicEndpoint { QuicPublicEndpoint PublicEndpoints[] = { { "aioquic", "quic.aiortc.org" }, { "akamaiquic", "ietf.akaquic.com" }, - { "applequic", "12.181.55.166" }, + { "applequic", "71.202.41.169" }, { "ats", "quic.ogre.com" }, { "f5", "f5quic.com" }, { "gquic", "quic.rocks" }, @@ -82,7 +82,7 @@ QuicPublicEndpoint PublicEndpoints[] = { { "Pandora", "pandora.cm.in.tum.de" }, { "picoquic", "test.privateoctopus.com" }, { "quant", "quant.eggert.org" }, - { "quinn", "ralith.com" }, + { "quinn", "h3.stammw.eu" }, { "quic-go", "quic.seemann.io" }, { "quiche", "quic.tech" }, { "quicker", "quicker.edm.uhasselt.be" },
hslua-examples: allow lua-2.1.0
@@ -47,7 +47,7 @@ executable print-version import: common-options main-is: print-version.hs hs-source-dirs: print-version - build-depends: lua >= 2.0 && < 2.1 + build-depends: lua >= 2.0 && < 2.2 executable run-lua import: common-options @@ -76,4 +76,4 @@ executable low-level-factorial import: common-options main-is: low-level-factorial.hs hs-source-dirs: low-level-factorial - build-depends: lua >= 2.0 && < 2.1 + build-depends: lua >= 2.0 && < 2.2
set SSL_MODE_ASYNC if neverbleed enabled
@@ -1308,6 +1308,7 @@ static int listener_setup_ssl(h2o_configurator_command_t *cmd, h2o_configurator_ identity->ossl = SSL_CTX_new(SSLv23_server_method()); SSL_CTX_set_options(identity->ossl, ssl_options); #if PTLS_OPENSSL_HAVE_ASYNC + if (use_neverbleed) SSL_CTX_set_mode(identity->ossl, SSL_MODE_ASYNC); #endif
distro-packages/python-rpm-macros: adjust path for non-suse
@@ -45,15 +45,21 @@ are only building for distros newer than Leap 42.2 mv macros-default-pythons macros/035-default-pythons %endif +%if 0%{?suse_version} +%global install_path %{_sysconfdir} +%else +%global install_path /usr/lib/rpm/macros.d +%endif + %build ./compile-macros.sh %install -mkdir -p %{buildroot}%{_sysconfdir}/rpm -install -m 644 macros.python_all %{buildroot}%{_sysconfdir}/rpm +mkdir -p %{buildroot}%{install_path}/rpm +install -m 644 macros.python_all %{buildroot}%{install_path}/rpm %files %defattr(-,root,root) -%{_sysconfdir}/rpm/macros.python_all +%{install_path}/rpm/macros.python_all %changelog
README.md: add notes driving attention to big differences among branches
@@ -39,6 +39,8 @@ A corrected version is being developed and will hopefully be available soon. Unt The development branch contains what will likely become the 03.00.00.xxxx branch. +**Note**: Branches may differ fundamentally. Please pay close attention to README.md of the respective branch. + ## Packages Some distributions include ipmctl allowing installation via their package manager. @@ -72,6 +74,8 @@ It can be found here https://github.com/pmem/ndctl if not available as a package ## Build +**Note**: Each branch may require different building procedures. Please follow README.md of the respective branch. + ### Specific Instructions Reported as Working on SUSE for build in home directory Replace homedir with the actual account
dm: Coding style fix: Handle failure of parsing /proc/iomem In get_mmio_hpa_resource, although very unlikely, parsing of /proc/iomem may fail. Handle the case of failure and exit early.
@@ -137,6 +137,9 @@ int get_mmio_hpa_resource(char *name, uint64_t *res_start, uint64_t *res_size) pr_err("Please run acrn-dm with superuser privilege\n"); break; } + } else { + pr_err("Parsing /proc/iomem failed\n"); + break; } *res_start = start;
Update lang/check tests for coroutine_resumed
@@ -156,6 +156,7 @@ func TestCheck(tt *testing.T) { {"a", "array[4] base.u8"}, {"args", "args"}, {"b", "base.bool"}, + {"coroutine_resumed", "base.bool"}, {"p", "base.i32"}, {"q", "base.i32[0..8]"}, {"this", "ptr foo"},
ames: refactors udp init() and bind()
@@ -411,6 +411,7 @@ _ames_io_start(u3_pier* pir_u) c3_s por_s = pir_u->por_s; u3_noun who = u3i_chubs(2, pir_u->who_d); u3_noun rac = u3do("clan:title", u3k(who)); + c3_i ret_i; if ( c3__czar == rac ) { c3_y num_y = (c3_y)pir_u->who_d[0]; @@ -425,9 +426,8 @@ _ames_io_start(u3_pier* pir_u) } } - int ret; - if ( 0 != (ret = uv_udp_init(u3L, &sam_u->wax_u)) ) { - u3l_log("ames: init: %s\n", uv_strerror(ret)); + if ( 0 != (ret_i = uv_udp_init(u3L, &sam_u->wax_u)) ) { + u3l_log("ames: init: %s\n", uv_strerror(ret_i)); c3_assert(0); } @@ -443,14 +443,17 @@ _ames_io_start(u3_pier* pir_u) htonl(INADDR_LOOPBACK); add_u.sin_port = htons(por_s); - int ret; - if ( (ret = uv_udp_bind(&sam_u->wax_u, - (const struct sockaddr*) & add_u, 0)) != 0 ) { - u3l_log("ames: bind: %s\n", - uv_strerror(ret)); - if (UV_EADDRINUSE == ret){ + if ( (ret_i = uv_udp_bind(&sam_u->wax_u, + (const struct sockaddr*)&add_u, 0)) != 0 ) + { + u3l_log("ames: bind: %s\n", uv_strerror(ret_i)); + + if ( (c3__czar == rac) && + (UV_EADDRINUSE == ret_i) ) + { u3l_log(" ...perhaps you've got two copies of vere running?\n"); } + u3_pier_exit(pir_u); }
feat(docs): Add caution note about split peripheral sides to user setup
@@ -196,6 +196,14 @@ Once this happens, copy the correct UF2 file (e.g. left or right if working on a storage device. Once the flash is complete, the controller should automatically restart, and load your newly flashed firmware. It is recommended that you test your keyboard works over USB first to rule out hardware issues, before trying to connect to it wirelessly. +:::caution Split keyboards + +For split keyboards, only the central half (typically the left side) will send keyboard outputs over USB or advertise to other devices +over bluetooth. Peripheral half will only send keystrokes to the central once they are paired and connected. For this reason it is +recommended to test the left half of a split keyboard first. + +::: + ## Wirelessly Connecting Your Keyboard ZMK will automatically advertise itself as connectable if it is not currently connected to a device. You should be able to see your keyboard from the bluetooth scanning view of your computer or phone / tablet. It is reported by some users that the connections with Android / iOS devices are generally smoother than with laptops, so if you have trouble connecting, you could try to connect from your phone or tablet first to eliminate any potential hardware issues with bluetooth receivers.
Driver: Updated demo code for Flash Driver usage.
#include "Driver_Flash.h" +#include "cmsis_os2.h" // ARM::CMSIS:RTOS2:Keil RTX5 -// NAND driver instance -extern ARM_DRIVER_FLASH ARM_Driver_Flash_(0); -extern ARM_DRIVER_FLASH * flashDev = &(ARM_Driver_Flash_(0)); +/* Flash driver instance */ +extern ARM_DRIVER_FLASH Driver_Flash0; +static ARM_DRIVER_FLASH * flashDev = &Driver_Flash0; +/* CMSIS-RTOS2 Thread Id */ +osThreadId_t Flash_Thread_Id; -int main (void) +/* Flash signal event */ +void Flash_Callback(uint32_t event) +{ + if (event & ARM_FLASH_EVENT_READY) { + /* The read/program/erase operation is completed */ + osThreadFlagsSet(Flash_Thread_Id, 1U); + } + if (event & ARM_FLASH_EVENT_ERROR) { + /* The read/program/erase operation is completed with errors */ + /* Call debugger or replace with custom error handling */ + __breakpoint(0); + } +} + +/* CMSIS-RTOS2 Thread */ +void Flash_Thread (void *argument) { /* Query drivers capabilities */ const ARM_FLASH_CAPABILITIES capabilities = flashDev->GetCapabilities(); - /* Initialize NAND device */ + /* Initialize Flash device */ + if (capabilities.event_ready) { + flashDev->Initialize (&Flash_Callback); + } else { flashDev->Initialize (NULL); + } - /* Power-on NAND device */ + /* Power-on Flash device */ flashDev->PowerControl (ARM_POWER_FULL); /* Read data taking data_width into account */ - uint8_t buf[256]; + uint8_t buf[256U]; flashDev->ReadData (0x1000U, buf, sizeof(buf)>>capabilities.data_width); + /* Wait operation to be completed */ + if (capabilities.event_ready) { + osThreadFlagsWait (1U, osFlagsWaitAny, 100U); + } else { + osDelay(100U); + } + /* Switch off gracefully */ flashDev->PowerControl (ARM_POWER_OFF); flashDev->Uninitialize ();
Don't special case unexpected token errors at toplevel YAGNI
@@ -166,15 +166,11 @@ function Parser:Toplevel() return ast.Toplevel.Var(visibility.loc, visibility.name, decls, exps) - else - if visibility then - self:forced_syntax_error("NAME") else self:unexpected_token_error("a toplevel declaration") end end end -end -- -- Types
Remove disable of SAL for MIB structs The bug is actually in SAL rather than in the MIB structs. So work around the issue by grabbing a local copy of the interation variable, which works around the warning
@@ -1100,9 +1100,6 @@ CxPlatDataPathGetLocalAddresses( } *AddressesCount = (uint32_t)AddressTable->NumEntries; -#pragma warning(push) // MIB tables aren't correctly annotated for SAL. -#pragma warning(disable:6385) -#pragma warning(disable:6386) for (ULONG i = 0; i < AddressTable->NumEntries; ++i) { MIB_IPINTERFACE_ROW* Interface = NULL; for (ULONG j = 0; j < InterfaceTable->NumEntries; ++j) { @@ -1112,12 +1109,12 @@ CxPlatDataPathGetLocalAddresses( } } - memcpy(&(*Addresses)[i].Address, &AddressTable->Table[i].Address, sizeof(QUIC_ADDR)); - (*Addresses)[i].InterfaceIndex = (uint32_t)AddressTable->Table[i].InterfaceIndex; - (*Addresses)[i].InterfaceType = (uint16_t)AddressTable->Table[i].InterfaceLuid.Info.IfType; - (*Addresses)[i].OperationStatus = Interface && Interface->Connected ? CXPLAT_OPERATION_STATUS_UP : CXPLAT_OPERATION_STATUS_DOWN; + CXPLAT_ADAPTER_ADDRESS* AdapterAddress = &(*Addresses)[i]; + memcpy(&AdapterAddress->Address, &AddressTable->Table[i].Address, sizeof(QUIC_ADDR)); + AdapterAddress->InterfaceIndex = (uint32_t)AddressTable->Table[i].InterfaceIndex; + AdapterAddress->InterfaceType = (uint16_t)AddressTable->Table[i].InterfaceLuid.Info.IfType; + AdapterAddress->OperationStatus = Interface && Interface->Connected ? CXPLAT_OPERATION_STATUS_UP : CXPLAT_OPERATION_STATUS_DOWN; } -#pragma warning(pop) Error:
correct undo/redo use case
@@ -13,10 +13,8 @@ Brief: User undos/redos changes to a configuration. Precondition: Modifying keys, Adding keys, Duplicating keys, Drag & Drop keys Main success scenario: User successfully undos/redos a configuration change. Alternative scenario: Instance not online. The user is informed about the issue. - If a cluster, changes will be written when the affected instance comes back - online. Error scenario: Technical problems while configuring the instance. The user is informed about the issue. Postcondition: The updated configuration is persisted to the instance/s. Non-functional Constraints: - - Ideally every operation should be undoable + - Every editor operation (preconditions) should be undoable
integer BUGFIX storing numbers on big-endian Fixes
@@ -75,7 +75,24 @@ lyplg_type_store_int(const struct ly_ctx *ctx, const struct lysc_type *type, con /* store everything */ ret = lydict_insert_zc(ctx, str, &storage->canonical); LY_CHECK_GOTO(ret != LY_SUCCESS, cleanup); + + /* matters for big-endian */ + switch (type->basetype) { + case LY_TYPE_INT8: + storage->int8 = num; + break; + case LY_TYPE_INT16: + storage->int16 = num; + break; + case LY_TYPE_INT32: + storage->int32 = num; + break; + case LY_TYPE_INT64: storage->int64 = num; + break; + default: + break; + } storage->realtype = type; cleanup: @@ -131,7 +148,24 @@ lyplg_type_store_uint(const struct ly_ctx *ctx, const struct lysc_type *type, co /* store everything */ ret = lydict_insert_zc(ctx, str, &storage->canonical); LY_CHECK_GOTO(ret != LY_SUCCESS, cleanup); - storage->int64 = num; + + /* matters for big-endian */ + switch (type->basetype) { + case LY_TYPE_UINT8: + storage->uint8 = num; + break; + case LY_TYPE_UINT16: + storage->uint16 = num; + break; + case LY_TYPE_UINT32: + storage->uint32 = num; + break; + case LY_TYPE_UINT64: + storage->uint64 = num; + break; + default: + break; + } storage->realtype = type; cleanup:
avx2: _mm256_bslli_epi128 wasn't present in GCC until 4.8
@@ -979,7 +979,7 @@ simde_mm256_bslli_epi128 (simde__m256i a, const int imm8) return simde__m256i_from_private(r_); } -#if defined(SIMDE_X86_AVX2_NATIVE) +#if defined(SIMDE_X86_AVX2_NATIVE) && (!defined(HEDLEY_GCC_VERSION) || HEDLEY_GCC_VERSION_CHECK(4,8,0)) #define simde_mm256_bslli_epi128(a, imm8) _mm256_bslli_epi128(a, imm8) #endif #if defined(SIMDE_X86_AVX2_ENABLE_NATIVE_ALIASES)
Fixed report time for HMD
@@ -707,10 +707,6 @@ void survive_kalman_tracker_init(SurviveKalmanTracker *tracker, SurviveObject *s tracker->light_rampin_length = survive_configi(ctx, KALMAN_LIGHTCAP_RAMPIN_LENGTH_TAG, SC_GET, 5000); survive_kalman_tracker_config(tracker, survive_attach_configf); - if (tracker->min_report_time < 0) { - tracker->min_report_time = 1. / so->imu_freq; - SV_VERBOSE(10, "Setting min report time for %s to %fs", so->codename, tracker->min_report_time); - } bool use_imu = (bool)survive_configi(ctx, "use-imu", SC_GET, 1); if (!use_imu) { @@ -869,6 +865,17 @@ void survive_kalman_tracker_report_state(PoserData *pd, SurviveKalmanTracker *tr t = tracker->model.t; } + if (tracker->so->conf == 0) { + return; + } + + SurviveContext *ctx = tracker->so->ctx; + if (tracker->min_report_time < 0) { + tracker->min_report_time = 1. / tracker->so->imu_freq; + SV_VERBOSE(10, "Setting min report time for %s to %f ms", tracker->so->codename, + tracker->min_report_time * 1000.); + } + if (t - tracker->last_report_time < tracker->min_report_time) { return; } @@ -883,7 +890,6 @@ void survive_kalman_tracker_report_state(PoserData *pd, SurviveKalmanTracker *tr size_t state_cnt = tracker->model.state_cnt; FLT var_diag[SURVIVE_MODEL_MAX_STATE_CNT]; FLT p_threshold = survive_kalman_tracker_position_var2(tracker, var_diag, 7 + 6); - SurviveContext *ctx = tracker->so->ctx; SurviveObject *so = tracker->so; SV_DATA_LOG("tracker_P", var_diag, 7 + 6);
Removed static keyword to remove warning
@@ -193,7 +193,7 @@ send_number(uint32_t num, uint8_t q) { * \param[in] num: Number to send to AT port * \param[in] q: Value to indicate starting and ending quotes, enabled (1) or disabled (0) */ -static void +void send_signed_number(int32_t num, uint8_t q) { char str[11];
Change cast to correct type
@@ -127,7 +127,7 @@ void mbedtls_mpi_mod_raw_add( mbedtls_mpi_uint *X, mbedtls_mpi_uint carry, borrow; carry = mbedtls_mpi_core_add( X, A, B, N->limbs ); borrow = mbedtls_mpi_core_sub( X, X, N->p, N->limbs ); - (void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, (unsigned char) ( carry ^ borrow ) ); + (void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, (unsigned) ( carry ^ borrow ) ); } /* END MERGE SLOT 5 */
Ensure symbols don't get deprecated too early There are symbols we've marked for deprecation in OpenSSL 1.2.0. We must ensure that they don't actually become deprecated before that. Fixes
* https://www.openssl.org/source/license.html */ +#include <openssl/opensslv.h> + #ifdef __cplusplus extern "C" { #endif @@ -97,7 +99,13 @@ extern "C" { # define OPENSSL_API_COMPAT OPENSSL_MIN_API #endif -#if OPENSSL_API_COMPAT < 0x10200000L +/* + * Do not deprecate things to be deprecated in version 1.2.0 before the + * OpenSSL version number matches. + */ +#if OPENSSL_VERSION_NUMBER < 0x10200000L +# define DEPRECATEDIN_1_2_0(f) f; +#elif OPENSSL_API_COMPAT < 0x10200000L # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f) #else # define DEPRECATEDIN_1_2_0(f)
Fix UI tileset incase previous bg was over 192 tiles Revert to as it was in 1.2.1, bg loads after ui every scene switch
@@ -227,6 +227,7 @@ int core_start() { BGP_REG = PAL_DEF(0U, 1U, 2U, 3U); OBP0_REG = OBP1_REG = PAL_DEF(0U, 0U, 1U, 3U); + UIInit(); LoadScene(current_state); // Run scene type init function
Add High Sierra `fork` concern
@@ -21,10 +21,12 @@ Iodine is an **evented** framework with a simple API that builds off the low lev * Iodine can handle **thousands of concurrent connections** (tested with more then 20K connections)! -* Iodine supports only **Linux/Unix** based systems (i.e. OS X, Ubuntu, FreeBSD etc'), which are ideal for evented IO (while Windows and Solaris are better at IO *completion* events, which are totally different). +* Iodine supports only **Linux/Unix** based systems (i.e. macOS\*, Ubuntu, FreeBSD etc'), which are ideal for evented IO (while Windows and Solaris are better at IO *completion* events, which are totally different). Iodine is a C extension for Ruby, developed and optimized for Ruby MRI 2.2.2 and up... it should support the whole Ruby 2.0 MRI family, but Rack requires Ruby 2.2.2, and so iodine matches this requirement. +\* for **macOS High Sierra**: please be aware of [this issue](https://github.com/puma/puma/issues/1421) and [workaround](https://github.com/puma/puma/issues/1421#issuecomment-332694766) regarding certain gem bindings (such as `pg`), multi-process servers and lazy loading. + ## Iodine::Rack == fast & powerful HTTP + Websockets server with native Pub/Sub Iodine includes a light and fast HTTP and Websocket server written in C that was written according to the [Rack interface specifications](http://www.rubydoc.info/github/rack/rack/master/file/SPEC) and the [Websocket draft extension](./SPEC-Websocket-Draft.md).
[ArgoUI] 0.3.3
Pod::Spec.new do |s| s.name = 'ArgoUI' - s.version = '0.3.2' + s.version = '0.3.3' s.summary = 'A lib of Momo Lua UI.' # This description is used to generate tags and improve search results.
Fix crash when starting without HOME If HOME environment variable is not set, sway fails startup with a segmentation fault due to null pointer dereference. Also check calloc return value and only perform the fallback code when really needed.
@@ -354,12 +354,14 @@ static char *config_path(const char *prefix, const char *config_folder) { static char *get_config_path(void) { char *path = NULL; const char *home = getenv("HOME"); - size_t size_fallback = 1 + strlen(home) + strlen("/.config"); - char *config_home_fallback = calloc(size_fallback, sizeof(char)); - snprintf(config_home_fallback, size_fallback, "%s/.config", home); + char *config_home_fallback = NULL; const char *config_home = getenv("XDG_CONFIG_HOME"); - if (config_home == NULL || config_home[0] == '\0') { + if ((config_home == NULL || config_home[0] == '\0') && home != NULL) { + size_t size_fallback = 1 + strlen(home) + strlen("/.config"); + config_home_fallback = calloc(size_fallback, sizeof(char)); + if (config_home_fallback != NULL) + snprintf(config_home_fallback, size_fallback, "%s/.config", home); config_home = config_home_fallback; }
changed format of author
@@ -338,7 +338,7 @@ you up to date with the multi-language support provided by Elektra. The website is generated from the repository, so all information about plugins, bindings and tools are always up to date. Furthermore, we changed: -- Added github build status badges to website @hesirui +- Added github build status badges to website _(hesirui)_ - <<TODO>> - <<TODO>>
Add quiet mode togit checkout
@@ -7,8 +7,7 @@ COMMIT_ID=03674790ae42c0d3675c5b462c52988f67454e11 cd .. git clone --branch master --single-branch --shallow-submodules --recurse-submodules --no-tags https://github.com/h2o/picotls cd picotls -# git checkout "$COMMIT_ID" -git checkout +git checkout -q "$COMMIT_ID" # git submodule init # git submodule update cmake $CMAKE_OPTS .
Extend PE allocation test with long entity name
@@ -5811,7 +5811,25 @@ external_entity_public(XML_Parser parser, const char *text1 = "<!ELEMENT doc EMPTY>\n" "<!ENTITY % e1 PUBLIC 'foo' 'bar.ent'>\n" - "<!ENTITY % e2 '%e1;'>\n" + "<!ENTITY % " + /* Each line is 64 characters */ + "ThisIsAStupidlyLongParameterNameIntendedToTriggerPoolGrowth12345" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + "ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP" + " '%e1;'>\n" "%e1;\n"; const char *text2 = "<!ATTLIST doc a CDATA 'value'>"; const char *text; @@ -5846,9 +5864,10 @@ START_TEST(test_alloc_public_entity_value) /* Repeat certain counts to defeat cached allocations */ if ((i == 2 && repeat < 2) || (i == 3 && repeat == 2) || - (i == 9 && repeat == 3) || - (i == 18 && repeat == 4) || - (i == 19 && repeat == 5)) { + (i == 8 && repeat == 3) || + (i == 9 && repeat == 4) || + (i == 18 && repeat == 5) || + (i == 19 && repeat == 6)) { i--; repeat++; }
Custom events variable handling fixes [ ] Incorrect variables weren't fixed (or rather were fixed but then override by the properties fix path) Variables included in commented events were added to the parameter list (part of bug report)
@@ -1580,11 +1580,7 @@ const editCustomEvent: CaseReducer< const fixedArgs = memo; if (isVariableField(event.command, arg, event.args[arg])) { fixedArgs[arg] = fix(event.args[arg]); - } else { - fixedArgs[arg] = event.args[arg]; - } - - if (isPropertyField(event.command, arg, event.args[arg])) { + } else if (isPropertyField(event.command, arg, event.args[arg])) { fixedArgs[arg] = fixProperty(event.args[arg]); } else { fixedArgs[arg] = event.args[arg]; @@ -1617,6 +1613,7 @@ const editCustomEvent: CaseReducer< const args = e.args; if (!args) return; + if (e.args.__comment) return; if (args.actorId && args.actorId !== "player") { const letter = String.fromCharCode(
nimble: Fix syscfg description We do support full extended advertising data range.
@@ -56,5 +56,5 @@ syscfg.defs: description: > This allows to configure maximum size of advertising data and scan response data used in LE Advertising Extensions. - Valid range 31-238. + Valid range 31-1650. value: 31
fix fprintf warnings in transmit-wspr-message.c
@@ -66,13 +66,13 @@ int main(int argc, char *argv[]) if(!config_lookup_int(&config, "chan", &chan)) { - fprintf(stderr, "No 'chan' setting in configuration file.\n", i); + fprintf(stderr, "No 'chan' setting in configuration file.\n"); return EXIT_FAILURE; } if(chan < 1 || chan > 2) { - fprintf(stderr, "Wrong 'chan' setting in configuration file.\n", i); + fprintf(stderr, "Wrong 'chan' setting in configuration file.\n"); return EXIT_FAILURE; }
Cirrus: Simplify OCLint install command
@@ -119,8 +119,6 @@ mac_task: install_script: - | # Install Homebrew formulas brew install openjdk - brew tap oclint/formulae - brew install oclint brew install antlr brew install antlr4-cpp-runtime brew install augeas @@ -143,6 +141,7 @@ mac_task: brew install maven brew install moreutils brew install ninja + brew install oclint/formulae/oclint brew install npm brew install openssl brew install pkg-config
Clarify documentation of index statistics with CRAM files For .crai indexes, hts_idx_get_stat() and hts_idx_get_n_no_coor() return 0 as these indexes don't record these statistics. Mention this in the documentation for the `AlignmentFile` methods that use these routines. Clarifies and
@@ -1760,6 +1760,8 @@ cdef class AlignmentFile(HTSFile): """int with total number of mapped alignments according to the statistics recorded in the index. This is a read-only attribute. + (This will be 0 for a CRAM file indexed by a .crai index, as that + index format does not record these statistics.) """ def __get__(self): self.check_index() @@ -1776,6 +1778,8 @@ cdef class AlignmentFile(HTSFile): """int with total number of unmapped reads according to the statistics recorded in the index. This number of reads includes the number of reads without coordinates. This is a read-only attribute. + (This will be 0 for a CRAM file indexed by a .crai index, as that + index format does not record these statistics.) """ def __get__(self): self.check_index() @@ -1792,6 +1796,8 @@ cdef class AlignmentFile(HTSFile): """int with total number of reads without coordinates according to the statistics recorded in the index, i.e., the statistic printed for "*" by the ``samtools idxstats`` command. This is a read-only attribute. + (This will be 0 for a CRAM file indexed by a .crai index, as that + index format does not record these statistics.) """ def __get__(self): self.check_index() @@ -1805,6 +1811,9 @@ cdef class AlignmentFile(HTSFile): they are stored in the index, similarly to the statistics printed by the ``samtools idxstats`` command. + CRAI indexes do not record these statistics, so for a CRAM file + with a .crai index the returned statistics will all be 0. + Returns: list : a list of records for each chromosome. Each record has the
avx512bw: replace 1ULL with UINT64_C(1)
@@ -653,7 +653,7 @@ simde_mm512_cmpeq_epi8_mask (simde__m512i a, simde__m512i b) { simde__mmask64 r_ = 0; for (size_t i = 0 ; i < (sizeof(a_.u8) / sizeof(a_.u8[0])) ; i++) { - r_ |= (a_.u8[i] == b_.u8[i]) ? (1ULL << i) : 0; + r_ |= (a_.u8[i] == b_.u8[i]) ? (UINT64_C(1) << i) : 0; } #endif @@ -864,7 +864,7 @@ simde_mm512_movepi8_mask (simde__m512i a) { r = 0; for (size_t i = 0 ; i < (sizeof(a_.i8) / sizeof(a_.i8[0])) ; i++) { - r |= (a_.i8[i] < 0) ? (1ULL << i) : 0; + r |= (a_.i8[i] < 0) ? (UINT64_C(1) << i) : 0; } #endif
Use https in url
<description>CMSIS (Common Microcontroller Software Interface Standard)</description> <vendor>ARM</vendor> <!-- <license>license.txt</license> --> - <url>http://www.keil.com/pack/</url> + <url>https://www.keil.com/pack/</url> <releases> <release version="5.9.1">
Debug comment is removed
@@ -52,7 +52,6 @@ for table in hlir.tables: else: byte_width = get_key_byte_width(k) #[ uint8_t field_${k.header.name}_${k.field_name}[$byte_width], - #[ /* ${dir(k.matchType)} */ # TODO have keys' and tables' matchType the same case (currently: LPM vs lpm) if k.matchType.path.name == "ternary": # TODO: LS Check! #[ uint8_t ${k.field_name}_mask[$byte_width],
board/primus/thermal.c: Format with clang-format BRANCH=none TEST=none
#define CPUTS(outstr) cputs(CC_THERMAL, outstr) #define CPRINTS(format, args...) cprints(CC_THERMAL, format, ##args) - - struct fan_step { /* * Sensor 1~4 trigger point, set -1 if we're not using this @@ -106,17 +104,14 @@ int fan_table_to_rpm(int fan, int *temp, enum temp_sensor_id temp_sensor) */ if (temp[temp_sensor] < prev_temp[temp_sensor]) { for (i = current_level; i > 0; i--) { - if (temp[temp_sensor] < - fan_table[i].off[temp_sensor]) + if (temp[temp_sensor] < fan_table[i].off[temp_sensor]) current_level = i - 1; else break; } - } else if (temp[temp_sensor] > - prev_temp[temp_sensor]) { + } else if (temp[temp_sensor] > prev_temp[temp_sensor]) { for (i = current_level; i < num_fan_levels; i++) { - if (temp[temp_sensor] > - fan_table[i].on[temp_sensor]) + if (temp[temp_sensor] > fan_table[i].on[temp_sensor]) current_level = i + 1; else break; @@ -148,7 +143,8 @@ void board_override_fan_control(int fan, int *temp) if (chipset_in_state(CHIPSET_STATE_ON)) { fan_set_rpm_mode(FAN_CH(fan), 1); fan_set_rpm_target(FAN_CH(fan), - fan_table_to_rpm(FAN_CH(fan), temp, TEMP_SENSOR_1_DDR_SOC)); + fan_table_to_rpm(FAN_CH(fan), temp, + TEMP_SENSOR_1_DDR_SOC)); } else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND)) { /* Stop fan when enter S0ix */ fan_set_rpm_mode(FAN_CH(fan), 1);
config: make bool reader accept 'on'
@@ -324,7 +324,8 @@ static int set_log_level(struct flb_config *config, char *v_str) static inline int atobool(char*v) { - return (strncasecmp("true", v, 256) == 0) + return (strncasecmp("true", v, 256) == 0 || + strncasecmp("on", v, 256) == 0) ? FLB_TRUE : FLB_FALSE; }
Change function arity error message.
@@ -1195,9 +1195,11 @@ static void *op_lookup[255] = { /* Handle function calls with bad arity */ vm_arity_error: { - retreg = dst_wrap_string(dst_formatc("calling %V got %d arguments, expected %d", + int32_t nargs = fiber->stacktop - fiber->stackstart; + retreg = dst_wrap_string(dst_formatc("%V called with %d argument%s, expected %d", dst_wrap_function(func), - fiber->stacktop - fiber->stackstart, + nargs, + nargs == 1 ? "" : "s", func->def->arity)); signal = DST_SIGNAL_ERROR; goto vm_exit;
Tests: added proxy test with large body.
@@ -188,6 +188,13 @@ Content-Length: 10 self.assertEqual(resp['status'], 200, 'status') self.assertEqual(resp['body'], payload, 'body') + self.conf({'http': {'max_body_size': 32 * 1024 * 1024}}, 'settings') + + payload = '0123456789abcdef' * 32 * 64 * 1024 + resp = self.post_http10(body=payload, read_buffer_size=1024 * 1024) + self.assertEqual(resp['status'], 200, 'status') + self.assertEqual(resp['body'], payload, 'body') + def test_proxy_parallel(self): payload = 'X' * 4096 * 257 buff_size = 4096 * 258
Fix issue with flash write on STMF0 series
@@ -133,6 +133,9 @@ int flash_lld_write(uint32_t startAddress, uint32_t length, const uint8_t* buffe // NOTE: assuming that the supply voltage is able to cope with half-word programming if((endAddress - cursor) >= 2) { + // Data synchronous Barrier, forcing the CPU to respect the sequence of instruction without optimization + __DSB(); + *(__IO uint16_t*)cursor = *((uint16_t*)buffer); // update flash and buffer pointers by the 'extra' byte that was programmed @@ -141,9 +144,11 @@ int flash_lld_write(uint32_t startAddress, uint32_t length, const uint8_t* buffe } else { + // Data synchronous Barrier, forcing the CPU to respect the sequence of instruction without optimization + __DSB(); + // program single byte *(__IO uint8_t*)cursor = *buffer; - // update flash pointer by the 'extra' byte that was programmed cursor += 2; } @@ -153,6 +158,9 @@ int flash_lld_write(uint32_t startAddress, uint32_t length, const uint8_t* buffe // watchdog will quick-in if execution gets stuck success = FLASH_WaitForLastOperation(0); + // after each program operation disable the PG Bit + CLEAR_BIT(FLASH->CR, FLASH_CR_PG); + if(!success) { // quit on failure @@ -160,9 +168,6 @@ int flash_lld_write(uint32_t startAddress, uint32_t length, const uint8_t* buffe } } - // after the program operation is completed disable the PG Bit - CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - // lock the FLASH HAL_FLASH_Lock(); } @@ -190,11 +195,6 @@ int flash_lld_isErased(uint32_t startAddress, uint32_t length) return true; } -uint8_t flash_lld_getSector(uint32_t address) -{ - return (address - FLASH_BASE) / F0_SERIES_SECTOR_SIZE; -} - int flash_lld_erase(uint32_t address) { bool success = true;
chat: adjust ChatMessage color
@@ -569,7 +569,7 @@ export const MessagePlaceholder = ({ > <Text display='block' - background='gray' + background='washedGray' width='24px' height='24px' borderRadius='50%' @@ -592,12 +592,13 @@ export const MessagePlaceholder = ({ display='inline-block' verticalAlign='middle' fontSize='0' - gray + washedGray cursor='default' > <Text maxWidth='32rem' display='block'> <Text - backgroundColor='gray' + backgroundColor='washedGray' + borderRadius='2' display='block' width='100%' height='100%' @@ -609,10 +610,11 @@ export const MessagePlaceholder = ({ mono verticalAlign='middle' fontSize='0' - gray + washedGray > <Text - background='gray' + background='washedGray' + borderRadius='2' display='block' height='1em' style={{ width: `${((index % 3) + 1) * 3}em` }} @@ -623,12 +625,14 @@ export const MessagePlaceholder = ({ verticalAlign='middle' fontSize='0' ml='2' - gray + washedGray + borderRadius='2' display={['none', 'inline-block']} className='child' > <Text - backgroundColor='gray' + backgroundColor='washedGray' + borderRadius='2' display='block' width='100%' height='100%' @@ -637,7 +641,8 @@ export const MessagePlaceholder = ({ </Box> <Text display='block' - backgroundColor='gray' + backgroundColor='washedGray' + borderRadius='2' height='1em' style={{ width: `${(index % 5) * 20}%` }} ></Text>
flash.c: stlink_open_usb can now return a sl with no, or unknown target. check flash type before attempting to continue flash operations
@@ -59,8 +59,14 @@ int main(int ac, char** av) sl = stlink_open_usb(o.log_level, 1, (char *)o.serial); - if (sl == NULL) + if (sl == NULL) { return -1; + } + + if (sl->flash_type == STLINK_FLASH_TYPE_UNKNOWN) { + printf("Failed to connect to target\n"); + return -1; + } if ( o.flash_size != 0u && o.flash_size != sl->flash_size ) { sl->flash_size = o.flash_size;
Use individual host files
@@ -148,9 +148,9 @@ def buildWindowsManagedImage(String os_series, String img_name_suffix, String la --command-id EnableRemotePS PRIVATE_IP=\$(echo \$VM_DETAILS | jq -r '.privateIps') - rm -f ${WORKSPACE}/scripts/ansible/inventory/hosts - echo "[windows-agents]" >> ${WORKSPACE}/scripts/ansible/inventory/hosts - echo "\$PRIVATE_IP" >> ${WORKSPACE}/scripts/ansible/inventory/hosts + rm -f ${WORKSPACE}/scripts/ansible/inventory/hosts-${launch_configuration} + echo "[windows-agents]" >> ${WORKSPACE}/scripts/ansible/inventory/hosts-${launch_configuration} + echo "\$PRIVATE_IP" >> ${WORKSPACE}/scripts/ansible/inventory/hosts-${launch_configuration} echo "ansible_user: ${JENKINS_USER_NAME}" >> ${WORKSPACE}/scripts/ansible/inventory/host_vars/\$PRIVATE_IP echo "ansible_password: ${JENKINS_USER_PASSWORD}" >> ${WORKSPACE}/scripts/ansible/inventory/host_vars/\$PRIVATE_IP echo "ansible_winrm_transport: ntlm" >> ${WORKSPACE}/scripts/ansible/inventory/host_vars/\$PRIVATE_IP @@ -158,8 +158,7 @@ def buildWindowsManagedImage(String os_series, String img_name_suffix, String la cd ${WORKSPACE}/scripts/ansible source ${WORKSPACE}/.jenkins/infrastructure/provision/utils.sh - ansible-playbook oe-windows-acc-setup.yml - ansible-playbook jenkins-packer.yml + ansible-playbook -i ${WORKSPACE}/scripts/ansible/inventory/hosts-${launch_configuration} oe-windows-acc-setup.yml jenkins-packer.yml az vm run-command invoke \ --resource-group ${vm_rg_name} \
doc: remove outdated [comment]
@@ -95,20 +95,6 @@ note = "This will rarely used within specifications, but is directly I.e. only storage plugins set and get this property." -[comment] -type = string -status = deprecated -usedby/plugin = keytometa -description = "The user's comment about the key (mostly its value). - - The first line is the comment after a key-value (in the same line) - further lines are the lines before a key-value. - - This metadata is deprecated because it assumes line-based comments - and cannot preserve formatting within comments." -note = "If used within specifications it refers to the specification, not - the key. Use `description` to refer to the key." - [comment/#] status = implemented usedby/plugin = hosts
install binutils on mac circleci
@@ -43,8 +43,20 @@ jobs: steps: - checkout - run: CI=1 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - - run: brew install go + - run: brew update && brew install nasm && brew install go + - run: brew tap nanovms/homebrew-x86_64-elf + - run: brew install x86_64-elf-binutils - run: make + - run: cp .circleci/boto ~/.boto + - run: wget https://storage.googleapis.com/pub/gsutil.tar.gz + - run: tar xfz gsutil.tar.gz -C ~ + - run: mkdir temp && cp output/stage3/stage3.img temp/ && cp output/boot/boot.img temp/ && cp output/mkfs/bin/mkfs temp/ + - run: cd temp && tar cvzf nanos-nightly-darwin.tar.gz * && ~/gsutil/gsutil cp nanos-nightly-darwin.tar.gz gs://nanos/release/nightly + - run: ~/gsutil/gsutil acl ch -u AllUsers:R gs://nanos/release/nightly/nanos-nightly-darwin.tar.gz + - run: rm -r temp + - run: echo $(date +"%m%d%Y") > nanos-nightly-darwin.timestamp + - run: ~/gsutil/gsutil cp nanos-nightly-darwin.timestamp gs://nanos/release/nightly + - run: ~/gsutil/gsutil acl ch -u AllUsers:R gs://nanos/release/nightly/nanos-nightly-darwin.timestamp workflows: version: 2
[mechanics] better fix for problem was boost::make_shared with a const ref
@@ -452,10 +452,10 @@ struct UpdateShapeVisitor : public SiconosVisitor void SiconosBulletCollisionManager_impl::updateAllShapesForDS(const BodyDS &bds) { - UpdateShapeVisitor updateShapeVisitor(*this); + SP::UpdateShapeVisitor updateShapeVisitor(new UpdateShapeVisitor(*this)); std::vector<std11::shared_ptr<BodyShapeRecord> >::iterator it; for (it = bodyShapeMap[&bds].begin(); it != bodyShapeMap[&bds].end(); it++) - (*it)->accept(updateShapeVisitor); + (*it)->acceptSP(updateShapeVisitor); } template<typename ST, typename BT, typename BR>
Add Point.scaled
@@ -19,6 +19,12 @@ class Point return new Point(v.x + x, v.y + y); } + public function scaled(scale:Float):Point + { + return new Point( x*scale, y*scale ); + } + + public function clone():Point { return new Point(x, y);
[mod_alias] fix typo in config error message
@@ -68,7 +68,7 @@ static int mod_alias_check_order(server * const srv, const array * const a) { while (*data != dj && *data != dk) ++data; if (*data == dj) { log_error(srv->errh, __FILE__, __LINE__, - "url.alias: `%s' will never match as `%s' matched first", + "alias.url: `%s' will never match as `%s' matched first", key->ptr, prefix->ptr); return 0; }
Add Coverity to Dockerfile
@@ -24,7 +24,7 @@ pushd tmp popd echo "Building image" -docker build -f build.Dockerfile \ +docker build -f jenkins/build.Dockerfile \ -t $IMAGE_NAME:latest \ -t $IMAGE_NAME:$IMAGE_VERSION \ -t $DOCKER_REGISTRY/$IMAGE_NAME:latest \
Add warning about backup pin
@@ -127,6 +127,34 @@ corresponding certificates' public key algorithms. For example: Some additional consideration in regards to the right pinning policy to deploy follow. +#### Always start with pinning enforcement disabled + +To avoid locking out too many users from your App when deploying SSL pinning +for the first time, it is advisable to set `kTSKEnforcePinning` to `NO`, so that SSL +connections will succeed regardless of pin validation. This means that TrustKit +will mirror iOS' default behavior. + + +#### Always provide at least one backup pin + +In order to prevent accidentally locking users out of your site, make sure you +have at least one backup pin and that you have procedures in place to +transition to using the backup pin if your primary pin can no longer be used. +For example, if you pin to the public key of your server's certificate, you +should generate a backup key that is stored somewhere safe. If you pin to an +intermediate CA or a root CA, then you should also select an alternative CA +that you are willing to switch to if your current CA (or their intermediate CA) +becomes invalid for some reason. + +If you do not have a backup pin, you could inadvertently prevent your app from +working until you released a new version of your app, and your users updated +it. [One such +incident](https://cabforum.org/pipermail/public/2016-November/008989.html) led +to a bank having to ask their CA to issue a new certificate using a deprecated +intermediate CA in order to allow their users to use the app, or face weeks of +the app being unusable. + + #### Consider leveraging auto-swizzling for simple Apps By setting `kTSKSwizzleNetworkDelegates` to `YES`, TrustKit will perform method @@ -151,14 +179,6 @@ authentication handlers'; see the "Manual Pin Validation" section in this guide instructions. -#### Always start with pinning enforcement disabled - -To avoid locking out too many users from your App when deploying SSL pinning -for the first time, it is advisable to set `kTSKEnforcePinning` to `NO`, so that SSL -connections will succeed regardless of pin validation. This means that TrustKit -will mirror iOS' default behavior. - - #### Deploy a reporting server or use Data Theorem's free server Adding a report URL using the `kTSKReportUris` setting to receive pin validation
[software] Wake up tiles at once in partial barrier
@@ -104,8 +104,7 @@ void mempool_partial_barrier(uint32_t core_id, uint32_t core_init, uint32_t tile_init = core_init / NUM_CORES_PER_TILE; uint32_t tile_end = core_end / NUM_CORES_PER_TILE; if (tile_end - tile_init > NUM_TILES_PER_GROUP) { - wake_up_tile(tile_init / NUM_TILES_PER_GROUP, - ((1U << (16 - tile_init)) - 1) << tile_init); + wake_up_tile(tile_init / NUM_TILES_PER_GROUP, ((1U << (16 - tile_init))-1) << tile_init); wake_up_tile(tile_end / NUM_TILES_PER_GROUP, ((1U << tile_end)-1)); } else if (tile_end - tile_init < NUM_TILES_PER_GROUP) { wake_up_tile(tile_init / NUM_TILES_PER_GROUP,
TCPMv2: Remove hc_remote_flash TCPMv2 does not support the Google alt mode and therefore cannot implement this host command. TEST=make buildall BRANCH=none
@@ -388,75 +388,6 @@ DECLARE_HOST_COMMAND(EC_CMD_USB_PD_CONTROL, hc_usb_pd_control, EC_VER_MASK(0) | EC_VER_MASK(1) | EC_VER_MASK(2)); #endif /* CONFIG_COMMON_RUNTIME */ -#if defined(CONFIG_HOSTCMD_FLASHPD) && defined(CONFIG_USB_PD_TCPMV2) -static enum ec_status hc_remote_flash(struct host_cmd_handler_args *args) -{ - const struct ec_params_usb_pd_fw_update *p = args->params; - int port = p->port; - int rv = EC_RES_SUCCESS; - const uint32_t *data = &(p->size) + 1; - int i, size; - - if (port >= board_get_usb_pd_port_count()) - return EC_RES_INVALID_PARAM; - - if (p->size + sizeof(*p) > args->params_size) - return EC_RES_INVALID_PARAM; - -#if defined(CONFIG_CHARGE_MANAGER) && defined(CONFIG_BATTERY) && \ - (defined(CONFIG_BATTERY_PRESENT_CUSTOM) || \ - defined(CONFIG_BATTERY_PRESENT_GPIO)) - /* - * Do not allow PD firmware update if no battery and this port - * is sinking power, because we will lose power. - */ - if (battery_is_present() != BP_YES && - charge_manager_get_active_charge_port() == port) - return EC_RES_UNAVAILABLE; -#endif - - switch (p->cmd) { - case USB_PD_FW_REBOOT: - pd_send_vdm(port, USB_VID_GOOGLE, VDO_CMD_REBOOT, NULL, 0); - /* - * Return immediately to free pending i2c bus. Host needs to - * manage this delay. - */ - return EC_RES_SUCCESS; - - case USB_PD_FW_FLASH_ERASE: - pd_send_vdm(port, USB_VID_GOOGLE, VDO_CMD_FLASH_ERASE, NULL, 0); - /* - * Return immediately. Host needs to manage delays here which - * can be as long as 1.2 seconds on 64KB RW flash. - */ - return EC_RES_SUCCESS; - - case USB_PD_FW_ERASE_SIG: - pd_send_vdm(port, USB_VID_GOOGLE, VDO_CMD_ERASE_SIG, NULL, 0); - break; - - case USB_PD_FW_FLASH_WRITE: - /* Data size must be a multiple of 4 */ - if (!p->size || p->size % 4) - return EC_RES_INVALID_PARAM; - - size = p->size / 4; - for (i = 0; i < size; i += VDO_MAX_SIZE - 1) { - pd_send_vdm(port, USB_VID_GOOGLE, VDO_CMD_FLASH_WRITE, - data + i, MIN(size - i, VDO_MAX_SIZE - 1)); - } - return EC_RES_SUCCESS; - - default: - return EC_RES_INVALID_PARAM; - } - - return rv; -} -DECLARE_HOST_COMMAND(EC_CMD_USB_PD_FW_UPDATE, hc_remote_flash, EC_VER_MASK(0)); -#endif /* CONFIG_HOSTCMD_FLASHPD && CONFIG_USB_PD_TCPMV2 */ - __overridable enum ec_pd_port_location board_get_pd_port_location(int port) { (void)port;
spi_txn: wait for next txn complete in init
@@ -468,9 +468,15 @@ void spi_bus_device_reconfigure(volatile spi_bus_device_t *bus, spi_mode_t mode, } spi_txn_t *spi_txn_init(volatile spi_bus_device_t *bus, spi_txn_done_fn_t done_fn) { - bus->txn_head = (bus->txn_head + 1) % SPI_TXN_MAX; + const uint8_t head = (bus->txn_head + 1) % SPI_TXN_MAX; + + volatile spi_txn_t *txn = &bus->txns[head]; + if (txn->status == TXN_IN_PROGRESS) { + // next txn is still in progress, wait for it to complete + spi_txn_wait(bus); + } + bus->txn_head = head; - volatile spi_txn_t *txn = &bus->txns[bus->txn_head]; txn->bus = bus; txn->status = TXN_WAITING; txn->segment_count = 0;
stm32/boards/NUCLEO_L476RG: Add support for RNG, DAC and CAN1. PLLQ is changed to get CAN working, and I2C1 pins are changed to those prescribed by the board.
#define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_FLASH (1) +#define MICROPY_HW_ENABLE_RNG (1) #define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_USB (1) +#define MICROPY_HW_ENABLE_DAC (1) // MSI is used and is 4MHz #define MICROPY_HW_CLK_PLLM (1) #define MICROPY_HW_CLK_PLLN (40) -#define MICROPY_HW_CLK_PLLR (2) -#define MICROPY_HW_CLK_PLLP (7) -#define MICROPY_HW_CLK_PLLQ (4) +#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7) +#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2) +#define MICROPY_HW_CLK_PLLR (RCC_PLLR_DIV2) // UART config #define MICROPY_HW_UART2_TX (pin_A2) #define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4 // I2C busses -#define MICROPY_HW_I2C1_SCL (pin_B6) -#define MICROPY_HW_I2C1_SDA (pin_B7) +#define MICROPY_HW_I2C1_SCL (pin_B8) +#define MICROPY_HW_I2C1_SDA (pin_B9) #define MICROPY_HW_I2C2_SCL (pin_B10) #define MICROPY_HW_I2C2_SDA (pin_B11) #define MICROPY_HW_I2C3_SCL (pin_C0) #define MICROPY_HW_SPI2_MISO (pin_B14) #define MICROPY_HW_SPI2_MOSI (pin_B15) +// CAN bus +#define MICROPY_HW_CAN1_TX (pin_A12) +#define MICROPY_HW_CAN1_RX (pin_A11) + // USRSW is pulled low. Pressing the button makes the input go high. #define MICROPY_HW_USRSW_PIN (pin_C13) #define MICROPY_HW_USRSW_PULL (GPIO_NOPULL) #define MICROPY_HW_USRSW_PRESSED (0) // LEDs -#define MICROPY_HW_LED1 (pin_A5) // Green LD2 LED on Nucleo +#define MICROPY_HW_LED1 (pin_A5) // Green LED on Nucleo #define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin)) #define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
BugID:17700895: set baudrate to 115200 for esp8266
@@ -168,7 +168,7 @@ typedef struct { #define WAIT_FOREVER -1 #define SKTPT_SOCKET_OFFSET 34 #define CONFIG_NETM_RDBUFSIZE 4096 -#define CONFIG_NETM_BAUD 750000 +#define CONFIG_NETM_BAUD 115200 #define LINE_LEN 128 #define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
Fix auto expressions for complex values. Hello Myrddin folks, The current code to handle auto expressions does not correctly deal with complex values (i.e., values that do not fit in a register). This patch attempts to fix the issue. Quentin
@@ -537,9 +537,8 @@ rval(Flattenctx *s, Node *n) args = n->expr.args; switch (exprop(n)) { case Oauto: - r = rval(s, n->expr.args[0]); - t = temp(s, r); - r = asn(t, r); + t = temp(s, n); + r = assign(s, t, n->expr.args[0]); lappend(&s->curst->autotmp, &s->curst->nautotmp, t); break; case Osize:
update generate_slider
@@ -74,7 +74,7 @@ class GenerateSlider: def draw(self, curve_pos): to_color = np.array([50, 50, 50]) # slider gradually become this color, the closer to the center the closer the color - im = np.zeros((int(384 * self.scale + self.extended*2), int(512 * self.scale + self.extended*2), 4), dtype=np.uint8) + im = np.zeros((int(390 * self.scale + self.extended * 2), int(520 * self.scale + self.extended * 2), 4), dtype=np.uint8) curve_pos = np.array(curve_pos) cv2.polylines(im, [curve_pos], False, (*self.sliderborder, 255), int(self.radius*2*self.scale), cv2.LINE_AA) @@ -100,10 +100,10 @@ class GenerateSlider: img = self.draw(curve_pos) # crop useless part of image - left_y_corner = int(min_y - self.extended) if int(min_y - self.extended) >= 0 else 0 - left_x_corner = int(min_x - self.extended) if int(min_x - self.extended) >= 0 else 0 - right_y_corner = int(max_y + self.extended) if int(max_y + self.extended) < img.shape[0] else img.shape[0] - right_x_corner = int(max_x + self.extended) if int(max_x + self.extended) < img.shape[1] else img.shape[1] + left_y_corner = max(0, int(min_y - self.extended)) + left_x_corner = max(0, int(min_x - self.extended)) + right_y_corner = min(img.shape[0], int(max_y + self.extended)) + right_x_corner = min(img.shape[1], int(max_x + self.extended)) img = img[left_y_corner:right_y_corner, left_x_corner:right_x_corner]
interface: changed alphabeticalOrder to ignore non-word characters
@@ -278,8 +278,12 @@ export function cite(ship: string): string { return `~${patp}`; } +export function stripNonWord(string: string): string { + return string.replace(/[^\p{L}\p{N}\p{Z}]/gu, ''); +} + export function alphabeticalOrder(a: string, b: string) { - return a.toLowerCase().localeCompare(b.toLowerCase()); + return stripNonWord(a).toLowerCase().trim().localeCompare(stripNonWord(b).toLowerCase().trim()); } export function lengthOrder(a: string, b: string) {
nissa: Add keyboard scan customisation Add the top row keyboard customisation for Nissa. TEST=zmake build nivviks; flash and run, check evtest BRANCH=none
#include "chipset.h" #include "cros_cbi.h" #include "hooks.h" +#include "keyboard_scan.h" #include "usb_mux.h" #include "system.h" @@ -159,3 +160,26 @@ enum nissa_sub_board_type nissa_get_sb_type(void) } return sb; } + +static const struct ec_response_keybd_config nissa_kb = { + .num_top_row_keys = 10, + .action_keys = { + TK_BACK, /* T1 */ + TK_REFRESH, /* T2 */ + TK_FULLSCREEN, /* T3 */ + TK_OVERVIEW, /* T4 */ + TK_SNAPSHOT, /* T5 */ + TK_BRIGHTNESS_DOWN, /* T6 */ + TK_BRIGHTNESS_UP, /* T7 */ + TK_VOL_MUTE, /* T8 */ + TK_VOL_DOWN, /* T9 */ + TK_VOL_UP, /* T10 */ + }, + .capabilities = KEYBD_CAP_SCRNLOCK_KEY, +}; + +__override const struct ec_response_keybd_config +*board_vivaldi_keybd_config(void) +{ + return &nissa_kb; +}
Pass:line copies tables of vectors to vertices better; Using vec3_init writes 4 floats which can, extremely rarely, go past the end of the vertex buffer.
@@ -558,9 +558,10 @@ static void luax_readvertices(lua_State* L, int index, float* vertices, uint32_t } else if (innerType == LUA_TUSERDATA || innerType == LUA_TLIGHTUSERDATA) { for (uint32_t i = 0; i < count; i++) { lua_rawgeti(L, index, i + 1); - vec3_init(vertices, luax_checkvector(L, -1, V_VEC3, NULL)); - lua_pop(L, 1); + float* v = luax_checkvector(L, -1, V_VEC3, NULL); + memcpy(vertices, v, 3 * sizeof(float)); vertices += 3; + lua_pop(L, 1); } } break;
add bindnow to makefile LFLAGS
@@ -110,7 +110,7 @@ LINKER = gcc ifdef MAC_OS LFLAGS = $(LSODIUM) $(LARGP) else -LFLAGS = $(LSODIUM) $(LSECCOMP) -fno-common +LFLAGS = $(LSODIUM) $(LSECCOMP) -fno-common -Wl,-z,now ifndef NODPKG LFLAGS +=$(shell dpkg-buildflags --get LDFLAGS) endif
chipset: convert reset_log_mutex to use K_MUTEX_DEFINE Using K_MUTEX_DEFINE() initializes the mutex automatically, thus removing the requirement to use k_mutex_init(). BRANCH=none TEST=zmake testall && make buildall
@@ -60,7 +60,7 @@ DECLARE_HOST_COMMAND(EC_CMD_AP_RESET, #endif #ifdef CONFIG_CMD_AP_RESET_LOG -static mutex_t reset_log_mutex; +K_MUTEX_DEFINE(reset_log_mutex); static int next_reset_log __preserved_logs(next_reset_log); static uint32_t ap_resets_since_ec_boot; /* keep reset_logs size a power of 2 */ @@ -83,9 +83,6 @@ void init_reset_log(void) next_reset_log = 0; memset(&reset_logs, 0, sizeof(reset_logs)); } -#ifdef CONFIG_ZEPHYR - (void)k_mutex_init(&reset_log_mutex); -#endif } void report_ap_reset(enum chipset_shutdown_reason reason)
Consistently check for __hpux__
@@ -140,7 +140,7 @@ bson_get_monotonic_time (void) /* Despite it's name, this is in milliseconds! */ int64_t ticks = GetTickCount64 (); return (ticks * 1000L); -#elif defined(__hpux) +#elif defined(__hpux__) int64_t nanosec = gethrtime (); return (nanosec / 1000UL); #else
Docs - update component versions for 6.10
<row> <entry><xref href="../analytics/greenplum_r_client.xml" format="dita" scope="peer" >GreenplumR</xref></entry> - <entry>1.0.0</entry> + <entry>1.1.0</entry> <entry>Supports R 3.6+.</entry> </row> <row class="- topic/row "> <body> <p> <ul id="ul_ckf_sfc_hbb"> - <li>Greenplum Platform Extension Framework (PXF) v5.13.0 - PXF, integrated with + <li>Greenplum Platform Extension Framework (PXF) v5.14.0 - PXF, integrated with Greenplum Database 6, provides access to Hadoop, object store, and SQL external data stores. Refer to <xref scope="peer" href="../admin_guide/external/pxf-overview.xml" >Accessing External Data with PXF</xref> in the <cite>Greenplum Database href="https://greenplum.docs.pivotal.io/streaming-server/1-4/kafka/intro.html" scope="external" format="html"> Pivotal Greenplum-Kafka Integration</xref> Documentation for more information about this feature.</li> - <li>Greenplum Streaming Server v1.4 - The Pivotal Greenplum Streaming Server is an ETL tool - that provides high speed, parallel data transfer from Informatica, Kafka, and custom - client data sources to a Pivotal Greenplum Database cluster. Refer to the <xref - href="https://greenplum.docs.pivotal.io/streaming-server/1-4/intro.html" scope="external" format="html"> - Pivotal Greenplum Streaming Server</xref> + <li>Greenplum Streaming Server v1.4.1 - The Pivotal Greenplum Streaming Server is an ETL + tool that provides high speed, parallel data transfer from Informatica, Kafka, and + custom client data sources to a Pivotal Greenplum Database cluster. Refer to the <xref + href="https://greenplum.docs.pivotal.io/streaming-server/1-4/intro.html" + scope="external" format="html"> Pivotal Greenplum Streaming Server</xref> Documentation for more information about this feature.</li> <li>Greenplum Informatica Connector v1.0.5 - The Pivotal Greenplum Informatica Connector supports high speed data transfer from an Informatica PowerCenter cluster to a Pivotal <title id="pm357649">Hadoop Distributions</title> <body> <p>Greenplum Database provides access to HDFS with the Greenplum Platform Extension Framework - (PXF).<ph otherprops="oss-only"> PXF v5.13.0 is integrated with Greenplum Database 6, and + (PXF).<ph otherprops="oss-only"> PXF v5.14.0 is integrated with Greenplum Database 6, and provides access to Hadoop, object store, and SQL external data stores. Refer to <xref scope="peer" href="../admin_guide/external/pxf-overview.xml">Accessing External Data with PXF</xref> in the <cite>Greenplum Database Administrator Guide</cite> for PXF </thead> <tbody> <row> - <entry colname="col1">5.13.0, 5.12.0, 5.11.1, 5.10.1</entry> + <entry colname="col1">5.14.0, 5.13.0, 5.12.0, 5.11.1, 5.10.1</entry> <entry colname="col2">2.x, 3.1+</entry> <entry colname="col3">1.x, 2.x, 3.1+</entry> <entry colname="col4">1.3.2</entry>
Continue on icon loading failure If loading the icon from xpm fails, launch scrcpy without window icon. <https://github.com/Genymobile/scrcpy/issues/539>
@@ -177,13 +177,12 @@ screen_init_rendering(struct screen *screen, const char *device_name, } SDL_Surface *icon = read_xpm(icon_xpm); - if (!icon) { - LOGE("Could not load icon: %s", SDL_GetError()); - screen_destroy(screen); - return false; - } + if (icon) { SDL_SetWindowIcon(screen->window, icon); SDL_FreeSurface(icon); + } else { + LOGW("Could not load icon"); + } LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width, frame_size.height);
CI: update actions/checkout version Bump to version 3.
@@ -35,7 +35,7 @@ jobs: # Checks out the repo with full history - name: Checkout github repo (+ download lfs dependencies) - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: '0' submodules: 'recursive'
cups-browsed.c: Fix conditional jumps based on uninitialized value Strings added with IPP_TAG_MIMETYPE and IPP_TAG_KEYWORD tags use uninitialized buffers, which causes random behavior. The buffers can be initialized via f.e. 'snprintf()'.
@@ -1408,8 +1408,8 @@ void add_mimetype_attributes(char* cluster_name, ipp_t **merged_attributes) for (q = (char *)cupsArrayFirst(list),i=0; q; q = (char *)cupsArrayNext(list),i++) { - values[i]=malloc(sizeof(char)*strlen(q)+1); - strncpy(values[i], q, sizeof(values[i]) - 1); + values[i]=malloc(sizeof(char) * (strlen(q) + 1)); + snprintf(values[i], strlen(q) + 1, "%s", q); } ippAddStrings(*merged_attributes, IPP_TAG_PRINTER,IPP_TAG_MIMETYPE, attributes[attr_no], num_value, NULL, @@ -1480,8 +1480,8 @@ void add_tagzero_attributes(char* cluster_name, ipp_t **merged_attributes) /* Transferring attributes value from cups Array to char* array*/ for (q = (char *)cupsArrayFirst(list), i = 0; q; q = (char *)cupsArrayNext(list), i ++) { - values[i] = malloc(sizeof(char) * strlen(q) + 1); - strncpy(values[i], q, sizeof(values[i]) - 1); + values[i] = malloc(sizeof(char) * (strlen(q) + 1)); + snprintf(values[i], strlen(q) + 1, "%s", q); } ippAddStrings(*merged_attributes, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, attributes[attr_no], @@ -1551,8 +1551,8 @@ void add_keyword_attributes(char* cluster_name, ipp_t **merged_attributes) for (q = (char *)cupsArrayFirst(list), i=0; q; q = (char *)cupsArrayNext(list), i ++) { - values[i] = malloc(sizeof(char) * strlen(q) + 1); - strncpy(values[i], q, sizeof(values[i]) - 1); + values[i] = malloc(sizeof(char) * (strlen(q) + 1)); + snprintf(values[i], strlen(q) + 1, "%s", q); } ippAddStrings(*merged_attributes, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, attributes[attr_no], num_value, NULL,
print warning on --do_rcascan is no radiotap header is detected
@@ -5126,11 +5126,17 @@ while(1) } packet_ptr = &epb[EPB_SIZE]; rth = (rth_t*)packet_ptr; + if((rth->it_version != 0) && (rth->it_pad != 0)) + { + printf("\nmissing radiotap header\n"); + globalclose(); + } ieee82011_ptr = packet_ptr +le16toh(rth->it_len); ieee82011_len = packet_len -le16toh(rth->it_len); if(rth->it_present == 0) { - continue; + printf("\nmissign radiotap flags\n"); + globalclose(); } if((rth->it_present & 0x20) == 0) {
[kernel] remove preupdate that seems to be useless now. (to be confirmed)
@@ -205,7 +205,7 @@ void Simulation::insertNonSmoothProblem(SP::OneStepNSProblem osns, int Id) void Simulation::initialize() { DEBUG_BEGIN("Simulation::initialize()\n"); - + DEBUG_EXPR_WE(std::cout << "Name :"<< name() << std::endl;); // 1- OneStepIntegrators initialization === // we set the simulation pointer and the graph of DS in osi @@ -245,7 +245,6 @@ void Simulation::initialize() itc++; DEBUG_EXPR(changes.display()); - if (changes.typeOfChange == NonSmoothDynamicalSystem::addDynamicalSystem) { SP::DynamicalSystem ds = changes.ds; @@ -260,10 +259,8 @@ void Simulation::initialize() "OSI. We assign the following OSI to this DS." << std::endl; } } - DEBUG_EXPR(ds->display();); OneStepIntegrator& osi = *DSG->properties(DSG->descriptor(ds)).osi; osi.initializeDynamicalSystem(getTk(),ds); - DEBUG_EXPR(ds->display();); } else if (changes.typeOfChange == NonSmoothDynamicalSystem::addInteraction) { @@ -321,7 +318,7 @@ void Simulation::initialize() // for example. Warning: can not be called during // eventsManager->initialize, because it needs the initialization of // OSI, OSNS ... - _eventsManager->preUpdate(*this); + // _eventsManager->preUpdate(*this); _tend = _eventsManager->nextTime();
Juniper: Fix juniper accel icm matrix. Fix Juniper accel icm matrix. BRANCH=kukui TEST=Check CTS-V accelerometer measurement tests pass.
@@ -346,7 +346,7 @@ static const mat33_fp_t base_bmi160_ref = { static const mat33_fp_t base_icm426xx_ref = { {0, FLOAT_TO_FP(-1), 0}, - {FLOAT_TO_FP(-1), 0, 0}, + {FLOAT_TO_FP(1), 0, 0}, {0, 0, FLOAT_TO_FP(1)} };
Fixed missing ) Sorry!
@@ -197,7 +197,7 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) { ets_strcat(resp,"<br/>Set USB Mode:" "<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('GET', 'client'); xhr.send()\" type='button'>Client</button>" "<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('GET', 'cdp'); xhr.send()\" type='button'>CDP</button>" - "<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('GET', 'dcp'); xhr.send()\" type='button'>DCP</button>"; + "<button onclick=\"var xhr = new XMLHttpRequest(); xhr.open('GET', 'dcp'); xhr.send()\" type='button'>DCP</button>"); espconn_send_string(&web_conn, resp); espconn_disconnect(conn);
Keep drivers enabled also in reference build
@@ -2046,11 +2046,10 @@ config_psa_crypto_hash_use_psa () { DRIVER_ONLY="$1" # start with config full for maximum coverage (also enables USE_PSA) scripts/config.py full - # enable support for configuring PSA-only algorithms + # enable support for drivers and configuring PSA-only algorithms scripts/config.py set MBEDTLS_PSA_CRYPTO_CONFIG - if [ "$DRIVER_ONLY" -eq 1 ]; then - # enable support for drivers scripts/config.py set MBEDTLS_PSA_CRYPTO_DRIVERS + if [ "$DRIVER_ONLY" -eq 1 ]; then # disable the built-in implementation of hashes scripts/config.py unset MBEDTLS_MD5_C scripts/config.py unset MBEDTLS_RIPEMD160_C
nrf52xx uart; drain UART TX fifo when device is getting closed.
@@ -472,6 +472,11 @@ hal_uart_close(int port) #endif u->u_open = 0; + if (u->u_tx_started) { + while (nrf_uart->EVENTS_ENDTX == 0) { + /* Wait here until the dma is finished */ + } + } nrf_uart->ENABLE = 0; nrf_uart->INTENCLR = 0xffffffff; return 0;
flash_ec: remove board-to-nrf51 conversion logic Servod already knows ec_chip of hadoken is 'nrf51'. CQ-DEPEND=CL:1493037, CL:1491936 BRANCH=none TEST=none
@@ -112,10 +112,6 @@ BOARDS_NPCX_SPI=( glkrvp ) -BOARDS_NRF51=( - hadoken -) - BOARDS_SPI_1800MV=( coral reef @@ -250,10 +246,6 @@ if $(in_array "${BOARDS_NPCX_SPI[@]}" "${BOARD}"); then SUPPORTED_CHIPS+=("npcx_spi") fi -if $(in_array "${BOARDS_NRF51[@]}" "${BOARD}"); then - SUPPORTED_CHIPS+=("nrf51") -fi - if $(in_array "${BOARDS_IT83XX[@]}" "${BOARD}"); then SUPPORTED_CHIPS+=("it83xx") fi
oauth2: add missing code to clear sds string Context:
@@ -242,6 +242,7 @@ struct flb_oauth2 *flb_oauth2_create(struct flb_config *config, /* Clear the current payload and token */ void flb_oauth2_payload_clear(struct flb_oauth2 *ctx) { + flb_sds_len_set(ctx->payload, 0); ctx->payload[0] = '\0'; ctx->expires_in = 0; if (ctx->access_token){
test: update usrsocktest script
@@ -29,5 +29,5 @@ def test_popen(p): def test_usrsocktest(p): - ret = p.sendCommand("usrsocktest", "HEAP AFTER TESTS", 60) + ret = p.sendCommand("usrsocktest", "FAILED:0", 60) assert ret == 0
nvm_get_debug_logs null terminator added
@@ -2755,6 +2755,7 @@ static void convert_debug_log_entry_to_event(log_entry *p_log_entry, char *event for (; (*p_src_msg != '\n') && (*p_src_msg != 0); p_src_msg++, p_dst_msg++) *p_dst_msg = *p_src_msg; + *p_dst_msg = 0; // add the null terminator } NVM_API int nvm_get_debug_logs(struct nvm_log *p_logs, const NVM_UINT32 count)
nrf/main: Make mp_builtin_open signature match that in py/builtin.h.
@@ -280,10 +280,10 @@ mp_import_stat_t mp_import_stat(const char *path) { return uos_mbfs_import_stat(path); } -STATIC mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args) { +mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { return uos_mbfs_open(n_args, args); } -MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_open_obj, 1, 2, mp_builtin_open); +MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open); #else // use dummy functions - no filesystem available @@ -295,7 +295,7 @@ mp_import_stat_t mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; } -STATIC mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { +mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { mp_raise_OSError(MP_EPERM); } MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
feat(Kconfig): add FreeType config
@@ -880,10 +880,24 @@ menu "LVGL configuration" config LV_USE_FREETYPE bool "FreeType library" + if LV_USE_FREETYPE + menu "FreeType cache config" config LV_FREETYPE_CACHE_SIZE int "Memory used by FreeType to cache characters [bytes] (-1: no caching)" - depends on LV_USE_FREETYPE default 16384 + if LV_FREETYPE_CACHE_SIZE >= 0 + config LV_FREETYPE_SBIT_CACHE + bool "enable sbit cache" + default n + config LV_FREETYPE_CACHE_FT_FACES + int "The maximum number of FT_Face(0: use defaults)" + default 0 + config LV_FREETYPE_CACHE_FT_SIZES + int "The maximum number of FT_Size(0: use defaults)" + default 0 + endif + endmenu + endif config LV_USE_RLOTTIE bool "Lottie library"
Update changelog for 15.0-3.
-aomp (15.0-2) UNRELEASED; urgency=medium +aomp (15.0-3) UNRELEASED; urgency=medium * Initial release of aomp is 0.3-2 * Please see example in /usr/lib/aomp/examples/vmuldemo @@ -742,5 +742,15 @@ aomp (15.0-2) UNRELEASED; urgency=medium * for thread parallelization. __kmpc_parallel_51 increases parallel level and it launches parallel code. * Updated cloc.sh in aomp-extras to pass bitcode for abi version. * Fixed timing accuracy for OMPT target data transfer and kernel dispatch trace records + * + * 15.0-3 + * Use the new openmp DeviceRTL by default. + * New DeviceRTL APIs for optimized cross-team reduction. + * Clang codegen changes to use the optimized cross-team reduction APIs for a reduction clause in a device construct. + * Added support for classic flang to use the new DeviceRTL. + * + * Known Issues: + * Flang has issues at -O0 when using the new DeviceRTL on GPUs other than gfx90a. + * Nekbone app currently has performance issues due to the rpc thread being turned on. -- Greg Rodgers <[email protected]> Thu, 19 May 2022 23:34:44 -0500
This should fix a lock-order-inversion Calling OPENSSL_init_crypto before acquiring the ossl_property_read_lock in ossl_method_store_fetch makes the second call to OPENSSL_init_crypto from ossl_ctx_global_properties unnecessary. Fixes
@@ -338,7 +338,8 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, int j, best = -1, score, optional; #ifndef FIPS_MODULE - OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL); + if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) + return 0; #endif if (nid <= 0 || method == NULL || store == NULL) @@ -357,7 +358,7 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, if (prop_query != NULL) p2 = pq = ossl_parse_query(store->ctx, prop_query); - plp = ossl_ctx_global_properties(store->ctx, 1); + plp = ossl_ctx_global_properties(store->ctx, 0); if (plp != NULL && *plp != NULL) { if (pq == NULL) { pq = *plp;
Use TGuard<TMutex> to acquire lock
@@ -133,9 +133,10 @@ public: if (IsSyncDirSet() && !LockPort(port)) continue; - Lock.Acquire(); + { + TGuard<TMutex> g(Lock); Sockets.push_back(std::move(sock)); - Lock.Release(); + } return port; } ythrow yexception() << "Failed to find port";
github: Update workflow changelog.
"target": "$1", "on_property": "title" }, + { + "pattern": "(^Lepton)(.+)", + "method": "replace", + "target": "sensors", + "on_property": "title" + }, { "pattern": "(^drivers)(.+)", "method": "replace",
Change FIFO size to 4KB (not sure) The datasheet says 2KB FIFO, but accroding to many code examples, the F1C100s has at least 4KB of FIFO memory. This is working with cdc_msc example, but I'm not sure, this should be checked.
@@ -389,7 +389,7 @@ static inline void print_block_list(free_block_t const *blk, unsigned num) #endif #if CFG_TUSB_MCU == OPT_MCU_F1C100S -#define USB_FIFO_SIZE_KB 2 +#define USB_FIFO_SIZE_KB 4 #else #error "Unsupported MCU" #endif
Fixed pack manifest.
pdsc: ARM.CMSIS.pdsc preproc: - - clean: CMSIS/Documentation/(Core,Core_A,DAP,Driver,DSP,General,Pack,RTOS,RTOS2,SVD,Zone) + - clean: CMSIS/Documentation/(Core,Core_A,DAP,Driver,DSP,NN,General,Pack,RTOS,RTOS2,SVD,Zone) - doxygen: CMSIS/DoxyGen/Core/core.dxy - doxygen: CMSIS/DoxyGen/Core_A/core_A.dxy - doxygen: CMSIS/DoxyGen/DAP/dap.dxy
Fix memory leak in ossl_rsa_fromdata. Occurs if a malloc failure happens inside collect_numbers() Reported via
@@ -49,9 +49,12 @@ static int collect_numbers(STACK_OF(BIGNUM) *numbers, if (p != NULL) { BIGNUM *tmp = NULL; - if (!OSSL_PARAM_get_BN(p, &tmp) - || sk_BIGNUM_push(numbers, tmp) == 0) + if (!OSSL_PARAM_get_BN(p, &tmp)) return 0; + if (sk_BIGNUM_push(numbers, tmp) == 0) { + BN_clear_free(tmp); + return 0; + } } }
fix perms on downloaded Go modules for CI
@@ -9,6 +9,7 @@ endif export GOBIN := $(shell pwd)/.gobin/$(ARCH) export GOCACHE := $(shell pwd)/.gocache export GOMODCACHE := $(shell pwd)/.gomod +export GOFLAGS := -modcacherw BINDIR := ../bin/linux/$(ARCH) LIBDIR := ../lib/linux/$(ARCH)
Switch to using Homebrew on MacOS I've been thinking about doing this for a while. I've been having more configuration issues with MacPorts lately. Homebrew seems to be more popular and have more support, as well as having a cleaner implementation. [ci skip]
@@ -47,10 +47,13 @@ following: xcode-select --install -Install MacPorts from https://www.macports.org/install.php, then use it to install -the remaining packages from the terminal: +Install Homebrew from https://brew.sh/, then use it to install the remaining packages +from the terminal (do *not* use sudo): - sudo port install cmake bison swig swig-python imagemagick libsdl2 curl emacs + brew install cmake bison swig imagemagick sdl2 emacs ninja + +*This will also work with MacPorts if that is installed on your system, but +you will need to tweak the package names* You may optionally install [GTKWave](http://gtkwave.sourceforge.net/) for analyzing waveform files. @@ -76,7 +79,7 @@ The following script will download and install the Although some Linux package managers have Verilator, they have old versions. It will ask for your root password a few times to install stuff. - scripts/setup_tools.sh + ./scripts/setup_tools.sh Build everything else: @@ -103,12 +106,13 @@ Occasionally a change will require a new version of the compiler. To rebuild: ## Next Steps Sample applications are available in [software/apps](software/apps). You can -run these in the emulator by typing 'make run' (some need 3rd party data -files, details are in the READMEs in those directories). +run these in the emulator by switching to the build directory and using +the run_emulator script (some need 3rd party data files, details are in +the READMEs in those directories). For example, this will render a 3D model in the emulator: - cd software/apps/sceneview + cd build/software/apps/sceneview ./run_emulator To run on FPGA, see instructions in hardware/fpga/de2-115/README.md