message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix compilation;
@@ -78,7 +78,7 @@ add_executable(lovr ${LOVR_SRC} ${LOVR_HEADSET}) if(EMSCRIPTEN) set(CMAKE_EXECUTABLE_SUFFIX ".html") - add_definitions(-s USE_ZLIB=1 -s ASSERTIONS=2 -s FULL_ES2=1 -O3 -s AGGRESSIVE_VARIABLE_ELIMINATION=1 -s OUTLINING_LIMIT=15000) + add_definitions(-s USE_ZLIB=1 -s ASSERTIONS=2 -s FULL_ES2=1 -O3 -s AGG...
Add LDFLAGS to Lflags in generated janet.pc
@@ -285,7 +285,7 @@ $(PKG_CONFIG_PATH)/janet.pc: $(JANET_TARGET) echo "Description: Library for the Janet programming language." >> $@ $(JANET_TARGET) -e '(print "Version: " janet/version)' >> $@ echo 'Cflags: -I$${includedir}' >> $@ - echo 'Libs: -L$${libdir} -ljanet' >> $@ + echo 'Libs: -L$${libdir} -ljanet $(LDFLAGS...
Add e_invincible_state enum.
@@ -137,6 +137,17 @@ typedef enum AUTOKILL_ATTACK_HIT = (1 << 1) } e_autokill_state; +// Caskey, Damon V. +// 2019-02-05 +typedef enum +{ + INVINCIBLE_NONE = 0, + INVINCIBLE_INTANGIBLE = (1 << 0), + INVINCIBLE_HP_MINIMUM = (1 << 1), + INVINCIBLE_HP_NULLIFY = (1 << 2), + INVINCIBLE_HP_RESET = (1 << 3) +} e_invincible_st...
VERSION bump to version 1.2.2
@@ -27,7 +27,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 1) +set(SYSREPO_MICRO_VERSION 2) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR...
globally disable hashboard (pending actual hashes)
@@ -80,7 +80,10 @@ _main_getopt(c3_i argc, c3_c** argv) u3_Host.ops_u.etn = c3n; u3_Host.ops_u.gab = c3n; u3_Host.ops_u.git = c3n; - u3_Host.ops_u.has = c3n; + // always disable hashboard + // XX temporary, remove once hashes are added + // + u3_Host.ops_u.has = c3y; u3_Host.ops_u.net = c3y; u3_Host.ops_u.nuu = c3n; u3...
[P2P] Fix rarely occurred test failure There was a timing bug in unit test.
@@ -295,9 +295,9 @@ func TestMultiLoads(t *testing.T) { go consumeForLongterm(c, tt.testTime+time.Minute, doneC, finish) wg := sync.WaitGroup{} expire := time.Now().Add(tt.testTime) + wg.Add(threadsize) for j := 0; j < threadsize; j++ { go func(tid int) { - wg.Add(1) i := 0 for time.Now().Before(expire) { c.In() <- mos...
hack/use-sbx-platform: add the steps for ubuntu
@@ -37,8 +37,12 @@ cd ../../QuoteVerification make clean USE_SBX_PLATFORM=1 make # replace with modified QVL/QVE +[ -d /usr/lib/x86_64-linux-gnu ] && + sudo cp -f dcap_quoteverify/linux/libsgx_dcap_quoteverify.so.1 /usr/lib/x86_64-linux-gnu/libsgx_dcap_quoteverify.so.1.* || sudo cp -f dcap_quoteverify/linux/libsgx_dcap...
Disable RHEL package builds since upstream is broken.
@@ -15,10 +15,10 @@ matrix: include: - env: PGB_CI="test --vm=u12" - env: PGB_CI="test --vm=f30 --param=no-package --param=c-only" - - env: PGB_CI="test --vm=co6 --param=module=mock --param=module=real" + - env: PGB_CI="test --vm=co6 --param=no-package --param=module=mock --param=module=real" - env: PGB_CI="test --vm=u...
ssl_msg.c: fix parm in call to mbedtls_ssl_decrypt_buf()
@@ -1332,7 +1332,7 @@ int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context const *ssl, add_data, add_data_len, data, rec->data_len + transform->taglen, data, rec->buf_len - (data - rec->buf), - &rec->data_len ); + &olen ); if( status != PSA_SUCCESS ) return( psa_status_to_mbedtls( status ) );
increase MAC range from +-0x10 to +-0x20
@@ -2164,8 +2164,8 @@ static char pskstring[PSKSTRING_LEN_MAX] = {}; me = macaddr &0xffffff; fprintf(fhout, "05%6d\n", me); oui = macaddr &0xffffff000000L; -nic = (macaddr -0x10) &0xffffffL; -for(c = 0; c <= 0x10; c++) writebssid(fhout, oui +((nic +c) &0xffffffL)); +nic = (macaddr -0x20) &0xffffffL; +for(c = 0; c <= 0x...
Removed unnecessary operations in ++so-resub.
(so-delta-our %follow | [src ~ ~]) =- (so-delta-our %follow & [[cir.src -] ~ ~]) ^- range - ?. (~(has by sequence) cir.src) ran.src - =- `[[%ud (~(got by sequence) cir.src)] -] + ?~ seq ran.src + =- `[[%ud u.seq] -] ?~ ran.src ~ tal.u.ran.src ::
Remove the #ifdef ANDROID blocks in LogManagerProvider.hpp, as even on android they're not used. There's a better design for this.
@@ -40,11 +40,6 @@ namespace ARIASDK_NS_BEGIN ILogConfiguration& cfg, status_t& status, IHttpClient* httpClient, -#ifdef ANDROID - JNIEnv *env, - jclass contextClass, - jobject contextObject, -#endif uint64_t targetVersion = MAT::Version) { cfg["name"] = id; @@ -76,11 +71,6 @@ namespace ARIASDK_NS_BEGIN char const* id,...
Add feature support for AES for PSA crypto config Basic support for enabling AES through PSA_WANT_KEY_TYPE_AES.
@@ -220,6 +220,12 @@ extern "C" { #endif /* !MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY */ #endif /* PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY */ +#if defined(PSA_WANT_KEY_TYPE_AES) +#if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES) +#define MBEDTLS_AES_C +#endif /* !MBEDTLS_PSA_ACCEL_KEY_TYPE_AES */ +#endif /* PSA_WANT_KEY_TYPE_AES ...
Validate parser parameter to XML_SetStartDoctypeDeclHandler
@@ -1485,6 +1485,7 @@ XML_SetDoctypeDeclHandler(XML_Parser parser, void XMLCALL XML_SetStartDoctypeDeclHandler(XML_Parser parser, XML_StartDoctypeDeclHandler start) { + if (parser != NULL) startDoctypeDeclHandler = start; }
OpenPartitionDxe: Fix calculation
@@ -588,7 +588,7 @@ PartitionCheckGptEntryArrayCRC ( return FALSE; } - Size = PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry; + Size = ((UINTN) PartHeader->NumberOfPartitionEntries) * PartHeader->SizeOfPartitionEntry; Status = gBS->CalculateCrc32 (Ptr, Size, &Crc); if (EFI_ERROR (Status)) {
EFAS: rename of key
@@ -20,13 +20,13 @@ unsigned[1] monthOfForecast = month : dump; unsigned[1] dayOfForecast = day : dump; unsigned[1] hourOfForecast = hour : dump; unsigned[1] minuteOfForecast = minute : dump; -constant secondsOfForecast = 0; +constant secondOfForecast = 0; meta dateOfForecast g2date(yearOfForecast,monthOfForecast, dayO...
mdns-example: fail gracefully if mdns response not received within timeout If mdns answer hasn't been received within timeout, Value error would be raised, but the mdns-server-thread would still run, blocking CI jobs. Fixed by moving the raise statement within try-finally block
@@ -117,11 +117,11 @@ def test_examples_protocol_mdns(env, extra_data): stop_mdns_server.set() thread1.join() raise ValueError('ENV_TEST_FAILURE: Cannot connect to AP') + try: # 3. check the mdns name is accessible if not esp_answered.wait(timeout=30): raise ValueError('Test has failed: did not receive mdns answer with...
nimble/l2cap: Fix return error code os_mbuf_foo() returns OS_ERR codes and we want to return BLE_HS_ERR codes. This patch fixes it
@@ -440,6 +440,7 @@ ble_l2cap_coc_continue_tx(struct ble_l2cap_chan *chan) BLE_HS_LOG(DEBUG, "Sending SDU len=%d\n", OS_MBUF_PKTLEN(tx->sdu)); rc = os_mbuf_append(txom, &l, sizeof(uint16_t)); if (rc) { + rc = BLE_HS_ENOMEM; BLE_HS_LOG(DEBUG, "Could not append data rc=%d", rc); goto failed; } @@ -452,6 +453,7 @@ ble_l2c...
Misra 15_7: fix what seems to be a false positive of cppcheck
@@ -320,6 +320,8 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, bool hardwired) // if the ignition hook depends on something other than the started GPIO // we have to disable power savings (fix for GM and Tesla) set_power_save_state(POWER_SAVE_STATUS_DISABLED); + } else { + // power mode is already ...
docs: update wifi country code docs.
@@ -1365,13 +1365,7 @@ The following table depicts which country info is used in different Wi-Fi modes For scan: - - If schan+nchan-1 >11 : - - Use active scan from schan to 11 and use passive scan from 12 to 14. - - - If schan+nchan-1 <= 11 : - - Use active scan from schan to schan+nchan-1 and use passive scan from sc...
add debsource as a requirement to deb
@@ -775,7 +775,7 @@ ubuntu-bionic-source: distclean preparedeb @rm debian/oidc-agent-desktop.triggers .PHONY: deb -deb: cleanapi create_obj_dir_structure preparedeb +deb: cleanapi create_obj_dir_structure preparedeb debsource debuild -i -b -uc -us @echo "Success: DEBs are in parent directory"
Use PSA_BLOCK_CIPHER_BLOCK_LENGTH instead of PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE in ssl_tls12_populate_transform()
@@ -7103,7 +7103,7 @@ static int ssl_tls12_populate_transform( mbedtls_ssl_transform *transform, ssl_mode == MBEDTLS_SSL_MODE_CBC_ETM ) { #if defined(MBEDTLS_USE_PSA_CRYPTO) - size_t block_size = PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE; + size_t block_size = PSA_BLOCK_CIPHER_BLOCK_LENGTH( key_type ); #else size_t block_size = ...
vlib: always replace bootstrap vlib_mains Fixes an obscure issue when spinning up pure pthreads which don't have vlib_main_t clones. VLIB_REGISTER_THREAD () = { <snip> .use_pthreads = 1, .no_data_structure_clone = 1, } Type: improvement
@@ -707,16 +707,15 @@ start_workers (vlib_main_t * vm) clib_callback_data_init (&vm->vlib_node_runtime_perf_callbacks, &vm->worker_thread_main_loop_callback_lock); - if (n_vlib_mains > 1) - { /* Replace hand-crafted length-1 vector with a real vector */ vlib_mains = 0; - vec_validate_aligned (vlib_mains, tm->n_vlib_mai...
type: small fix in docu
@@ -21,7 +21,7 @@ provides to other programming languages. The type checker plugin supports all basic CORBA types: `short`, `unsigned_short`, `long`, `unsigned_long`, `long_long`, `unsigned_long_long`, `float`, `double`, `char`, `boolean`, `any` and -`octet`. In Elektra `octet` is the same as `char`. When checking any ...
Jenkinsfile: fix link to jenkins
* A Snippet generator is available to the public at * https://qa.nuxeo.org/jenkins/pipeline-syntax/. * A list of available commands on the build server can be found after a login at - * https://build.libelektra.org/job/elektra-jenkinsfile/pipeline-syntax/. + * https://build.libelektra.org/job/libelektra/pipeline-syntax...
Add 2/3/4 parition index negative tests
@@ -1777,9 +1777,9 @@ class CLINTest(CLITestBase): # Run the command, incrementally omitting arguments self.exec_with_omit(command, 7) - def test_cl_partitionlimit_missing_args(self): + def test_cl_2partitionlimit_missing_args(self): """ - Test -cl with -partitionindexlimit and missing arguments. + Test -cl with -2part...
driver/ioexpander/pca9675.c: Format with clang-format BRANCH=none TEST=none
@@ -21,8 +21,8 @@ static struct pca9675_ioexpander pca9675_iox[CONFIG_IO_EXPANDER_PORT_COUNT]; static int pca9675_read16(int ioex, uint16_t *data) { return i2c_xfer(ioex_config[ioex].i2c_host_port, - ioex_config[ioex].i2c_addr_flags, - NULL, 0, (uint8_t *)data, 2); + ioex_config[ioex].i2c_addr_flags, NULL, 0, + (uint8_...
reverted there is a better solution
@@ -211,7 +211,6 @@ public: , Func_(func) , Arg_(arg) , Name_(name) - , SwitchCount_(0) , Cancelled_(false) , Scheduled_(false) { @@ -226,10 +225,7 @@ public: inline void SwitchTo(TCont* next) noexcept { DBGOUT(PCORO(this) << " switch to " << PCORO(next)); - if (next == this) { - return; - } - SwitchCount_ += 1; + Cont...
Update WebTransport requirements
@@ -221,9 +221,9 @@ static X509Certificate2 CreatePkcs12FromPem(string certPem, string keyPem) ## Using a self-signed certificate for HTTP/3 -Chromium-based browsers requires the server certificate to be trusted by a default CA for QUIC (e.g. HTTP/3 and WebTransport), even though the same certificate may already be tru...
Samples:Host Exerciser Enhancement Fixed the parse error with unit test case
@@ -159,7 +159,7 @@ TEST_P(fpgaperf_counter_c_p, fpgaperf_3) { FILE *f = stdout; EXPECT_EQ(fpgaPerfCounterPrint(f, fpga_perf), FPGA_OK); - EXPECT_EQ(fpgaPerfCounterPrint(NULL), FPGA_INVALID_PARAM); + EXPECT_EQ(fpgaPerfCounterPrint(f, NULL), FPGA_INVALID_PARAM); } /**
bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is set Closes
void __assert_func(const char *file, int line, const char *func, const char *expr) { + +#if !CONFIG_OPTIMIZATION_ASSERTIONS_SILENT esp_rom_printf("Assert failed in %s, %s:%d (%s)\r\n", func, file, line, expr); +#endif + while (1) { } }
Fix incorrect SO_RCVLOWAT usage SO_RCVLOWAT is SOL_SOCKET option, not IPPROTO_TCP [1]. [1]
@@ -84,7 +84,7 @@ int s2n_socket_read_snapshot(struct s2n_connection *conn) struct s2n_socket_read_io_context *r_io_ctx = (struct s2n_socket_read_io_context *) conn->recv_io_context; notnull_check(r_io_ctx); - getsockopt(r_io_ctx->fd, IPPROTO_TCP, SO_RCVLOWAT, &r_io_ctx->original_rcvlowat_val, &watlen); + getsockopt(r_...
[CUDA] Implement update_event to fix timer race condition
@@ -142,6 +142,7 @@ pocl_cuda_init_device_ops (struct pocl_device_ops *ops) ops->submit = pocl_cuda_submit; ops->notify = pocl_cuda_notify; ops->wait_event = pocl_cuda_wait_event; + ops->update_event = pocl_cuda_update_event; ops->free_event_data = pocl_cuda_free_event_data; ops->join = pocl_cuda_join; ops->flush = poc...
Fix broken CLANG build. No module clang/3.6.2
@@ -5,4 +5,6 @@ if [[ ! $(command -v module > /dev/null 2>&1) ]]; then . /usr/local/apps/module/init/bash fi module unload grib_api -module switch gnu clang/3.6.2 +#module switch gnu clang/3.6.2 +#module switch gnu clang/3.9.1 +module switch gnu clang
Missing reserve
@@ -121,6 +121,7 @@ namespace carto { std::size_t edgeVertexCount = std::accumulate(ringsInternalPoses.begin(), ringsInternalPoses.end(), std::size_t(0), [](std::size_t count, const std::vector<MapPos>& ringInternalPoses) { return count + ringInternalPoses.size(); }); _coords.reserve(roofIndices.size() + edgeVertexCoun...
Fix runas dialog default username
@@ -795,12 +795,24 @@ INT_PTR CALLBACK PhpRunAsDlgProc( if (!context->ProcessId) { - SetWindowText( + PPH_STRING runAsUserName = PhaGetStringSetting(L"RunAsUserName"); + INT runAsUserNameIndex = CB_ERR; + + // Fire the user name changed event so we can fix the logon type. + if (!PhIsNullOrEmptyString(runAsUserName)) + ...
unlink recorded file end of test to improve readi test's performance
@@ -764,12 +764,9 @@ static int audio_tc_launcher(int argc, char **args) utc_audio_pcm_readi_n(); utc_audio_pcm_writei_p(); utc_audio_pcm_writei_n(); -#if 0 - utc_audio_pcm_start_p(); - utc_audio_pcm_start_n(); - utc_audio_pcm_stop_p(); - utc_audio_pcm_stop_n(); -#endif + + unlink(AUDIO_TEST_FILE); + printf("##########...
Cellular, LARA-R6, revert temporary change, i.e. bring back RoT. Commit temporarily removed RoT from LARA-R6's features; RoT is now back.
@@ -278,7 +278,7 @@ const uCellPrivateModule_t gUCellPrivateModuleList[] = { (1ULL << (int32_t) U_CELL_NET_RAT_UTRAN)) /* RATs */, ((1ULL << (int32_t) U_CELL_PRIVATE_FEATURE_MNO_PROFILE) | (1ULL << (int32_t) U_CELL_PRIVATE_FEATURE_CSCON) | - //(1ULL << (int32_t) U_CELL_PRIVATE_FEATURE_ROOT_OF_TRUST) | + (1ULL << (int32...
test: add ethereum test case test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown
@@ -214,6 +214,23 @@ START_TEST(test_001CreateWallet_0007CreateOneTimeWalletSuccessLongSize) } END_TEST +START_TEST(test_001CreateWallet_0008CreateOneTimeWalletFailureProtocolUnknown) +{ + BSINT32 rtnVal; + BoatEthWallet *g_ethereum_wallet_ptr; + BoatEthWalletConfig wallet_config = get_ethereum_wallet_settings(); + ext...
docs: add sphinx warnings in format_idf_target format_idf_target will now log sphinx warnings for any {IDF_TARGET_X} that were not replaced.
@@ -5,6 +5,7 @@ from docutils import io, nodes, statemachine, utils from docutils.utils.error_reporting import SafeString, ErrorString from docutils.parsers.rst import directives from sphinx.directives.other import Include as BaseInclude +from sphinx.util import logging def setup(app): @@ -21,6 +22,16 @@ def setup(app)...
schema compile CHANGE making container implicitely presence clarify the warning message and, in addition, make the container presence in case of having when statement.
@@ -3384,18 +3384,22 @@ lys_compile_node_container(struct lysc_ctx *ctx, struct lysp_node *node_p, struc cont->flags |= LYS_PRESENCE; } else if (cont_p->musts) { /* container with a must condition */ - LOGWRN(ctx->ctx, "Container \"%s\" changed to presence because it has a \"must\" condition.", cont_p->name); + LOGWRN(...
Add Equal to compare arrayRef & vector (simplify code to avoid vector to arrayRef cast).
@@ -69,3 +69,8 @@ void Assign(TConstArrayRef<T> arrayRef, TVector<T>* v) { v->assign(arrayRef.begin(), arrayRef.end()); } +template<class T> +bool Equal(TConstArrayRef<T> arrayRef, const TVector<T>& v) { + return arrayRef == TConstArrayRef<T>(v); +} +
world transform was still being connected for history assets
@@ -73,8 +73,13 @@ createInputGeometryNode(string $transformAttr, string $geometryAttr) string $inputNode = `createNode -skipSelect houdiniInputGeometry`; - if($transformAttr != "") - connectAttr $transformAttr ($inputNode + ".inputTransform"); + // don't connect the input world transform for a history asset + // Since...
parallel build for appveyor
@@ -8,19 +8,20 @@ environment: - COMPILER: MinGW-w64 BUILD_SERVER: secure: LONrmrMRv+m7++Sxtki7FpSe5kDZY/ak0CJmAknnLFGUJ55JVsIwBBOhIdijhMcF + BUILD_TYPE: MinSizeRel install: - git submodule update --init --recursive - if [%COMPILER%]==[MinGW-w64] set PATH=C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;%PATH...
Allow NULL path in HRN_STORAGE_PATH_CREATE() macro.
@@ -485,7 +485,7 @@ hrnStoragePathCreate(const Storage *const storage, const char *const path, HrnSt ASSERT(storage != NULL); - const String *const pathFull = storagePathP(storage, STR(path)); + const String *const pathFull = storagePathP(storage, path == NULL ? NULL : STR(path)); printf("create path '%s'", strZ(pathFu...
Avoid overflows in left shifts Left-shifting uint8_t types kinda works because of integer promotion rules. However, this is incorrect on platforms with 16-bit int types. We should explicitly use 32-bit unsigned integers to get the correct behavior on all platforms (and avoid warnings by undefined behavior sanitizer).
@@ -79,7 +79,7 @@ void soter_crc32_update(soter_crc32_t* crc, const void* buf, size_t len) uint32_t soter_crc32_final(soter_crc32_t* crc) { uint32_t result = ~(*crc); - uint8_t byte0, byte1, byte2, byte3; + uint32_t byte0, byte1, byte2, byte3; /* result now holds the negated polynomial remainder; * since the table and ...
fix wording per Eng correction
@@ -25,7 +25,7 @@ AppScope 1.2.0 introduces substantial new functionality: - Support for a **filter list** where you specify which processes to scope and optionally, which not to scope. The filter list is an argument to the `scope start` command. In its allowlist section, you specify the configuration for AppScope to u...
Improve multiarch condition in coredump access
@@ -57,7 +57,7 @@ _UCD_access_reg (unw_addr_space_t as, #elif defined(UNW_TARGET_S390X) if (regnum > UNW_S390X_R15) goto badreg; -#elif defined(UNW_TARGET_IA64) +#elif defined(UNW_TARGET_IA64) || defined(UNW_TARGET_HPPA) || defined(UNW_TARGET_PPC32) || defined(UNW_TARGET_PPC64) if (regnum >= ARRAY_SIZE(ui->prstatus->pr...
added missing implementation for lv_fragment_get_manager
@@ -55,6 +55,13 @@ void lv_fragment_del(lv_fragment_t * fragment) lv_mem_free(fragment); } +lv_fragment_manager_t * lv_fragment_get_manager(lv_fragment_t * fragment) +{ + LV_ASSERT_NULL(fragment); + LV_ASSERT_NULL(fragment->managed); + return fragment->managed->manager; +} + lv_obj_t * const * lv_fragment_get_container...
added j2534 troubleshooting instructions
@@ -137,5 +137,14 @@ More details here: relaxed to allow serialization of messages based on their address (making multiple queues, effectively one queue per address). +# Troubleshooting: +troubleshooting: +1. Install DrewTech J2534-1 Bus Analysis Tool +http://www.drewtech.com/downloads/tools/Drew%20Technologies%20Tool%...
Update sample (cache name string as array)
@@ -91,7 +91,7 @@ static void simple_complete(ocf_cache_t cache, void *priv, int error) */ int initialize_cache(ocf_ctx_t ctx, ocf_cache_t *cache) { - struct ocf_mngt_cache_config cache_cfg = { }; + struct ocf_mngt_cache_config cache_cfg = { .name = "cache1" }; struct ocf_mngt_cache_device_config device_cfg = { }; stru...
Add python3 to AppVeyor.
@@ -46,6 +46,7 @@ $CMAKE_FLAGS = "$CMAKE_FLAGS -G ""$GENERATOR""" ############################################################################### choco install -y -r swig --version 3.0.9 choco install -y -r lua53 +choco install -y -r python3 if ($Env:COMPILER -eq "mingw") { if ($Env:PLATFORM -eq "Win64") { choco instal...
Added libfontconfig wrapped function FcFontSetCreate
@@ -81,7 +81,7 @@ GO(FcFontList, pFppp) GO(FcFontMatch, pFppp) GO(FcFontRenderPrepare, pFppp) GO(FcFontSetAdd, iFpp) -//GO(FcFontSetCreate, +GO(FcFontSetCreate, pFv) GO(FcFontSetDestroy, vFp) //GO(FcFontSetList, //GO(FcFontSetMatch,
Add closing of main menu after using New file item
@@ -1897,6 +1897,13 @@ void push_main_menu(void) { qmenu_push_to_nav(qm); } +void pop_qnav_if_main_menu(void) { + Qblock* qb = qnav_top_block(); + if (qb && qb->tag == Qblock_type_qmenu && + qmenu_id(qmenu_of(qb)) == Main_menu_id) + qnav_stack_pop(); +} + void push_autofit_menu(void) { Qmenu* qm = qmenu_create(Autofit_...
Fix package rac's examples for godoc convention
@@ -28,14 +28,14 @@ import ( "github.com/google/wuffs/lib/rac" ) -// ExampleILAEnd demonstrates using the low level "rac" package to encode a -// RAC+Zlib formatted file with IndexLocationAtEnd. +// Example_indexLocationAtEnd demonstrates using the low level "rac" package to +// encode a RAC+Zlib formatted file with In...
Update barstools.rst Added info about adding our own sram-macros cache
@@ -24,7 +24,7 @@ A list of unique SRAM configurations is output to a ``.conf`` file by FIRRTL, wh Without this transform, FIRRTL will map all ``SeqMem`` s to flip-flop arrays with equivalent behavior, which may lead to a design that is difficult to route. The ``.conf`` file is consumed by a tool called MacroCompiler, ...
Fix incomplete deprecation guard in test/sslapitest.c OPENSSL_NO_DEPRECATED_3_0 should be used rather than OPENSSL_NO_DEPRECATED, as the latter doesn't take the configuration option '--api=' in account. Fixes
@@ -8157,7 +8157,7 @@ static EVP_PKEY *get_tmp_dh_params(void) return tmp_dh_params; } -# ifndef OPENSSL_NO_DEPRECATED +# ifndef OPENSSL_NO_DEPRECATED_3_0 /* Callback used by test_set_tmp_dh() */ static DH *tmp_dh_callback(SSL *s, int is_export, int keylen) {
[MUSL] Modify `CURRENT_UTF8` drop support for `pthread_self` structure use value stored in global struct
@@ -39,7 +39,7 @@ hidden char *__gettextdomain(void); #define CURRENT_LOCALE (&libc.global_locale) -#define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE]) +#define CURRENT_UTF8 (!!&libc.global_locale.cat[LC_CTYPE]) #undef MB_CUR_MAX #define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)
Remove hack fix for server hybrid issue
@@ -961,20 +961,6 @@ static int ssl_conf_check(const mbedtls_ssl_context *ssl) return( 0 ); } -#if defined(MBEDTLS_SSL_PROTO_TLS1_2) && \ - defined(MBEDTLS_SSL_PROTO_TLS1_3) && \ - defined(MBEDTLS_SSL_SRV_C) && \ - defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED) -/* Remove below lines if server side hybrid mode impleme...
improves cli for oidc-gen
#include <stdio.h> #include <string.h> #include <syslog.h> +#include <argp.h> #include "oidc-gen.h" #include "../../src/provider.h" #define OIDC_SOCK_ENV_NAME "OIDC_SOCK" +const char *argp_program_version = "oidc-gen 0.1.0"; + +const char *argp_program_bug_address = "<gabriel.zachmann@kit.edu>"; + +struct arguments { +...
Fix aesni_xts compile error Block copy bug..
@@ -84,7 +84,7 @@ static int cipher_hw_aesni_xts_initkey(PROV_CIPHER_CTX *ctx, PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)ctx; XTS_SET_KEY_FN(aesni_set_encrypt_key, aesni_set_decrypt_key, - aesni_xts_encrypt, aesni_decrypt, + aesni_encrypt, aesni_decrypt, aesni_xts_encrypt, aesni_xts_decrypt); return 1; }
Fix error code for superblock checksum mismatch Fix error code for superblock checksum mismatch. Superblock validation now returns a proper error on checksum check fail.
@@ -127,7 +127,7 @@ int ocf_metadata_validate_superblock(ocf_ctx_t ctx, if (crc != superblock->checksum[metadata_segment_sb_config]) { ocf_log_invalid_superblock("checksum"); - return -OCF_ERR_INVAL; + return -OCF_ERR_CRC_MISMATCH; } if (superblock->clean_shutdown > ocf_metadata_clean_shutdown) {
Pacify the compiler for "maybe uninitialized" variables in the socket module.
@@ -55,7 +55,7 @@ static Value bindSocket(VM *vm, int argCount, Value *args) { server.sin_port = htons(port); if (bind(sock->socket, (struct sockaddr *)&server , sizeof(server)) < 0) { - Value module; + Value module = 0; tableGet(&vm->modules, copyString(vm, "Socket", 6), &module); SET_ERRNO(AS_MODULE(module)); return ...
classify: Fix 2 coverity errors Validate two tainted scalars, filter_sw_if_index, that came from an API message. Type: fix
@@ -237,6 +237,10 @@ vl_api_policer_classify_dump_t_handler (vl_api_policer_classify_dump_t * mp) return; filter_sw_if_index = ntohl (mp->sw_if_index); + if (filter_sw_if_index + >= vec_len (pcm->classify_table_index_by_sw_if_index[mp->type])) + return; + if (filter_sw_if_index != ~0) vec_tbl = &pcm->classify_table_ind...
Improve checking process SIDs with sandboxie
@@ -2390,14 +2390,14 @@ VOID PhProcessProviderUpdate( // User if (NT_SUCCESS(PhGetTokenUser(tokenHandle, &tokenUser))) { - if (!RtlEqualSid(processItem->Sid, tokenUser->User.Sid)) + if (!processItem->Sid || !RtlEqualSid(processItem->Sid, tokenUser->User.Sid)) { PSID processSid; // HACK (dmex) processSid = processItem->...
[ci] Disable CCACHE everywhere It seems the env flag does not work in some instances, use a custom path for those cases
@@ -21,6 +21,7 @@ variables: RUST_LOG: 'memora=debug' VERILATOR_ROOT: '$CI_PROJECT_DIR/install/verilator' PATH: '/home/gitlabci/.cargo/bin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/condor/bin:/usr/sepp/bin:$VERILATOR_ROOT/bin' + OBJCACHE: '' workflow: rules: @@ -74,14 +75,11 @@ verilator: - | if ! $CI_PROJECT_...
Cache hash values for small strings as well
@@ -39,12 +39,12 @@ String Type typedef struct { fiobj_object_header_s head; + uint64_t hash; uint8_t is_small; uint8_t frozen; uint8_t slen; intptr_t len; uintptr_t capa; - uint64_t hash; char *str; } fiobj_str_s; @@ -500,12 +500,17 @@ size_t fiobj_str_join(FIOBJ dest, FIOBJ obj) { */ uint64_t fiobj_str_hash(FIOBJ o) ...
FireSim generator should also produce hwacha test suite makefrag rules
@@ -18,6 +18,8 @@ import freechips.rocketchip.tile.XLen import firesim.util.{GeneratorArgs, HasTargetAgnosticUtilites, HasFireSimGeneratorUtilities} +import scala.util.Try + import utilities.TestSuiteHelper trait HasTestSuites { @@ -28,6 +30,14 @@ trait HasTestSuites { TestGeneration.addSuite(SlowBlockdevTests) if (!ta...
server_shutdown: make access to running synchronised
@@ -59,7 +59,7 @@ struct _server { size_t secondariescnt; char failover:1; char failure; /* full byte for atomic access */ - char running:1; + char running; /* full byte for atomic access */ char keep_running; /* full byte for atomic access */ unsigned char stallseq; /* full byte for atomic access */ size_t metrics; @@...
Leaf: Add function to decrease array indices
@@ -227,6 +227,32 @@ CppKey changeArrayIndexByOne (CppKey const & parent, CppKey const & element, boo return elementNewIndex; } +/** + * @brief Decrease the array index of array elements by one. + * + * @param parents This parameter contains the array parents for which this function decrease the index by one. + * @para...
Fix nvmxml parsing for show goal
@@ -226,7 +226,7 @@ ShowGoalPrintDetailedView( ZeroMem(DimmStr, sizeof(DimmStr)); - SetDisplayInfo(L"ConfigGoal", ListView, NULL); + SetDisplayInfo(L"ConfigGoal", ListView, L"="); if (pRegionConfigsInfo == NULL || (DisplayOptionSet && pDisplayValues == NULL)) { goto Finish;
OcDevicePathLib: Add missing dependencies
DevicePathLib MemoryAllocationLib OcFileLib + OcStringLib UefiBootServicesTableLib [Guids] gEfiDevicePathToTextProtocolGuid gEfiSimpleFileSystemProtocolGuid gEfiBlockIoProtocolGuid + gEfiPciIoProtocolGuid gEfiUsbIoProtocolGuid gEfiLoadFileProtocolGuid
Support less 3D model file formats; Support OBJ, FBX, and COLLADA, as these seem to be the most common formats. This is done to reduce the size of the assimp dll. More formats can be added as needed.
@@ -67,8 +67,15 @@ else() endif() # assimp -option(ASSIMP_BUILD_ASSIMP_TOOLS OFF) -option(ASSIMP_BUILD_TESTS OFF) +set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE BOOL "") +set(ASSIMP_BUILD_TESTS OFF CACHE BOOL "") +set(ASSIMP_NO_EXPORT ON OFF CACHE BOOL "") + +set(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT OFF CACHE BOOL "") +set(...
[hardware] Use correct variable name
@@ -25,7 +25,7 @@ module axi_rab_wrap #( parameter int unsigned AxiUserWidth = 0, // AXI types parameter type axi_req_t = logic, - parameter type axi_resp_t = logic + parameter type axi_resp_t = logic, parameter type axi_lite_req_t = logic, parameter type axi_lite_resp_t = logic @@ -71,7 +71,7 @@ module axi_rab_wrap #(...
Silent compiler warnings in kiwi
@@ -169,6 +169,7 @@ kiwi_read_startup_size(char *data, uint32_t data_size) KIWI_API static inline int kiwi_validate_startup_header(char *data, uint32_t data_size, uint32_t *size) { + (void)data_size; // Silent Compiler warnings assert(data_size >= sizeof(uint32_t)); *size = kiwi_read_startup_size(data, sizeof(uint32_t)...
python: fix crash in EndInterpreter
@@ -159,6 +159,9 @@ static unsigned open_cnt = 0; static void Python_Shutdown (moduleData * data) { + if (!data->shutdown) + return; + /* destroy python if plugin isn't used anymore */ if (Py_IsInitialized ()) {
media: add missing state for paused case The condition of resume is needed.
@@ -228,9 +228,10 @@ void MediaRecorderImpl::startRecorder() { medvdbg("MediaRecorderImpl::startRecorder()\n"); - if (mCurState != RECORDER_STATE_READY) { + if (mCurState != RECORDER_STATE_READY && mCurState != RECORDER_STATE_PAUSED) { notifyObserver(OBSERVER_COMMAND_ERROR); - meddbg("MediaRecorderImpl::startRecorder()...
Fix: removed unnecessary buffer reversal
@@ -72,9 +72,6 @@ for table in hlir.tables: #[ prefix_length += ${get_key_byte_width(k)}; if k.matchType.path.name == "lpm": # TODO: LS Check! #[ prefix_length += ${target_name}_prefix_length; - #[ int c, d; - #[ for(c = ${byte_idx-1}, d = 0; c >= 0; c--, d++) *(reverse_buffer+d) = *(key+c); - #[ for(c = 0; c < ${byte_...
Allow the MQTT client example for platform native
@@ -8,6 +8,6 @@ CONTIKI = ../.. MODULES_REL += arch/platform/$(TARGET) -PLATFORMS_ONLY = srf06-cc26xx cc2538dk openmote-cc2538 zoul +PLATFORMS_ONLY = srf06-cc26xx cc2538dk openmote-cc2538 zoul native include $(CONTIKI)/Makefile.include
Check for absence of categorical features correctly
@@ -58,7 +58,7 @@ void TPlainFoldBuilder::DoMap(NPar::IUserContext* ctx, int hostId, TInput* /*unu void TApproxReconstructor::DoMap(NPar::IUserContext* ctx, int hostId, TInput* valuedForest, TOutput* /*unused*/) const { NPar::TCtxPtr<TTrainData> trainData(ctx, SHARED_ID_TRAIN_DATA, hostId); - Y_ASSERT(IsCategoricalFeat...
fix(underglow): Fix error on release of rgb_ug
@@ -48,8 +48,14 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding, return -ENOTSUP; } +static int on_keymap_binding_released(struct zmk_behavior_binding *binding, + struct zmk_behavior_binding_event event) { + return 0; +} + static const struct behavior_driver_api behavior_rgb_underglow_drive...
sysdeps/linux: add ioctl, access, tcgetattr, tcsetattr sysdeps
#define NR_sigaction 13 #define NR_rt_sigprocmask 14 #define NR_ioctl 16 +#define NR_access 21 #define NR_pipe 22 #define NR_select 23 #define NR_nanosleep 35 @@ -296,6 +297,15 @@ int sys_isatty(int fd) { return 1; } +int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { + auto ret = do_syscall(NR_ioct...
Fix complex ABI for 32bit SolarisStudio builds
@@ -78,6 +78,12 @@ static __inline unsigned long rpcc(void){ #define __BIG_ENDIAN__ #endif +#ifdef C_SUN +#ifndef __64BIT +#define RETURN_BY_STACK +#endif +#endif + #ifdef DOUBLE #define GET_IMAGE(res) __asm__ __volatile__("fmovd %%f2, %0" : "=f"(res) : : "memory") #else
tweak tar assembly options
@@ -84,9 +84,6 @@ my $tmp_dir = File::Temp::tempdir(CLEANUP => 0, DIR=> $tmp_path) || MYERROR("Una print "\nStaging dist creation in $tmp_dir...\n"; -#make_path($tmp_dir) || die("Unable to create $tmp_dir: $!\n"); -#die "Unable to create $tmp_dir: $!\n" unless(mkdir $tmp_dir); - if( !$skipCopy) { # copy base repo conte...
packaging: handle change in location of JSON schema for release
@@ -183,19 +183,9 @@ fi # Sign YUM repo meta-data find "/var/www/apt.fluentbit.io" -name repomd.xml -exec gpg --detach-sign --armor --yes -u "releases@fluentbit.io" {} \; -# Handle the JSON schema by copying in the new versions (if they exist) and then updating the symlinks that point at the latest. -if compgen -G "$SO...
Fix build failure on gcc-11 Function prototypes changed to use array parameters instead of pointers.
@@ -680,20 +680,20 @@ static void ssl_calc_finished_ssl( mbedtls_ssl_context *, unsigned char *, int ) #endif #if defined(MBEDTLS_SSL_PROTO_TLS1) || defined(MBEDTLS_SSL_PROTO_TLS1_1) -static void ssl_calc_verify_tls( const mbedtls_ssl_context *, unsigned char *, size_t * ); +static void ssl_calc_verify_tls( const mbedt...
server: stream: check if input IOV is empty before write
@@ -184,6 +184,10 @@ int mk_channel_write(struct mk_channel *channel, size_t *count) } else if (input->type == MK_STREAM_IOV) { iov = input->buffer; + if (!iov) { + return MK_CHANNEL_EMPTY; + } + bytes = mk_sched_conn_writev(channel, iov); MK_TRACE("[CH %i] STREAM_IOV, wrote %d bytes",
firdespm: replacing assert calls with explicit checks
@@ -706,7 +706,8 @@ int firdespm_iext_search(firdespm _q) if ( ((_q->E[i]>=0.0) && (_q->E[i-1]<=_q->E[i]) && (_q->E[i+1]<=_q->E[i]) ) || ((_q->E[i]< 0.0) && (_q->E[i-1]>=_q->E[i]) && (_q->E[i+1]>=_q->E[i]) ) ) { - assert(num_found < nmax); + //assert(num_found < nmax); + if (num_found < nmax) found_iext[num_found++] = ...
Minor bug solved from previous commit in MacOS.
@@ -74,7 +74,7 @@ int portability_executable_path(portability_executable_path_str path, portabilit strncpy(path, path_ptr, *length); #endif - if (*length == -1 || *length == 0 || *length == path_max_length) + if (*length <= 0 || *length == path_max_length) { return 1; }
read hostname for blacklist command
@@ -171,7 +171,7 @@ static void cmd_exec(FILE *fp, const char request[], int allow_debug) } else if (sscanf( request, "announce %255[^: ]:%d %d %c", hostname, &port, &minutes, &d) == 3) { cmd_announce(fp, hostname, port, minutes ); } else if (match(request, "list %*s %n") && allow_debug) { - if (match(request, "blackli...
SOVERSION bump to version 5.2.4
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 2) -set(SYSREPO_MICRO_SOVERSION 3) +set(SYSREPO_MICRO_SO...
Fix Error: src/cscaledbitmap.cxx:456:26: error: result of comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always true
@@ -433,7 +433,7 @@ bool CScaledBitmap::scaleColor(FAR const struct rgbcolor_s &incolor1, FAR const struct rgbcolor_s &incolor2, b16_t fraction, FAR struct rgbcolor_s &outcolor) { - uint8_t component; + uint32_t component; b16_t red; b16_t green; b16_t blue;
dbginfo.sh: correct location of qemu guest agent command qemu-ga command was accidently moved to z/VM commands
@@ -525,6 +525,7 @@ CMDS="${CMDS}\ # product / distro specific commands CMDS="${CMDS}\ :java -version\ + :qemu-ga -V\ :SPident # SLES service package\ " @@ -659,7 +660,6 @@ VM_CMDS="q userid\ :ind load\ :ind sp\ :ind user\ - :qemu-ga -V\ " ###############################################################################
Fix lpc17_40_sdcard.c:614:24: error: unused function 'lpc17_40_getpwrctrl'
@@ -299,7 +299,6 @@ static void lpc17_40_configwaitints(struct lpc17_40_dev_s *priv, static void lpc17_40_configxfrints(struct lpc17_40_dev_s *priv, uint32_t xfrmask); static void lpc17_40_setpwrctrl(uint32_t pwrctrl); -static inline uint32_t lpc17_40_getpwrctrl(void); /* DMA Helpers ***********************************...
check-lxdialog.sh: Support libintl on FreeBSD To unbreak "make menuconfig." Merges
@@ -7,6 +7,10 @@ ldflags() if [ $(uname -s) == "Darwin" ]; then #OSX seems to need ncurses too echo -n "-lncurses " + elif [ $(uname -s) == "FreeBSD" ]; then + # On FreeBSD, the linker needs to know to search port libs for + # libintl + echo -n "-L/usr/local/lib -lintl " fi pkg-config --libs ncursesw 2>/dev/null && exi...
OpenCanopy: Fix broken selector click event
@@ -905,7 +905,8 @@ InternalBootPickerSelectorPtrEvent ( if (IsHit) { if (Event == GuiPointerPrimaryUp) { ASSERT (mBootPicker.SelectedEntry != NULL); - Context->BootEntry = mBootPicker.SelectedEntry->Context; + ASSERT (Context->BootEntry == mBootPicker.SelectedEntry->Context); + Context->ReadyToBoot = TRUE; } else { Bu...
ps8xxx: define PS8815 USB EQ register BRANCH=none TEST=make -j BOARD=gimble
/* Vendor defined registers */ #define PS8815_P1_REG_HW_REVISION 0xF0 +/* Vendor defined registers */ +#define PS8815_REG_APTX_EQ_AT_10G 0x20 +#define PS8815_REG_RX_EQ_AT_10G 0x22 +#define PS8815_REG_APTX_EQ_AT_5G 0x24 +#define PS8815_REG_RX_EQ_AT_5G 0x26 + /* * Below register is defined from Parade PS8815 Register Tab...
Add `DIAG_LEVEL_REQUIRED` to fix build break in modules.
@@ -86,6 +86,7 @@ constexpr std::uint8_t PDL_NONE {0u}; /* Logg #define DIAG_LEVEL_FULL 3 /* Extra activity and enhanced reporting */ /* Microsoft NGP diagnostic level classification */ +constexpr std::uint8_t DIAG_LEVEL_REQUIRED {1u}; /* Data that we need to collect in order to keep the product secure, up to date, and...
Fix error handling/cleanup
@@ -473,19 +473,11 @@ static int i2d_name_canon(STACK_OF(STACK_OF_X509_NAME_ENTRY) * _intname, int X509_NAME_set(X509_NAME **xn, X509_NAME *name) { - X509_NAME *in; - - if (!xn || !name) - return (0); - - if (*xn != name) { - in = X509_NAME_dup(name); - if (in != NULL) { + if ((name = X509_NAME_dup(name)) == NULL) + re...
Add a format flag to tar to prevent sparse files. Turns out `bsdtar` will by default create an archive which 7-zip can't properly read. That make these archives very confusing to check on.
@@ -543,7 +543,7 @@ package_files = ( if sys.platform == "win32": zip = env.Zip("${DIST_NAME}.zip", package_files) else: - env.Append(TARFLAGS="-c -z") + env.Append(TARFLAGS="-z --format=ustar") zip = env.Tar("${DIST_NAME}.tar.gz", package_files) Alias("dist", zip)