message
stringlengths
6
474
diff
stringlengths
8
5.22k
apps/x509: Fix self-signed check to happen before setting issuer name Fixes
@@ -235,6 +235,21 @@ static X509_REQ *x509_to_req(X509 *cert, int ext_copy, const char *names) return NULL; } +static int self_signed(X509_STORE *ctx, X509 *cert) +{ + X509_STORE_CTX *xsc = X509_STORE_CTX_new(); + int ret = 0; + + if (xsc == NULL || !X509_STORE_CTX_init(xsc, ctx, cert, NULL)) { + BIO_printf(bio_err, "E...
Fix float version, auto-detect int/float, OO tmr
@@ -25,7 +25,7 @@ return({ if s.parasite == 1 then break end -- parasite sensor blocks bus during conversion end end - tmr.alarm(tmr.create(), 750, tmr.ALARM_SINGLE, function() self:readout() end) + tmr.create():alarm(750, tmr.ALARM_SINGLE, function() self:readout() end) end, readTemp = function(self, cb, lpin) @@ -83,...
added snap_ddr4pins_flashgt.xdc to the framework.xpr
@@ -158,6 +158,8 @@ if { $ddri_used == TRUE } { } } elseif { $ddr4_used == TRUE } { add_files -fileset constrs_1 -norecurse $dimm_dir/snap_refclk200.xdc + add_files -fileset constrs_1 -norecurse $dimm_dir/snap_ddr4pins_flash_gt.xdc + set_property used_in_synthesis false [get_files $dimm_dir/snap_ddr4pins_flash_gt.xdc] ...
Sockeye: Finish implementation of overlay to map translation
@@ -35,6 +35,8 @@ import Numeric (showHex) import qualified SockeyeAST as AST import qualified SockeyeASTDecodingNet as NetAST +import Debug.Trace + type NetNodeDecl = (NetAST.NodeId, NetAST.NodeSpec) type NetList = [NetNodeDecl] type PortList = [NetAST.NodeId] @@ -370,32 +372,62 @@ instance NetTransformable AST.Overla...
Fix merge issue / built
@@ -1380,11 +1380,6 @@ void DeRestPluginPrivate::apsdeDataIndication(const deCONZ::ApsDataIndication &i { handleZclConfigureReportingResponseIndication(ind, zclFrame); } - - if (!(zclFrame.frameControl() & deCONZ::ZclFCDisableDefaultResponse) && !zclFrame.isDefaultResponse()) - { - sendZclDefaultResponse(ind, zclFrame,...
Remove newlines when transforming text tables to NVM XML
@@ -374,6 +374,7 @@ int process_output( } else if (TableView == type || TableTabView == type) { + wchar_t * trimmed_line = NULL; int col = 0; int row = 0; show_table.column_cnt = 0; @@ -386,7 +387,8 @@ int process_output( //get column names (used as key names) if (fgetws(line, READ_FD_LINE_SZ, fd) != NULL) { - tok = wc...
fix fontrom implement&size
#include "fontmake.h" #ifndef FONTMEMORYBIND - UINT8 __font[0x84000]; + UINT8 __font[FONTMEMORYSIZE]; #endif static const OEMCHAR fonttmpname[] = OEMTEXT("font.tmp"); @@ -25,7 +25,7 @@ static const OEMCHAR fonttmpname[] = OEMTEXT("font.tmp"); */ void font_initialize(void) { - ZeroMemory(fontrom, sizeof(fontrom)); + Zer...
nimble/ll: Fix typo That is actually few typos in a row ;)
@@ -2021,7 +2021,7 @@ ble_ll_conn_end(struct ble_ll_conn_sm *connsm, uint8_t ble_err) /* Remove from the active connection list */ SLIST_REMOVE(&g_ble_ll_conn_active_list, connsm, ble_ll_conn_sm, act_sle); -#if MYNEWT_VAL(BLE_LL_CFG_FEAT_HOST_TO_CTRL_FLOW_CONTROL) +#if MYNEWT_VAL(BLE_LL_CFG_FEAT_CTRL_TO_HOST_FLOW_CONTR...
allow to comment/uncomment lines in filterlist
@@ -3506,6 +3506,7 @@ static inline int readfilterlist(char *listname, maclist_t *zeiger) { int c; int len; +int entries; static FILE *fh_filter; static char linein[FILTERLIST_LINE_LEN]; @@ -3517,12 +3518,21 @@ if((fh_filter = fopen(listname, "r")) == NULL) } zeiger = filterlist; +entries = 0; for(c = 0; c < FILTERLIST...
Document the added devcrypto engine in CHANGES
Changes between 1.1.0f and 1.1.1 [xx XXX xxxx] + *) Add devcrypto engine. This has been implemented against cryptodev-linux, + then adjusted to work on FreeBSD 8.4 as well. + Enable by configuring with 'enable-devcryptoeng'. This is done by default + on BSD implementations, as cryptodev.h is assumed to exist on all of ...
added correct data sizes in offset calculations
@@ -160,7 +160,7 @@ void libxsmm_generator_matcopy_avx_avx512_kernel( libxsmm_generated_code* l_kernel_config.vmove_instruction, l_gp_reg_mapping.gp_reg_a, LIBXSMM_X86_GP_REG_UNDEF, 0, - i*l_kernel_config.vector_length, + i*l_kernel_config.vector_length*l_kernel_config.datatype_size, l_kernel_config.vector_name, 0, 0, ...
Add error reporting for missing src/dest paths in dcp This prints a message about invalid src/dest paths when one or the other is not provided. Also, the exit run and error is not printed when only "help" is used.
@@ -236,11 +236,14 @@ int main(int argc, \ numpaths_src = numpaths - 1; } - if (numpaths_src == 0) { + if (usage || numpaths_src == 0) { if(rank == 0) { - MFU_LOG(MFU_LOG_ERR, "No source path found, at least one"); + if (usage != 1) { + MFU_LOG(MFU_LOG_ERR, "A source and destination path is needed"); + } else { print_u...
specload/quickdump: reformat
@@ -29,6 +29,7 @@ The plugin relies heavily on the `quickdump` plugin. It is used for storing the `specload` and an application. To check whether `quickdump` is available you can use: + ``` kdb list quickdump #> quickdump @@ -77,6 +78,7 @@ sudo kdb umount spec/tests/specload ## Limitations - The plugin would technicall...
stm32l4: Changed default CPU frequency to 16 MHz
@@ -820,14 +820,14 @@ void _stm32_init(void) *(stm32_common.rcc + rcc_csr) |= 1 << 24; _stm32_rtcLockRegs(); - _stm32_rccSetCPUClock(4 * 1000 * 1000); - /* Enable System configuration controller */ _stm32_rccSetDevClock(pctl_syscfg, 1); /* Enable power module */ _stm32_rccSetDevClock(pctl_pwr, 1); + _stm32_rccSetCPUClo...
Set generic read and parse function to RStateOn
@@ -405,7 +405,16 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint) for (; i != end; ++i) { - if (i->id() == LEVEL_CLUSTER_ID) + if (i->id() == ONOFF_CLUSTER_ID) + { + auto *it = item(RStateOn); + if (it) + { + it->setParseParameters({QLatin1String("parseGenericAttribute/4"), endpoint.endpoint(...
admin/meta-packages: update warewulf package names
Summary: Meta-packages to ease installation Name: meta-packages -Version: 1.3.5 +Version: 1.3.6 Release: 1 License: Apache-2.0 Group: %{PROJ_NAME}/meta-package @@ -405,8 +405,10 @@ Summary: OpenHPC base packages for Warewulf Requires: warewulf-cluster%{PROJ_DELIM} Requires: warewulf-common%{PROJ_DELIM} Requires: warewu...
Fix return value on adb commands error
@@ -425,7 +425,7 @@ adb_get_serialno(struct sc_intr *intr, unsigned flags) { } if (r == -1) { - return false; + return NULL; } sc_str_truncate(buf, r, " \r\n"); @@ -455,7 +455,7 @@ adb_get_device_ip(struct sc_intr *intr, const char *serial, unsigned flags) { } if (r == -1) { - return false; + return NULL; } assert((siz...
pack: on JSON packaging, validate tokens count When parsing JSON string which contains a NULL byte, the number of tokens found returned is zero. This patch make sure that packaging calls raise an error if no tokens are returned.
@@ -42,12 +42,11 @@ static int json_tokenise(char *js, size_t len, ret = jsmn_parse(&state->parser, js, len, state->tokens, state->tokens_size); - while (ret == JSMN_ERROR_NOMEM) { n = state->tokens_size += 256; tmp = flb_realloc(state->tokens, sizeof(jsmntok_t) * n); if (!tmp) { - perror("realloc"); + flb_errno(); ret...
Switch off guix build by default, it breaks docker builds.
@@ -84,7 +84,7 @@ option(OPTION_BUILD_DETOURS "Build detours." ON) option(OPTION_BUILD_PORTS "Build ports." OFF) option(OPTION_BUILD_PIC "Build with position independent code." ON) option(OPTION_BUILD_SECURITY "Build with stack-smashing protection and source fortify." ON) -option(OPTION_BUILD_GUIX "Disable all build sy...
Fix. When compiled with SSL support SIGHUP handler always reloads non-SSL TCP/UDP listeners.
@@ -2362,10 +2362,13 @@ router_contains_listener(router *rtr, listener *lsnr) #ifdef HAVE_SSL /* check pemmtimespec */ if ((lsnr->transport & ~0xFFFF) == W_SSL && - lsnr->pemmtimespec.tv_sec == - rwalk->pemmtimespec.tv_sec && - lsnr->pemmtimespec.tv_nsec == - rwalk->pemmtimespec.tv_nsec) + (lsnr->pemmtimespec.tv_sec !=...
Update renamed decl missed in
@@ -36,7 +36,7 @@ static void secp256k1_testrand256_test(unsigned char *b32); static void secp256k1_testrand_bytes_test(unsigned char *bytes, size_t len); /** Generate a pseudorandom 64-bit integer in the range min..max, inclusive. */ -static int64_t secp256k1_rands64(uint64_t min, uint64_t max); +static int64_t secp25...
Fixed 'referer' typo under src/labels.h.
N_("Browsers") #define REFERRERS_HEAD \ - N_("Referrers URLs") + N_("Referer URLs") #define REFERRERS_DESC \ - N_("Top Requested Referrers sorted by hits [, avgts, cumts, maxts]") + N_("Top Requested Referers sorted by hits [, avgts, cumts, maxts]") #define REFERRERS_LABEL \ - N_("Referrers") + N_("Referers") #define R...
Feat:Modify the call of HTTP functions in rpcintf.c
@@ -24,7 +24,7 @@ RPC_USE_XXX macros. #include "boatconfig.h" #include "boatinternal.h" -#include "mbedhttpport.h" +#include "fibocomhttpport.h" void *RpcInit(void) { @@ -32,8 +32,8 @@ void *RpcInit(void) #if RPC_USE_LIBCURL == 1 rpc_context_ptr = CurlPortInit(); -#elif RPC_USE_MBEDHTTPPORT == 1 - rpc_context_ptr = Mbe...
cmdline: remove sigset_t init
@@ -279,7 +279,6 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) { .dataLimit = 0U, .clearEnv = false, .envs = {}, - .waitSigSet = {}, }, .timing = {
Check for macOS universal2
@@ -90,6 +90,16 @@ function(target_architecture output_var) # Get rid of the value marker, leaving just the architecture name. string(REPLACE "cmake_ARCH " "" ARCH "${ARCH}") + # Check for macOS universal2. + list(LENGTH CMAKE_OSX_ARCHITECTURES OSX_ARCH_LENGTH) + if(OSX_ARCH_LENGTH EQUAL 2) + list(FIND CMAKE_OSX_ARCHIT...
calibration_matrix: expect 6 individual values Example usage from command line: swaymsg input type:touch calibration_matrix -- -1 0 1 0 -1 1
struct cmd_results *input_cmd_calibration_matrix(int argc, char **argv) { struct cmd_results *error = NULL; - if ((error = checkarg(argc, "calibration_matrix", EXPECTED_EQUAL_TO, 1))) { + if ((error = checkarg(argc, "calibration_matrix", EXPECTED_EQUAL_TO, 6))) { return error; } struct input_config *ic = config->handle...
build/configs/stm32l4r9ai-disco: Enable tickless Idle config
@@ -554,6 +554,8 @@ CONFIG_DISABLE_OS_API=y # Clocks and Timers # # CONFIG_ARCH_HAVE_TICKLESS is not set +CONFIG_ARCH_HAVE_TICKSUPPRESS=y +CONFIG_SCHED_TICKSUPPRESS=y CONFIG_USEC_PER_TICK=10000 CONFIG_SYSTEM_TIME64=y # CONFIG_CLOCK_MONOTONIC is not set
Add upload-ec2-image, create-ec2-snapshot targets (AWS support).
@@ -23,6 +23,14 @@ GCE_BUCKET= nanos-test/gce-images GCE_IMAGE= nanos-$(TARGET) GCE_INSTANCE= nanos-$(TARGET) +# AWS +AWS= aws +JQ= jq +PRINTF= printf +CLEAR_LINE= \r +AWS_S3_BUCKET= nanos-test +AWS_AMI_IMAGE= nanos-$(TARGET) + all: image .PHONY: image release contgen mkfs boot stage3 target stage distclean @@ -149...
save/load replhistory
@@ -34,6 +34,8 @@ task("lua") -- imports import("core.base.option") import("core.sandbox.sandbox") + import("core.project.history") + import("lib.readline") -- list all scripts? if option.get("list") then @@ -56,8 +58,28 @@ task("lua") import("scripts." .. name).main(unpack(option.get("arguments") or {})) end else + --...
[coap]modify block transfer
@@ -36,7 +36,6 @@ typedef struct { iotx_event_handle_t event_handle; } iotx_coap_t; - int iotx_calc_sign(const char *p_device_secret, const char *p_client_id, const char *p_device_name, const char *p_product_key, char sign[IOTX_SIGN_LENGTH]) { @@ -135,6 +134,26 @@ static unsigned int iotx_get_coap_token(iotx_coap_t *p_...
[agx] Fix RGB byte order in unit test
@@ -571,9 +571,9 @@ fn fill_rect() { for y in 0..100 { for x in 0..100 { let off = ((y * bytes_per_row) + (x * layer.bytes_per_pixel)) as usize; - assert_eq!(fb[off + 0], color.b); + assert_eq!(fb[off + 0], color.r); assert_eq!(fb[off + 1], color.g); - assert_eq!(fb[off + 2], color.r); + assert_eq!(fb[off + 2], color.b...
dont patch a directory that does not exist
@@ -219,7 +219,7 @@ function checkrepo(){ # TO use this function set variables patchdir and patchfile function patchrepo(){ -if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] ; then +if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] && [ -d "$patchdir" ] ; then cd $patchdir if [[ "$1" =~ "postinstall" ]]; then getpatchlist $1
options/glibc: Actually install features.h
@@ -27,7 +27,8 @@ if not no_headers 'include/memory.h', 'include/printf.h', 'include/gshadow.h', - 'include/execinfo.h' + 'include/execinfo.h', + 'include/features.h' ) install_headers( 'include/sys/dir.h',
spec: remove duplicate key in base.yaml
@@ -17,8 +17,8 @@ include: definitions: - SBP: - desc: Packet structure for Swift Navigation Binary Protocol (SBP). desc: | + Packet structure for Swift Navigation Binary Protocol (SBP). Definition of the over-the-wire message framing format and packet structure for Swift Navigation Binary Protocol (SBP), a minimal bin...
changes to milankovitch figure file
@@ -190,21 +190,21 @@ def comp2huybers(plname,dir='.',xrange=False,show=True): clb.set_label('Ice Ablation\n(m year$^{-1}$)',fontsize=12) plt.subplot(7,1,1) - plt.plot(body.Time/1e6,obl,linestyle = 'solid',marker='None',color='darkblue',linewidth =2) + plt.plot(body.Time/1e6,obl,linestyle = 'solid',marker='None',color=...
(214) Don't report self-interposed activity on /proc/self/maps (funchook)
@@ -1208,7 +1208,13 @@ fopen(const char *pathname, const char *mode) WRAP_CHECK(fopen, NULL); stream = g_fn.fopen(pathname, mode); if (stream != NULL) { + // This check for /proc/self/maps is because we want to avoid + // reporting that our funchook library opens /proc/self/maps + // with fopen, then calls fgets and fc...
Force padded packet if stuck on initial
@@ -2709,16 +2709,17 @@ int picoquic_prepare_packet_client_init(picoquic_cnx_t* cnx, picoquic_path_t * p if (ret == 0 && length == 0) { /* In some circumstances, there is a risk that the handshakes stops because the * server is performing anti-dos mitigation and the client has nothing to repeat */ - if ((packet->ptype ...
tap: fix rx queue index Type: fix
@@ -55,7 +55,8 @@ call_read_ready (clib_file_t * uf) CLIB_UNUSED (ssize_t size) = read (uf->file_descriptor, &b, sizeof (b)); if ((qid & 1) == 0) - vnet_device_input_set_interrupt_pending (vnm, vif->hw_if_index, qid); + vnet_device_input_set_interrupt_pending (vnm, vif->hw_if_index, + RX_QUEUE_ACCESS (qid)); return 0; ...
lb: Fix generating illegal key in per-port vip VIP prefix index becomes always 0 when adding a VIP which is already registered different port, causing LB config crash. This change assigns the same VIP prefix index to the same VIP. Ticket: Type: fix
@@ -906,6 +906,8 @@ static void lb_vip_add_adjacency(lb_main_t *lbm, lb_vip_t *vip, if (!lb_vip_port_find_diff_port(&(vip->prefix), vip->plen, vip->protocol, vip->port, &vip_idx)) { + lb_vip_t *exists_vip = lb_vip_get_by_index(vip_idx); + *vip_prefix_index = exists_vip->vip_prefix_index; return; }
news: add opensesame link
@@ -64,25 +64,24 @@ The next release is not to be expected in this year. Elektra is used for [server, desktop and embedded](/doc/WHO.md). With this release, we again strengthen our embedded mainstay. -We developed a major application running on Olimex boards, +We developed a major application running on Olimex boards, ...
util: add NDS architecture to crash_analyzer This CL adds the Andes 32 (NDS32) architecture to the crash analyzer util. TEST=./crash_analyzer.py -f /tmp/dumps/ -m ampton.map Where Ampton is an NDS32 architecture. BRANCH=None
@@ -22,6 +22,16 @@ _REGEX_CORTEX_M0 = ( r"^.*cfsr=(.*), shcsr=(.*), hfsr=(.*), dfsr=(.*), ipsr=(.*)$" ) +# Regex tested here: https://regex101.com/r/FL7T0n/1 +_REGEX_NDS32 = ( + r"^Saved.*$\n===.*ITYPE=(.*) ===$\n" + r"R0 (.*) R1 (.*) R2 (.*) R3 (.*)$\n" + r"R4 (.*) R5 (.*) R6 (.*) R7 (.*)$\n" + r"R8 (.*) R9 (.*) R10 (...
fixed dsatxuvtime unit
@@ -60,7 +60,7 @@ void ReadSatXUVTime(BODY *body,CONTROL *control,FILES *files,OPTIONS *options,SY if (dTmp < 0) body[iFile-1].dSatXUVTime = dTmp*dNegativeDouble(*options,files->Infile[iFile].cIn,control->Io.iVerbose); else - body[iFile-1].dSatXUVTime = dTmp; + body[iFile-1].dSatXUVTime = dTmp*fdUnitsTime(control->Unit...
added casting of int in key_bytes_to_int
@@ -368,8 +368,8 @@ split( i--; record_offset -= linear_hash->record_total_size; record_loc -= linear_hash->record_total_size; - } + record_loc += linear_hash->record_total_size; record_offset += linear_hash->record_total_size; } @@ -428,6 +428,7 @@ split( record_offset -= linear_hash->record_total_size; record_loc -= ...
added a sqrt of unsigned long test to mimimic error in qmcpack
#include <cmath> #include <omp.h> #include <stdio.h> -#define RES_SIZE 12 +#define RES_SIZE 14 int main(int argc, char **argv) { @@ -10,11 +10,13 @@ int main(int argc, char **argv) double base = 2.0 ; double exp = 3.0 ; float fbase = 2.0 ; - float fexp = 3.0; ; + float fexp = 3.0 ; + unsigned long ulval = 2; double res...
board/kukui_scp/vdec.h: Format with clang-format BRANCH=none TEST=none
@@ -24,7 +24,8 @@ struct vdec_msg { unsigned char msg[48]; }; -BUILD_ASSERT(member_size(struct vdec_msg, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE); +BUILD_ASSERT(member_size(struct vdec_msg, msg) <= + CONFIG_IPC_SHARED_OBJ_BUF_SIZE); /* Functions provided by private overlay. */ void vdec_h264_service_init(void);
Build Server: Use title case in section headers
@@ -170,7 +170,7 @@ Additionally we recompile the homepage and deploy it on the a7 node. This section describes how to replicate the current Jenkins configuration. -### Jenkins libelektra configuration +### Jenkins libelektra Configuration The `libelektra` build job is a multibranch pipeline job. It is easiest to add v...
show dimm: hide ManufacturerId for unmanageable DIMMs ManfacturerId comes from a fis command which is not availible for unamanageable DIMMs. Leave Manufacturer string since it comes from smbios.
@@ -702,12 +702,6 @@ ShowDimms( Print(FORMAT_SPACE_SPACE_SPACE_STR_EQ_STR_NL, MANUFACTURER_STR, pDimms[Index].ManufacturerStr); } - /** ManufacturerId **/ - if (ShowAll || (DisplayOptionSet && ContainsValue(pDisplayValues, MANUFACTURER_ID_STR))) { - Print(FORMAT_3SPACE_EQ_0X04HEX_NL, MANUFACTURER_ID_STR, - EndianSwapUi...
added handling of invalid controller responses
@@ -66,9 +66,10 @@ async def controller_announce(): async with session.post(PM.CONTROLLER_REST, data=gen_hello_msg(), headers={'content-type': 'application/json'}) as resp: # logging.debug('announce addr: %s:%s' % resp.connection._protocol.transport.get_extra_info('sockname')) - assert resp.status == 200 + if resp.stat...
tools/gen-cpydiff: Use "pycopy" executable.
@@ -39,10 +39,10 @@ from collections import namedtuple # to the correct executable. if os.name == 'nt': CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3.exe') - MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/windows/micropython.exe') + MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../ports/windows/pycopy.e...
arvo: clean up unnecessary type casts and fix profiling hint
?~ who=(slaw %p i.p) ~ ?~ des=?~(i.t.p (some %$) (slaw %tas i.t.p)) ~ :: XX +sym ;~(pose low (easy %$)) ?~ ved=(de-case i.t.t.p) ~ - `(unit beam)`[~ [`ship`u.who `desk`u.des `case`u.ved] t.t.t.p] + `[[`ship`u.who `desk`u.des u.ved] t.t.t.p] :: ++ de-case - ~/ %en-case + ~/ %de-case |= =knot ^- (unit case) ?^ num=(slaw ...
status out: replace hashes with handshakes
@@ -1007,8 +1007,8 @@ printf("%s %s (C) %s ZeroBeat\n" "-R <file> : write only not replaycount checked to hccapx file\n" "-N <file> : output stripped file (only one record each mac_ap, mac_sta, essid, message_pair combination)\n" "-n <file> : output stripped file (only one record each mac_sta, essid)\n" - "-g <file> : ...
tools: ARCHIVE uses the full path
@@ -372,7 +372,7 @@ endef define INSTALL_LIB @echo "IN: $1 -> $2" - $(Q) install -m 0644 $1 $2 + $(Q) install -m 0644 $(abspath $1) $(abspath $2) endef # ARCHIVE_ADD - Add a list of files to an archive @@ -393,7 +393,7 @@ endef define ARCHIVE_ADD @echo "AR (add): ${shell basename $(1)} $(2)" - $(Q) $(AR) $1 $(2) + $(Q)...
Enforce DDF static item setting
@@ -84,7 +84,7 @@ static ResourceItem *DEV_InitDeviceDescriptionItem(const DeviceDescription::Item } else if (ddfItem.defaultValue.isValid()) { - if (!item->lastSet().isValid()) + if (ddfItem.isStatic || !item->lastSet().isValid()) { item->setValue(ddfItem.defaultValue); }
chat: uniform text color in unread banner fixes urbit/landscape#563
@@ -55,8 +55,7 @@ export const UnreadNotice = (props) => { cursor='pointer' onClick={onClick} > - {unreadCount} new message{unreadCount > 1 ? 's' : ''}{' '} - <Text color='lightGray'>since </Text> + {unreadCount} new message{unreadCount > 1 ? 's' : ''} since{' '} <Timestamp stamp={stamp} color='black' date={true} fontS...
reduce verbosity for devicesecurity checks
@@ -229,7 +229,7 @@ class DeviceSecuritySingleton extends DeviceSecuritySingletonBase implements IDe rating += 3; } } catch (Exception e) { - e.printStackTrace(); + Logger.W( TAG, "Can't get bluetooth adapter ( " + e.toString() + " ). Skipping security checks for bluetooth." ); } return rating > 3;
nimble/gatt: Fix null pointer dereference Modify ble_gattc_proc_matches_conn_rx_entry to return 0 in case no matching entry was found. Otherwise null pointer deference might happen.
@@ -912,7 +912,7 @@ ble_gattc_proc_matches_conn_rx_entry(struct ble_gattc_proc *proc, void *arg) criteria->matching_rx_entry = ble_gattc_rx_entry_find( proc->op, criteria->rx_entries, criteria->num_rx_entries); - return 1; + return (criteria->matching_rx_entry != NULL); } static void
forgeot intial shield for arm1 don't depend on openblas
%define ohpc_mpi_dependent 1 %include %{_sourcedir}/OHPC_macros -%if "%{compiler_family}" != "intel" +%if "%{compiler_family}" != "intel" && "%{compiler_family}" != "arm1" BuildRequires: openblas-%{compiler_family}%{PROJ_DELIM} Requires: openblas-%{compiler_family}%{PROJ_DELIM} %endif
Add lexicon words for verifast directory
@@ -469,6 +469,7 @@ ctxbuffer ctxlock ctxstring curbyte +currentthread curson cvore cwd @@ -1041,6 +1042,7 @@ irqchannelpreemptionpriority irqchannelsubpriority irqcr irqhandler +irqmask irqmd irqn irqs @@ -1536,6 +1538,7 @@ pcfile pcfilebuffer pcfilename pcfrom +pchead pchelpstring pchexoutput pchost @@ -1579,6 +1582,...
Modify getting started guide
* * \section sect_getting_started Getting started * - * Library development is fully hosted on Github and there is no future plans to move to any other platform. + * Repository <a href="https://github.com/MaJerle/ESP_AT_Lib"><b>ESP_AT_Lib is hosted on Github</b></a>. It combines source code and example projects. * - * ...
fix string copy
@@ -71,12 +71,7 @@ tb_bool_t tb_unixaddr_cstr_set(tb_unixaddr_ref_t unix, tb_char_t const* cstr) { // check tb_assert_and_check_return_val(cstr, tb_false); - tb_size_t len = tb_strlen(cstr); - tb_assert_and_check_return_val(len < TB_UNIXADDR_CSTR_MAXN, tb_false); - // copy - tb_memcpy(unix->str, cstr, len + 1); - - // ...
WIP: temp fix to get past an error in stroull when checking the maps file.
@@ -606,14 +606,16 @@ osGetPageProt(uint64_t addr) char *end = NULL; scope_errno = 0; uint64_t addr1 = scope_strtoull(buf, &end, 0x10); - if ((addr1 == 0) || (scope_errno != 0)) { + //if ((addr1 == 0) || (scope_errno != 0)) { + if (addr1 == 0) { if (buf) scope_free(buf); scope_fclose(fstream); return -1; } uint64_t add...
Implement unsignedchar tests for CodeLite
@@ -234,3 +234,29 @@ cmd2</StartupCommands> </Completion> ]] end + + +--------------------------------------------------------------------------- +-- Setup/Teardown +--------------------------------------------------------------------------- + + function suite.OnProjectCfg_UnsignedCharOn() + unsignedchar "On" + prepare...
Appveyor: update to Visual Studio 2017. Default image was currently "Visual Studio 2015"
+image: + - Visual Studio 2017 + platform: - x64 - x86 @@ -5,13 +8,19 @@ platform: environment: fast_finish: true matrix: - - VSVER: 14 + - VSVER: 15 configuration: - shared - plain before_build: + - ps: >- + Install-Module VSSetup -Scope CurrentUser + - ps: >- + Get-VSSetupInstance -All + - ps: >- + gci env:* | sort-o...
Fixed Context::enable_probe method. Fixed Context::enable_probe method so that it does not discard the result of Probe::enable.
@@ -311,10 +311,8 @@ bool Context::enable_probe(const std::string &probe_name, } } - if (found_probe != nullptr) { - found_probe->enable(fn_name); - return true; - } + if (found_probe != nullptr) + return found_probe->enable(fn_name); return false; }
Shell Tests: Prefer `kdb` over `kdb-static`
@@ -6,15 +6,17 @@ if (SHARED_ONLY_PLUGINS) list (REMOVE_ITEM ADDED_PLUGINS_WITHOUT_ONLY_SHARED ${SHARED_ONLY_PLUGINS}) endif (SHARED_ONLY_PLUGINS) -if (BUILD_FULL) +# We prefer `kdb` over `kdb-full` over `kdb-static`. Some tests, such as the Markdown Shell Recorder test for the `typechecker` plugin +# (which only suppo...
Fix all saved bmp images being red
@@ -1343,7 +1343,7 @@ SDL_Surface* TCOD_sys_create_bitmap(int width, int height, TCOD_color_t* buf) { for (x = 0; x < width; x++) { for (y = 0; y < height; y++) { SDL_Rect rect; - uint32_t col = SDL_MapRGB(&fmt, buf[x + y * width].r, buf[x + y * width].g, buf[x + y * width].b); + uint32_t col = SDL_MapRGB(bitmap->forma...
extmod/moduhashlib: Include implementation of sha256 only when required. Previously crypto-algorithms impl was included even if MICROPY_SSL_MBEDTLS was in effect, thus we relied on the compiler/linker to cut out the unused functions.
@@ -104,6 +104,8 @@ STATIC mp_obj_t uhashlib_sha256_digest(mp_obj_t self_in) { #else +#include "crypto-algorithms/sha256.c" + STATIC mp_obj_t uhashlib_sha256_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_arg_check_num(n_args, n_kw, 0, 1, false); mp_obj_hash_t *o = m_new_obj_...
do not export DllEntry on windows
@@ -666,7 +666,7 @@ static void mi_patches_at_quick_exit(void) { mi_patches_enable_term(); // enter termination phase and patch realloc/free with a no-op } -__declspec(dllexport) BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID reserved) { +BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID reserved) { ...
Add -O2 to sollve flags
@@ -83,7 +83,7 @@ else triple="amdgcn-amd-amdhsa" fi -export MY_SOLLVE_FLAGS="-fopenmp -fopenmp-targets=$triple -Xopenmp-target=$triple -march=$AOMP_GPU" +export MY_SOLLVE_FLAGS="-O2 -fopenmp -fopenmp-targets=$triple -Xopenmp-target=$triple -march=$AOMP_GPU" pushd $AOMP_REPOS_TEST/$AOMP_SOLVV_REPO_NAME
Fix use before assignment it was getting the SerialNumber of a previous cert.
@@ -987,12 +987,11 @@ end_of_options: BIO_printf(bio_err, "writing new certificates\n"); for (i = 0; i < sk_X509_num(cert_sk); i++) { BIO *Cout = NULL; - ASN1_INTEGER *serialNumber = X509_get_serialNumber(x); + X509 *xi = sk_X509_value(cert_sk, i); + ASN1_INTEGER *serialNumber = X509_get_serialNumber(xi); int k; char *...
doc: Update Configurator doc Update per comments in PR 7781
@@ -12,7 +12,8 @@ The ACRN Configurator ``acrn_configurator.py`` provides a user interface to help you customize your :ref:`ACRN configuration <acrn_configuration_tool>`. Capabilities: -* Reads board information from the specified board configuration file +* Reads board information from the board configuration file gen...
tests/extmod/ussl_basic: Disable completely as failing with mbedTLS. Thist test was always a stopgap measured "to get some coverage", and in its current shape, no longet adequate.
# very basic test of ssl module, just to test the methods exist +# Way too basic, doesn't really work across different TLS libs +print("SKIP") +raise SystemExit + try: import uio as io import ussl as ssl
fix for ds18b20 negative decimals ds18b20 decimals do not take into account the sign bit. Since the original calculation was not so readable, rewritten in readable way that also fixes the bug. Same code as PR against master.
@@ -192,6 +192,7 @@ static int ds18b20_lua_read(lua_State *L) { static int ds18b20_read_device(uint8_t *ds18b20_device_rom) { lua_State *L = lua_getstate(); + int16_t ds18b20_raw_temp; if (onewire_crc8(ds18b20_device_rom,7) == ds18b20_device_rom[7]) { @@ -216,8 +217,9 @@ static int ds18b20_read_device(uint8_t *ds18b20_...
Add mold as linker
@@ -690,9 +690,9 @@ fi T4P4S_CC=${T4P4S_CC-$(find_tool "-" clang gcc)} if [[ ! "$T4P4S_CC" =~ "clang" ]]; then # note: when using gcc, only lld seems to be supported, not lld-VSN - T4P4S_LD=${T4P4S_LD-$(find_tool lld bfd gold)} + T4P4S_LD=${T4P4S_LD-$(find_tool mold lld bfd gold)} else - T4P4S_LD=${T4P4S_LD-$(find_tool...
psp2: Fix indentations and remove some debug comments of USB headers
@@ -23,9 +23,9 @@ typedef enum SceUsbdErrorCode { SCE_USBD_ERROR_NO_MEMORY = 0x80240005, SCE_USBD_ERROR_DEVICE_NOT_FOUND = 0x80240006, - SCE_USBD_ERROR_80240007 = 0x80240007, // - SCE_USBD_ERROR_80240009 = 0x80240009, // - SCE_USBD_ERROR_8024000A = 0x8024000A, // + SCE_USBD_ERROR_80240007 = 0x80240007, + SCE_USBD_ERROR...
chip/it83xx/config_chip_it8xxx2.h: Format with clang-format BRANCH=none TEST=none Tricium: disable
#define CHIP_RAMCODE_ILM0 (CONFIG_RAM_BASE + 0) /* base+0000h~base+0FFF */ #define CHIP_H2RAM_BASE (CONFIG_RAM_BASE + 0x1000) /* base+1000h~base+1FFF */ -#define CHIP_RAMCODE_BASE (CONFIG_RAM_BASE + 0x2000) /* base+2000h~base+2FFF \ +#define CHIP_RAMCODE_BASE \ + (CONFIG_RAM_BASE + 0x2000) /* base+2000h~base+2FFF \ */ ...
zoombini: Change battery i2c bus speed to 100KHz. BRANCH=none TEST=flash zoombini; verify that smart battery shows up on i2c bus. Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye
@@ -92,7 +92,7 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); /* I2C port map. */ const struct i2c_port_t i2c_ports[] = { - {"power", I2C_PORT_POWER, 400, GPIO_I2C0_SCL, GPIO_I2C0_SDA}, + {"power", I2C_PORT_POWER, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA}, {"pmic", I2C_PORT_PMIC, 400, GPIO_I2C3_SCL, GPI...
Update test_0x1014100D.sh
@@ -78,10 +78,11 @@ function test_image_filter { local size=$1 - echo -n "doing action_test hls_image_filter" - cp ${ACTION_ROOT}/sw/tiger.bmp . + echo "Executing action_test hls_image_filter" + echo "converting image: ${ACTION_ROOT}/sw/tiger.bmp" + echo "resulting image: ${ACTION_ROOT}/sw/tiger_new.bmp" - cmd="snap_im...
u3: improves effiency of gmp->u3a_atom conversion
@@ -407,14 +407,19 @@ u3i_chubs(c3_w a_w, u3_atom u3i_mp(mpz_t a_mp) { - c3_w pyg_w = mpz_size(a_mp) * (sizeof(mp_limb_t) / sizeof(c3_w)); + size_t siz_i = mpz_sizeinbase(a_mp, 2); u3i_slab sab_u; - u3i_slab_init(&sab_u, 5, sizeof(c3_w) * pyg_w); + u3i_slab_init(&sab_u, 0, siz_i); mpz_export(sab_u.buf_w, 0, -1, sizeof(...
Fix Android print with multiple arguments;
@@ -343,10 +343,10 @@ int luax_print(lua_State* L) { lua_pushvalue(L, i); lua_call(L, 1, 1); lovrAssert(lua_type(L, -1) == LUA_TSTRING, LUA_QL("tostring") " must return a string to " LUA_QL("print")); - luaL_addvalue(&buffer); if (i > 1) { luaL_addchar(&buffer, '\t'); } + luaL_addvalue(&buffer); } luaL_pushresult(&buff...
Fix typos in README Author: Daniel Gustafsson
@@ -1109,10 +1109,10 @@ compatibly partitioned tables. Even if the joining relations don't have exactly the same partition bounds, partitionwise join can still be applied by using an advanced partition-matching algorithm. For both the joining relations, the algorithm -checks wether every partition of one joining relati...
Add theme support to process heaps window
*/ #include <phapp.h> +#include <phsettings.h> #include <phsvccl.h> #include <actions.h> #include <appresolver.h> @@ -745,6 +746,8 @@ INT_PTR CALLBACK PhpProcessHeapsDlgProc( PhLoadWindowPlacementFromSetting(L"SegmentHeapWindowPosition", L"SegmentHeapWindowSize", hwndDlg); else PhCenterWindow(hwndDlg, PhMainWndHandle);...
Dark Mode detection GoAccess defaults to the darkPurple theme even for us weirdos :-) who still prefer the Light Mode in 2021. This change defaults to "bright" for us and "darkPurple" for them.
@@ -51,7 +51,7 @@ window.GoAccess = window.GoAccess || { 'autoHideTables': true, 'layout': cw > 2560 ? 'wide' : 'horizontal', 'perPage': 7, - 'theme': 'darkPurple', + 'theme': (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'darkPurple' : 'bright', }; this.AppPrefs = GoAccess.Util.mer...
Disable light-error-for-lh-confidence by default
@@ -535,7 +535,7 @@ void survive_kalman_tracker_integrate_observation(PoserData *pd, SurviveKalmanTr } STATIC_CONFIG_ITEM(KALMAN_USE_ERROR_FOR_LH_CONFIDENCE, "light-error-for-lh-confidence", 'i', - "Whether or not to invalidate LH positions based on kalman errors", 1) + "Whether or not to invalidate LH positions based ...
Update cmake check
@@ -85,7 +85,7 @@ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-g") include(CheckTypeSize) check_type_size("size_t" SIZEOF_SIZE_T) if(SIZEOF_SIZE_T LESS 8) - message(WARNING "Your size_t is less than 8 bytes. Long items with 64b length specifiers might not work as expected. Make sure to run the tests!") + message(WARNING "Your si...
Allow configuring M3_APP_MAX_STACK
#define FATAL(msg, ...) { printf("Error: [Fatal] " msg "\n", ##__VA_ARGS__); goto _onfatal; } +#ifndef M3_APP_MAX_STACK +#define M3_APP_MAX_STACK (64*1024) +#endif + M3Result repl_load (IM3Runtime runtime, const char* fn) { M3Result result = m3Err_none; @@ -154,7 +158,7 @@ void repl_free(IM3Runtime* runtime) M3Result r...
Format vnet_buffer_t l2 feature bitmap
#include <vnet/vnet.h> #include <vppinfra/bitmap.h> +#include <vnet/l2/l2_input.h> +#include <vnet/l2/l2_output.h> u8 * format_vnet_sw_interface_flags (u8 * s, va_list * args) @@ -463,6 +465,12 @@ format_vnet_buffer_opaque (u8 * s, va_list * args) (u32) (o->l2.bd_age)); vec_add1 (s, '\n'); + s = format (s, + "l2.featur...
Add debug prints for create, update and delete rules
@@ -521,6 +521,7 @@ int DeRestPluginPrivate::createRule(const ApiRequest &req, ApiResponse &rsp) updateEtag(rule.etag); updateEtag(gwConfigEtag); + DBG_Printf(DBG_INFO, "create rule %s: %s\n", qPrintable(rule.id()), qPrintable(rule.name())); rules.push_back(rule); queueCheckRuleBindings(rule); indexRulesTriggers(); @@ ...
LPC55xx: re-enable CRC computation in info.c.
@@ -294,38 +294,22 @@ void info_crc_compute() // Compute the CRCs of regions that exist if ((DAPLINK_ROM_BL_SIZE > 0) && flash_is_readable(DAPLINK_ROM_BL_START, DAPLINK_ROM_BL_SIZE - 4)) { -#ifdef INTERFACE_LPC55XX // FIXME: CRC - crc_bootloader = 0; -#else crc_bootloader = crc32((void *)DAPLINK_ROM_BL_START, DAPLINK_R...
pp2: increase recycle batch size Increase batch size when recycling buffers. This increases Mpps by 7%.
#define MVCONF_TYPES_PUBLIC #define MVCONF_DMA_PHYS_ADDR_T_PUBLIC +#include <vlib/vlib.h> + #include "mv_std.h" #include "env/mv_sys_dma.h" #include "drivers/mv_pp2.h" @@ -61,7 +63,7 @@ typedef struct u32 hw_if_index; } mrvl_pp2_if_t; -#define MRVL_PP2_BUFF_BATCH_SZ 64 +#define MRVL_PP2_BUFF_BATCH_SZ VLIB_FRAME_SIZE ty...
Style fix in "changes.xml".
@@ -110,8 +110,8 @@ after the corresponding listener had been reconfigured. <change type="bugfix"> <para> -the router and app processes could crash when reaching requests limit -in asynchronous or multithreaded apps. +the router and app processes could crash when the requests limit was reached +by asynchronous or multi...
Fix Formatting in s2nc and endpoint integration test
@@ -77,7 +77,7 @@ def well_known_endpoints_test(): for endpoint in well_known_endpoints: ret = try_client_handshake(endpoint) print_result("Endpoint: %-40s... " % endpoint, ret) - if(ret != 0): + if ret != 0: failed += 1 return failed
Fix test added for lstComparatorZ() in strcmp() returns < 0 and > 0 but these are not guaranteed to be -1 and 1.
@@ -188,8 +188,8 @@ testRun(void) const char *string2 = "def"; TEST_RESULT_INT(lstComparatorZ(&string1, &string1), 0, "strings are equal"); - TEST_RESULT_INT(lstComparatorZ(&string1, &string2), -1, "first string is less"); - TEST_RESULT_INT(lstComparatorZ(&string2, &string1), 1, "first string is greater"); + TEST_RESUL...
WebPRescalerImportRowExpand_C: promote some vals before multiply avoids integer overflow in extreme cases: src/dsp/rescaler.c:45:32: runtime error: signed integer overflow: 129 * cannot be represented in type 'int' 0x556bde3538e3 in WebPRescalerImportRowExpand_C src/dsp/rescaler.c:45:32 0x556bde357465 in RescalerImport...
@@ -38,8 +38,9 @@ void WebPRescalerImportRowExpand_C(WebPRescaler* const wrk, int x_out = channel; // simple bilinear interpolation int accum = wrk->x_add; - int left = src[x_in]; - int right = (wrk->src_width > 1) ? src[x_in + x_stride] : left; + rescaler_t left = (rescaler_t)src[x_in]; + rescaler_t right = + (wrk->sr...
don't change path for main part of bart command (fixes
@@ -89,7 +89,7 @@ function [varargout] = bart(cmd, varargin) if ispc % running windows? if isWSL % For WSL and modify paths - cmdWSL = wslPathCorrection(cmd); + cmdWSL = cmd; in_strWSL = wslPathCorrection(in_str); out_strWSL = wslPathCorrection(out_str); final_strWSL = ['wsl ', bart_path, '/bart ', cmdWSL, ' ', in_strW...
Create namespace when all dimms are locked - unclear error HII
@@ -6683,6 +6683,9 @@ Update NAMESPACE_INDEX with NAMESPACE_LABEL(s) ReturnCode = InsertNamespaceLabels(pDimmRegion->pDimm, &ppLabels[Index2], 1, pNamespace->Major, pNamespace->Minor); if (EFI_ERROR(ReturnCode)) { + if (ReturnCode == EFI_SECURITY_VIOLATION) { + ResetCmdStatus(pCommandStatus, NVM_ERR_INVALID_SECURITY_ST...
doc: add 1.6.1 docs version menu choice
@@ -189,6 +189,8 @@ else: html_context = { 'current_version': current_version, 'versions': ( ("latest", "/latest/"), + ("1.6.1", "/1.6.1/"), + ("1.6", "/1.6/"), ("1.6", "/1.6/"), ("1.5", "/1.5/"), ("1.4", "/1.4/"),
Better way to forward calls
@@ -66,8 +66,10 @@ void Scripting::HandleOverridenFunction(RED4ext::IScriptable* apContext, RED4ext if (apCookie->RealFunction) { - RED4ext::CStack stack(apContext, apStack->args, apStack->argsCount, apStack->result); - apCookie->RealFunction->Execute(&stack); + using TCallScriptFunction = bool(*)(RED4ext::IFunction* a...
YAML CPP: Document function `yamlWrite`
@@ -54,6 +54,15 @@ static int yamlRead (kdb::KeySet & mappings, kdb::Key & parent) return ELEKTRA_PLUGIN_STATUS_SUCCESS; } +/** + * @brief This function saves the key-value pairs stored in `mappings` as YAML data in the location specified via `parent`. + * + * @param mappings This key set stores the mappings that shoul...
docs: add discussion about slurm configuration and accounting; mention setup of /var/log/slurm_jobcomp.log file for simple accounting needs and add pointer to slurm docs for database-based accounting
@@ -17,6 +17,17 @@ the corresponding compute image in a subsequent step. \end{lstlisting} % end_ohpc_run +There are a wide variety of configuration options and plugins available +for \SLURM{} and the example config file illustrated above targets a fairly +basic installation. In particular, job completion data will be s...