message
stringlengths
6
474
diff
stringlengths
8
5.22k
Removed REINDEX step from intensive system catalog maintenance
@@ -185,9 +185,6 @@ analyzedb -a -s pg_catalog -d $DBNAME</pre></p> catalog tables can prevent the need for this more costly procedure.</p> <p>These are steps for intensive system catalog maintenance.<ol id="ol_trp_xqs_f2b"> <li>Stop all catalog activity on the Greenplum Database system.</li> - <li>Perform a <codeph>RE...
move library/string_utils/base64 into library/cpp/string_utils/base64 (folders starting on [a-e])
@@ -562,7 +562,7 @@ Include files should be specified in the order of less general to more general ( #include <library/json/json_reader.h> // library -#include <library/string_utils/base64/base64.h> +#include <library/cpp/string_utils/base64/base64.h> #include <library/threading/local_executor/local_executor.h> ```
Don't filter TLS 1.3 ciphersuites by signing or key exchange algorithm
@@ -3633,7 +3633,11 @@ const SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, (DTLS_VERSION_LT(s->version, c->min_dtls) || DTLS_VERSION_GT(s->version, c->max_dtls))) continue; - + /* + * Since TLS 1.3 ciphersuites can be used with any auth or + * key exchange scheme skip tests. + */ + if (!SSL_IS_TLS1...
compiler:Open include files allowing other readers
@@ -84,7 +84,7 @@ const char* _yr_compiler_default_include_callback( int fd = -1; #if defined(_MSC_VER) - _sopen_s(&fd, include_name, _O_RDONLY | _O_BINARY, _SH_DENYRW, _S_IREAD); + _sopen_s(&fd, include_name, _O_RDONLY | _O_BINARY, _SH_DENYWR, _S_IREAD); #elif defined(_WIN32) || defined(__CYGWIN__) fd = open(include_n...
volteer: Reduce flash usage This saves 120 bytes. BRANCH=none TEST=buildall passes
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ /* Remove PRL state names to free flash space */ -#define CONFIG_USB_PD_DEBUG_LEVEL 2 +#define CONFIG_USB_PD_DEBUG_LEVEL 1 #define CONFIG_VBOOT_EFS2
docs/library/index: Add hint about using help('modules') for discovery.
@@ -40,6 +40,11 @@ best place to find general information of the availability/non-availability of a particular feature is the "General Information" section which contains information pertaining to a specific `MicroPython port`. +On some ports you are able to discover the available, built-in libraries that +can be impor...
mmapstorage: add opmphm cleanup functions
@@ -1027,6 +1027,42 @@ static void copyKeySetToMmap (char * const dest, KeySet * keySet, KeySet * globa memcpy ((dest + mmapHeader->allocSize - SIZEOF_MMAPFOOTER), mmapFooter, SIZEOF_MMAPFOOTER); } +/** + * @brief Deletes the OPMPHM. + * + * Clears and frees all memory in Opmphm. + * + * @param opmphm the OPMPHM + */ +...
use `h2o_configurator_errprintf` instead of `fprintf`
@@ -1233,7 +1233,7 @@ static int on_config_num_threads(h2o_configurator_command_t *cmd, h2o_configurat conf.thread_map.entries[conf.thread_map.size++] = -1; } else if (node->type == YOML_TYPE_SEQUENCE) { #ifndef H2O_HAS_PTHREAD_SETAFFINITY_NP - fprintf(stderr, "[error] Can't handle a CPU list, this platform doesn't sup...
hooks: document current hooks
@@ -17,6 +17,48 @@ For example, the `gopts` hook only requires the `get` function. A plugin that wa Other hooks (e.g. `spec`) require multiple exported functions. +### `gopts` hook + +Currently hard-coded to search for a plugin named `gopts`. + +The following function **must** be exported: +- `get` + - Signature: `(Plu...
vlib: support macros in initial config file Type: improvement
@@ -3359,10 +3359,14 @@ unix_cli_exec (vlib_main_t * vm, int fd; unformat_input_t sub_input; clib_error_t *error; - + unix_cli_main_t *cm = &unix_cli_main; + unix_cli_file_t *cf; + u8 *file_data = 0; file_name = 0; fd = -1; error = 0; + struct stat s; + if (!unformat (input, "%s", &file_name)) { @@ -3379,9 +3383,6 @@ u...
mqtt: Update tests to start with valid transport
@@ -69,7 +69,11 @@ struct ClientInitializedFixture { }; TEST_CASE_METHOD(ClientInitializedFixture, "Client set uri") { - struct http_parser_url ret_uri; + struct http_parser_url ret_uri = { + .field_set = 1, + .port = 0, + .field_data = { { 0, 1} } + }; SECTION("User set a correct URI") { http_parser_parse_url_StopIgno...
dockerfile: bump to v1.0.0
FROM launcher.gcr.io/google/debian9 as builder # Fluent Bit version -ENV FLB_MAJOR 0 -ENV FLB_MINOR 15 +ENV FLB_MAJOR 1 +ENV FLB_MINOR 0 ENV FLB_PATCH 0 -ENV FLB_VERSION 0.15.0 +ENV FLB_VERSION 1.0.0 ENV DEBIAN_FRONTEND noninteractive
Update documenation of PSA_ALG_RSA_PSS
* This is the signature scheme defined by RFC 8017 * (PKCS#1: RSA Cryptography Specifications) under the name * RSASSA-PSS, with the message generation function MGF1, and with - * a salt length equal to the length of the hash. The specified - * hash algorithm is used to hash the input message, to create the - * salted ...
Add fix to ensure that X-Client-IP header is dropped when is not a trusted header.
@@ -14055,6 +14055,7 @@ static void wsgi_process_proxy_headers(request_rec *r) name = ((const char**)trusted_proxy_headers->elts)[i]; if (!strcmp(name, "HTTP_X_FORWARDED_FOR") || + !strcmp(name, "HTTP_X_CLIENT_IP") || !strcmp(name, "HTTP_X_REAL_IP")) { match_client_header = 1;
[dpos] collect the garbage entries of the pre-LIB map lower than the LIB. This may be the cause of the recent excessive DB storage usage.
@@ -206,6 +206,24 @@ func (pls *pLibStatus) gc(lib *blockInfo) { func(e *list.Element) bool { return cInfo(e).BlockNo <= lib.BlockNo }) + + for bpID, pl := range pls.plib { + var beg int + for i, l := range pl { + if l.BlockNo > lib.BlockNo { + beg = i + break + } + } + oldLen := len(pl) + newPl := pl[beg:] + pls.plib[...
Add check for bits accessor
@@ -288,6 +288,20 @@ static int pack_long(grib_accessor* a, const long* val, size_t* len) grib_context_log(h->context, GRIB_LOG_ERROR, "key=%s: value cannot be negative", a->name); return GRIB_ENCODING_ERROR; } + +#ifdef DEBUG + { + const long numbits = (x->length)*8; + if (start + length > numbits) { + grib_context_lo...
Fix parse_pciids when trying to open pci.ids from alternate location
+#include <spdlog/spdlog.h> #include <string> #include <iostream> #include <fstream> @@ -22,12 +23,12 @@ std::istream& get_uncommented_line(std::istream& is, std::string &line) void parse_pciids() { - std::ifstream file("/usr/share/hwdata/pci.ids"); + std::ifstream file; + file.open("/usr/share/hwdata/pci.ids"); if (fi...
api: enable trace / replay flag on messages For an unknown reason the trace/replay flags where missed when moving API message registration code from manually cut and pasted to aut-generated. Type: fix
@@ -1344,6 +1344,8 @@ def generate_c_boilerplate(services, defines, counters, file_crc, ' .cleanup = vl_noop_handler,\n' ' .endian = vl_api_{n}_t_endian,\n' ' .print = vl_api_{n}_t_print,\n' + ' .traced = 1,\n' + ' .replay = 1,\n' ' .is_autoendian = {auto}}};\n' .format(n=s.caller, ID=s.caller.upper(), auto=d.autoendia...
acrn-config: correct console argument for logical partition scenario Currently config tool generated 'console=/dev/ttySn' in boot cmdline for logical_partiton scenario, need to strip '/dev/' to avoid kernel boot issue. Acked-by: Victor Sun
@@ -183,7 +183,7 @@ def gen_logical_partition_header(vm_info, config): print('#define VM{0}_CONFIG_OS_BOOTARG_MAXCPUS\t\t"maxcpus={1} "'.format( i, cpu_bits['cpu_num']), file=config) print('#define VM{0}_CONFIG_OS_BOOTARG_CONSOLE\t\t"console={1} "'.format( - i, vm_info.os_cfg.kern_console[i]), file=config) + i, vm_info...
INI: Add metadata example This commit closes
@@ -192,6 +192,44 @@ kdb rm -r user/examples/ini sudo kdb umount user/examples/ini ``` +## Metadata + +The INI plugin also supports metadata. + +```sh +sudo kdb mount config.ini user/examples/ini ini + +# Add a new key and some metadata +kdb set user/examples/ini/brand new +kdb setmeta user/examples/ini/brand descripti...
Omit the third argument to `handle_one_body_fragment`
@@ -178,7 +178,7 @@ DECL_ENTITY_READ_SEND_ERROR_XXX(400) DECL_ENTITY_READ_SEND_ERROR_XXX(413) DECL_ENTITY_READ_SEND_ERROR_XXX(502) -static void handle_one_body_fragment(struct st_h2o_http1_conn_t *conn, size_t fragment_size, size_t consume, int complete) +static void handle_one_body_fragment(struct st_h2o_http1_conn_t ...
Always use 24bit depth buffer on mac
@@ -2200,7 +2200,11 @@ void CreateMainFrame(FrameCreationCallback inOnFrame, int inWidth, int inHeight, SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); if (inFlags & wfDepthBuffer) + #ifdef HX_MACOS + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24 ); + #else SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32 - (inFlags & wfStencilBuffer) ...
NULL is not valid for buffers in UnqueueBuffers
@@ -169,8 +169,9 @@ void lovrSourcePlay(Source* source) { // BEFORE user code calls source:play(). This means that some buffers may still be queued (but processed // and completely finished playing). These must be unqueued before we can start using the source again. ALint processed; + ALuint _unused[SOURCE_BUFFERS]; al...
files: skip empty input files
@@ -180,6 +180,10 @@ static bool files_getDirStatsAndRewind(honggfuzz_t * hfuzz) LOG_W("File '%s' is bigger than maximal defined file size (-F): %" PRId64 " > %" PRId64, fname, (int64_t) st.st_size, (int64_t) hfuzz->maxFileSz); } + if (st.st_size == 0U) { + LOG_W("File '%s' is empty", fname); + continue; + } if ((size_...
apps/netutils/netlib/netlib_parsehttpurl.c: Correct handling of long URLs as noted in Bitbucket issue (in the nuttx/ repository, not the apps/ repository).
@@ -60,12 +60,12 @@ static const char g_http[] = "http://"; * Name: netlib_parsehttpurl ****************************************************************************/ -int netlib_parsehttpurl(const char *url, uint16_t *port, - char *hostname, int hostlen, - char *filename, int namelen) +int netlib_parsehttpurl(FAR const...
redrix: Fix lsm6dsm initial data Add the lsm6dsm initial data to avoid unexpected exception occurs. BRANCH=none TEST=Boot EC success.
@@ -51,7 +51,7 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); K_MUTEX_DEFINE(g_lid_accel_mutex); K_MUTEX_DEFINE(g_base_accel_mutex); static struct accelgyro_saved_data_t g_bma253_data; -static struct lsm6dsm_data lsm6dsm_data; +static struct lsm6dsm_data lsm6dsm_data = LSM6DSM_DATA; /* TODO(b/184779333): ca...
Update serverinfo documentation based on feedback received
@@ -35,7 +35,8 @@ consist of a 4-byte context, a 2-byte Extension Type, a 2-byte length, and then length bytes of extension_data. The context and type values have the same meaning as for L<SSL_CTX_add_custom_ext(3)>. If serverinfo is being loaded for extensions to be added to a Certificate message, then the extension w...
sse2: add fast-math WASM implementation of _mm_cvtps_epi32
@@ -2635,6 +2635,8 @@ simde_mm_cvtps_epi32 (simde__m128 a) { SIMDE_DIAGNOSTIC_DISABLE_VECTOR_CONVERSION_ r_.altivec_i32 = vec_cts(a_.altivec_f32, 1); HEDLEY_DIAGNOSTIC_POP + #elif defined(SIMDE_WASM_SIMD128_NATIVE) && defined(SIMDE_FAST_CONVERSION_RANGE) && defined(SIMDE_FAST_ROUND_TIES) + r_.wasm_v128 = wasm_i32x4_tru...
added random sampling (gaussian and uniform) to vspace
@@ -43,6 +43,11 @@ for i in range(len(lines)): dest = lines[i].split()[1] elif lines[i].split()[0] == 'trialname': trial = lines[i].split()[1] + elif lines[i].split()[0] == 'seed': + if np.float(lines[i].split()[1]).is_integer(): + np.random.seed(np.int(lines[i].split()[1])) + else: + raise IOError("Attempt to pass non...
Template: Add MSR test This commit closes
@@ -39,7 +39,21 @@ None. ## Examples -None. +```sh +# Mount template plugin to cascading namespace `/examples/template` +sudo kdb mount config.file /examples/template template + +kdb set /examples/template/key value +#> Using name user/examples/template/key +#> Create a new key user/examples/template/key with string "v...
config_tools: add cpu_affinity error message add cpu_affinity error message
pCPU ID </b-col> <b-col> - <b-form-select v-model="cpu.pcpu_id" :options="pcpuid_enum"></b-form-select> + <b-form-select :state="validateCPUAffinity(cpu.pcpu_id)" v-model="cpu.pcpu_id" :options="pcpuid_enum"></b-form-select> + <b-form-invalid-feedback> + pCPU ID is required! + </b-form-invalid-feedback> </b-col> <b-col...
fix support for api level above 28 opening content file provider
<activity android:name='com.rhomobile.rhodes.ui.LogViewDialog' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/> <service android:name='com.rhomobile.rhodes.RhodesService' android:exported='false'/> - <provider android:name='com.r...
fix uge playback breaking when loosing focus, fix preview corruption This does mean that previewing a song in events is harder to stop, must stop with the pause button.
@@ -25,7 +25,7 @@ export function initMusic() { // Initialise audio on first click window.addEventListener("click", initMusic); window.addEventListener("keydown", initMusic); -window.addEventListener("blur", pause); +//window.addEventListener("blur", pause); function onSongLoaded(player: ScripTracker) { player.play(); ...
microbitv2: Replace commented out code with explanatory comments.
@@ -115,11 +115,8 @@ void power_sleep() static void power_before(bool systemoff) { - // TODO - wait for USB transmit to computer to finish? - /* Wait for debug console output finished. */ - // while (!(LPUART_STAT_TC_MASK & UART->STAT)) - // { - // } + // KL27 waits "for debug console output finished" by checking (LPUA...
Right way to test in Makefile `-[ "$str" = "foo" ] && $(MAKE) -C bar` ignores errors while making bar, better to use full `if-then` clause.
@@ -255,7 +255,9 @@ BLD_CONFIG_SHELL=$($(BLD_ARCH)_CONFIG_SHELL) $(GPPGDIR)/GNUmakefile : $(GPPGDIR)/configure env.sh rm -rf $(INSTLOC) mkdir -p $(GPPGDIR) - -[ "$(BLD_ARCH)" = "win32" ] && $(MAKE) -C $(GPPGDIR)/src/bin/gpfdist/ext BLD_TOP=$(BLD_TOP) + if [ "$(BLD_ARCH)" = "win32" ]; then \ + $(MAKE) -C $(GPPGDIR)/src/...
Fix for comparing with same string with extension
static double getPSAScore(const char *requested_admin, const char *request_qos, const char *adminType, double sampleScore, double controlScore, double defaultScore) { double score; - if (requested_admin != NULL && strncmp(requested_admin, adminType, strlen(adminType)) == 0) { + if (requested_admin != NULL && strncmp(re...
updated validation decision
Validation plugins operate as indenpendent blackboxes. For every backend each mounted validation plugin iterates -over the whole keyset, checks every key for it's trigger metakey, +over the whole keyset, checks every key for its trigger metakey, and validates the key. -Each plugin decides on it's own what should happen...
[ya shelve/unshelve] use md5 to encode patches directories and names; store shelves in ~/.ya.shelf instead of ~/.ya/shelf
@@ -44,6 +44,26 @@ def lazy_property(fn): return _lazy_property +class classproperty(object): + def __init__(self, func): + self.func = func + + def __get__(self, _, owner): + return self.func(owner) + + +class lazy_classproperty(object): + def __init__(self, func): + self.func = func + + def __get__(self, _, owner): +...
Now compiles the app with the new CAL key for Ragger tests
@@ -177,13 +177,13 @@ jobs: - name: Build test binaries run: | - make -j BOLOS_SDK=$NANOS_SDK CAL_TESTING_KEY=1 + make -j BOLOS_SDK=$NANOS_SDK CAL_CI_KEY=1 mv bin/app.elf app-nanos.elf make clean - make -j BOLOS_SDK=$NANOX_SDK CAL_TESTING_KEY=1 + make -j BOLOS_SDK=$NANOX_SDK CAL_CI_KEY=1 mv bin/app.elf app-nanox.elf ma...
restructure conditional
@@ -246,14 +246,15 @@ patch_return_addrs(funchook_t *funchook, // If the current instruction is a RET or XORPS // we want to patch the ADD or SUB immediately before it. uint32_t add_arg = 0; - if ((!strcmp((const char*)asm_inst[i].mnemonic, "ret") && - asm_inst[i].size == 1) || + if (((!strcmp((const char*)asm_inst[i]....
Draw headset mirror with white color;
@@ -658,6 +658,10 @@ void lovrHeadsetRenderTo(headsetRenderCallback callback, void* userdata) { lovrGraphicsPopCanvas(); if (state.isMirrored) { + unsigned char r, g, b, a; + lovrGraphicsGetColor(&r, &g, &b, &a); + lovrGraphicsSetColor(255, 255, 255, 255); lovrGraphicsPlaneFullscreen(state.texture); + lovrGraphicsSetCo...
sysrepoctl CHANGE enable connection recovery
@@ -73,8 +73,8 @@ help_print(void) " sysrepoctl <operation-option> [other-options]\n" "\n" "Available operation-options:\n" - " -h, --help Prints usage help.\n" - " -V, --version Prints only information about sysrepo version.\n" + " -h, --help Print usage help.\n" + " -V, --version Print only information about sysrepo ...
Set key usage limits for gnutls
@@ -41,6 +41,8 @@ ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_initial(ngtcp2_crypto_ctx *ctx) { ctx->aead.native_handle = (void *)GNUTLS_CIPHER_AES_128_GCM; ctx->md.native_handle = (void *)GNUTLS_DIG_SHA256; ctx->hp.native_handle = (void *)GNUTLS_CIPHER_AES_128_CBC; + ctx->max_encryption = 0; + ctx->max_decryption_failure = 0...
Fix Torque usage in MapService APIs, URL suffix was missing
@@ -309,7 +309,7 @@ namespace carto { // Create layer based on type and flags if (type == "torque") { std::string cartoCSS = layerInfos.front().cartoCSS; - auto baseDataSource = std::make_shared<HTTPTileDataSource>(minZoom, maxZoom, urlTemplateBase + "/{z}/{x}/{y}.torque" + urlTemplateSuffix); + auto baseDataSource = s...
fixed <tag> end detection in project files
#include "ext/file_dialog.h" #include <zlib.h> +#include <ctype.h> #define CONSOLE_CURSOR_COLOR ((tic_color_red)) #define CONSOLE_BACK_TEXT_COLOR ((tic_color_dark_gray)) @@ -692,7 +693,7 @@ static bool loadTextSection(const char* project, const char* comment, char* dst, { makeTag(BinarySections[i].tag, tag, b); - sprin...
autotest: checking real, imag components on isnan to avoid errors on certain compilers
@@ -116,6 +116,9 @@ void liquid_autotest_print_array(unsigned char * _x, // Compute magnitude of (possibly) complex number #define LIQUID_AUTOTEST_VMAG(V) (sqrt(creal(V)*creal(V)+cimag(V)*cimag(V))) +// Compute isnan on (possibly) complex number +#define LIQUID_AUTOTEST_ISNAN(V) (isnan(crealf(V)) || isnan(cimagf(V))) +...
ksched: build fix for recent kernels
#include <linux/smp.h> #include <linux/uaccess.h> #include <linux/signal.h> +#include <linux/version.h> #include "ksched.h" #include "../iokernel/pmc.h" @@ -136,8 +137,13 @@ static void ksched_next_tid(struct ksched_percpu *kp, int cpu, pid_t tid) } raw_spin_lock_irqsave(&p->pi_lock, flags); - already_running = p->on_c...
docs - add info. to set blockev at boot. * docs - add info. to set blockev at boot. One way to set blockdev at boot. This will be backported to 6X_STABLE and 5X_STABLE * docs - update based on review comments.
@@ -314,10 +314,19 @@ vm.dirty_ratio = 10</codeblock></p> <p>See the manual page (man) for the <codeph>blockdev</codeph> command for more information about using that command (<codeph>man blockdev</codeph> opens the man page).</p> - <note>The <codeph>blockdev --setra</codeph> command is not persistent, it needs to be r...
[DevTool] 0.2.6
Pod::Spec.new do |s| s.name = 'MLNDevTool' - s.version = '0.2.5' + s.version = '0.2.6' s.summary = 'Debug Tool of MLN.' # This description is used to generate tags and improve search results.
Don't print a stack trace for `read-at-aeon-fail` We shouldn't get a clay stack trace for read-at-aeon-fail because that gives us miles of clay stack trace whenever hoon compilation fails
[~ ..park] :: virtualize to catch and produce deterministic failures :: - !: |^ =/ res (mule |.(read)) ?: ?=(%& -.res) p.res %. [[~ ~] ..park]
weather: add remediation path, styling
@@ -248,26 +248,42 @@ export default class WeatherTile extends React.Component { return this.renderManualEntry(data); } + if ('currently' in data) { // Old weather source + this.props.api.launch.weather(this.props.location); + } + if ('current-condition' in data && 'weather' in data) { return this.renderWithData(data);...
extmod/vfs: Add fast path for stating VfsPosix filesystem.
#if MICROPY_VFS +#if MICROPY_VFS_POSIX +#include "extmod/vfs_posix.h" +#endif #if MICROPY_VFS_FAT #include "extmod/vfs_fat.h" #endif @@ -124,8 +127,14 @@ mp_import_stat_t mp_vfs_import_stat(const char *path) { if (vfs == MP_VFS_NONE || vfs == MP_VFS_ROOT) { return MP_IMPORT_STAT_NO_EXIST; } + + // Fast paths for known ...
python/plugins: added get() and localhost test cases
@@ -17,7 +17,10 @@ class DNSPlugin(unittest.TestCase): def setUp(self): self.parent_key = kdb.Key("user:/python") - self.plugin = dns_plugin.ElektraPlugin() + self.plugin = dns_plugin.ElektraDNSPlugin() + self.localhost_key_with_plugin = kdb.Key("user:/python/hostname", + kdb.KEY_VALUE, "localhost", + kdb.KEY_META, "ch...
harness: distops tests: make sure tests have run when reporting test success
@@ -45,10 +45,13 @@ def dist_test_factory(testname, finish_string, error_regex): # error regex error_re = re.compile(error_regex) passed = True + found_test = False for line in rawiter: if error_re.match(line): passed = False - return PassFailResult(passed) + if self.get_finish_string() in line: + found_test = True + r...
gsettings: rework subscription mechanism
@@ -412,44 +412,25 @@ static void elektra_settings_key_changed (GDBusConnection * connection G_GNUC_UN g_mutex_lock (&elektra_settings_kdb_lock); GElektraKeySet * ks = gelektra_keyset_dup (esb->subscription_gks); - g_mutex_unlock (&elektra_settings_kdb_lock); - GElektraKey * key = gelektra_key_new (keypathname, KEY_VAL...
cache: check that nftw is available
include (LibAddPlugin) +include (SafeCheckSymbolExists) plugin_check_if_included ("resolver") @@ -14,6 +15,13 @@ if (NOT_INCLUDED) return () endif (NOT_INCLUDED) +safe_check_symbol_exists (nftw "ftw.h" HAVE_NFTW) + +if (NOT HAVE_NFTW) + message ("nftw (ftw.h) not found, excluding the cache plugin") + return () +endif (...
Enable requires_gnutls_tls1_3 in sni test cases
@@ -11398,6 +11398,7 @@ run_test "TLS 1.3: Server side check, no server certificate available" \ -s "tls13 server state: MBEDTLS_SSL_SERVER_CERTIFICATE" \ -s "No certificate available." +requires_gnutls_tls1_3 requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3 requires_config_enabled MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE...
jenkins: stricter logRotator settings to reduce disk usage
@@ -28,7 +28,14 @@ import java.text.SimpleDateFormat // Buildjob properties properties([ - buildDiscarder(logRotator(numToKeepStr: '60', artifactNumToKeepStr: '60')) + buildDiscarder( + logRotator( + artifactDaysToKeepStr: '31', // Keep artifacts for max 31 days + artifactNumToKeepStr: '5', // Keep artifacts for last 5...
Skip testing ciphers in the legacy provider if no legacy test_enc should not test ciphers that are not available due to a lack of the legacy provider
@@ -15,6 +15,7 @@ use File::Copy; use File::Compare qw/compare_text/; use File::Basename; use OpenSSL::Test qw/:DEFAULT srctop_file bldtop_dir/; +use OpenSSL::Test::Utils; setup("test_enc"); @@ -27,13 +28,16 @@ my $test = catfile(".", "p"); my $cmd = "openssl"; my $provpath = bldtop_dir("providers"); -my @prov = ("-pro...
fixes unwanted fallthrough in setters
@@ -784,6 +784,7 @@ void set_pkt_ctx(picoquic_packet_context_t *pkt_ctx, access_key_t ak, protoop_ar break; case AK_PKTCTX_LATEST_RETRANSMIT_TIME: pkt_ctx->latest_retransmit_time = val; + break; case AK_PKTCTX_LATEST_RETRANSMIT_CC_NOTIFICATION_TIME: pkt_ctx->latest_retransmit_cc_notification_time = val; break; @@ -935,...
fix color completition see
@@ -23,7 +23,7 @@ _kdb() { # only kdb was entered yet, print a list of available commands if [[ $COMP_CWORD -eq 1 ]]; then local IFS=$'\n' - local commands=($(${kdbpath} 2> /dev/null | sed -e '0,/^Known commands are/d' | awk '{print $1}')) + local commands=($(${kdbpath} 2> /dev/null | sed -e '0,/^Known commands are/d' ...
fix git invocation if repository path contains whitespace
@@ -180,19 +180,19 @@ def get_hg_scm_data(info): def git_call(fpath, git_arg): - return system_command_call("git --git-dir " + fpath + "/.git " + git_arg) + return system_command_call(["git", "--git-dir", fpath + "/.git"] + git_arg) def get_git_dict(fpath): info = {} - git_test = git_call(fpath, "rev-parse HEAD").strip...
mangle: make mangle_AddSub use smaller ranges
@@ -477,14 +477,12 @@ static void mangle_Random(run_t* run, bool printable) { } } -static void mangle_AddSubWithRange(run_t* run, size_t off, uint64_t varLen) { - int delta = (int)util_rndGet(0, 8192); - delta -= 4096; +static void mangle_AddSubWithRange(run_t* run, size_t off, uint64_t varLen, uint64_t range) { + int6...
CMake: Fix name of external CMake file Before this update building the man pages would fail on a case-sensitive file system. Thank you to Stefan Husmann (@stefanhusmann) for reporting the problem. See also:
@@ -568,7 +568,7 @@ function (generate_manpage NAME) -D MANPAGE=${OUTFILE} -P - ${CMAKE_SOURCE_DIR}/scripts/cmake/ElektraManpage.cmake) + ${CMAKE_SOURCE_DIR}/scripts/cmake/ElektraManPage.cmake) add_custom_target (man-${NAME} ALL DEPENDS ${OUTFILE}) add_dependencies (man man-${NAME}) endif (RONN_LOC)
xfconf-plugin: set interface error on faulty initalization
*/ #include "xfconf.h" +#include "kdberrors.h" #include <kdb.h> #include <kdbease.h> @@ -27,6 +28,7 @@ int elektraXfconfOpen (Plugin * handle ELEKTRA_UNUSED, Key * errorKey ELEKTRA_UN else { ELEKTRA_LOG ("unable to initialize xfconf(%d): %s\n", err->code, err->message); + ELEKTRA_SET_INTERFACE_ERROR (errorKey, err->mes...
Fix for new thread creation function prototype
@@ -80,12 +80,12 @@ The Defer library overriding functions /** OVERRIDE THIS to replace the default pthread implementation. */ -void *defer_new_thread(void *(*thread_func)(void *), pool_pt pool) { +void *defer_new_thread(void *(*thread_func)(void *), void *arg) { struct CreateThreadArgs *data = malloc(sizeof(*data)); i...
mpiotest: handle enospc from mpool_mblock_write.
@@ -535,6 +535,9 @@ test_start(void *arg) err = mpool_mblock_write(mp, objid, iov, niov); if (err) { + if (merr_errno(err) == ENOSPC) + break; + merr_strinfo(err, errbuf, sizeof(errbuf), NULL); eprint( "mpool_mblock_write: %d objid=0x%lx len=%zu: %s\n",
cooja: simplify JNI method declaration Rename and document the macros to make them easier to understand.
#ifndef CLASSNAME #error CLASSNAME is undefined, required by platform.c #endif /* CLASSNAME */ -#define COOJA__QUOTEME(a,b,c) COOJA_QUOTEME(a,b,c) -#define COOJA_QUOTEME(a,b,c) a##b##c -#define COOJA_JNI_PATH Java_org_contikios_cooja_corecomm_ -#define CLASS_init COOJA__QUOTEME(COOJA_JNI_PATH,CLASSNAME,_init) -#define ...
adding libm tgamma, tgammal, tgammaf, lgamma_r, lgammal_r, lgammaf_r, lgamma, lgammal and lgammaf
@@ -240,13 +240,13 @@ GOW(hypotf, fFff) GOW(ldexp, dFdi) GOW(ldexpf, fFfi) // ldexpl // Weak -// lgamma // Weak -// lgammaf // Weak -// lgammaf_r // Weak +GOW(lgamma, dFd) +GOW(lgammaf, fFf) +GOW(lgammaf_r, fFfp) // __lgammaf_r_finite -// lgammal // Weak -// lgammal_r // Weak -// lgamma_r // Weak +GO2(lgammal, LFL, lga...
admin/ohpc-filesystem: adding to scanning path for automatic rpm dependency analysis; adding specific slurm binaries that require hwloc so that they will correctly detect dependencies from the ohpc-provided variant
#----------------------------------------------------------------------------eh- Name: ohpc-filesystem -Version: 2.0 +Version: 2.1 Release: 1%{?dist} Summary: Common top-level OpenHPC directories @@ -57,8 +57,8 @@ install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/rpm %%__ohpc_provides /usr/lib/rpm/ohpc-find-provides...
Configurations/windows-makefile.tmpl: Fix template code for INSTALL_MODULES Fixes
@@ -95,12 +95,10 @@ INSTALL_ENGINEPDBS={- @{$unified_info{modules}}) -} INSTALL_MODULES={- - join(" \\\n" . ' ' x 16, - fill_lines(" ", $COLUMNS - 16, - map { platform->dso($_) } + join(" ", map { platform->dso($_) } grep { !$unified_info{attributes}->{modules}->{$_}->{noinst} && !$unified_info{attributes}->{modules}->...
ulp: Add aditional uint32_t object to `ulp_insn_t` Used to get the encoded instruction from bit-field structs. Merges
@@ -293,6 +293,8 @@ typedef union { uint32_t opcode: 4; /*!< Opcode (OPCODE_MACRO) */ } macro; /*!< Format of tokens used by MACROs */ + uint32_t instruction; /*!< Encoded instruction for ULP coprocessor */ + } ulp_insn_t; _Static_assert(sizeof(ulp_insn_t) == 4, "ULP coprocessor instruction size should be 4 bytes");
MTRIE coverity fixes
@@ -271,7 +271,7 @@ set_leaf (ip4_fib_mtrie_t * m, old_ply = pool_elt_at_index (ip4_ply_pool, old_ply_index); - ASSERT (a->dst_address_length >= 0 && a->dst_address_length <= 32); + ASSERT (a->dst_address_length <= 32); ASSERT (dst_address_byte_index < ARRAY_LEN (a->dst_address.as_u8)); /* how many bits of the destinat...
landscape: fix newchannel 'back' in dark mode
@@ -127,7 +127,7 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) { }; return ( <Col overflowY="auto" p={3}> - <Box pb='3' display={['block', 'none']} onClick={() => history.push(props.baseUrl)}> + <Box color='black' pb='4' display={['block', 'none']} onClick={() => history.push(props.baseUrl...
SOVERSION bump to version 3.5.0
@@ -66,8 +66,8 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # Major version is changed with every backward non-compatible API/ABI change in libyang, minor version changes # with backward compatible change and micro version is connected with any internal change of the library. set(...
[runtime] Fix allocation of stacks
+// Copyright 2020 ETH Zurich and University of Bologna. +// +// SPDX-License-Identifier: Apache-2.0 +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/lice...
roll back commit #72d8608 to avoid spin lock contention on region allocation
@@ -119,8 +119,6 @@ bool mi_is_in_heap_region(const void* p) mi_attr_noexcept { Commit from a region -----------------------------------------------------------------------------*/ -#define ALLOCATING ((void*)1) - // Commit the `blocks` in `region` at `idx` and `bitidx` of a given `size`. // Returns `false` on an error...
storage: do not release an external config property
@@ -290,9 +290,6 @@ void flb_storage_destroy(struct flb_config *ctx) } cio_destroy(cio); - if (ctx->storage_bl_mem_limit) { - flb_free(ctx->storage_bl_mem_limit); - } /* Delete references from input instances */ storage_contexts_destroy(ctx);
Fixed neg index read in channelMap
@@ -217,9 +217,11 @@ static int process_jsonarray(scratch_space_t *scratch, char *ct0conf, stack_entr so->channel_map[i] = -1; for (int i = 0; i < count; i++) { + if(values[i] >= 0) { so->channel_map[values[i]] = i; } } + } free(values); } else if (jsoneq(ct0conf, tk, "acc_bias") == 0) { int32_t count = (tk + 1)->size;...
TestsUser/Prelinked: Fix typo.
@@ -501,7 +501,7 @@ int main(int argc, char** argv) { Status = PrelinkedInjectKext ( &Context, - KextPath + KextPath, TestPlist, TestPlistSize, "Contents/MacOS/Kext",
server: fix compilation on older SSL, make error more useful
@@ -445,21 +445,25 @@ sslerror(z_strm *strm, int rval) snprintf(_sslerror_buf, sizeof(_sslerror_buf), "%d: call callback via SSL_CTX_set_client_cert_cb()", err); break; +#ifdef SSL_ERROR_WANT_ASYNC case SSL_ERROR_WANT_ASYNC: snprintf(_sslerror_buf, sizeof(_sslerror_buf), "%d: asynchronous engine is still processing dat...
don't add prefix if build type is None (PR
@@ -224,7 +224,7 @@ else() endif() string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LC) -if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel)$")) +if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel|none)$")) set(mi_basename "${mi_basename}-${CMAKE_BUILD_TYPE_LC}") #append b...
Python-package: Change import module
@@ -2,6 +2,7 @@ import sys from copy import deepcopy from six import iteritems, string_types, integer_types import os +import imp from collections import Iterable, Sequence, Mapping, MutableMapping import warnings import numpy as np @@ -24,13 +25,29 @@ except ImportError: class Series(object): pass + +def get_so_paths(...
fix the issue #886,in function "platone_createOnetimeWallet"
@@ -60,11 +60,13 @@ BoatPlatoneWallet *g_platone_wallet_ptr; __BOATSTATIC BOAT_RESULT platone_createOnetimeWallet() { BSINT32 index; - BoatPlatoneWalletConfig wallet_config = {0}; + BoatPlatoneWalletConfig wallet_config; BUINT8 binFormatKey[32] = {0}; (void)binFormatKey; //avoid warning + memset(&wallet_config,0,sizeof...
Make sync compatible with mingw. This fixes the problems of the first try: It does not use fsync(fileno(fd)) anymore, which is discouraged and doesn't work.
@@ -49,6 +49,29 @@ int elektraSyncSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UN /* set all keys */ const char * configFile = keyString (parentKey); if (!strcmp (configFile, "")) return 0; // no underlying config file + + // Syncing requires different functions for mingw vs. POSIX builds. + // For mi...
eq_value should return boolean
@@ -405,8 +405,8 @@ describe("Pallene coder /", function() -- Comparison operators, same order as types.lua -- Nil and Record are tested separately. - { "eq_value", "==", "value", "value", "value" }, - { "ne_value", "~=", "value", "value", "value" }, + { "eq_value", "==", "value", "value", "boolean" }, + { "ne_value", ...
feat(fabric test): add fabric test case "Free_WalletConfig_NULL"
@@ -764,6 +764,16 @@ START_TEST(test_002Transaction_0030DeInit_Txptr_NULL) } END_TEST +START_TEST(test_002Transaction_0031Free_WalletConfig_NULL) +{ + + BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_settings(); + BoatIotSdkInit(); + BoatIotSdkDeInit(); + fabricWalletConfigFree(wallet_config); +} +END_TEST ...
bfd:fix handling session creation batch when multiple session creating script is ran (via exec) only the first one actually starts
@@ -1165,6 +1165,7 @@ bfd_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) } } now = clib_cpu_time_now (); + uword *session_index; switch (event_type) { case ~0: /* no events => timeout */ @@ -1180,35 +1181,41 @@ bfd_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f) * each eve...
feat(venachain):Remove the txType field in the interface description
@@ -52,10 +52,9 @@ extern "C" { * 4. recipient; * 5. value(optional); * 6. data(contain at least an 8-byte bigendian txtype field in data); - * 7. txtype(same value as above, except trimming leading zeros); - * 8. v; - * 9. signature.r; - * 10. signature.s; + * 7. v; + * 8. signature.r; + * 9. signature.s; * * These tr...
sidk_s5jt200: remove unused code lines board_button_irq() and board_button_handler() are not in use, as there is no Kconfig entry that enables them. Let's remove them. We can add it later when we need it again.
#include <errno.h> #include <tinyara/board.h> -#include <tinyara/irq.h> #include <chip.h> @@ -136,59 +135,4 @@ uint8_t board_buttons(void) return ret; } -/**************************************************************************** - * Button support. - * - * Description: - * board_button_initialize() must be called to...
docs: Configure enclave.runtime.path as liberpal-skeleton-v3.so in skeleton_remote_attestation_with_rune.md. Only `liberpal-skeleton-v3.so` supports `rune attest` command.
@@ -7,7 +7,7 @@ This guide will guide you how to use remote attestation based on SGX in skeleton - Register a `SPID` and `Subscription Key` of [IAS](https://api.portal.trustedservices.intel.com/EPID-attestation). After the registration, Intel will respond with a SPID which is needed to communicate with IAS. # Run skele...
enable npgsql legacy timestamps
@@ -733,6 +733,8 @@ namespace Miningcore if(string.IsNullOrEmpty(pgConfig.User)) logger.ThrowLogPoolStartupException("Postgres configuration: invalid or missing 'user'"); + AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); + // build connection string var connectionString = $"Server={pgConfig.Host};Po...
Fire events when group.name or group.class is changed
@@ -445,7 +445,12 @@ int DeRestPluginPrivate::setGroupAttributes(const ApiRequest &req, ApiResponse & ResourceItem *item = group->item(RAttrClass); DBG_Assert(item != 0); + if (item && item->toString() != gclass) + { item->setValue(gclass); + Event e(RGroups, RAttrClass, group->address()); + enqueueEvent(e); + } } // n...
docs: Update www.raspberrypi.com documentation links www.raspberrypi.com restructured its documentation. Reflect the new links in our docs. Fixes
@@ -29,7 +29,7 @@ Accommodate the values above to your own needs (ex: ext3 / ext4). * `GPU_MEM_1024`: GPU memory in megabyte for the 1024MB Raspberry Pi. Ignored by the 256MB/512MB RP. Overrides gpu_mem. Max 944. Default not set. -See: <https://www.raspberrypi.org/documentation/configuration/config-txt/memory.md> +See:...
Migrate to LED HAL (GPIO HAL example)
#include "contiki.h" #include "dev/gpio-hal.h" /*---------------------------------------------------------------------------*/ -#define BASE_TO_PORT_NUM(base) (((base) - GPIO_A_BASE) >> 12) - -gpio_hal_pin_t out_pin1 = (BASE_TO_PORT_NUM(LEDS_GREEN_PORT_BASE) << 3) + LEDS_GREEN_PIN; -gpio_hal_pin_t out_pin2 = (BASE_TO_P...
YAML CPP: Improve array check
@@ -56,23 +56,9 @@ NameIterator relativeKeyIterator (Key const & key, Key const & parent) std::pair<bool, unsigned long long> isArrayIndex (NameIterator const & nameIterator) { string const name = *nameIterator; - if (name.size () < 2 || name.front () != '#') return std::make_pair (false, 0); - - auto errnoValue = errn...
Solve minor bug in web script (file was never closed).
@@ -6,8 +6,7 @@ from datetime import datetime def index(): basepath = path.dirname(path.abspath(__file__)) - f = open(path.join(basepath, 'index.html'), 'r') - + with open(path.join(basepath, 'index.html'), 'r') as f: return f.read() def time():
SOVERSION bump to version 7.3.9
@@ -72,7 +72,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 7) set(SYSREPO_MINOR_SOVERSION 3) -set(SYSREPO_MICRO_SOVERSION 8) +set(SYSREPO_MICRO_SO...
core/minute-ia/mia_panic_internal.h: Format with clang-format BRANCH=none TEST=none
* convenientely in the same order as pushed by hardwared during a * processor exception. */ -noreturn -void exception_panic( - uint32_t vector, - uint32_t errorcode, - uint32_t eip, - uint32_t cs, - uint32_t eflags); +noreturn void exception_panic(uint32_t vector, uint32_t errorcode, uint32_t eip, + uint32_t cs, uint32...
fix(rt-thread): Sconscript use LOCAL_CFLAGS to replace LOCAL_CCFLAGS
@@ -52,15 +52,15 @@ if GetDepend('PKG_USING_LVGL_DEMOS'): if check_h_hpp_exsit(current_path): inc = inc + [current_path] -LOCAL_CCFLAGS = '' +LOCAL_CFLAGS = '' if rtconfig.PLATFORM == 'gcc': # GCC - LOCAL_CCFLAGS += ' -std=c99' + LOCAL_CFLAGS += ' -std=c99' elif rtconfig.PLATFORM == 'armcc': # Keil AC5 - LOCAL_CCFLAGS ...