message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
jenkins: fix an issue with spaces in source directory | @@ -927,7 +927,7 @@ def publishCoverage(source = 'build/coverage') {
def archiveName = "cov_${env.BRANCH_NAME}_${env.STAGE_NAME}.tar.gz"
sh "mkdir -p ${uploadDir}"
- sh "mv -v -T ${source} ${uploadDir} || /bin/true"
+ sh "mv -v -T '${source}' ${uploadDir} || /bin/true"
sh "tar -czvf ${archiveName} ${uploadDir}"
sshPubl... |
libcupsfilters: Memory leak fixed in imagetoraster() filter function | @@ -542,7 +542,7 @@ imagetoraster(int inputfd, /* I - File descriptor input stream */
}
else if (ipp != NULL) {
ippAttributeString(ipp, buf, sizeof(buf));
- val = strdup(buf);
+ val = buf;
}
else
{
@@ -589,16 +589,16 @@ imagetoraster(int inputfd, /* I - File descriptor input stream */
media_type = strdup(val);
}
else i... |
pg_rewind: fix -R and -S options
A character transposition in the getopt_long() string meant that the
option meant for -S was being applied to -R:
pg_rewind: option requires an argument -- R
Fix that. | @@ -125,7 +125,7 @@ main(int argc, char **argv)
}
}
- while ((c = getopt_long(argc, argv, "D:nPR:S", long_options, &option_index)) != -1)
+ while ((c = getopt_long(argc, argv, "D:nPRS:", long_options, &option_index)) != -1)
{
switch (c)
{
|
Added `disable_coredump=0` environment variable
This environment variable tells ASAN to use `madvise` to indicate to the kernel not to include reserved-but-not-commited memory in core dumps. | @@ -142,7 +142,7 @@ function Start-Executable {
}
} else {
$pinfo.FileName = "bash"
- $pinfo.Arguments = "-c `"ulimit -c unlimited && $($Path) $($Arguments) && echo Done`""
+ $pinfo.Arguments = "-c `"ulimit -c unlimited && ASAN_OPTIONS=disable_coredump=0 $($Path) $($Arguments) && echo Done`""
$pinfo.WorkingDirectory = ... |
libssh: Fix the replace order to derive libssh path
In order to derive the library path to include for libssh from the .so
file path, fix the replace order, otherwise you end up with an extra
"/lib" in the path and the build will not be able to find the libssh. | @@ -70,11 +70,11 @@ else (LIBSSH_LIBRARY_DIR AND LIBSSH_INCLUDE_DIRS)
)
if (SSH_FOUND)
- string(REPLACE "ssh.so" ""
+ string(REPLACE "libssh.so" ""
LIBSSH_LIBRARY_DIR
${SSH_LIBRARY}
)
- string(REPLACE "libssh.so" ""
+ string(REPLACE "ssh.so" ""
LIBSSH_LIBRARY_DIR
${LIBSSH_LIBRARY_DIR}
)
|
Remove r_list_del_n leftover | @@ -284,34 +284,6 @@ SDB_API int ls_join(SdbList *list1, SdbList *list2) {
}
-SDB_API int r_list_del_n(SdbList *list, int n) {
- SdbListIter *it;
- int i;
- if (!list) {
- return false;
- }
- for (it = list->head, i = 0; it && it->data; it = it->n, i++)
- if (i == n) {
- if (!it->p && !it->n) {
- list->head = list->tai... |
remove draw_boot_background() | @@ -224,29 +224,6 @@ static Size font_size_for_resolution(Size resolution) {
return size;
}
-void draw_boot_background() {
- fill_screen(gfx_screen(), color_black());
- return;
- //this is static because it will be first alloc'd before heap is active
- //(almost immediately after boot)
- //because it's alloc'd with pla... |
Restored prior update to project.c that got overwritten | @@ -396,7 +396,7 @@ void freedata(Project *pr)
// Free memory for node data
if (pr->network.Node != NULL)
{
- for (j = 1; j <= pr->parser.MaxNodes; j++)
+ for (j = 1; j <= pr->parser.Nnodes; j++)
{
// Free memory used for demands and WQ source data
freedemands(&(pr->network.Node[j]));
@@ -409,7 +409,7 @@ void freedata(... |
path BUGFIX check for schema parent for relative paths | @@ -858,6 +858,13 @@ _ly_path_compile(const struct ly_ctx *ctx, const struct lys_module *cur_mod, con
++tok_idx;
} else {
/* relative path */
+ if (!ctx_node) {
+ LOGVAL(ctx, LYVE_XPATH, "No initial schema parent for a relative path.");
+ ret = LY_EVALID;
+ goto cleanup;
+ }
+
+ /* go up the parents for leafref */
whil... |
hdat/i2c: Fix SPD EEPROM compatible string
Hostboot doesn't give us accurate information about the DIMM SPD
devices. Hack around by assuming any EEPROM we find on the SPD I2C
master is an SPD eeprom. | @@ -259,7 +259,22 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
purpose = be32_to_cpu(dev->purpose);
type = map_type(dev->type);
label = map_label(purpose);
- if (type) {
+
+ /* HACK: Hostboot doesn't export the correct type information
+ * for the DIMM SPD EEPROMs. This is a problem because... |
try new style blas lib config | @@ -166,10 +166,8 @@ cd src
--with-lapack-libs="mkl_core mkl_intel_lp64 mkl_sequential" \
--with-lapack-lib-dirs=$MKLROOT/intel64/lib \
%else
- --with-blas-libs=openblas \
- --with-blas-lib-dirs=$OPENBLAS_LIB \
- --with-lapack-libs=openblas \
- --with-lapack-lib-dirs=$OPENBLAS_LIB \
+ --with-blas-lib="-L$OPENBLAS_LIB -... |
bricks/ev3dev/docker: add libi2c-dev
This is needed to compile i2c_smbus_* commands. | @@ -13,6 +13,7 @@ RUN sudo apt-get update && \
pkg-config \
python \
python3 \
+ libi2c-dev \
uthash-dev:armel
RUN apt-get download umockdev:armel && \
ar x umockdev*.deb data.tar.xz && \
|
Update Cmake file for ota ble demo | @@ -5,6 +5,11 @@ afr_set_demo_metadata(ID "OTA_MQTT_BLE_TRANSPORT_DEMO")
afr_set_demo_metadata(DESCRIPTION "An example that demonstrates OTA over BLE assisted by a companion device")
afr_set_demo_metadata(DISPLAY_NAME "OTA demo over BLE")
+# Add the CMakeLists.txt file of module to metadata list.
+afr_module_cmake_file... |
wifi_provisioning: Add check for WIFI_REASON_MIC_FAILURE error code in wifi_prov_mgr_event_handler_internal | @@ -871,6 +871,7 @@ static void wifi_prov_mgr_event_handler_internal(
case WIFI_REASON_AUTH_FAIL:
case WIFI_REASON_ASSOC_EXPIRE:
case WIFI_REASON_HANDSHAKE_TIMEOUT:
+ case WIFI_REASON_MIC_FAILURE:
ESP_LOGE(TAG, "STA Auth Error");
prov_ctx->wifi_disconnect_reason = WIFI_PROV_STA_AUTH_ERROR;
break;
|
BugID:16872423:[linkkit]remove kernel version num | @@ -449,7 +449,6 @@ long long HAL_UTC_Get(void)
int get_aos_hex_version(const char *str, unsigned char hex[VERSION_NUM_SIZE])
{
- // AOS-R-1.3.3.0
char *p = NULL;
char *q = NULL;
int i = 0;
|
fix for output object xforms not updating if the asset is a subnet | @@ -115,7 +115,10 @@ OutputGeometryObject::compute(
}
// compute transform
- if(myNodeInfo.totalCookCount > myLastCookCount)
+ // always compute, even if the totalCookCount has not changed:
+ // When an asset is an OBJ subnet, calling HAPI_CookNode() on the asset
+ // doesn't cause a cook on the OBJ nodes in the asset.... |
use methods in freebsd init file | @@ -18,8 +18,16 @@ kadnode_flags="--config /etc/kadnode/kadnode.conf --pidfile $pidfile --daemon"
required_files="/etc/kadnode/${name}.conf"
#add/remove kadnode from /etc/nsswitch.conf
-start_precmd="sed -i -e '/kadnode/!s/^\(hosts:.*\)dns\(.*\)/\1kadnode dns\2/' /etc/nsswitch.conf"
-stop_postcmd="sed -i -e 's/^\(hosts... |
Improved fix for title | @@ -135,8 +135,8 @@ public class DatafariUpdateProcessor extends UpdateRequestProcessor {
}
// Ensure a search-able title
- if (doc.getFieldValues("title_en") == null && doc.getFieldValues("title_fr") == null) {
final String language = (String) doc.getFieldValue("language");
+ if (doc.getFieldValues("title_" + language... |
Fix double-free in decoder_pkey.c
Fix for the issue The decoderctx has to be initialized in every
cycle as its constructor may not be called due to lazy evaluation of
the if-condition.
CLA: trivial | @@ -267,7 +267,6 @@ static void collect_decoder(OSSL_DECODER *decoder, void *arg)
size_t i, end_i;
const OSSL_PROVIDER *prov = OSSL_DECODER_provider(decoder);
void *provctx = OSSL_PROVIDER_get0_provider_ctx(prov);
- void *decoderctx = NULL;
if (data->error_occured)
return;
@@ -279,6 +278,7 @@ static void collect_decode... |
Test and fix typo for `fio2resp` | @@ -39,7 +39,7 @@ static int resp_fioformat_task(fiobj_s *obj, void *s_) {
/* use this opportunity to optimize memory allocation to page boundries */
fio_cstr_s s = fiobj_obj2cstr(str);
if (fiobj_str_capa(str) <= s.len + 128 + fiobj_obj2cstr(obj).len) {
- fiobj_str_resize(str, (((fiobj_str_capa(str) >> 12) + 1) << 12))... |
baseboard/asurada/baseboard.h: Format with clang-format
BRANCH=none
TEST=none | /* And the MKBP events */
#define CONFIG_MKBP_EVENT_WAKEUP_MASK \
- (BIT(EC_MKBP_EVENT_KEY_MATRIX) | \
- BIT(EC_MKBP_EVENT_HOST_EVENT))
+ (BIT(EC_MKBP_EVENT_KEY_MATRIX) | BIT(EC_MKBP_EVENT_HOST_EVENT))
#include "baseboard_common.h"
|
Fix spurious removal of a trailing character from the hostarch string on x86_64 | # Checking cross compile
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
-$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
+$hostarch = `uname -m | sed -e s/i.86/x86/`;
$hostarch = `uname -p` if ($hostos eq "AIX" || $hostos eq "SunOS");
chop($hostarch);
$hostarch = "x86_64" if ($hostarch eq "amd64");... |
build/config/rtl8721csm: Enable BCH for kernel binary update
The kernel binary is updated with ftl, BCH driver(Block-to-Character) to access flash.
So enable BCH driver for kernel binary update. | @@ -415,7 +415,7 @@ CONFIG_GPIO=y
# LCD Driver Support
#
# CONFIG_LCD is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
# CONFIG_RTC is not set
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_DEVPATH="/dev/watchdog0"
|
Refactor pre-checks of request data block to a function | @@ -726,6 +726,45 @@ OTA_FUNCTION_NO_CLEANUP();
return status;
}
+/* Performs some pre-checks before requesting a new block. */
+static _httpErr _requestDataBlockPreCheck()
+{
+ _httpErr status = OTA_HTTP_ERR_GENERIC;
+
+ /* Reconnect to the HTTP server if we detect an error when processing the response and a reconnect... |
exit(EXIT_FAILURE) if errorcount != 0 | @@ -462,6 +462,10 @@ if(poweroffflag == true)
if(system("poweroff") != 0)
printf("can't power off\n");
}
+if(errorcount != 0)
+ {
+ exit(EXIT_FAILURE);
+ }
exit(EXIT_SUCCESS);
}
/*===========================================================================*/
|
Travis: Install Boost in Linux build | @@ -82,6 +82,7 @@ before_install:
sudo apt-get -qq update
sudo apt-get install clang-format-3.8
sudo apt-get install ninja-build
+ sudo apt-get install libboost-all-dev
sudo apt-get install libyaml-cpp-dev
fi
|
wpa_supplicant: remove stray \n when logging "wifi_wps_enable"
Closes | @@ -1841,7 +1841,7 @@ int wifi_wps_enable_internal(const esp_wps_config_t *config)
return ret;
}
- wpa_printf(MSG_INFO, "wifi_wps_enable\n");
+ wpa_printf(MSG_INFO, "wifi_wps_enable");
wps_set_type(config->wps_type);
wps_set_status(WPS_STATUS_DISABLE);
|
Retry installing test depedencies to avoid network timeouts | @@ -85,7 +85,7 @@ before_install:
- source .travis/s2n_setup_env.sh
install:
- - .travis/s2n_install_test_dependencies.sh
+ - travis_retry .travis/s2n_install_test_dependencies.sh
script:
- .travis/s2n_travis_build.sh
|
Add PhGetThreadTimes | @@ -966,7 +966,7 @@ PhGetThreadBreakOnTermination(
FORCEINLINE
NTSTATUS
PhSetThreadBreakOnTermination(
- _In_ HANDLE ProcessHandle,
+ _In_ HANDLE ThreadHandle,
_In_ BOOLEAN BreakOnTermination
)
{
@@ -975,13 +975,36 @@ PhSetThreadBreakOnTermination(
breakOnTermination = BreakOnTermination ? 1 : 0;
return NtSetInformatio... |
[awm2] Always push extra draws to video memory | @@ -555,23 +555,20 @@ impl Desktop {
// Now blit the screen buffer to the backing video memory
// Follow the same steps as above to only copy what's changed
// And empty queues as we go
- //
+ let buffer = &mut *self.screen_buffer_layer.get_slice(self.desktop_frame);
+ let vmem = &mut *self.video_memory_layer.get_slice... |
docket: write docket-0 to disk on-glob-upload | ^- (list card)
=- [%pass /write/[desk] %arvo %c %info -]~
%+ foal:space:userlib
- /(scot %p our.bowl)/[desk]/(scot %da now.bowl)/desk/docket
+ /(scot %p our.bowl)/[desk]/(scot %da now.bowl)/desk/docket-0
%- docket:cg
docket.charge(glob-reference.href [(hash-glob glob) %ames our.bowl])
==
|
snmp: stop redefining typedef
Redefinition of a typedef is a C11 feature.
These typedefs are identical, so remove one
of them. | * This group contains all the functions that can be used outside the OS level.
*/
-/**
- * @brief The MIB resource handler typedef
- *
- * @param varbind The varbind that is being changed
- * @param oid The oid from the resource
- */
-typedef void (*snmp_mib_resource_handler_t)(snmp_varbind_t *varbind, snmp_oid_t *oid)... |
Adapt 80-test_ssl_old.t to use statusvar | @@ -424,11 +424,17 @@ sub testssl {
push @protocols, "-ssl3" unless $no_ssl3;
my $protocolciphersuitecount = 0;
my %ciphersuites = ();
+ my %ciphersstatus = ();
foreach my $protocol (@protocols) {
- $ciphersuites{$protocol} =
- [ map { s|\R||; split(/:/, $_) }
- run(app(["openssl", "ciphers", "-s", $protocol,
- "ALL:$c... |
Remove old CMake 3.8.0 branches. | @@ -950,28 +950,20 @@ function (tinyspline_add_swig_library)
"TARGET;LANG;OUTPUT;LIBS;NAME"
"SWIG_ARGS;FLAGS"
${ARGN})
- if(TINYSPLINE_FLOAT_PRECISION)
- list(APPEND TINYSPLINE_SWIG_DEFINES
- -DTINYSPLINE_FLOAT_PRECISION)
- endif()
set_source_files_properties("swig/${ARGS_TARGET}.i"
PROPERTIES CPLUSPLUS ON)
- set(CMAKE... |
ip: fix compiling error with gcc-10
Building VPP using gcc-10 fails because of the array bounds check
error for function ip4_header_checksum(), with option field in IPv4
header exceeding the ip4_header_t bound. Fix this error by turning
off the array bounds check option for function ip4_header_checksum().
Type: fix | #include <vnet/ip/ip_packet.h> /* for ip_csum_t */
#include <vnet/tcp/tcp_packet.h> /* for tcp_header_t */
#include <vppinfra/byte_order.h> /* for clib_net_to_host_u16 */
+#include <vppinfra/warnings.h> /* for WARN_OFF/WARN_ON macro */
/* IP4 address which can be accessed either as 4 bytes
or as a 32-bit number. */
@@ ... |
Remove gptransfer test case for sequence migration with `--full`option
if the gptransfer with --full option, it should ensure the spcified
database is not existed in the destination cluster. it isn't guaranteed,
so we decide to remove this case | @@ -1373,17 +1373,6 @@ Feature: gptransfer tests
And verify that table "test_sequence" in "gptransfer_testdb6" has "100" rows
And verify that sequence "test_sequence_id_seq" last value is "101" in database "gptransfer_testdb6"
- Scenario: gptransfer table that includes implicit sequence with --full option
- Given the g... |
fix vs_runtime not passed to conan package | @@ -207,9 +207,9 @@ function main(name, opt)
table.insert(argv, "compiler=Visual Studio")
table.insert(argv, "-s")
table.insert(argv, "compiler.version=" .. assert(vsvers[vs], "unknown msvc version!"))
- if opt.vs_runtime then
+ if configs.vs_runtime then
table.insert(argv, "-s")
- table.insert(argv, "compiler.runtime=... |
Fixed background live reload | @@ -8,7 +8,7 @@ const TILE_SIZE = 8;
const globAsync = promisify(glob);
const sizeOfAsync = promisify(sizeOf);
-const loadImageData = async filename => {
+const loadBackgroundData = async filename => {
const size = await sizeOfAsync(filename);
const relativePath = filename.replace(/.*assets\/backgrounds\//, "");
return... |
Fix colour palette hex check case sensitivity | @@ -47,7 +47,7 @@ const hexToGBCHex = hex => {
/* GBC representative Hex value => Closest matching 24-bit hex value => */
const GBCHexToClosestHex = hex => {
- if(hex === "ff0000") return hex; // otherwise comes back as 31,3,0
+ if(hex.toLowerCase() === "ff0000") return hex; // otherwise comes back as 31,3,0
const r = ... |
dbz2: add -lbz2 to Makefile
Add the link to bz2 lib to Makefile, otherwise the build may fail of
undefined function reference:
dbz2-common_dbz2.o: In function `DBz2_Dequeue':
../experimental/dbz2/common_dbz2.c:44: undefined reference to `BZ2_bzBuffToBuffCompress'
dbz2-common_dbz2.o: In function `DBz2_decompDequeue':
..... | @@ -6,4 +6,4 @@ noinst_HEADERS = dbz2.h
dbz2_SOURCES = dbz2.c common_dbz2.c dbz2_func.c
dbz2_CPPFLAGS = -I../../src/common/ $(MPI_CFLAGS) $(libcircle_CFLAGS) $(libarchive_CFLAGS)
dbz2_LDFLAGS = $(MPI_CLDFLAGS)
-dbz2_LDADD = ../../src/common/libmfu.la $(MPI_CLDFLAGS) $(libcircle_LIBS) $(libarchive_LIBS)
+dbz2_LDADD = ..... |
ctrl_params_translate: Fix leak of BN_CTX
Also add a missing allocation failure check.
Fixes | @@ -1595,10 +1595,13 @@ static int get_payload_public_key(enum state state,
const EC_GROUP *ecg = EC_KEY_get0_group(eckey);
const EC_POINT *point = EC_KEY_get0_public_key(eckey);
+ if (bnctx == NULL)
+ return 0;
ctx->sz = EC_POINT_point2buf(ecg, point,
POINT_CONVERSION_COMPRESSED,
&buf, bnctx);
ctx->p2 = buf;
+ BN_CTX_... |
Allow users to have separate autoexec.lua in their own folder | @@ -396,8 +396,18 @@ void Scripting::Initialize()
Overlay::Get().Log(oss.str());
};
+
+ // execute autoexec.lua inside our default script directory
+ std::filesystem::path defPath = Options::Get().Path / "scripts";
+ std::filesystem::current_path(defPath);
+ m_lua.do_file("autoexec.lua");
+
+ // execute autoexec.lua in... |
s390x assembly pack: allow specifying the tag after aad in aes-ccm
forgot about s390x | @@ -2264,9 +2264,6 @@ static int s390x_aes_ccm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
if (!cctx->aes.ccm.iv_set)
return -1;
- if (!enc && !cctx->aes.ccm.tag_set)
- return -1;
-
if (out == NULL) {
/* Update(): Pass message length. */
if (in == NULL) {
@@ -2285,6 +2282,10 @@ static int s390x_aes_ccm_cipher(EVP_C... |
Fix for custom field types in Solr | @@ -33,8 +33,8 @@ sendCommand "${value}" $2
}
+processFile custom_fieldTypes.incl field-type
processFile custom_fields.incl field
processFile custom_dynamicFields.incl dynamic-field
processFile custom_copyFields.incl copy-field
-processFile custom_fieldTypes.incl field-type
echo done
|
Fix FIXME in is_dummy_plan_walker() and also refactor the code a bit.
For LockRows node, if its outer plan is dummy then there will be no
row for locking and thus it could be dummy. | @@ -3309,22 +3309,6 @@ is_dummy_plan_walker(Node *node, bool *context)
switch (nodeTag(node))
{
- case T_LockRows:
-
- /*
- * GPDB_94_MERGE_FIXME
- * If the LockRow node is a dummy plan, then we should think of it
- * as a dummy plan. Is this assumption correct?
- */
- {
- if (is_dummy_plan(outerPlan(node)))
- {
- *con... |
Update table of content of the documentation | - [Customise the daemon resource requirements](#customise-the-daemon-resource-requirements)
- [Restrict the allowed syscalls in seccomp profiles](#restrict-the-allowed-syscalls-in-seccomp-profiles)
- [Constrain spod scheduling](#constrain-spod-scheduling)
+- [Enable memory optimization in spod](#enable-memory-optimizat... |
recover.sh: dont fail if panda already in DFU mode | @@ -5,7 +5,7 @@ DFU_UTIL="dfu-util"
scons -u
-PYTHONPATH=.. python3 -c "from python import Panda; Panda().reset(enter_bootstub=True); Panda().reset(enter_bootloader=True)"
+PYTHONPATH=.. python3 -c "from python import Panda; Panda().reset(enter_bootstub=True); Panda().reset(enter_bootloader=True)" || true
sleep 1
$DFU_... |
revert mmio.vhd back to master version | @@ -31,8 +31,8 @@ USE work.donut_types.all;
ENTITY mmio IS
GENERIC (
-- Version register content
- IMP_VERSION_DAT : std_ulogic_vector(63 DOWNTO 0) := x"0006_0109_A476_F5E0";
- BUILD_DATE_DAT : std_ulogic_vector(63 DOWNTO 0) := x"0000_2017_0123_0756";
+ IMP_VERSION_DAT : std_ulogic_vector(63 DOWNTO 0) := x"00VV_VVVV_SS... |
fast-reboot: occ: Only delete /ibm, opal/power-mgt nodes if they exist
Fixes: ("fast-reboot: occ: Delete OCC child nodes in /ibm, opal/power-mgt")
Fixes: CID 263053 | @@ -1696,6 +1696,7 @@ void occ_pstates_init(void)
};
power_mgt = dt_find_by_path(dt_root, "/ibm,opal/power-mgt");
+ if (power_mgt) {
for (i = 0; i < ARRAY_SIZE(props); i++)
dt_check_del_prop(power_mgt, props[i]);
@@ -1703,6 +1704,7 @@ void occ_pstates_init(void)
if (!strncmp(child->name, "occ", 3))
dt_free(child);
}
+ ... |
Add notarization requirement on macOS node | @@ -162,7 +162,7 @@ pipeline {
/* Build for macOS on x86-64 using Clang */
stage('macOS') {
agent {
- label 'mac && x86_64'
+ label 'mac && x86_64 && notarizer'
}
stages {
stage('Clean') {
@@ -180,7 +180,10 @@ pipeline {
'''
}
}
- stage('Sign') {
+ stage('Sign and notarize') {
+ environment {
+ NOTARIZATION_CREDS = cre... |
ames: do not use old lanes during stateful forward
As but for the stateful code path in +send-blob. | ?: for
event-core
(try-next-sponsor sponsor.peer-state)
+ :: if forwarding, route must not be stale
+ ::
+ ?: &(for (lth last-contact.qos.peer-state (add now ~h1)))
+ (try-next-sponsor sponsor.peer-state)
::
?~ route=route.peer-state
%- (trace rot.veb final-ship |.("no route to: {<ship>}"))
|
Add some more artifacts to automate release. | @@ -35,6 +35,15 @@ only_commits:
- src/
artifacts:
+ - name: janet.c
+ path: dist\janet.c
+ type: File
+ - name: janet.h
+ path: dist\janet.h
+ type: File
+ - name: janetconf.h
+ path: dist\janetconf.h
+ type: File
- name: "janet-$(appveyor_repo_tag_name)-windows"
path: dist
type: Zip
|
Export PhSipGetMemoryCompressionLimits | @@ -378,6 +378,13 @@ BOOLEAN PhSipGetMemoryLimits(
_Out_ PULONGLONG ReservedMemory
);
+_Success_(return)
+BOOLEAN PhSipGetMemoryCompressionLimits(
+ _Out_ DOUBLE *CurrentCompressedMemory,
+ _Out_ DOUBLE *TotalCompressedMemory,
+ _Out_ DOUBLE *TotalSavedMemory
+ );
+
// I/O section
BOOLEAN PhSipIoSectionCallback(
|
pyocf: fix error volume stats reset | @@ -466,6 +466,7 @@ class ErrorDevice(Volume):
def reset_stats(self):
self.vol.reset_stats()
super().reset_stats()
+ self.stats["errors"] = {IoDir.WRITE: 0, IoDir.READ: 0}
def get_length(self):
return self.vol.get_length()
|
Bundle allocator; | @@ -155,6 +155,7 @@ static void* tempAlloc(size_t size);
static void beginFrame(void);
static gpu_stream* getTransfers(void);
static uint32_t getLayout(gpu_slot* slots, uint32_t count);
+static gpu_bundle* getBundle(uint32_t layout);
static gpu_texture* getAttachment(uint32_t size[2], uint32_t layers, TextureFormat for... |
having different connection IDs in a same segment is not always error
Especially if it contains the path_challenge frame... | @@ -1273,10 +1273,13 @@ int picoquic_incoming_segment(
if (picoquic_is_connection_id_null(*previous_dest_id)) {
*previous_dest_id = ph.dest_cnx_id;
}
+ /* This is commented out because with multipath, we can have coalescing of several destination IDs without having issues... */
+ /*
else if (picoquic_compare_connection... |
out_es: remove unused value (CID 161620) | @@ -179,7 +179,6 @@ static char *elasticsearch_format(void *data, size_t bytes, int *out_size,
msgpack_unpacked_init(&result);
if (ctx->logstash_format == FLB_TRUE) {
- len = ctx->logstash_prefix_len;
memcpy(logstash_index, ctx->logstash_prefix, ctx->logstash_prefix_len);
}
else {
|
minor fix to man page generation script | @@ -928,7 +928,7 @@ The function returns **EINVAL** error in case the list is malformed or if it con
errs['EMFILE'] = "The maximum number of file descriptors in the process are already open."
errs['ENFILE'] = "The maximum number of file descriptors in the system are already open."
}
- if(fx.has_einval) {
+ if(fx.has_ei... |
Add a missing newline to a verbosePrint | @@ -400,7 +400,7 @@ static int32_t computeRPNExpr(struct Patch const *patch,
void patch_CheckAssertions(struct Assertion *assert)
{
- verbosePrint("Checking assertions...");
+ verbosePrint("Checking assertions...\n");
initRPNStack();
while (assert) {
|
proxy: go: fix return value validation | @@ -107,13 +107,14 @@ int proxy_go_init(struct flb_plugin_proxy *proxy)
plugin->o_ins = proxy->instance;
ret = plugin->cb_init(plugin);
- if (ret == -1) {
- fprintf(stderr, "[go proxy]: plugin failed to initialize\n");
+ if (ret <= 0) {
+ flb_error("[go proxy]: plugin '%s' failed to initialize",
+ plugin->name);
flb_fr... |
metadata-store: migrate %contacts to %groups in app-name | |= m=md-resource-1
^- (unit md-resource:store)
%+ bind (de-path-soft:resource path.m)
- |=(rid=resource [app-name.m rid])
+ |= rid=resource
+ :_ rid
+ ?: =(%contacts app-name.m) %groups
+ app-name.m
::
++ metadata-1-to-2
|= m=metadata-1
|
doc: update doc version menu
Update the /latest/ (master) version of the docs to provide the menu
choice for the v1.1 release. | @@ -189,11 +189,10 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("1.1", "/1.1/"),
("1.0", "/1.0/"),
("0.8", "/0.8/"),
("0.7", "/0.7/"),
- ("0.6", "/0.6/"),
- ("0.5", "/0.5/"),
)
}
|
HLS intersect: Minor changes ID= 0x10141005 | @@ -57,7 +57,7 @@ static int mmio_read32(void *_card, uint64_t offs, uint32_t *data)
// Intersect functions
//////////////////////////////////////////////////////////////////
-inline void copyvalue(value_t dst, value_t src)
+void copyvalue(value_t dst, value_t src)
{
size_t i;
for(i = 0 ; i < sizeof(value_t); i++)
@@ -... |
Maybe this would work with VC++
Our threadwrapper does not support PTHREAD_MUTEX_INITIALIZER, apparently
that's a toughie to implement on Windows or something, dunno. Use
dynamic initialization instead, then. | #define RD_SAMPLING_MAX_LAST_QP 50
static FILE *fastrd_learning_outfile[RD_SAMPLING_MAX_LAST_QP + 1] = {NULL};
-static pthread_mutex_t outfile_mutex[RD_SAMPLING_MAX_LAST_QP + 1] = {PTHREAD_MUTEX_INITIALIZER};
+static pthread_mutex_t outfile_mutex[RD_SAMPLING_MAX_LAST_QP + 1];
const uint32_t kvz_g_go_rice_range[5] = { 7... |
arch/imxrt: fix typos, SDRAM->SRAM
There are three parts of heap allocation, ocram, sdram and sram.
Last part is sram, not sdram.
But it is covered with SDRAM config and SDRAM definition.
This commit fixs these typos. | #define REGION1_RAM_START (CONFIG_IMXRT_SDRAM_START + CONFIG_IMXRT_SDRAM_HEAPOFFSET)
#define REGION1_RAM_SIZE (CONFIG_IMXRT_SDRAM_SIZE - CONFIG_IMXRT_SDRAM_HEAPOFFSET)
#define IMXRT_SDRAM_ASSIGNED 1
-#elif defined(CONFIG_IMXRT_SDRAM_HEAP) && !defined(IMXRT_SDRAM_ASSIGNED)
+#elif defined(CONFIG_IMXRT_SRAM_HEAP) && !defi... |
omxplayer: Add dependency on coreutils-native
Internal ffmpeg configure uses pr which is provided by coreutils-native:
| ./configure: line 471: pr: command not found | @@ -7,7 +7,7 @@ SECTION = "console/utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba libssh libomxil"
+DEPENDS = "libpcre libav virtual/egl boost freetype dbus openssl samba libssh libomxil coreutils-... |
First attempt to fix Progress Bar
Hopefully this should work :^) (only if Process > 0) | @@ -266,14 +266,15 @@ class Osr2mp4:
try:
info = fileopen.read().split("\n")
framecount = int(info[0])
- deltatime = float(info[1])
- filename = info[2]
- starttime = float(info[3])
+ #deltatime = float(info[1])
+ #filename = info[2]
+ #starttime = float(info[3])
- curdeltatime = time.time() - starttime
- estimated_cur... |
BugID:16967023:[system] add CONFIG_GUIDER_DUMP_SECRET to control signature dumping | #define CONFIG_GUIDER_AUTH_TIMEOUT (10 * 1000)
#endif
+#ifndef CONFIG_GUIDER_DUMP_SECRET
+ #define CONFIG_GUIDER_DUMP_SECRET (0)
+#endif
+
const char *secmode_str[] = {
"TCP + Guider + Plain",
"TCP + Guider + ID2-Crypto",
@@ -284,7 +288,7 @@ void guider_print_conn_info(iotx_conn_info_pt conn)
sys_info("%s", "----------... |
Re-Enable Pubkey verification | @@ -2302,8 +2302,8 @@ bool CheckSig(vector<unsigned char> vchSig, const vector<unsigned char> &vchPubK
if (signatureCache.Get(sighash, vchSig, pubkey))
return true;
- //if (!pubkey.Verify(sighash, vchSig))
- //return false;
+ if (!pubkey.Verify(sighash, vchSig))
+ return false;
CKey key;
if (!key.SetPubKey(pubkey))
|
mock: set char dev mode when path rooted at /dev
Make sure that statbuf->st_mode has S_IFCHR set when the path is
rooted at /dev. | @@ -646,12 +646,34 @@ ssize_t test_system::readlink(const char *path, char *buf, size_t bufsize) {
int test_system::xstat(int ver, const char *path, struct stat *buf) {
std::string syspath = get_sysfs_path(path);
- return xstat_(ver, syspath.c_str(), buf);
+ int res = xstat_(ver, syspath.c_str(), buf);
+
+ if (!res && ... |
Provide RNG for __native_client__ as suggested by Taylor Brandstetter.
Fail compilation on all platforms we don't have a specific RNG for. | @@ -258,42 +258,26 @@ finish_random(void)
{
return;
}
-#else
-#include <stdlib.h>
-#include <unistd.h>
+#elif defined(__native_client__)
+#include <nacl/nacl_random.h>
void
init_random(void)
{
- struct timeval now;
- unsigned int seed;
-
- (void)SCTP_GETTIME_TIMEVAL(&now);
- seed = 0;
- seed |= (unsigned int)now.tv_sec... |
hfuzz-cc: use euid-specific libhfuzz.a path | #define ARGS_MAX 4096
#define __XSTR(x) #x
#define _XSTR(x) __XSTR(x)
-#define LHFUZZ_A_PATH "/tmp/libhfuzz.a"
+
+static char lhfuzzPath[PATH_MAX] = { 0 };
static bool isCXX = false;
static bool isGCC = false;
@@ -177,6 +178,10 @@ static void commonOpts(int *j, char **args)
static bool getLibHfuzz(void)
{
+ if (lhfuzzP... |
net/lora/node/src/lora_node.c: crash fix
LoRaMac node crashed on calling a callback whose adress was taken
from the stack and was random, as the structure passed to LoRaMac
was a local variable from the calling function. This sitiuation
occured each time the device processed the DevStatusReq MAC
command. | @@ -58,6 +58,11 @@ uint8_t g_lora_app_key[LORA_KEY_LEN];
/* Flag to denote if we last sent a mac command */
uint8_t g_lora_node_last_tx_mac_cmd;
+/* Used for LoRaMacInitialization(); */
+#if !MYNEWT_VAL(LORA_NODE_CLI)
+ LoRaMacCallback_t lora_cb;
+#endif
+
/* MAC task */
#define LORA_MAC_STACK_SIZE (256)
struct os_task... |
Use "tile" instead of "core" to assign freq's | @@ -193,7 +193,7 @@ class WithTLBackingMemory extends Config((site, here, up) => {
case ExtTLMem => up(ExtMem, site) // enable TL backing memory
})
-class WithTileFrequency(fMHz: Double) extends ClockNameContainsAssignment("core", fMHz)
+class WithTileFrequency(fMHz: Double) extends ClockNameContainsAssignment("tile", ... |
chip/it83xx/lpc.c: Format with clang-format
BRANCH=none
TEST=none | @@ -195,15 +195,13 @@ static void lpc_send_response(struct host_cmd_handler_args *args)
}
/* New-style response */
- lpc_host_args->flags =
- (host_cmd_flags & ~EC_HOST_ARGS_FLAG_FROM_HOST) |
+ lpc_host_args->flags = (host_cmd_flags & ~EC_HOST_ARGS_FLAG_FROM_HOST) |
EC_HOST_ARGS_FLAG_TO_HOST;
lpc_host_args->data_size =... |
Update README.md
Add note for windows and mac binaries with release v1.3.0 | @@ -25,8 +25,9 @@ Two different transport layers are used:
## Installation
-Currently there are no binaries for Windows available (see issue [#166](https://github.com/texane/stlink/issues/166)).
- It is known to compile and work with MinGW(64)/Cygwin environment. Building with Visual Studio is not supported because the... |
docker: use python 3.7 on debian sid | @@ -49,9 +49,9 @@ RUN apt-get update && apt-get -y install \
ninja-build \
npm \
pkg-config \
- python3-dev \
- python3-pip \
- python3-dev \
+ python3.7-dev \
+ python3.7-pip \
+ python3.7-dev \
ronn \
ruby2.5-dev \
sloccount \
|
Replace loop with memcpy in FIFO | @@ -74,35 +74,26 @@ public:
if(flags & OVERWRITE_OLD)
{
- int dropElements = ceil(((float)samplesCount-samplesTaken)/mBuffer[mTail].maxSamplesInPacket);
- if(dropElements == 0)
- dropElements = 1;
+ int dropElements = 1+(samplesCount-samplesTaken)/SamplesPacket::maxSamplesInPacket;
mHead = (mHead + dropElements) & (mBu... |
alpha: support 0-255 value scheme | @@ -809,6 +809,11 @@ xloadcols(void)
/* set alpha value of bg color */
if (opt_alpha)
alpha = strtof(opt_alpha, NULL);
+
+ /* xst: if alpha value is above 1.0, assume it's a number in the 255 range, normalize it */
+ if (alpha > 1.0)
+ alpha = alpha / 255;
+
dc.col[defaultbg].color.alpha = (unsigned short)(0xffff * alp... |
Collapse long lines. | @@ -12,9 +12,11 @@ import requests
import argparse
import base64
-logging.basicConfig(level=logging.WARNING,
+logging.basicConfig(
+ level=logging.WARNING,
format='%(levelname)s %(funcName)s %(lineno)s - %(message)s',
- stream=sys.stderr)
+ stream=sys.stderr,
+)
logging.debug(['sys.argv', sys.argv])
@@ -41,7 +43,8 @@ d... |
android/Android.mk: remove -Wframe-larger-than | @@ -137,7 +137,7 @@ COMMON_CFLAGS := -std=c11 \
-Wall -Wextra -Wno-initializer-overrides -Wno-override-init \
-Wno-atomic-alignment -Wno-unknown-warning-option \
-Werror -funroll-loops -O2 \
- -Wframe-larger-than=1048576 -Wno-format-truncation \
+ -Wno-format-truncation \
ifneq (,$(findstring clang,$(NDK_TOOLCHAIN)))
C... |
Remove permitting of 8 byte nonce with PolyChaCha
Also unify nonce length checking | @@ -247,6 +247,21 @@ static psa_status_t psa_aead_unpadded_locate_tag( size_t tag_length,
return( PSA_SUCCESS );
}
+static psa_status_t mbedtls_aead_check_nonce_length(
+ mbedtls_psa_aead_operation_t *operation,
+ size_t nonce_length )
+{
+#if defined(MBEDTLS_PSA_BUILTIN_ALG_CHACHA20_POLY1305)
+ if( operation->alg == P... |
extmod/modbtree: Make FILEVTABLE const to put it in ROM. | @@ -320,7 +320,7 @@ STATIC const mp_obj_type_t btree_type = {
.locals_dict = (void*)&btree_locals_dict,
};
-STATIC FILEVTABLE btree_stream_fvtable = {
+STATIC const FILEVTABLE btree_stream_fvtable = {
mp_stream_posix_read,
mp_stream_posix_write,
mp_stream_posix_lseek,
|
docs/HowToSetEnv.md: fix wrong path of installing Kconfig-frontend link
HowtoSetEnv.md and HowtoInstallKconfigFrontend.md are
in same directory depth, docs folder so that link should not have
"docs/" in a link. | @@ -39,7 +39,7 @@ cd ..
make menuconfig
```
-Refer [kconfig-frontend installation](docs/HowtoInstallKconfigFrontend.md) to use *menuconfig*.
+Refer [kconfig-frontend installation](HowtoInstallKconfigFrontend.md) to use *menuconfig*.
Finally, initiate build by make from *$TIZENRT_BASEDIR/os*.
```bash
|
mesh: Remove unused define | @@ -243,7 +243,6 @@ void net_buf_reserve(struct os_mbuf *om, size_t reserve);
#define net_buf_add_be16(a, b) net_buf_simple_add_be16(a, b)
#define BT_GATT_CCC_NOTIFY BLE_GATT_CHR_PROP_NOTIFY
-#define bt_gatt_attr ble_gatt_attr
/** Description of different data types that can be encoded into
* advertising data. Used to ... |
Move Redis support to the CMake lib list | @@ -5,13 +5,13 @@ OUT_ROOT=tmp
# All object files will be placed in this folder
TMP_ROOT=tmp
# The none library .c file(s) (i.e., the one with `int main(void)`.
-MAIN_ROOT=./dev ./lib/redis
+MAIN_ROOT=./dev
# any allowed subfolders in the main root
MAIN_SUBFOLDERS=http
# the .c and .cpp source files root folder - subfo... |
defers :acme initialization to first certificate order | ++ prep
|= old=(unit acme)
^- (quip move _this)
- ?^ old
- [~ this(+<+ u.old)]
- ?: ?=(?(%earl %pawn) (clan:title our.bow))
+ ?~ old
[~ this]
- abet:init
+ [~ this(+<+ u.old)]
::
++ rekey :: XX do something about this
|= eny=@
++ add-order
|= dom=(set turf)
^+ this
+ ?: ?=(?(%earl %pawn) (clan:title our.bow))
+ this
+ ... |
Fixed TERRAIN typedefs not being loaded correctly from scripts | @@ -3818,7 +3818,7 @@ bool CItemTypeDef::r_LoadVal(CScript &s)
if ( iVal < 0 )
return false;
- if ( static_cast<size_t>(iVal) < iLo ) // swap
+ if ( (iVal > 0) && (static_cast<size_t>(iVal) < iLo) ) // swap
{
int iTemp = iLo;
iLo = iVal;
|
Add debug info for find nodejs headers. | @@ -171,8 +171,6 @@ if(NODEJS_INCLUDE_DIR)
endforeach()
endif()
-message(STATUS "NodeJS include dir: ${NODEJS_INCLUDE_DIR}")
-
# TODO: Remove this workaround when NodeJS begins to distribute node as a shared library (maybe never?) with proper includes
if(NOT NODEJS_INCLUDE_DIR)
if(NOT NODEJS_VERSION)
@@ -200,6 +198,8 @... |
errant newline | @@ -801,8 +801,7 @@ createInternalLogEvent(int fd, const char *path, const void *buf, size_t count,
memcpy(data, buf, count);
struct timeval tv;
- gettimeofday
- (&tv, NULL);
+ gettimeofday(&tv, NULL);
event->fd = fd;
event->id.uid = uid;
event->id.timestamp = tv.tv_sec + tv.tv_usec/1e6;
|
Update macOS installer | @@ -11,8 +11,8 @@ import os
os.environ["COLUMNS"] = "100" # Sets terminal's horizontal size
if version[0] > "2":
- args = input("pip ") # Asks for arguments
-else:
+ raw_input = input
+
args = raw_input("pip ") # Asks for arguments
main(args.split(" ")) # Runs pip with typed arguments
|
scope flows dash fixes | @@ -63,10 +63,11 @@ func init() {
func readMetrics(workDir string, w *widgets) {
metricsPath := filepath.Join(workDir, "metrics.json")
+ metricsDestPath := filepath.Join(workDir, "metric_dest")
file, err := os.Open(metricsPath)
if err != nil && strings.Contains(err.Error(), "metrics.json: no such file or directory") {
... |
parallel-libs/boost: bump to v1.73.0 | Summary: Boost free peer-reviewed portable C++ source libraries
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.71.0
+Version: 1.73.0
-%define version_exp 1_71_0
+%define version_exp 1_73_0
Release: 1%{?dist}
License: BSL-1.0
|
Log unauthorized address | @@ -153,7 +153,7 @@ namespace Miningcore.Blockchain.Bitcoin
await connection.RespondErrorAsync(StratumError.UnauthorizedWorker, "Authorization failed", request.Id, context.IsAuthorized);
// issue short-time ban if unauthorized to prevent DDos on daemon (validateaddress RPC)
- logger.Info(() => $"[{connection.Connection... |
gui: fix polling, hopefully | @@ -341,19 +341,17 @@ static int hammergui_setup(void)
sys_gui("global hammergui_wh\n");
sys_gui("if {$hammergui_ispolling > 0} {\n");
//mode0 and 1
- sys_gui("if {$hammergui_ispolling <= 2} {\n");
sys_gui("set px [winfo pointerx .]\n");
sys_gui("set py [winfo pointery .]\n");
+ sys_gui("if {$hammergui_ispolling <= 2} ... |
enforces order of operations to prevent overflow
also implicitly casts the division to a float in case
alarm_internal_frequency() returns a non-divisable number.
Cast back to uint32_t before setting the interval | @@ -128,7 +128,7 @@ uint32_t alarm_read(void) {
// Timer implementation
void timer_in(uint32_t ms, subscribe_cb cb, void* ud, tock_timer_t *timer) {
- uint32_t interval = ms * alarm_internal_frequency() / 1000;
+ uint32_t interval = (uint32_t)(ms * (alarm_internal_frequency() / 1000.0));
uint32_t now = alarm_read();
ui... |
Add "CMSIS-DAP" to product name for compatibility
Some tools (including some versions of MDK) require "CMSIS-DAP" to be present in product name. This has been an issue since DAPLink added support for bulk interface (DAPv2) in v0254. | #include "target_board.h"
#if !defined(CMSIS_DAP_PRODUCT_NAME)
-#define CMSIS_DAP_PRODUCT_NAME "DAPLink"
+#define CMSIS_DAP_PRODUCT_NAME "DAPLink CMSIS-DAP"
#endif
//! Maximum output buffer length of all these functions.
|
cbor: allow uint/nint for float values | @@ -377,7 +377,7 @@ float _cbor_decode_half_float(uint32_t half) {
return half & 0x8000 ? -val : val;
}
-cbor_result_t cbor_decode_float(cbor_value_t *dec, float *val) {
+cbor_result_t _cbor_decode_float(cbor_value_t *dec, float *val) {
cbor_result_t res = _cbor_decode_ensure_type(dec, CBOR_TYPE_FLOAT);
if (res < CBOR_... |
add PACSign to RPM spec file | @@ -83,6 +83,13 @@ Group: opae admin
%description opae.admin
This package contains OPAE admin tools
+%package PACSign
+Summary: PACSign tools package
+Group: opae PACSign
+
+%description PACSign
+This package contains PAC Sign tools
+
# This is a shortcutted spec file generatCed by CMake RPM generator
# we skip _instal... |
Switch to simple WASI for Alpine | @@ -53,7 +53,7 @@ jobs:
run: |
mkdir build
cd build
- cmake ..
+ cmake -DBUILD_WASI=simple .. # TODO switch to uvwasi
- name: Build
run: cmake --build build
- name: Test WebAssembly spec
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.