message
stringlengths
6
474
diff
stringlengths
8
5.22k
Updating test_intercomm2 to read and check the data with more combinations of start/count.
@@ -83,14 +83,20 @@ int check_file(int iosysid, int format, char *filename, int my_rank) /* Try to read the data. */ PIO_Offset start[NDIM] = {0}, count[NDIM] = {DIM_LEN}; int data_in[DIM_LEN]; + /* Check with various combinations of start/count */ + for (int start_index = 0; start_index < DIM_LEN; start_index++) + { +...
Remove certificate_request state
@@ -1523,20 +1523,19 @@ static int ssl_tls13_parse_encrypted_extensions( mbedtls_ssl_context *ssl, static int ssl_tls13_postprocess_encrypted_extensions( mbedtls_ssl_context *ssl ) { - mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_CERTIFICATE_REQUEST ); - return( 0 ); -} - -/* - * Handler for MBEDTLS_SSL_CERTIFICAT...
sysdeps/managarm: handle EBADF and EINVAL errors in dup and dup2
@@ -3241,7 +3241,14 @@ int sys_dup(int fd, int flags, int *newfd) { managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator()); resp.ParseFromArray(recv_resp->data, recv_resp->length); + if (resp.error() == managarm::posix::Errors::BAD_FD) { + return EBADF; + } else if (resp.error() == managarm::posix::E...
gsettings: use cascading key for subscription
@@ -499,7 +499,7 @@ static void elektra_settings_check_bus_connection (ElektraSettingsBackend * back static void elektra_settings_backend_subscribe (GSettingsBackend * backend, const gchar * name) { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s %s.", "Subscribe to:", name); - gchar * pathToSubscribe = g_strconcat ("defau...
fixed ksceKernelGetModuleInfo2 and SceKernelModuleInfo2
@@ -118,16 +118,18 @@ typedef struct { }; } SceKernelModuleListInfo; -typedef struct -{ - SceSize size; //!< sizeof(SceKernelModuleInfo2) +typedef struct { + SceSize size; //!< sizeof(SceKernelModuleInfo2) : 0x120 SceUID modid1; - uint32_t unk1; - uint32_t unk2; - uint32_t unk3; - uint32_t unk4; - char module_name[256]...
treat rejected payments as orphans so they can be retested
@@ -2565,6 +2565,9 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck) if (!CheckFSPayment(pindex, vtx[1].vout[i].nValue, mn)) // if MN is being paid and it's bottom 50% ranked, don't let it be paid. { if (pindexBest->nHeight >= MN_ENFORCEMENT_ACTIVE_HEIGHT) { + CBlock* pblock2 = new CBlock(...
[core] path-info in debug trace may be unset path-info in debug trace (debug.log-request-handling) may be unset
@@ -540,9 +540,8 @@ http_response_prepare (request_st * const r) log_error(r->conf.errh, __FILE__, __LINE__, "URI : %s", r->uri.path.ptr); log_error(r->conf.errh, __FILE__, __LINE__, - "Pathinfo : %s", r->pathinfo.ptr - ? r->pathinfo.ptr - : ""); + "Pathinfo : %.*s", + BUFFER_INTLEN_PTR(&r->pathinfo)); } /* call the ha...
disables automatic chunked transfer-encoding by setting content-length before start_response
@@ -296,11 +296,12 @@ _http_req_respond(u3_hreq* req_u, u3_noun sas, u3_noun hed, u3_noun bod) hed_u = hed_u->nex_u; } + h2o_iovec_t bod_u = _http_vec_from_octs(u3k(bod)); + rec_u->res.content_length = bod_u.len; + static h2o_generator_t gen_u = {0, 0}; h2o_start_response(rec_u, &gen_u); - h2o_iovec_t bod_u = _http_vec...
VERSION bump to version 0.8.47
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 8) -set(LIBNETCONF2_MICRO_VERSION 46) +set(LIBNETCONF2_MICRO_VERSION 47) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
link: add dark mode styles to tile
@@ -11,7 +11,7 @@ export default class LinkTile extends Component { let displayUnseen = unseenCount <= 0 ? null : <p - className="absolute green2" + className="absolute green2 white-d" style={{ bottom: 6, fontWeight: 400, @@ -22,15 +22,16 @@ export default class LinkTile extends Component { </p>; return ( - <div classN...
[CI] Install Python dependencies in CI
@@ -27,5 +27,6 @@ jobs: # Runs a set of commands using the runners shell - name: Build axle toolchain run: | + pip3 install -r python-dependencies.txt python3 scripts/build_os_toolchain.py echo "Toolchain built successfully"
fix: update Windows build tutorial to C migration
@@ -214,12 +214,12 @@ strndup (const char *s, size_t n) } ``` -Now, go to `discord-ratelimit.cpp` and include `tdestroy.h`: +Now, go to `discord-ratelimit.c` and include `tdestroy.h`: ```c #include "tdestroy.h" ``` -Then, go to `discord-public-user.cpp` and include `strndup.h`: +Then, go to `discord-public-user.c` and ...
IConnection::GetDeviceInfo - default specifies unknown board type This not only has the effect of initializing device info names to UNKNOWN which seems appropriate, it also causes the lms7_device::CreateDevice() to use the LMS7_Generic class rather than LimeSDR when IConnection::GetDeviceInfo is left unimplemented.
#include "IConnection.h" #include "Logger.h" +#include "LMSBoards.h" using namespace lime; @@ -32,6 +33,10 @@ bool IConnection::IsOpen(void) DeviceInfo IConnection::GetDeviceInfo(void) { DeviceInfo info; + //initialize to UNKNOWN board type + //causes lms7_device::CreateDevice() to use LMS7_Generic + info.deviceName = ...
Add .editorconfig files to MSVC projects Visual Studio doesn't seem to respect them unless they're in the project.
@@ -287,6 +287,10 @@ local function make_project_data(units_raw, env, proj_extension, hints, ide_scri end local source_list = util.map(util.filter(accessed_lua_files, is_non_tundra_lua_file), make_src_node) + if native.stat_file('.editorconfig').exists then + source_list[#source_list + 1] = make_src_node('.editorconfig...
web ui: re-throw errors from deletion
@@ -199,6 +199,7 @@ const rm = (path) => { if (!p.startsWith('user/sw/elektra/web')) rm(p) })) }) + .catch(err => { throw err }) // re-throw error } return safeExec(escapeValues`${KDB_COMMAND} rm -r ${path}`) }
Add file size to live dump progress
@@ -123,7 +123,24 @@ HRESULT CALLBACK PhpLiveDumpProgressDialogCallbackProc( PhCreateThread2(PhpCreateLiveKernelDump, context); } break; - case TDN_DESTROYED: + case TDN_TIMER: + { + LARGE_INTEGER fileSize; + + if (NT_SUCCESS(PhGetFileSize(context->FileHandle, &fileSize))) + { + PH_FORMAT format[2]; + WCHAR string[MAX_...
Add ode to brew install example;
@@ -68,7 +68,7 @@ git clone --branch v1.0.5 https://github.com/ValveSoftware/openvr.git Next, install the other dependencies above using your package manager of choice: ```sh -brew install assimp glfw3 luajit physfs freetype openal-soft +brew install assimp glfw3 luajit physfs freetype openal-soft ode ``` On OSX, you'l...
misc.c: _libssh2_ntohu32 cast bit shifting To quite overly aggressive analyzers. Note, the builds pass, Travis is having some issues with Docker images.
@@ -191,7 +191,10 @@ _libssh2_send(libssh2_socket_t sock, const void *buffer, size_t length, unsigned int _libssh2_ntohu32(const unsigned char *buf) { - return (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; + return (((unsigned int)buf[0] << 24) + | ((unsigned int)buf[1] << 16) + | ((unsigned int)buf[2] << 8...
Updated telemetry config to pull all values from yotta generated headers.
#define TELEMETRY_CSP_ADDRESS YOTTA_CFG_TELEMETRY_CSP_ADDRESS /* Port number used for the telemetry server's CSP socket */ -#define TELEMETRY_CSP_PORT 10 +#define TELEMETRY_CSP_PORT YOTTA_CFG_TELEMETRY_CSP_PORT /* Number of telemetry subscribers */ #define TELEMETRY_NUM_SUBSCRIBERS YOTTA_CFG_TELEMETRY_SUBSCRIBERS_NUM /...
[DYNAREC] Fixed ARMS (ARM shifted) instruction category
@@ -817,7 +817,7 @@ def main(root, ver, __debug_forceAllDebugging=False): fail(NotImplementedError, "Unknown case with shift") if (spltln[0] == "ARMS"): - generate_bin_test([24, 27], [[(0, 0), (0, 0)], [(1, 0), (1, 1)]]) + generate_bin_test([24, 27], [[(0, 0), (1, 0)], [(1, 0), (1, 1)]]) else: generate_bin_test()
[mod_authn_gssapi] option to store delegated creds (fixes default enabled for backwards compatibility; disable in future (thx lameventanas) x-ref: "mod_authn_gssapi requires delegation?"
typedef struct { buffer *auth_gssapi_keytab; buffer *auth_gssapi_principal; + unsigned short int auth_gssapi_store_creds; } plugin_config; typedef struct { @@ -101,6 +102,7 @@ SETDEFAULTS_FUNC(mod_authn_gssapi_set_defaults) { config_values_t cv[] = { { "auth.backend.gssapi.keytab", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE...
Add OPENSSL_strdup failure check to cpt_ctrl() in bss_acpt.c
@@ -433,7 +433,9 @@ static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr) b->init = 1; } else if (num == 1) { OPENSSL_free(data->param_serv); - data->param_serv = OPENSSL_strdup(ptr); + if ((data->param_serv = OPENSSL_strdup(ptr)) == NULL) + ret = 0; + else b->init = 1; } else if (num == 2) { data->bind_mode |= B...
Fixes typo Commit fixes typo in rsa.h found in review.
@@ -570,7 +570,7 @@ int mbedtls_rsa_private( mbedtls_rsa_context *ctx, * operation. * * \param ctx The initialized RSA context to use. - * \param f_rng The RNG to use. It used for padding generation + * \param f_rng The RNG to use. It is used for padding generation * and it is mandatory. * \param p_rng The RNG context ...
docs/fingerprint: Add instructions for adding private repo BRANCH=none TEST=view in gitiles Tested-by: Craig Hesling
@@ -373,7 +373,30 @@ If your partnership agreement requires non-public code sharing you will need to register for an account on the [Internal Gerrit]. Refer to the [Gerrit Credentials Setup] page for details. Once you register for an internal account, your contact at Google can make sure you have the necessary permissi...
Device: delete default and copy constructor
@@ -83,6 +83,8 @@ class Device : public QObject, { Q_OBJECT public: + Device() = delete; + Device(const Device &) = delete; explicit Device(DeviceKey key, QObject *parent = nullptr); void addSubDevice(Resource *sub); DeviceKey key() const { return m_deviceKey; } @@ -109,7 +111,6 @@ Q_SIGNALS: void eventNotify(const Eve...
Extend PSA_ALG_TLS12_PSK_TO_MS alg (add #PSA_KEY_DERIVATION_INPUT_OTHER_SECRET input)
* This key derivation algorithm uses the following inputs, which must be * passed in the order given here: * - #PSA_KEY_DERIVATION_INPUT_SEED is the seed. + * - #PSA_KEY_DERIVATION_INPUT_OTHER_SECRET is the other secret for the + * computation of the premaster secret. This input is optional; + * if omitted, it defaults...
typechecker-regex-prototype: make the interpreter sandbox depend on the bindings as well
@@ -25,14 +25,17 @@ if (HASKELL_FOUND) add_custom_command (OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/sandbox/cabal.sandbox.config" COMMAND ${CABAL_EXECUTABLE} sandbox delete -v0 - COMMAND ${CABAL_EXECUTABLE} sandbox init - COMMAND ${CABAL_EXECUTABLE} sandbox add-source -v + COMMAND ${CABAL_EXECUTABLE} sandbox init -v0 + COMM...
all.sh: add build/test config crypto_full minus CIPHER Dependency list: ['MBEDTLS_CIPHER_C'] ['MBEDTLS_CMAC_C', 'MBEDTLS_NIST_KW_C', 'MBEDTLS_PKCS12_C', 'MBEDTLS_PKCS5_C', 'MBEDTLS_CCM_C', 'MBEDTLS_GCM_C', 'MBEDTLS_PSA_CRYPTO_C'] ['MBEDTLS_PSA_CRYPTO_SE_C', 'MBEDTLS_PSA_CRYPTO_STORAGE_C', 'MBEDTLS_USE_PSA_CRYPTO']
@@ -1254,6 +1254,26 @@ component_test_full_no_cipher () { make test } +component_test_crypto_full_no_cipher () { + msg "build: crypto_full minus CIPHER" + scripts/config.py crypto_full + scripts/config.py unset MBEDTLS_CIPHER_C + scripts/config.py unset MBEDTLS_CMAC_C + scripts/config.py unset MBEDTLS_NIST_KW_C + scrip...
ci more formatting action updates
@@ -4,16 +4,15 @@ on: types: [created] jobs: - test-github: - runs-on: ubuntu-latest - steps: - - run: echo '${{ toJSON(github) }}' update-formatting: continue-on-error: true if: github.event.issue.user.login == 'embeddedt' runs-on: ubuntu-latest steps: + - uses: xt0rted/pull-request-comment-branch@v1 + id: comment-bra...
actually clear the nack
++ process-ack-message |= [=message-num ok=?] ^+ peer-core - :: is this bone a nack-trace bone? + :: if even bone, ack is on "subscription update" message; no-op + :: + ?: =(0 (end 0 1 bone)) + peer-core + :: odd bone; is this bone a nack-trace bone? :: ?: =(1 (end 0 1 (rsh 0 1 bone))) - !! - :: positive ack gets emitt...
Join thread before exit cleanup
@@ -603,7 +603,11 @@ static VALUE iodine_count(VALUE self) { /* ***************************************************************************** Running the server */ +#include <pthread.h> + static volatile int sock_io_thread = 0; +static pthread_t sock_io_pthread; + static void *iodine_io_thread(void *arg) { (void)arg; s...
Update: use the Theme colours
@@ -10,6 +10,7 @@ using namespace blit; #include "credits.hpp" #include "contrib.hpp" +#include "theme.hpp" // Speed of scrolling, ms per pixel #define SPEED 40 @@ -21,6 +22,7 @@ namespace credits { static Rect display_rect(0, 0, 0, 0); static Pen background_colour; static Pen foreground_colour; + static Pen highlight_...
add to generate ZeroDivisionError.
@@ -1904,7 +1904,11 @@ static inline void op_div( mrbc_vm *vm, mrbc_value *regs EXT ) if( regs[a].tt == MRBC_TT_INTEGER ) { if( regs[a+1].tt == MRBC_TT_INTEGER ) { // in case of Integer, Integer + if( regs[a+1].i == 0 ) { + mrbc_raise(vm, MRBC_CLASS(ZeroDivisionError), 0 ); + } else { regs[a].i /= regs[a+1].i; + } retu...
improves device flow not supported error message; closes
@@ -137,7 +137,7 @@ static inline char* oidc_serror() { case OIDC_EOIDC: return oidc_error; case OIDC_ECRED: return "Bad credentials"; case OIDC_ENOREFRSH: return "No refresh token"; - case OIDC_ENODEVICE: return "Device Flow not Supported"; + case OIDC_ENODEVICE: return "Device Flow not Supported by OpenID Provider"; ...
Fix a crash in tls_construct_client_certificate.
@@ -3320,7 +3320,12 @@ int tls_construct_client_certificate(SSL *s, WPACKET *pkt) SSL3_CC_HANDSHAKE | SSL3_CHANGE_CIPHER_CLIENT_WRITE))) { SSLerr(SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE, SSL_R_CANNOT_CHANGE_CIPHER); - goto err; + /* + * This is a fatal error, which leaves + * enc_write_ctx in an inconsistent state + * a...
Remove duplicate MAKEINTRESOURCE macro
@@ -710,9 +710,9 @@ VOID PhGetStockApplicationIcon( // Fallback icons if (!smallIcon) - smallIcon = PhLoadIcon(NULL, MAKEINTRESOURCE(IDI_APPLICATION), PH_LOAD_ICON_SIZE_SMALL, 0, 0); + smallIcon = PhLoadIcon(NULL, IDI_APPLICATION, PH_LOAD_ICON_SIZE_SMALL, 0, 0); if (!largeIcon) - largeIcon = PhLoadIcon(NULL, MAKEINTRES...
Adjust construct recursion logic.
:: fin :: - ++ probe - :: probe for tuple + ++ construct + :: local constructor :: - |= $: :: tow: tuple width we need - :: any: default if probe fails + :: ~& [%construct axe mod] + ~+ + ^- hoon + :: tow: width of ideal tuple :: - tow/@ud - any/crib + =/ tow/@ud + ?+ mod 1 + {^ *} 2 + {$kelp *} 2 + {$vine *} 2 == - ::...
Addition to Filesystem Benchmark Testing Filesystem benchmark test Closes
@@ -617,6 +617,83 @@ static void usage(const char *program_name) p); } +static void fs_stress_test() +{ + int num_files = 1000; + int fds[num_files]; + char fd_names[num_files][50]; + + struct timespec start; + if (clock_gettime(CLOCK_MONOTONIC, &start) < 0) { + perror("fs_stress_test: clock_gettime"); + exit(EXIT_FAIL...
Add extra handle check when querying DEP
@@ -929,7 +929,7 @@ static VOID PhpUpdateProcessNodeDepStatus( ProcessNode->ProcessItem->IsHandleValid // PROCESS_QUERY_INFORMATION ) #else - if (PH_IS_REAL_PROCESS_ID(ProcessNode->ProcessItem->ProcessId)) + if (PH_IS_REAL_PROCESS_ID(ProcessNode->ProcessItem->ProcessId) && ProcessNode->ProcessItem->QueryHandle) #endif ...
Use ALLOCATE instead of malloc
@@ -256,7 +256,7 @@ static Value gcdNative(DictuVM *vm, int argCount, Value *args) { return EMPTY_VAL; } - double* as_doubles = malloc(sizeof *as_doubles * argCount); + double* as_doubles = ALLOCATE(vm, double, argCount); for (int i = 0; i < argCount; ++i) { as_doubles[i] = AS_NUMBER(args[i]); if (fabs(round(as_doubles...
RTX5: component view updated - fixed display when Global Dynamic Memory not used
<?xml version="1.0" encoding="utf-8"?> <component_viewer schemaVersion="0.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd"> - <component name="RTOS" version="5.0.0"/> <!-- name and version of the component --> + <component name="CMSIS:RTOS2:Keil RTX5" brief="RT...
Assume buffer can hold ARP packet in ARGGenerateRequestPacket CBMC proof.
@@ -20,5 +20,9 @@ void harness() NetworkBufferDescriptor_t xNetworkBuffer2; xNetworkBuffer2.pucEthernetBuffer = xBuffer; + xNetworkBuffer2.xDataLength = ucBUFFER_SIZE; + + /* vARPGenerateRequestPacket asserts buffer has room for a packet */ + __CPROVER_assume( xNetworkBuffer2.xDataLength >= sizeof(ARPPacket_t) ); vARPG...
Rewrite ARM64 PROLOGUE to make it compatible with xcode/ios
@@ -103,12 +103,14 @@ static inline int blas_quickdivide(blasint x, blasint y){ #if defined(ASSEMBLER) && !defined(NEEDPARAM) -#define PROLOGUE \ - .text ;\ - .align 4 ;\ - .global REALNAME ;\ - .type REALNAME, %function ;\ +.macro PROLOGUE + .text ; + .p2align 2 ; + .global REALNAME ; + .type REALNAME, %function ; REA...
TEST: augmented the mop get tests.
#!/usr/bin/perl use strict; -use Test::More tests => 14; +use Test::More tests => 23; use FindBin qw($Bin); use lib "$Bin/lib"; use MemcachedTest; @@ -49,7 +49,7 @@ $cmd = "get mkey1"; $rst = "END"; mem_cmd_is($sock, $cmd, "", $rst); $cmd = "get mkey2"; $rst = "END"; mem_cmd_is($sock, $cmd, "", $rst); -# Prepare Keys +...
Refactor conn_compute_ack_delay
@@ -450,15 +450,14 @@ static int conn_ensure_ack_blks(ngtcp2_conn *conn, ngtcp2_frame **pfr, * ACK. */ static uint64_t conn_compute_ack_delay(ngtcp2_conn *conn) { - uint64_t ack_delay; + uint64_t initial_delay = + (uint64_t)conn->local_settings.max_ack_delay * 1000000; - if (conn->rcs.min_rtt == UINT64_MAX) { - return ...
pthread: Fix compilation error on pthread_cond_wait This patch fixes compilation error when CONFIG_CANCELLATION_POINTS and CONFIG_PTHREAD_MUTEX_UNSAFE are enabled.
@@ -135,7 +135,7 @@ void pthread_mutex_inconsistent(FAR struct pthread_tcb_s *tcb); #define pthread_mutex_give(m) pthread_givesemaphore(&(m)->sem) #endif -#if defined(CONFIG_CANCELLATION_POINTS) +#if defined(CONFIG_CANCELLATION_POINTS) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE) uint16_t pthread_disable_cancel(void); void...
add bootstrap_type parameter to CatBoostClassifier and Regressor
@@ -708,8 +708,8 @@ class CatBoost(_CatBoostBase): Parameters ---------- - X : Pool or list or numpy.array or pandas.DataFrame or pandas.Series - If not Pool, 2 dimensional Feature matrix. + X : Pool or list or numpy.array or pandas.DataFrame or pandas.Series or string. + If not Pool, 2 dimensional Feature matrix or st...
OHPC_macros: remove impi-ohpc requirement for impi builds in support of oneapi packaging
@@ -124,9 +124,6 @@ Requires: llvm-compilers%{PROJ_DELIM} >= 9.0.0 # MPI dependencies %if 0%{?ohpc_mpi_dependent} == 1 %if "%{mpi_family}" == "impi" -%if 0%{?OHPC_BUILD} -BuildRequires: impi%{PROJ_DELIM} -%endif # OHPC_BUILD BuildRequires: intel-mpi-devel%{PROJ_DELIM} Requires: intel-mpi-devel%{PROJ_DELIM} %global __re...
build/nco: fixing typo with variable name in comments
@@ -6902,7 +6902,8 @@ void NCO(_set_frequency)(NCO() _q, \ /* Adjust frequency of nco object by a step size in radians per sample */ \ /* _q : nco object */ \ /* _step : input frequency step [radians/sample] */ \ -void NCO(_adjust_frequency)(NCO() _q, T _df); \ +void NCO(_adjust_frequency)(NCO() _q, \ + T _step); \ \ /...
jna: run needed mvn command first
@@ -14,6 +14,11 @@ else exit 0 fi +if test -f /usr/share/java/libelektra4j.jar; then + echo "libelektra4j.jar not installed, will skip" + exit 0 +fi + check_version EXTERNAL_FOLDER="@CMAKE_SOURCE_DIR@/examples/external/java/read-keys-example" @@ -21,6 +26,11 @@ EXTERNAL_FOLDER="@CMAKE_SOURCE_DIR@/examples/external/java...
docs/conf: Version 2.11.0.15.
@@ -74,7 +74,7 @@ copyright = '2014-2019, Damien P. George, Paul Sokolovsky, and contributors' # # We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags" # breakdown, so use the same version identifier for both to avoid confusion. -version = release = '2.11.0.12' +version = release ...
esp32/modsocket.c: Fix send/sendto/write for non-blocking sockets.
@@ -299,7 +299,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(socket_recvfrom_obj, socket_recvfrom); int _socket_send(socket_obj_t *sock, const char *data, size_t datalen) { int sentlen = 0; - for (int i=0; i<sock->retries && sentlen < datalen; i++) { + for (int i=0; i<=sock->retries && sentlen < datalen; i++) { MP_THREAD_GIL_E...
Fix build break for no-RTTI flavor (e.g. Edge Installer and other small-sized executables)
@@ -24,7 +24,9 @@ __inline static std::string demangle(const char* name) { #define TYPENAME(t) typeid(t).name() #define HAS_RTTI 1 #else -#define __typename(t) "" /* Unknown */ +/* No RTTI support */ +#define TYPENAME(t) "" +#define HAS_RTTI 0 #endif #endif
Update sensor.js fix date format error
@@ -131,7 +131,7 @@ Blockly.Arduino.DS1302_set_date = function () { }; Blockly.Arduino.DS1302_get_date = function () { - var code = 'rtc.getDateStr(FORMAT_LONG,FORMAT_BIGENDIAN, \'-\')'; + var code = 'rtc.getDateStr(FORMAT_LONG,FORMAT_LITTLEENDIAN, \'-\')'; return [code, Blockly.Arduino.ORDER_ATOMIC]; };
pmix: latest patch touched autoconf/automake files; update before calling ./configure
@@ -48,6 +48,8 @@ This RPM contains all the tools necessary to compile and link against PMIx. %prep %setup -q -n %{pname}-%{version} %patch0 -p1 +autoconf +automake %build CFLAGS="%{optflags}" ./configure --prefix=%{install_path}
inbox: redirect invites correctly
@@ -87,15 +87,24 @@ export default function Inbox(props: { } }, [props.showArchive]); - const acceptInvite = async (invite) => { + const acceptInvite = (app: string, uid: string) => async (invite) => { const resource = { ship: `~${invite.resource.ship}`, name: invite.resource.name }; + + let resourcePath = resourceAsPa...
wsman-xml-serialize: check parsed time for validity Protect library from rouge input by checking that received time values ares inside the standard bounds:
@@ -1873,7 +1873,20 @@ int ws_deserialize_datetime(const char *text, XML_DATETIME * tmx) &tmx->tm.tm_mon, &tmx->tm.tm_mday, &tmx->tm.tm_hour, &tmx->tm.tm_min, &tmx->tm.tm_sec, &hours, &mins); - if (r != 8) { + if (r != 8 || + /* + https://pubs.opengroup.org/onlinepubs/007908799/xsh/time.h.html + tm_year and tm_mon redu...
common: prefer __builtin_isnan over std::isnan It seems there are some buggy standard libraries out there which will define HUGE_VAL but not isnan and still not make std::isnan available. Preferring __builtin_isnan should reduce the odds that we're actually effected by such issues, but doesn't really solve the problem.
@@ -812,12 +812,6 @@ typedef SIMDE_FLOAT64_TYPE simde_float64; #if !defined(simde_isnan) #if defined(isnan) #define simde_isnan(v) isnan(v) - #elif defined(__cplusplus) && defined(HUGE_VAL) - /* Including <cmath> will undefine isnan, so we need to use - * std::isnan. However, we can't just use std::isnan in C++ - * bec...
Pass a Locale to toUpperCase() Make lint happy.
@@ -9,6 +9,7 @@ import android.os.Build; import java.io.IOException; import java.util.List; +import java.util.Locale; public final class Server { @@ -126,7 +127,7 @@ public final class Server { Options options = new Options(); - Ln.Level level = Ln.Level.valueOf(args[1].toUpperCase()); + Ln.Level level = Ln.Level.value...
[P2P] Fix test failure Skip out env dependent case. This case will be back if if profer way to emulate env later.
@@ -116,7 +116,8 @@ func TestParseMultiaddrWithResolve(t *testing.T) { {"TIP4peerAddr", "/ip4/192.168.0.58/tcp/11002/p2p/16Uiu2HAmHuBgtnisgPLbujFvxPNZw3Qvpk3VLUwTzh5C67LAZSFh", []net.IP{net.ParseIP("192.168.0.58")}, "11002", false}, {"TIP4AndPort", "/ip4/192.168.0.58/tcp/11002", []net.IP{net.ParseIP("192.168.0.58")}, "...
fix when slider color is also new combo
@@ -130,6 +130,19 @@ class Beatmap: if int(bin_info[0]): object_type.append("circle") + if int(bin_info[2]): + object_type.append("new combo") + if cur_combo_color not in self.max_combo or cur_combo_number > self.max_combo[cur_combo_color]: + self.max_combo[cur_combo_color] = cur_combo_number + cur_combo_number = 1 + s...
Fix drm usage() messages
@@ -57,9 +57,9 @@ static void print_usage(void) printf("Options:\n"); printf(" -i, --input <file> - read list from file\n"); printf(" -l, --lite - walk file system without stat\n"); - printf(" --exclude <regex> - exclude a list of files from command\n"); - printf(" --match <regex> - match a list of files from command\n...
JP8 -> JP2 Merges
@@ -184,7 +184,7 @@ JTAG, MicroSD IO15 5V Legend: * NC/XTAL - :ref:`32.768 kHz Oscillator <get-started-esp-wrover-kit-v4.1-xtal>` -* JTAG - :ref:`JTAG / JP8 <get-started-esp-wrover-kit-v4.1-jtag-header>` +* JTAG - :ref:`JTAG / JP2 <get-started-esp-wrover-kit-v4.1-jtag-header>` * Boot - Boot button / SW2 * Camera - :ref...
gp_bash_functions: Improve PING_HOST logging Previously, PING_HOST swallowed any log messages from ping, and now we display those messages in the error message.
@@ -972,33 +972,40 @@ PING_HOST () { TARGET_HOST=$1;shift PING_EXIT=$1 if [ x"" == x"$PING_EXIT" ];then PING_EXIT=0;fi + OUTPUT="" case $OS_TYPE in darwin ) - $PING $PING_TIME $TARGET_HOST > /dev/null 2>&1 || $PING6 $PING_TIME $TARGET_HOST > /dev/null 2>&1 + OUTPUT=$($PING $PING_TIME $TARGET_HOST 2>&1 || $PING6 $PING_T...
Cleanup: Remove unused goto label in buffer.c
@@ -362,11 +362,9 @@ fpga_result __FPGA_API__ fpgaGetIOAddress(fpga_handle handle, uint64_t wsid, *ioaddr = wm->phys; } -out_unlock: err = pthread_mutex_unlock(&_handle->lock); if (err) { FPGA_ERR("pthread_mutex_unlock() failed: %s", strerror(err)); } return result; - }
memif: Ensure memif_create reply contains sw_if_index
@@ -224,7 +224,12 @@ vl_api_memif_create_t_handler (vl_api_memif_create_t * mp) vec_free (args.secret); reply: - REPLY_MACRO (VL_API_MEMIF_CREATE_REPLY); + /* *INDENT-OFF* */ + REPLY_MACRO2 (VL_API_MEMIF_CREATE_REPLY, + ({ + rmp->sw_if_index = htonl (args.sw_if_index); + })); + /* *INDENT-ON* */ } /**
Downgrade debug verbosity for BondSerializer.cpp
@@ -177,7 +177,7 @@ namespace ARIASDK_NS_BEGIN { // bond_lite::CompactBinaryProtocolReader reader(ctx->record.blob); // bond_lite::Deserialize(reader, r); - LOG_INFO("Event %s/%s submitted, priority %u (%s), serialized size %u bytes, ID %s", + LOG_TRACE("Event %s/%s submitted, priority %u (%s), serialized size %u bytes...
net/oic; don't send confirmable requests over TCP-like transports.
@@ -278,7 +278,8 @@ coap_notify_observers(oc_resource_t *resource, coap_init_message(notification, COAP_TYPE_NON, CONTENT_2_05, 0); notification->mid = transaction->mid; - if (obs->obs_counter % COAP_OBSERVE_REFRESH_INTERVAL == 0) { + if (!oc_endpoint_use_tcp(&obs->endpoint) && + obs->obs_counter % COAP_OBSERVE_REFRESH...
cleanup: fix cros_sh to cros_ish typo Update command line usage help string for ectool to specify cros_ish instead of cros_sh. BRANCH=none TEST=see usage string update
@@ -333,7 +333,7 @@ int parse_bool(const char *s, int *dest) void print_help(const char *prog, int print_cmds) { printf("Usage: %s [--dev=n] [--interface=dev|i2c|lpc] ", prog); - printf("[--name=cros_ec|cros_fp|cros_pd|cros_scp|cros_sh] [--ascii] "); + printf("[--name=cros_ec|cros_fp|cros_pd|cros_scp|cros_ish] [--ascii...
sse2: use vector long long instead of float for __m128i on AltiVec Fixes
@@ -214,10 +214,10 @@ typedef union { typedef v128_t simde__m128i; typedef v128_t simde__m128d; #elif defined(SIMDE_POWER_ALTIVEC_P5_NATIVE) - typedef SIMDE_POWER_ALTIVEC_VECTOR(float) simde__m128i; + typedef SIMDE_POWER_ALTIVEC_VECTOR(signed long long) simde__m128i; typedef SIMDE_POWER_ALTIVEC_VECTOR(double) simde__m1...
increase tcp echo task stack size
*/ #define integrationtestportableSEND_TIMEOUT 10000 +/** + * @brief The stack size of the tasks created in all TCP echo multi-task tests. + */ +#define tcptestTCP_ECHO_TASKS_STACK_SIZE ( configMINIMAL_STACK_SIZE * 8 ) + #endif /*AWS_INTEGRATION_TEST_TCP_CONFIG_H */
Remove a fix in 'get_relation_by_qualified_name' Nowait could set false, when we get a object address
@@ -645,7 +645,7 @@ get_relation_by_qualified_name(ObjectType objtype, List *objname, relation = relation_openrv_extended(makeRangeVarFromNameList(objname), lockmode, missing_ok, - false /*GPDB_92_MERGE_FIXME: what is the expected noWait?*/); + false); if (!relation) return address;
Be more pedantic when starting / stopping a timer.
#ifdef __FreeBSD__ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 359405 2020-03-28 20:25:45Z tuexen $"); +__FBSDID("$FreeBSD: head/sys/netinet/sctputil.c 359657 2020-04-06 13:58:13Z tuexen $"); #endif #include <netinet/sctp_os.h> @@ -1803,9 +1803,14 @@ sctp_timeout_handler(void *t) #endif /* s...
High-Level API: Fix minor spelling mistake
@@ -17,7 +17,7 @@ use it in your source file, just include the main header with `#include <elektra The API contains one header that is not automatically included from `elektra.h`. You can use it with `#include <elektra/conversion.h>`. The header provides the functions Elektra uses to convert your configuration values t...
Add deploy step to Github Actions Only run on tagged commits Should behave the same as it did on Travis Needs LUAROCKS_API_KEY set as a secret for the repository:
@@ -128,3 +128,48 @@ jobs: cp -a ${{github.workspace}}/deps/libuv/include ${{github.workspace}}/build luarocks make rockspecs/$(ls rockspecs) LIBUV_DIR=${{github.workspace}}/build LUA_COMPAT53_INCDIR=${{github.workspace}}/deps/lua-compat-5.3/c-api test $PWD = `lua -e "print(require'luv'.cwd())"` + + deploy: + if: start...
update gitbook needed packages for building from source
@@ -32,6 +32,7 @@ installed on your system: - [libsodium (>= 1.0.14)](https://download.libsodium.org/doc/) (libsodium-dev) - [libmicrohttpd](https://www.gnu.org/software/libmicrohttpd/) (libmicrohttpd-dev) - libseccomp (libseccomp-dev) +- libsecret (libsecret-1-dev) We note that libsodium-dev might not be available by ...
Fix Version.hpp.template since Version.hpp has been refactored recently, but template that generates it wasn't adjusted
#define BUILD_VERSION @BUILD_VERSION_MAJOR@,@BUILD_VERSION_MINOR@,@BUILD_VERSION_PATCH@,@BUILD_NUMBER@ #ifndef RESOURCE_COMPILER_INVOKED -#include <ctmacros.hpp> #include <stdint.h> +#ifdef HAVE_MAT_SHORT_NS +#define MAT_NS_BEGIN MAT +#define MAT_NS_END +#define PAL_NS_BEGIN PAL +#define PAL_NS_END +#else +#define MAT_...
sleep: fixed ext1 cannot wakeup via RTCIO >= 18 issue
@@ -143,7 +143,7 @@ typedef struct { uint64_t sleep_duration; uint32_t wakeup_triggers : 15; uint32_t ext1_trigger_mode : 1; - uint32_t ext1_rtc_gpio_mask : 18; + uint32_t ext1_rtc_gpio_mask : 22; //22 is the maximum RTCIO number in all chips uint32_t ext0_trigger_level : 1; uint32_t ext0_rtc_gpio_num : 5; uint32_t gpi...
fix(subpx): fix subpixel rendering font is not displaying bug
@@ -540,6 +540,7 @@ static void draw_letter_subpx(lv_draw_ctx_t * draw_ctx, const lv_draw_label_dsc_ map_area.y2 ++; } else { + blend_dsc.mask_res = LV_DRAW_MASK_RES_CHANGED; lv_draw_sw_blend(draw_ctx, &blend_dsc); map_area.y1 = map_area.y2 + 1; @@ -559,6 +560,7 @@ static void draw_letter_subpx(lv_draw_ctx_t * draw_ctx...
[core] reject excess data after chunked encoding reject excess data after chunked encoding when parsing backend response x-ref: "Failure on second request in http proxy backend"
@@ -314,8 +314,7 @@ void http_chunk_close(request_st * const r) { static int http_chunk_decode_append_data (request_st * const r, const char *mem, off_t len) { - /*(silently discard data, if any, after final \r\n)*/ - if (r->gw_dechunk->done) return 0; + if (r->gw_dechunk->done) return -1; /*(excess data)*/ buffer * co...
Remove image after uploading to gallery
@@ -250,6 +250,9 @@ def buildWindowsManagedImage(String os_series, String img_name_suffix, String la def az_rg_cleanup_script = """ ${az_login_script} az group delete --name ${vm_rg_name} --yes + az image delete \ + --resource-group ${RESOURCE_GROUP} \ + --name ${managed_image_name_id}-${img_name_suffix} """ common.azu...
xive: Properly reserve built-in VPs in non-group mode This is not normally used but if the #define is changed to disable block group mode we would incorrectly clear the buddy completely without marking the built-in VPs reserved.
@@ -4546,6 +4546,8 @@ static void xive_reset_one(struct xive *x) #ifndef USE_BLOCK_GROUP_MODE /* If block group mode isn't enabled, reset VP alloc buddy */ buddy_reset(x->vp_buddy); + if (x->block_id == 0) + assert(buddy_reserve(x->vp_buddy, 0x800, 11)); #endif #ifdef USE_INDIRECT
next version of -l flag
@@ -313,24 +313,11 @@ struct out_balances_data { unsigned nblocks, maxnblocks; }; -static void *out_balances_callback(void *block, void *data) { +static int out_balances_callback(void *data, cheatcoin_hash_t hash, cheatcoin_amount_t amount, cheatcoin_time_t time) { struct out_balances_data *d = (struct out_balances_dat...
netkvm: fix mistake in observer logic Commit (Sept 2018) introduced 'need reset' flow and the plan was to enable hardware access when power-on flow starts. However the code enables hardware access on any message except of two. Fixing the mistake.
@@ -120,7 +120,7 @@ public: { m_VirtQueue.DoNotTouchHardware(); } - else if (PoweredOn) + else if (message == PoweredOn) { m_VirtQueue.AllowTouchHardware(); }
LINUXSUPPORT typos corrected
@@ -77,11 +77,11 @@ If using a GUI on SLES-15-SP1, such as gnome, the installation of CUDA may cause sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ``` <b>Install and setup Devtoolset-7</b></br> -Devtoolset-7 is recommended, follow instructions 1-3 here:<br><br> -https://www.softwa...
Fix CMake linking to GMock
@@ -7,6 +7,8 @@ endif() # Executable name and options # +find_package(GTest REQUIRED) + # Target name set(target metacall-python-async-test) message(STATUS "Test ${target}") @@ -83,7 +85,10 @@ target_link_libraries(${target} PRIVATE ${DEFAULT_LIBRARIES} - GTest + GTest::gtest + GTest::gtest_main + GTest::gmock + GTest:...
updated wire version max Increased WIRE_VERSION_MAX to 8 to support 4.2 features.
@@ -41,7 +41,7 @@ BSON_BEGIN_DECLS /* protocol versions this driver can speak */ #define WIRE_VERSION_MIN 3 -#define WIRE_VERSION_MAX 7 +#define WIRE_VERSION_MAX 8 /* first version that supported "find" and "getMore" commands */ #define WIRE_VERSION_FIND_CMD 4
oc_obt:internal funcs for gen OSCORE ctxid/secret
@@ -307,6 +307,41 @@ oc_obt_load_state(void) } #endif /* OC_PKI */ +#ifdef OC_OSCORE +static void +gen_oscore_secret(uint8_t *secret) +{ + int i = 0; + while (i < OSCORE_MASTER_SECRET_LEN) { + unsigned int r = oc_random_value(); + size_t copy_len = (sizeof(r) < (unsigned)(OSCORE_MASTER_SECRET_LEN - i)) + ? sizeof(r) + ...
TestsUser: Fix compilation by introducing STATIC_ASSERT
#define RSIZE_MAX (SIZE_MAX >> 1) #endif +#ifdef MDE_CPU_EBC + #define STATIC_ASSERT(Expression, Message) +#elif _MSC_EXTENSIONS + #define STATIC_ASSERT static_assert +#else + #define STATIC_ASSERT _Static_assert +#endif + // // Types and limits //
hark-store: wipe archive to remove dupes
state-6 state-7 state-8 + state-9 == :: +$ base-state +$ state-8 [%8 base-state] :: ++$ state-9 + [%9 base-state] +:: :: +$ cached-state $: by-place=(jug place:store [=lid:store =path]) ~ == +$ inflated-state - [state-8 cached-state] + [state-9 cached-state] :: ++ orm ((ordered-map @da timebox:store) gth) -- =/ old !<(...
espressif: Add missing mbedTLS port files in build list
@@ -58,8 +58,19 @@ set( "${MBEDTLS_DIR}/port/esp_hardware.c" "${MBEDTLS_DIR}/port/mbedtls_debug.c" "${MBEDTLS_DIR}/port/esp_aes_xts.c" + "${MBEDTLS_DIR}/port/esp_sha.c" + "${MBEDTLS_DIR}/port/esp_timing.c" ) +if(CONFIG_MBEDTLS_DYNAMIC_BUFFER) + list(APPEND mbedtls_srcs + "${MBEDTLS_DIR}/port/dynamic/esp_mbedtls_dynamic...
Fix 3 comments in server.c
@@ -372,7 +372,7 @@ int dictExpandAllowed(size_t moreMem, double usedRatio) { * belonging to the same cluster slot. See the Slot to Key API in cluster.c. */ size_t dictEntryMetadataSize(dict *d) { UNUSED(d); - /* NOTICE: this also affect overhead_ht_slot_to_keys in getMemoryOverheadData. + /* NOTICE: this also affects ...
sub shm BUGFIX event_id of done_only subscriptions was wrong
@@ -873,6 +873,9 @@ sr_shmsub_conf_notify_change_done(struct sr_mod_info_s *mod_info, sr_sid_t sid) multi_sub_shm = (sr_multi_sub_shm_t *)shm_sub.addr; /* write "done" event with the same LYB data trees */ + if (!mod->event_id) { + mod->event_id = ++multi_sub_shm->event_id; + } sr_shmsub_multi_notify_write_event(multi_...
PostContent: fix bottom spacing
@@ -17,8 +17,8 @@ export function PostContent(props) { <TruncatedBox display="-webkit-box" width="100%" - pl="2" - pr="2" + px="2" + pb="2" truncate={isParent ? null : 8} textOverflow="ellipsis" overflow="hidden"
Remove style parse_exception handling
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import p4_hlir.hlir.p4 as p4 -from utils.hlir import * + from utils.misc import addError, addWarning from utils.codegen import format_expr_16...
best cflags arg
mpopt = 'openmp' if v and v < '15' else 'qopenmp' self.cc_exe = ('icc -fPIC -fp-model strict -O3 ' - '-fomit-frame-pointer -{}').format(mpopt) -+ + environ.get('CFLAGS', '').strip() + '-fomit-frame-pointer -{}').format(mpopt) ++ '-fomit-frame-pointer -{} {}').format(mpopt, environ.get('CFLAGS', '').strip()) compiler = ...
removing superfluous end tag
<event id="0xF700 + 0x01" level="API" property="MemoryPoolNew" value="block_count=%d[val1], block_size=%d[val2], attr=%x[val3]" info="osMemoryPoolNew function was called."/> <event id="0xF700 + 0x02" level="Detail" property="MemoryPoolNew" value="name=%x[val1.name], attr_bits=%x[val1.attr_bits], cb_mem=%x[val1.cb_mem],...
INSTALL: Remind people to read more if they added configuration options
$ @config --prefix=PROGRAM:[INSTALLS] --openssldir=SYS$MANAGER:[OPENSSL] + (Note: if you do add options to the configuration command, please make sure + you've read more than just this Quick Start, such as relevant NOTES.* files, + the options outline below, as configuration options may change the outcome + in otherwis...
test 3 works outside srcdir longtest
@@ -310,7 +310,7 @@ test: unittest$(EXEEXT) testbound$(EXEEXT) @echo test OK longtest: tests - if test ! $(srcdir)/testdata -ef ./testdata; then rm -rf testcode testdata; mkdir testcode testdata; cp -R $(srcdir)/testdata/*.sh $(srcdir)/testdata/*.tdir testdata; cp $(srcdir)/testcode/*.sh testcode; if test ! -d util; th...
Add a check that importing ccl (specifically ccl.boltzmann) doesn't fail if isitgr is not installed.
@@ -5,6 +5,10 @@ import pyccl as ccl import sys from numpy.testing import assert_raises from pyccl.boltzmann import get_isitgr_pk_lin +try: + from importlib import reload +except ImportError: + pass # in 2.7, reload is a global function. @pytest.mark.parametrize('tf', [ @@ -35,6 +39,9 @@ def test_power_mu_sigma_sigma8n...