message
stringlengths
6
474
diff
stringlengths
8
5.22k
show command for lookup DPOs
@@ -1482,6 +1482,46 @@ const static char* const * const lookup_dst_from_interface_nodes[DPO_PROTO_NUM] [DPO_PROTO_MPLS] = lookup_dst_from_interface_mpls_nodes, }; +static clib_error_t * +lookup_dpo_show (vlib_main_t * vm, + unformat_input_t * input, + vlib_cli_command_t * cmd) +{ + index_t lkdi = INDEX_INVALID; + + whi...
Increment version to 4.6.8.
#define MOD_WSGI_MAJORVERSION_NUMBER 4 #define MOD_WSGI_MINORVERSION_NUMBER 6 -#define MOD_WSGI_MICROVERSION_NUMBER 7 -#define MOD_WSGI_VERSION_STRING "4.6.7" +#define MOD_WSGI_MICROVERSION_NUMBER 8 +#define MOD_WSGI_VERSION_STRING "4.6.8" /* ------------------------------------------------------------------------- */
Fix -v to work (amended 13146a8e3b2c3f6a907e83c7541e05c5676439da)
@@ -710,7 +710,10 @@ def handle_quic_event(cpu, data, size): if allowed_quic_event and ev.type != allowed_quic_event: return - if allowed_res_header_name and ev.type == "send_response_header" and ev.h2o_header_name != allowed_res_header_name: + if ev.type == "send_response_header": # HTTP-level events + if not verbose:...
Add meta key 'command/key' to METADATA.ini
@@ -371,6 +371,15 @@ description= "introduces a sub-command must be specified on a key in the 'spec' namespace" +[command/key] +type= string +status= implemented +usedby/plugin= gopts +usedby/api= elektraGetOpts kdbopts.h +description= "specifies which (sub-)command a key in the + + 'spec' namespace belongs to" + [opt]...
Readme: Add test coverage badge.
@@ -2,6 +2,8 @@ Linux: [![Linux Build](https://travis-ci.org/FascinatedBox/lily.svg?branch=maste Windows: [![Windows Build](https://ci.appveyor.com/api/projects/status/github/FascinatedBox/lily?svg=true)](https://ci.appveyor.com/project/FascinatedBox/lily) +Test Coverage: [![codecov](https://codecov.io/gh/FascinatedBox...
Check for a null net pointer in extractPayload.
@@ -862,7 +862,7 @@ extractPayload(int sockfd, net_info *net, void *buf, size_t len, metric_t src, s } memmove(pinfo->data, buf, len); - memmove(&pinfo->net, net, sizeof(net_info)); + if (net) memmove(&pinfo->net, net, sizeof(net_info)); pinfo->evtype = EVT_PAYLOAD; pinfo->src = src;
Add handshake over test
@@ -248,6 +248,14 @@ Negative test moving servers ssl to state: NEW_SESSION_TICKET depends_on:MBEDTLS_SSL_PROTO_TLS1_2:!MBEDTLS_SSL_PROTO_TLS1_3 move_handshake_to_state:MBEDTLS_SSL_IS_SERVER:MBEDTLS_SSL_SERVER_NEW_SESSION_TICKET:0 +TLSv1.3:Test moving clients handshake to state: HANDSHAKE_OVER +depends_on:MBEDTLS_SSL_P...
Change position of module instance check
@@ -26,6 +26,11 @@ static HANDLE s_modInstanceMutex = nullptr; static void Initialize(HMODULE mod) { + + s_modInstanceMutex = CreateMutex(NULL, TRUE, _T("Cyber Engine Tweaks Module Instance")); + if (s_modInstanceMutex == nullptr) + return; + MH_Initialize(); Options::Initialize(mod); @@ -41,10 +46,6 @@ static void Ini...
This patch has been applied to the master branch of rocminfo already.
@@ -101,11 +101,6 @@ if [ "$1" == "install" ] ; then fi if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then - - patchfile=$thisdir/patches/rocminfo_cmake.patch - patchdir=$RINFO_REPO_DIR - patchrepo - if [ -d "$BUILD_DIR/build/rocminfo" ] ; then echo echo "FRESH START , CLEANING UP FROM PREVIOUS BUILD"
Update: Fix of the metrics script
@@ -88,6 +88,8 @@ def Test(Example, outputString): print("Failure for " + line + " in "+ Example) exit(0) else: + QuestionsAnswered += 1.0 + QuestionsAnsweredGlobal += 1.0 break if AnswerRatioTest: if QuestionsTotal > 0:
Temporarily enable rate limiting in verify server
@@ -2316,8 +2316,18 @@ server_reload(struct nsd *nsd, region_type* server_region, netio_type* netio, #endif if(nsd->options->verify_enable) { +#ifdef RATELIMIT + /* allocate resources for rate limiting. use a slot that is guaranteed + not mapped to a file so no persistent data is overwritten */ + rrl_init(nsd->child_co...
Added missing cancel_job handler.
*/ #include <cupsfilters/filter.h> +#include <signal.h> /* * Local globals... static int JobCanceled = 0;/* Set to 1 on SIGTERM */ + +/* + * Local functions... + */ + +static void cancel_job(int sig); + + /* * 'main()' - Main entry and processing of driver. */ @@ -41,6 +50,25 @@ main(int argc, /* I - Number of command-...
media : add missing function for getstate only a function definition, and no implementation added
@@ -80,6 +80,11 @@ void MediaRecorder::setObserver(std::shared_ptr<MediaRecorderObserverInterface> mPMrImpl->setObserver(observer); } +recorder_state_t MediaRecorder::getState() +{ + return mPMrImpl->getState(); +} + MediaRecorder::~MediaRecorder() { }
stm32/machine_uart: Retain attached-to-repl setting when init'ing UART.
@@ -283,11 +283,17 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, size_t n_args, const // flow control uint32_t flow = args.flow.u_int; + // Save attach_to_repl setting because uart_init will disable it. + bool attach_to_repl = self->attached_to_repl; + // init UART (if it fails, it's because the port do...
Updater: Improve filename cache
@@ -486,13 +486,18 @@ static PPH_STRING UpdaterParseDownloadFileName( _In_ PPH_STRING DownloadUrlPath ) { + static PH_STRINGREF seperator = PH_STRINGREF_INIT(L"="); // download= PH_STRINGREF pathPart; PH_STRINGREF baseNamePart; PPH_STRING filePath; PPH_STRING downloadFileName; - if (!PhSplitStringRefAtLastChar(&Downloa...
possible fix for memory instability on Win7
@@ -212,9 +212,11 @@ static void* mi_win_virtual_allocx(void* addr, size_t size, size_t try_alignment void* p = VirtualAlloc(hint, size, flags, PAGE_READWRITE); if (p != NULL) return p; DWORD err = GetLastError(); - if (err != ERROR_INVALID_ADDRESS) { // if linked with multiple instances, we may have tried to allocate ...
Requested changes, part 2
@@ -135,6 +135,11 @@ void DeRestPluginPrivate::handleTuyaClusterIndication(const deCONZ::ApsDataIndic QDataStream stream(zclFrame.payload()); stream.setByteOrder(QDataStream::LittleEndian); + // "dp" field describes the action/message of a command frame and was composed by a type and an identifier + // "transid" is jus...
MSR: Only enable test if plugin is included
@@ -8,16 +8,24 @@ function (add_s_test NAME FILE) set_property(TEST testshell_markdown_${NAME} PROPERTY LABELS memleak kdbtests) endfunction () -add_s_test (enum "${CMAKE_SOURCE_DIR}/src/plugins/enum/README.md") -add_s_test (blockresolver "${CMAKE_SOURCE_DIR}/src/plugins/blockresolver/README.md") -add_s_test (condition...
fix loss of data warnings with vc15 win64 and /W4
@@ -655,7 +655,7 @@ unicode_byte_type(char hi, char lo) { return XML_CONVERT_INPUT_INCOMPLETE; \ } \ plane = (((hi & 0x3) << 2) | ((lo >> 6) & 0x3)) + 1; \ - *(*toP)++ = ((plane >> 2) | UTF8_cval4); \ + *(*toP)++ = (char)((plane >> 2) | UTF8_cval4); \ *(*toP)++ = (((lo >> 2) & 0xF) | ((plane & 0x3) << 4) | 0x80); \ fro...
luax_readmesh assert for index range;
@@ -430,7 +430,9 @@ int luax_readmesh(lua_State* L, int index, float** vertices, uint32_t* vertexCou for (uint32_t i = 0; i < *indexCount; i++) { lua_rawgeti(L, index + 1, i + 1); - (*indices)[i] = luaL_checkinteger(L, -1) - 1; + uint32_t index = luaL_checkinteger(L, -1) - 1; + lovrAssert(index < *vertexCount, "Invalid...
fixed punctuation in heading
-# SDK & CARTO Tools +# SDK and CARTO Tools For select account plans, you can connect to the CARTO Engine APIs via Mobile SDK, to retrieve map visualizations and table data from your CARTO account. _API access is not available for free users._ [Contact us](mailto:sales@carto.com) for questions about your account plan a...
static-code-checking: add instructions for cppcheck, scan-build and SonarLint to TESTING.md
@@ -194,6 +194,57 @@ See also build server jobs: For bounded model checking tests, see `scripts/cbmc`. +### Static Code Checkers + +There is a number of static code checkers available for all kind of programming languages. The +following section show how the most common ones can be used with libelektra. + +#### cppchec...
doc: PORTING: drop flash_area_read_is_empty() Update PORTING guide dropping `flash_area_read_is_empty`.
@@ -119,11 +119,6 @@ int flash_area_erase(const struct flash_area *, uint32_t off, uint32_t len); uint8_t flash_area_align(const struct flash_area *); /*< What is value is read from erased flash bytes. */ uint8_t flash_area_erased_val(const struct flash_area *); -/*< Reads len bytes from off, and checks if the read dat...
Update orca to new version v3.47.0
@@ -13,12 +13,12 @@ function make_sync_tools() { popd case "${TARGET_OS}" in centos|ubuntu) - wget -q -O - https://github.com/greenplum-db/gporca/archive/v3.45.0.tar.gz | tar zxf - -C ${GPDB_SRC_PATH}/gpAux/ext/${BLD_ARCH} + wget -q -O - https://github.com/greenplum-db/gporca/archive/v3.47.0.tar.gz | tar zxf - -C ${GPD...
release: do not cleanup workspaces
@@ -617,7 +617,7 @@ def buildRelease(stageName, image, packageRevision='1', bundleRepo=false, placeholderDir=false) { return [(stageName): { stage(stageName) { - withDockerEnv(image, [DockerOpts.MOUNT_MIRROR, DockerOpts.NO_CHECKOUT]) { + withDockerEnv(image, [DockerOpts.MOUNT_MIRROR, DockerOpts.NO_CHECKOUT, DockerOpts....
ur: fixes a buffer over-write in ur_bsr_bytes_any()
@@ -369,14 +369,18 @@ ur_bsr_bytes_any(ur_bsr_t *bsr, uint64_t len, uint8_t *out) // become the least-significant bits of an output byte, and vice-versa // else { - uint64_t need = len_byt + (len_bit >> 3) + !!ur_mask_3(len_bit); - ur_bool_t end = need >= left; - uint64_t max = end ? (left - 1) : len_byt; uint8_t rest ...
Benchmarks: Fix minor spelling mistake
@@ -8,7 +8,7 @@ go to a specific commit of Elektra. Then you can run a benchmark. Afterwards you commit all information you have collected. -This has the advantage that it is reproduceable. +This has the advantage that it is reproducible. Everyone can go anytime back to the benchmark commits and run the same benchmarks...
components/unity: reverted the inclusion of test protect based on setjmp
* uncomment this line. Remote tests on CI * still working as expected */ -//#define UNITY_EXCLUDE_SETJMP_H +#define UNITY_EXCLUDE_SETJMP_H void unity_flush(void); void unity_putc(int c);
Test top-bit-set character mimicking surrogate high is rejected
@@ -5297,7 +5297,8 @@ MiscEncodingHandler(void *data, if (!strcmp(encoding, "invalid-9") || !strcmp(encoding, "ascii-like") || !strcmp(encoding, "invalid-len") || - !strcmp(encoding, "invalid-a")) + !strcmp(encoding, "invalid-a") || + !strcmp(encoding, "invalid-surrogate")) high_map = -1; for (i = 0; i < 128; ++i) @@ -...
Disable redux logger middleware on production build
@@ -8,17 +8,22 @@ import loggerMiddleware from "../middleware/logger"; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; -export default function configureStore() { - return createStore( - rootReducer, - composeEnhancers( - applyMiddleware( +const DEBUG = false; + +let middleware = [ thun...
dhcp: Fix DHCP option Client-identifier
/* Offsets into the transmitted DHCP options fields at which various parameters are located. */ -#define dhcpCLIENT_IDENTIFIER_OFFSET ( 5 ) -#define dhcpREQUESTED_IP_ADDRESS_OFFSET ( 13 ) -#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET ( 19 ) +#define dhcpCLIENT_IDENTIFIER_OFFSET ( 6 ) +#define dhcpREQUESTED_IP_ADDRESS_OFFS...
Update github workflow for Windows Virtual environment windows-latest now defaults to windows-2022. Update workflows to work with this new environment.
@@ -20,7 +20,7 @@ jobs: name: "Windows Latest MSVC", artifact: "Windows-MSVC.tar.xz", os: windows-latest, build_type: "Release", cc: "cl", cxx: "cl", - environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat" + environment_script: "C:/Program Files/Microsoft V...
swaymsg.1: fix description of --pretty
@@ -20,7 +20,7 @@ _swaymsg_ [options...] [message] swaymsg will stop monitoring and exit. *-p, --pretty* - Use raw output even when not using a tty. + Use pretty output even when not using a tty. *-q, --quiet* Sends the IPC message but does not print the response from sway.
OcCryptoLib: Sha2. Fix build errors Fix negative shift count in ROT macros. Fix field name mismatch in context sha512 struct. Fix input var name mismatch in Sha512 procedure: Digest->Hash
@@ -62,9 +62,9 @@ do { \ } while (0) -#define SHFR(x, n) (x >> n) -#define ROTLEFT(a, b) (((a) << (b)) | ((a) >> (32-(b)))) -#define ROTRIGHT(a, b) (((a) >> (b)) | ((a) << (32-(b)))) +#define SHFR(a, b) (a >> b) +#define ROTLEFT(a, b) ((a << b) | (a >> ((sizeof(a) << 3) - b))) +#define ROTRIGHT(a, b) ((a >> b) | (a << ...
[libgui] View exposes lifecycle methods
@@ -59,6 +59,23 @@ impl View { self.sub_elements.borrow_mut().push(elem); } + + pub fn resize_subviews(&self) { + let frame = *self.frame.borrow(); + let inner_content_frame = frame.apply_insets(self.border_insets()); + + let elems = &*self.sub_elements.borrow(); + for elem in elems { + elem.handle_superview_resize(inn...
libhfuzz/memcmp: instrument also if the length of string runs out
@@ -17,10 +17,10 @@ static inline int HF_strcmp(const char* s1, const char* s2, uintptr_t addr) { size_t i; for (i = 0; s1[i] == s2[i]; i++) { if (s1[i] == '\0' || s2[i] == '\0') { - instrumentUpdateCmpMap(addr, i); break; } } + instrumentUpdateCmpMap(addr, i); return ((unsigned char)s1[i] - (unsigned char)s2[i]); } @@...
Edit help string for wave.c
@@ -63,10 +63,8 @@ static const char help_str[] = "Expected dimensions:\n" " * maps - ( sx, sy, sz, nc, md)\n" " * wave - ( wx, sy, sz, 1, 1)\n" - " * phi - ( 1, 1, 1, 1, 1)\n" - " * output - ( sx, sy, sz, 1, md)\n" - " * reorder - ( n, 3, 1, 1, 1)\n" - " * table - ( wx, nc, n, 1, 1)"; + " * kspace - ( wx, sy, sz, nc, ...
lossless_enc,TransformColorBlue: quiet uint32_t conv warning no change in object code from clang-7 integer sanitizer: implicit conversion from type 'uint32_t' (aka 'unsigned int') of value (32-bit, unsigned) to type 'uint8_t' (aka 'unsigned char') changed the value to 159 (8-bit, unsigned)
@@ -546,7 +546,7 @@ static WEBP_INLINE uint8_t TransformColorBlue(uint8_t green_to_blue, uint32_t argb) { const uint32_t green = argb >> 8; const uint32_t red = argb >> 16; - uint8_t new_blue = argb; + uint8_t new_blue = argb & 0xff; new_blue -= ColorTransformDelta(green_to_blue, green); new_blue -= ColorTransformDelta...
fix test_lb_ip4_gre6() cleanup missing "del" keyword, and as a result, we were trying to add the as twice.
@@ -195,7 +195,7 @@ class TestLB(VppTestCase): self.checkCapture(gre4=False, isv4=True) finally: for asid in self.ass: - self.vapi.cli("lb as 90.0.0.0/8 2002::%u" % (asid)) + self.vapi.cli("lb as 90.0.0.0/8 2002::%u del" % (asid)) self.vapi.cli("lb vip 90.0.0.0/8 encap gre6 del") def test_lb_ip6_gre6(self):
always display user/ namespace
@@ -115,7 +115,7 @@ export default class Configuration extends Component { generateData = ({ ls, match, getKey }) => { const { id } = match && match.params - return parseData(getKey, id, ls) + return parseData(getKey, id, [ 'user', ...ls ]) } refresh = () => {
Delete leftover code
@@ -159,7 +159,6 @@ psa_status_t mbedtls_psa_hkdf_extract( psa_algorithm_t alg, return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA ); } - //hash_len = mbedtls_md_get_size( md ); hash_len = PSA_HASH_LENGTH( alg ); if( hash_len == 0 )
hv: refine memset Use enhanced rep fast-string operation to refine memset.
@@ -367,33 +367,22 @@ void *memcpy_s(void *d, size_t dmax, const void *s, size_t slen_arg) return d; } -void *memset(void *base, uint8_t v, size_t n) +static inline void memset_erms(void *base, uint8_t v, size_t n) { - uint8_t *dest_p; - size_t n_q; - size_t count; - void *ret; - - dest_p = (uint8_t *)base; - - if ((de...
Add lightcount to scene info in group object Used in the app to quickly verify the scene has assigned lights.
@@ -1735,6 +1735,7 @@ bool DeRestPluginPrivate::groupToMap(const Group *group, QVariantMap &map) scene["id"] = sid; scene["name"] = si->name; scene["transitiontime"] = si->transitiontime(); + scene["lightcount"] = (double)si->lights().size(); scenes.append(scene); }
Fixed warnings in string test.
@@ -7,7 +7,7 @@ void str_enum_test_bijection(CuTest* tc) char *str; int i, j; for (i = 0; i > -9; i--) { - str = ts_enum_str((tsError) i); + str = (char *)ts_enum_str((tsError) i); j = strcmp("unknown error", str); if (j == 0) /* TS_SUCCESS */ CuAssertTrue(tc, !j); /* equal */ @@ -20,13 +20,13 @@ void str_enum_test_bij...
LICENSE: add license for chat document the license in the LICENSE file
@@ -1688,3 +1688,38 @@ apps/include/wireless/wapi.h LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +apps/netutils/chat/chat.c +apps/netutils/chat/chat.h +========================= + + Copyright (C) 2016 Vlad...
Export tcp_listener_type from libdill
#include "fd.h" #include "utils.h" +/* Secretly export the symbols. More thinking should be done about how + to do this cleanly without breaking encapsulation. */ +DILL_EXPORT extern const void *tcp_type; +DILL_EXPORT extern const void *tcp_listener_type; +DILL_EXPORT int tcp_fd(int s); + static int tcp_makeconn(int fd...
assemble.py: Add explicit license declaration Although this file is likely implicitly licensed under the Apache 2.0 license because of the LICENSE file for this project, make this explicit in this file.
#! /usr/bin/env python3 +# +# Copyright 2017 Linaro Limited +# +# 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/licenses/LICENSE-2.0 +# +# Unless required by appli...
libwally/secp256k1: enable the ecdsa-s2c module (sign-to-contract) The antiklepto functions reside in this module, needed to implement the antiklepto protocol.
@@ -14,7 +14,7 @@ string(REPLACE "-mfpu=fpv4-sp-d16" "" MODIFIED_C_FLAGS ${MODIFIED_C_FLAGS_TMP}) # wally-core # configure flags for secp256k1 bundled in libwally core, to reduce memory consumption -set(LIBWALLY_SECP256k1_FLAGS --with-ecmult-window=2 --with-ecmult-gen-precision=2 --enable-ecmult-static-precomputation) ...
zephyr/emul/tcpc/emul_tcpci_partner_faulty_snk.c: Format with clang-format BRANCH=none TEST=none
@@ -42,8 +42,7 @@ static void tcpci_faulty_snk_emul_reduce_action_count( k_fifo_get(&data->action_list, K_FOREVER); } -void tcpci_faulty_snk_emul_append_action( - struct tcpci_faulty_snk_emul_data *data, +void tcpci_faulty_snk_emul_append_action(struct tcpci_faulty_snk_emul_data *data, struct tcpci_faulty_snk_action *a...
Add PhQueryEnvironmentVariableZ and PhQuerySymbolicLinkObjectZ
@@ -293,6 +293,22 @@ PhQueryEnvironmentVariable( _Out_opt_ PPH_STRING* Value ); +FORCEINLINE +NTSTATUS +NTAPI +PhQueryEnvironmentVariableZ( + _In_opt_ PVOID Environment, + _In_ PWSTR Name, + _Out_opt_ PPH_STRING* Value + ) +{ + PH_STRINGREF name; + + PhInitializeStringRef(&name, Name); + + return PhQueryEnvironmentVari...
dood: Add CONFIG_USB_PD_RESET_MIN_BATT_SOC Add CONFIG_USB_PD_RESET_MIN_BATT_SOC to prevent pd reset when battery soc under 2% BRANCH=octopus TEST=make BOARD=dood
/* SYV682 isn't connected to CC, so TCPC must provide VCONN */ #define CONFIG_USBC_PPC_SYV682X_NO_CC +/* prevent pd reset when battery soc under 2% */ +#define CONFIG_USB_PD_RESET_MIN_BATT_SOC 2 + #ifndef __ASSEMBLER__
Removed duplicate solr.DefaultValueUpdateProcessorFactory for datafariweb updateRequestProcessorChain
<str name="value">Web</str> </processor> - <processor class="solr.DefaultValueUpdateProcessorFactory"> - <str name="fieldName">source</str> - <str name="value">Web</str> - </processor> - <processor class="solr.DefaultValueUpdateProcessorFactory"> <str name="fieldName">extension</str> <str name="value">html</str>
Bugfix: the value in test cases should be invariable JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang
@@ -17,7 +17,7 @@ var name = ""; try { Object.defineProperties(constructor.isExtensible, {a: Object.getOwnPropertyDescriptor(Uint8ClampedArray, "length")}) - new Int32Array(new ArrayBuffer(), undefined, Date.now()) + new Int32Array(new ArrayBuffer(), undefined, 40000000000) } catch (e) {
doc: release note v1.0, correct some words.
@@ -6,7 +6,7 @@ ACRN v1.0 (May 2019) We are pleased to announce the release of ACRN version 1.0, a key Project ACRN milestone focused on automotive Software-Defined Cockpit (SDC) use cases and introducing additional architecture enhancements for -Industrial and IoT usages. +more IOT usages, such as Industrial. This v1....
fixed bug in reuse PBKDF2
@@ -429,7 +429,7 @@ while(c < hcxrecords) memset(&ptk, 0, sizeof(ptk)); memset(&pkedata, 0, sizeof(mic)); memcpy(&pmk, &pmkin, 32); - + memset(&mic, 0, 16); if(c > 0) { zeigerhcx2 = hcxdata +c -1; @@ -440,6 +440,7 @@ while(c < hcxrecords) fprintf(stderr, "could not generate plainmasterkey\n"); return; } + memcpy(&pmk, ...
Fix build when no console device is selected This enables building console/minimal when CONSOLE_UART and CONSOLE_RTT are both disabled, and allows console to be effectively "disabled" when no uart/rtt was built but console/minimal was added as dependency. This mimics a change that was already applied on console/full.
@@ -59,6 +59,12 @@ static uint8_t cur, end; static struct os_eventq *avail_queue; static struct os_eventq *lines_queue; +int __attribute__((weak)) +console_out(int c) +{ + return c; +} + void console_write(const char *str, int cnt) {
Update s_time to be allow configuration of TLSv1.3 ciphersuites
@@ -59,9 +59,9 @@ static const size_t fmt_http_get_cmd_size = sizeof(fmt_http_get_cmd) - 2; typedef enum OPTION_choice { OPT_ERR = -1, OPT_EOF = 0, OPT_HELP, - OPT_CONNECT, OPT_CIPHER, OPT_CERT, OPT_NAMEOPT, OPT_KEY, OPT_CAPATH, - OPT_CAFILE, OPT_NOCAPATH, OPT_NOCAFILE, OPT_NEW, OPT_REUSE, OPT_BUGS, - OPT_VERIFY, OPT_T...
sysdeps/managarm: implement DRM PRIME ioctls
@@ -2950,6 +2950,67 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { " is a noop\e[39m" << frg::endlog; return 0; } + case DRM_IOCTL_PRIME_HANDLE_TO_FD: { + auto param = reinterpret_cast<drm_prime_handle *>(arg); + + managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator()); + req.se...
chk_local_db_running: speed up file checks In a classic example of "too many layers", chk_local_db_running() used FileDirExists, which spins up a new Python interpreter, to check for the existence of a file. Just use os.path.exists() directly.
TODO: docs! """ import os, pickle, base64, time +import os.path import re, socket @@ -1307,13 +1308,8 @@ def chk_local_db_running(datadir, port): finally: f.close() - cmd=FileDirExists('check for /tmp/.s.PGSQL file file', "/tmp/.s.PGSQL.%d" % port) - cmd.run(validateAfter=True) - tmpfile_exists = cmd.filedir_exists() -...
[cmake] if no docstrings files, skip docstring generation. Condition triggered when headers are removed from externals installation. When DOCSTRINGS_FILES is empty, it issues an argument-less cat command which hangs waiting for input.
@@ -38,25 +38,26 @@ macro(doxy2swig_docstrings COMP) endforeach() endforeach() - # If this variable is empty, cat will hang, so error out instead. - if (NOT DOCSTRINGS_FILES) - message(FATAL_ERROR "DOCSTRINGS_FILES=${DOCSTRINGS_FILES}") - endif() - + if (DOCSTRINGS_FILES) add_custom_command(OUTPUT ${SICONOS_SWIG_ROOT_D...
board/dojo/battery.c: Format with clang-format BRANCH=none TEST=none
@@ -178,8 +178,7 @@ int charger_profile_override(struct charge_state_data *curr) chg_temp = K_TO_C(chg_temp); prev_chg_lvl = chg_lvl; - if (chg_temp <= temp_chg_table[chg_lvl].lo_thre && - chg_lvl > 0) + if (chg_temp <= temp_chg_table[chg_lvl].lo_thre && chg_lvl > 0) chg_lvl--; else if (chg_temp >= temp_chg_table[chg_l...
remove vestigial lwIP TCP connection error handler; nuke error_message()
@@ -204,19 +204,6 @@ static void wakeup_sock(sock s, int flags) notify_sock(s); } -static inline void error_message(sock s, err_t err) { - switch (err) { - case ERR_ABRT: - msg_warn("connection closed on fd %d due to tcp_abort or timer\n", s->fd); - break; - case ERR_RST: - msg_warn("connection closed on fd %d due to r...
elrs: fix crc on wide channels
@@ -270,7 +270,7 @@ static bool elrs_vaild_packet() { // For smHybrid the CRC only has the packet type in byte 0 // For smHybridWide the FHSS slot is added to the CRC in byte 0 on RC_DATA_PACKETs if (type == RC_DATA_PACKET && bind_storage.elrs.switch_mode == SWITCH_WIDE_OR_8CH) { - uint8_t fhss_result = (ota_nonce % cu...
Update the maximum supported FIS version This change enables management software to support up to FIS version 2.4 memory device.
/** Minimum supported version of FW API: 1.2 **/ #define MIN_FIS_SUPPORTED_BY_THIS_SW_MAJOR 1 #define MIN_FIS_SUPPORTED_BY_THIS_SW_MINOR 2 -/** Maximum supported version of FW API: 2.3 **/ +/** Maximum supported version of FW API: 2.4 **/ #define MAX_FIS_SUPPORTED_BY_THIS_SW_MAJOR 2 -#define MAX_FIS_SUPPORTED_BY_THIS_S...
Added class ce for Copernicus Emergency Management Service
32 yp YOPP 33 l5 ERA5L: ERA5 of land surface parameters 34 lw WMO Lead Centre Wave Forecast Verification +35 ce Copernicus Emergency Management Service 99 te Test 100 at Austria 101 be Belgium
fix(demo): minor fix for benchmark 1.add const to rnd_map 2.replace "i < sizeof(scenes) / sizeof(scene_dsc_t) - 1" with "scenes[i].create_cb" 3.replace "sizeof(scenes) / sizeof(scene_dsc_t)" with "dimof(scenes)"
@@ -602,7 +602,7 @@ static lv_obj_t * subtitle; static uint32_t rnd_act; -static uint32_t rnd_map[] = { +static const uint32_t rnd_map[] = { 0xbd13204f, 0x67d8167f, 0x20211c99, 0xb0a7cc05, 0x06d5c703, 0xeafb01a7, 0xd0473b5c, 0xc999aaa2, 0x86f9d5d9, 0x294bdb29, 0x12a3c207, 0x78914d14, @@ -631,7 +631,7 @@ static uint32_t...
Fixed error in propagating BN_FLG_CONSTTIME flag through BN_MONT_CTX_set, which could lead to information disclosure on RSA primes p and q.
@@ -258,6 +258,8 @@ int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) R = &(mont->RR); /* grab RR as a temp */ if (!BN_copy(&(mont->N), mod)) goto err; /* Set N */ + if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) + BN_set_flags(&(mont->N), BN_FLG_CONSTTIME); mont->N.neg = 0; #ifdef MONT_WORD @@ -270...
DDF support check groups when no meta group.endpoints are specified This information can also be extracted from group bindings.
@@ -4429,7 +4429,8 @@ void DeRestPluginPrivate::checkSensorNodeReachable(Sensor *sensor, const deCONZ: /*! On reception of an group command, check that the config.group entries are set properly. - - This requires the DDF has { "meta": { "group.endpoints": [<endpoints>] }} set. + - This requires the DDF has { "meta": { ...
Support null colorspace for gradients
@@ -39,8 +39,8 @@ struct __CGGradient : CoreFoundation::CppBase<__CGGradient> { } __CGGradient(CGColorSpaceRef colorSpace, CFArrayRef components, const CGFloat* locations) - : _colorSpace(colorSpace), - _colorComponents(CopyColorComponents(colorSpace, components)), + : _colorSpace(woc::TakeOwnership, colorSpace ? CGCol...
A small fix for displaying help
@@ -30,7 +30,8 @@ elif [ "$#" -eq 1 ] then if [[ "$1" == "--help" ]] then - OS_NAME="$help_install_dependencies" + echo "$help_install_dependencies" + exit elif [[ "$1" == "linux" ]] then OS_NAME="linux"
nimble/ll: Fix network privacy when initiating If remote is using ID address and IRK for that peer is on resolving list and network privacy is enabled we should not be connecting to that peer. This was affecting LL/CON/INI/BV-24-C qualification test case.
@@ -3409,6 +3409,12 @@ ble_ll_init_rx_isr_end(uint8_t *rxbuf, uint8_t crcok, */ memcpy(init_addr, rl->rl_local_rpa, BLE_DEV_ADDR_LEN); } + } else if (!ble_ll_is_rpa(adv_addr, adv_addr_type)) { + /* undirected with ID address, assure privacy if on RL */ + rl = ble_ll_resolv_list_find(adv_addr, adv_addr_type); + if (rl &...
search for sdl2 a little better on windows instead of only looking for it with local files, use the `find_package` cmake thing to look for it first (optionally). Helps when you wanna install SDL with pacman on MSYS2 or something.
@@ -4,9 +4,18 @@ project(nothing) set(NOTHING_CI OFF CACHE BOOL "Indicates whether the build is running on CI or not") if(WIN32) + # do the flags thing first. if(MINGW) add_compile_definitions(SDL_MAIN_HANDLED) # https://stackoverflow.com/a/25089610 add_compile_definitions(__USE_MINGW_ANSI_STDIO) # https://github.com/t...
doc: also update man
@@ -372,6 +372,9 @@ lua \fIlua/\fR Lua plugins .IP "\(bu" 4 shell \fIshell/\fR executes shell commandos . +.IP "\(bu" 4 +haskell \fIhaskell/\fR used for linking haskell plugins and is a small example for such plugins itself +. .IP "" 0 . .SS "Others" @@ -400,8 +403,5 @@ profile \fIprofile/\fR links profile keys .IP "\(...
Fix decrement in while loop. Fixes
@@ -216,7 +216,7 @@ static void flattencond(Flattenctx *s, Node *n, Node *ltrue, Node *lfalse) } } -/* flattenlifies +/* flatten * a || b * to * if a || b @@ -239,6 +239,7 @@ static Node *flattenlazy(Flattenctx *s, Node *n) /* flatten the conditional */ flattencond(s, n, ltrue, lfalse); + /* if true */ append(s, ltrue)...
board/elemi/board.c: Format with clang-format BRANCH=none TEST=none
@@ -248,8 +248,8 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, kb_backlight_disable, HOOK_PRIO_DEFAULT); __override void board_ps8xxx_tcpc_init(int port) { /* b/189587527: Set Displayport EQ loss up to 10dB */ - tcpc_addr_write(port, PS8XXX_I2C_ADDR1_P1_FLAGS, - PS8815_REG_DP_EQ_SETTING, + tcpc_addr_write( + port, PS8XXX_I2C_A...
Enable TLS/1.3 support with OpenSSL/LibreSSL, otherwise current ChromeOS doesn't work...
@@ -946,13 +946,13 @@ _httpTLSStart(http_t *http) // I - Connection to server TLS1_VERSION, // TLS/1.0 TLS1_1_VERSION, // TLS/1.1 TLS1_2_VERSION, // TLS/1.2 -//#ifdef TLS1_3_VERSION -// TLS1_3_VERSION, // TLS/1.3 -// TLS1_3_VERSION // TLS/1.3 (max) -//#else +#ifdef TLS1_3_VERSION + TLS1_3_VERSION, // TLS/1.3 + TLS1_3_V...
arvo: adds dynamic analysis from neo
== ~>(%slog.[0 leaf+"arvo: scry-dark"] ~) [~ ~ +.q.u.u.bop] +:: :: ++me +++ me :: dynamic analysis + :: sac: compiler cache + :: + |_ sac/worm + :: :: ++refine-moves:me + ++ refine-moves :: move list from vase + |= vax/vase + ^- {(list move:live) worm} + ?: =(~ q.vax) [~ sac] + =^ hed sac (~(slot wa sac) 2 vax) + =^ ta...
Remove the duplicate early_data_status check
@@ -2063,14 +2063,6 @@ static int ssl_tls13_parse_encrypted_extensions( mbedtls_ssl_context *ssl, #if defined(MBEDTLS_SSL_EARLY_DATA) case MBEDTLS_TLS_EXT_EARLY_DATA: - if( ssl->early_data_status != MBEDTLS_SSL_EARLY_DATA_STATUS_INDICATION_SENT ) - { - /* The server must not send the EarlyDataIndication if the - * clie...
Comment why doCdataSection's default case is never executed. Also add comment tags so that lcov can ignore the unreachable code
@@ -3756,8 +3756,16 @@ doCdataSection(XML_Parser parser, } return XML_ERROR_UNCLOSED_CDATA_SECTION; default: + /* Every token returned by XmlCdataSectionTok() has its own + * explicit case, so this default case will never be executed. + * We retain it as a safety net and exclude it from the coverage + * statistics. + *...
Add pin setting as a button
@@ -54,6 +54,14 @@ void USB0_IRQHandler(void) #define LED_PIN_FUNCTION kPORT_MuxAsGpio #define LED_STATE_ON 0 +// Button +#define BUTTON_PORT GPIOC +#define BUTTON_PIN_CLOCK kCLOCK_PortC +#define BUTTON_PIN_PORT PORTC +#define BUTTON_PIN 9U +#define BUTTON_PIN_FUNCTION kPORT_MuxAsGpio +#define BUTTON_STATE_ACTIVE 0 + /...
Simplify code around next_proto.len by changing 'len' data type. clean an useless static qualifier and a dead comment.
@@ -106,8 +106,6 @@ static DH *load_dh_param(const char *dhfile); #endif static void print_connection_info(SSL *con); -/* static int load_CA(SSL_CTX *ctx, char *file);*/ - static const int bufsize = 16 * 1024; static int accept_socket = -1; @@ -140,14 +138,13 @@ static const char *session_id_prefix = NULL; #ifndef OPEN...
tools/ramdump: Add callstack log parsing feature This scripts catch addr from "[<addr>]" and run addr2line ex) Input : unwind_backtrace_with_fp: [<0x4001dc04>] Output : /root/tizenrt/os/fs/vfs/fs_poll.c:382
@@ -24,11 +24,13 @@ from Tkinter import * import tkFileDialog import os import tempfile +import subprocess modes = ( ("AssertLog",1), ("AssertLogFile",2), ("Ramdump",3), + ("CallStackLog",4), ) g_elfpath = "../../build/output/bin/tinyara" @@ -95,6 +97,8 @@ class DumpParser(Tk): self.logpath.pack(anchor=W) elif self.mod...
bleprph_oic; sys/log -> sys/log/stub and sys/stats -> sys/stats/stub.
@@ -24,7 +24,6 @@ pkg.keywords: pkg.deps: - kernel/os - - sys/log - net/nimble/controller - net/nimble/host - net/nimble/host/services/gap @@ -32,7 +31,8 @@ pkg.deps: - net/nimble/host/store/ram - net/nimble/transport/ram - sys/console/full - - libc/baselibc + - sys/log/stub + - sys/stats/stub - mgmt/oicmgr - sys/sysin...
ia32/page.c fixed _page_showPages() adding empty lines
@@ -270,9 +270,11 @@ void _page_showPages(void) /* Print markers in case of memory gap */ if (p->addr > a) { if ((rep = (p->addr - a) / SIZE_PAGE) >= 4) { - k = page_digits(rep, 10); - if ((w += k + 3) > 80) { - lib_printf("\nvm: "); + k = page_digits(rep, 10) + 3; + if ((w += k) > 80) { + if (w - k < 80) + lib_printf(...
pybricks/parameters/Color: implement scaling
@@ -96,6 +96,49 @@ STATIC void pb_type_Color_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { dest[1] = MP_OBJ_SENTINEL; } +STATIC mp_obj_t parameters_Color_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) { + + parameters_Color_obj_t *self = MP_OBJ_TO_PTR(lhs_in); + + #if MICROPY_PY_BUILTINS_FLOAT + m...
fix plasma test link line
@@ -14,14 +14,8 @@ if test "x$PLASMA_DIR" = "x"; then echo AC_ERROR([PLASMA_DIR not defined - please load plasma environment.]) else - AC_MSG_RESULT([no]) + AC_MSG_RESULT([yes]) fi - -# unset default compilers and detect compiler toolchain from environment -CC=" " -F77=" " -FC=" " - # test compilers AC_PROG_CC AC_PROG_...
Improve Datapath ETW Profile
<Profiles> <SystemCollector Id="SC_HighVolume" Realtime="false"> <BufferSize Value="1024"/> - <Buffers Value="20"/> + <Buffers Value="60"/> </SystemCollector> <EventCollector Id="EC_LowVolume" Name="LowVolume"> - <BufferSize Value="16"/> + <BufferSize Value="128"/> <Buffers Value="32"/> </EventCollector> <EventCollecto...
fix compiling error with marvell pp2 plugin fix compile issue "src/plugins/marvell/pp2/pp2.c:247:62: error: 'vm' undeclared (first use in this function)"
@@ -179,6 +179,7 @@ mrvl_pp2_delete_if (mrvl_pp2_if_t * ppif) void mrvl_pp2_create_if (mrvl_pp2_create_if_args_t * args) { + vlib_main_t *vm = vlib_get_main (); vnet_main_t *vnm = vnet_get_main (); vlib_thread_main_t *tm = vlib_get_thread_main (); mrvl_pp2_main_t *ppm = &mrvl_pp2_main;
hw/scripts/common.sh; $OS might not be set when windows_detect() executes.
@@ -35,7 +35,7 @@ common_file_to_load () { # windows_detect() { WINDOWS=0 - if [ $OS = "Windows_NT" ]; then + if [ "$OS" = "Windows_NT" ]; then WINDOWS=1 fi if [ $WINDOWS -eq 1 -a -z "$COMSPEC" ]; then
Simplify image extension check.
@@ -344,30 +344,14 @@ IconNode *LoadNamedIconHelper(const char *name, const char *path, char *temp; const unsigned nameLength = strlen(name); const unsigned pathLength = strlen(path); + const char hasExtension = strchr(name, '.') != NULL; unsigned i; - char hasExtension; /* Full file name. */ temp = AllocateStack(nameL...
doc: Add a link to Win32 unofficial daily builds
@@ -100,6 +100,10 @@ or Run the relevant [`setup-*.exe`](https://cygwin.com/install.html), and select "the\_silver\_searcher" in the "Utils" category. +### Windows + +Unofficial daily builds are [available](https://github.com/k-takata/the_silver_searcher-win32). + ## Building from source ### Building master
compat: mingw: fix dependency patch path
@@ -79,16 +79,16 @@ buildnixdep () { fi # patch and build the dependency if necessary - pushd $dir - if [ ! -e .mingw~ ] + if [ ! -e $dir/.mingw~ ] then - local patch=../urbit/compat/mingw/$key.patch - [ -e $patch ] && patch -p 1 <$patch + local patch=compat/mingw/$key.patch + [ -e $patch ] && patch -d $dir -p 1 <$patc...
Remove Yotta: Python port of
@@ -31,7 +31,7 @@ import subprocess import logging # Naming patterns to check against -MACRO_PATTERN = r"^MBEDTLS_[0-9A-Z_]*[0-9A-Z]$|^YOTTA_[0-9A-Z_]*[0-9A-Z]$" +MACRO_PATTERN = r"^MBEDTLS_[0-9A-Z_]*[0-9A-Z]$" IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$" class Match(object):
Don't show traceback for `SystemExit` and `KeyboardInterrupt` on command runner
@@ -33,6 +33,10 @@ def main(): spec = importlib.util.spec_from_file_location("__main__", module_path) script = importlib.util.module_from_spec(spec) spec.loader.exec_module(script) + except KeyboardInterrupt: + pass + except SystemExit: + pass except: print(traceback.format_exc())
Minor enhancements in java binding.
} catch (final Exception e) { throw new Error(String.format( "Error while loading '%s'", - lib)); + lib), e); } } } while (progress); .createTempFile("tinyspline", null); tmp.deleteOnExit(); out = new java.io.FileOutputStream(tmp); - final byte[] buffer = new byte[4096]; + final byte[] buffer = new byte[16384]; int rea...
Fix shebang at start of GnuTLS install script
+#!/bin/bash # # Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # express or implied. See the License for the specific language governing # permissions and limitations under the License. # -#!/bin/bash set -e
Store last folder used in create to local storage
@@ -4,7 +4,20 @@ import cx from "classnames"; import { DotsIcon } from "../components/library/Icons"; import stripInvalidFilenameCharacters from "../lib/stripInvalidFilenameCharacters"; import createProject, { ERR_PROJECT_EXISTS } from "../lib/createProject"; -import { ipcRenderer } from "electron"; +import { ipcRender...
include/openssl/opensslconf.h.in: remove spurious HEADER_FILE_H definition This macro was never defined in existing releases, there's no reason for us to create a macro that we immediately deprecate.
@@ -66,8 +66,5 @@ extern "C" { # endif # include <openssl/macros.h> -# if !OPENSSL_API_3 -# define HEADER_FILE_H /* deprecated in version 3.0 */ -# endif #endif /* OPENSSL_OPENSSLCONF_H */
log: reomve KLOG_ENABLE define klog is added to all architectures
#define TCGETS 0x405c7401 -/* Temporary until all uart drivers support reading from kernel log */ -#if KLOG_ENABLE typedef struct _log_rmsg_t { void *odata; @@ -334,13 +332,10 @@ static void log_msgthr(void *arg) } } -#endif /* KLOG_ENABLE */ - int log_write(const char *data, size_t len) { int i = 0; -#if KLOG_ENABLE i...
board/kinox/power_detection.c: Format with clang-format BRANCH=none TEST=none
/******************************************************************************/ static const char *const adp_id_names[] = { - "unknown", - "tiny", - "tio1", - "tio2", - "typec", + "unknown", "tiny", "tio1", "tio2", "typec", }; /* ADP_ID control */ @@ -300,9 +296,9 @@ void set_the_obp(int power_type_index, int adp_type...