message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
replaced UBUNTU by Debian based distributions | @@ -34,18 +34,9 @@ make
make install (as super user)
```
-## Ubuntu 18.04
+## Debian based distributions:
-For Ubuntu to compile you need to do the following before running `make`:
-
-Add the following to the beginning of `hcxpcapngtool.c`:
-
-```
-#define __STDC_FORMAT_MACROS
-#include <inttypes.h>
-```
-
-Install mis... |
Another update to a README. | @@ -202,15 +202,17 @@ Issues:
state (like grabbing and dragging or resizing). There is also a
possibility of using auto-raise with a mouse as well. All of this
logic is in place, but none has been verified.
- 8. I am suspecting that NxTerm processes are not being shut down
- properly when an NxTerm window is closed, bu... |
arvo: only allow a single %whom | (~(put by van) way (mint $:u.bod way /sys/vane/[p]/hoon q))
==
::
- %whom ..poke(who `p.gub)
+ %whom ..poke(who ~|(%whom-once ?>(?=(~ who) `p.gub)))
%wyrd %- %+ wyrd kel.p.gub
^- (list (pair term @))
:* hoon/hoon-version
|
Get and Set transitiontime of a scene | @@ -1553,6 +1553,7 @@ bool DeRestPluginPrivate::groupToMap(const Group *group, QVariantMap &map)
QString sid = QString::number(si->id);
scene["id"] = sid;
scene["name"] = si->name;
+ scene["transitiontime"] = si->transitiontime();
scenes.append(scene);
}
@@ -1998,6 +1999,12 @@ int DeRestPluginPrivate::storeScene(const ... |
test_clang: initialize format string arg on stack
With local LLVM (4.0ish), inline strings in this test case would
segfault. Fix the crash by constructing explicitly on the stack. | @@ -471,7 +471,8 @@ int trace_entry(struct pt_regs *ctx) {
text = """
#include <uapi/linux/ptrace.h>
int trace_entry(struct pt_regs *ctx) {
- bpf_trace_printk("%s %s\\n", "hello", "world");
+ char s1[] = "hello", s2[] = "world";
+ bpf_trace_printk("%s %s\\n", s1, s2);
return 0;
}
"""
|
Add EnableGraphMaxScale, Update default colors | @@ -48,7 +48,8 @@ VOID PhAddDefaultSettings(
PhpAddIntegerSetting(L"EnableNetworkResolve", L"1");
PhpAddIntegerSetting(L"EnableNetworkResolveDoH", L"0");
PhpAddIntegerSetting(L"EnablePlugins", L"1");
- PhpAddIntegerSetting(L"EnableScaleCpuGraph", L"0");
+ PhpAddIntegerSetting(L"EnableGraphMaxScale", L"0");
+ PhpAddInte... |
[chainmaker]add wallet type err check | @@ -125,6 +125,8 @@ __BOATSTATIC BOAT_RESULT chainmaker_create_keypair()
#elif defined(USE_CREATE_PERSIST_WALLET)
BoatLog(BOAT_LOG_NORMAL, "create keypair persist");
result = BoatKeypairCreate(&keypair_config, "keypairPersist", BOAT_STORE_TYPE_FLASH);
+#else
+ result = BOAT_ERROR;
#endif
if (result < 0)
|
Fix minimap flicker patch | @@ -13,7 +13,7 @@ void MinimapFlickerPatch(const Image* apImage)
return;
}
- pLocation += 0xEB;
+ pLocation += 0xEC;
DWORD oldProtect = 0;
VirtualProtect(pLocation, 32, PAGE_EXECUTE_WRITECOPY, &oldProtect);
|
Fix copy byte count | @@ -643,7 +643,6 @@ static bool audiod_decode_type_I_pcm(uint8_t rhport, audiod_function_t* audio, u
// Determine amount of samples
uint8_t const n_ff_used = audio->n_ff_used_rx;
- uint16_t const nBytesToCopy = audio->n_channels_per_ff_rx * audio->n_bytes_per_sampe_rx;
uint16_t const nBytesPerFFToRead = n_bytes_receive... |
extmod/pupdevices/ColorSensor: add hsv method | @@ -211,6 +211,25 @@ STATIC mp_obj_t pupdevices_ColorSensor_make_new(const mp_obj_type_t *type, size_
return MP_OBJ_FROM_PTR(self);
}
+// pybricks.builtins.ColorSensor.hsv
+STATIC mp_obj_t pupdevices_ColorSensor_hsv(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
+ PB_PARSE_ARGS_METHOD(n_args, pos_args, k... |
Set ConfigPending flag for Heiman Watersensor
This fix the problem that Heiman water sensor could not be paired.
It will still join as "unreachable" until it is activated once.
TODO: remove the unreachable state after pairing | @@ -6047,6 +6047,12 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
node->nodeDescriptor().manufacturerCode() == VENDOR_HEIMAN)
{
sensorNode.setManufacturer("Heiman");
+
+ if (fingerPrint.hasInCluster(IAS_ZONE_CLUSTER_ID)) // POLL_CONTROL_CLUSTER_ID
+ {
+ item = sensorNode.addItem(Da... |
Fix for pulse width bug when changing from high to low frequencies if there was an overrun | @@ -387,7 +387,7 @@ void PWMCluster::load_pwm() {
// Invert this channel's initial state if it's polarity invert is set
if(state.polarity) {
- pin_states |= (1u << channel); // Set the pin
+ pin_states |= (1u << channel_to_pin_map[channel]); // Set the pin
}
uint channel_start = state.offset;
@@ -404,19 +404,21 @@ void... |
divert to using malloc / free if necessary | @@ -253,12 +253,18 @@ void do_write(h2o_socket_t *_sock, h2o_iovec_t *_bufs, size_t bufcnt, h2o_socket
{
struct st_h2o_evloop_socket_t *sock = (struct st_h2o_evloop_socket_t *)_sock;
h2o_iovec_t *bufs;
+ h2o_iovec_t *tofree = NULL;
assert(sock->super._cb.write == NULL);
assert(sock->_wreq.cnt == 0);
sock->super._cb.wri... |
chat: pad unread marker more evenly | import React, { Component, PureComponent } from "react";
import moment from "moment";
import _ from "lodash";
-import { Box, Row, Text } from "@tlon/indigo-react";
+import { Box, Row, Text, Rule } from "@tlon/indigo-react";
import { OverlaySigil } from './overlay-sigil';
import { uxToHex, cite, writeText } from '~/logi... |
libbpf-tools: Add verbose option to mountsnoop
Support verbose mode and set custom libbpf print callback
in mountsnoop. | @@ -38,6 +38,7 @@ static volatile sig_atomic_t exiting = 0;
static pid_t target_pid = 0;
static bool emit_timestamp = false;
static bool output_vertically = false;
+static bool verbose = false;
static const char *flag_names[] = {
[0] = "MS_RDONLY",
[1] = "MS_NOSUID",
@@ -91,6 +92,7 @@ static const struct argp_option op... |
Added notes about round-robin scheduling. | @@ -290,6 +290,9 @@ a blocking RTOS-call execution is switched back to thread 3 immediately during t
At time index 5 thread 3 uses a blocking RTOS-call as well. Thus the scheduler switches back to thread 2 for time index 6.
At time index 7 the scheduler uses the round-robin mechanism to switch to thread 1 and so on.
+\... |
Fix off-by-one error when updating old messages. | :: changed message
%_ +>.$
grams %+ welp
- (scag (dec (max u.old 1)) grams)
- [gam (slag u.old grams)]
+ (scag u.old grams)
+ [gam (slag +(u.old) grams)]
==
::
++ sa-change-remote ::< apply remote's delta
|
SOVERSION bump to version 2.26.3 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 26)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
config tool: update virtio block setting
add support for more than one virtio block setting
for specific vm | @@ -459,7 +459,7 @@ address is optional.</xs:documentation>
<xs:documentation>The virtio input device setting.</xs:documentation>
</xs:annotation>
</xs:element>
- <xs:element name="block" type="xs:string" minOccurs="0">
+ <xs:element name="block" type="xs:string" minOccurs="0" maxOccurs="unbounded">
<xs:annotation acrn... |
removed unneeded checks | @@ -1004,16 +1004,11 @@ _cw_eval_get_input(FILE* fp, size_t size)
str = c3_realloc(NULL, size);//size is start size
- if( !str )
- return str;
-
while( EOF != (ch=fgetc(fp)) ){
str[len++]=ch;
if( len == size ){
size +=16;
- str = realloc(str, (size));
- if(!str)
- return str;
+ str = c3_realloc(str, (size));
}
}
|
interface: disable clicking notes if they are pending and gray them out | @@ -49,8 +49,10 @@ export function NotePreview(props: NotePreviewProps) {
const commColor = (props.unreads.graph?.[appPath]?.[`/${noteId}`]?.unreads ?? 0) > 0 ? 'blue' : 'gray';
return (
- <Box width='100%'>
- <Link to={url}>
+ <Box width='100%' opacity={post.pending ? '0.5' : '1'}>
+ <Link
+ to={post.pending ? '#' : u... |
fix-macOS-completions-installation: additional ifs for osx directories | @@ -35,7 +35,11 @@ install (PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/install-sh-completion" DESTINATIO
if (INSTALL_SYSTEM_FILES)
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ set (BASH_COMPLETION_COMPLETIONSDIR "/usr/local/share/bash-completion/completions" CACHE INTERNAL "bash completions dir")
+ else ()
set (BASH_COMPL... |
Add test to build pipeline | @@ -23,19 +23,31 @@ jobs:
solution: build/libmimalloc.sln
- upload: $(Build.SourcesDirectory)/build
artifact: windows
+
- job:
displayName: Linux
pool:
vmImage:
ubuntu-16.04
+ strategy:
+ matrix:
+ Debug:
+ CC: gcc
+ BuildType: Debug
+ Release:
+ CC: gcc
+ BuildType: Release
+
steps:
- task: CMake@1
inputs:
- workingDi... |
Print error when write directory fails; | @@ -206,7 +206,10 @@ int lovrFilesystemSetIdentity(const char* identity) {
snprintf(state.savePathRelative, LOVR_PATH_MAX, "LOVR%s%s", sep, identity);
snprintf(state.savePathFull, LOVR_PATH_MAX, "%s%s%s", state.savePathFull, sep, state.savePathRelative);
PHYSFS_mkdir(state.savePathRelative);
- PHYSFS_setWriteDir(state.... |
reduce temporary memory | @@ -417,10 +417,20 @@ static complex float* compute_psf2(int N, const long psf_dims[N + 1], unsigned l
struct linop_s* lop_fft = NULL;
- if ((NULL != lop_fftuc) && (NULL != *lop_fftuc))
+ if ((NULL != lop_fftuc) && (NULL != *lop_fftuc)) {
+
lop_fft = *lop_fftuc;
- else
- lop_fft = linop_fftc_create(ND, img2_dims, flags... |
bugid:16796279:http2:enlarge init remote windows size to accelerate the upload | @@ -186,7 +186,7 @@ typedef struct {
*
* The initial window size for connection level flow control.
*/
-#define NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE ((1 << 16) - 1)
+#define NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE ((1 << 24) - 1)
/**
* @macro
|
[net][sal] add socket set multicast group support and format code. | @@ -120,14 +120,28 @@ typedef uint16_t in_port_t;
#define TCP_KEEPINTVL 0x04 /* set pcb->keep_intvl - Use seconds for get/setsockopt */
#define TCP_KEEPCNT 0x05 /* set pcb->keep_cnt - Use number of probes sent for get/setsockopt */
-struct sockaddr {
+/*
+ * Options and types related to multicast membership
+ */
+#defi... |
Only associate a provider with a store once it has been added to it
This means we can distinguish providers that have been added to the
store, and those which haven't yet been. | @@ -498,7 +498,6 @@ OSSL_PROVIDER *ossl_provider_new(OSSL_LIB_CTX *libctx, const char *name,
return NULL;
prov->libctx = libctx;
- prov->store = store;
#ifndef FIPS_MODULE
prov->error_lib = ERR_get_next_error_library();
#endif
@@ -530,6 +529,7 @@ int ossl_provider_add_to_store(OSSL_PROVIDER *prov, int retain_fallbacks)... |
SOVERSION bump to version 2.27.0 | @@ -65,8 +65,8 @@ set(LIBYANG_MICRO_VERSION 12)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
-set(LIBYANG_MINOR_SOVERSION 26)
-set(LIBYANG_MICRO_SOVERSION 6)
+set(LIBYANG_MINOR_SOVERSION 27)
+set(LIBYANG_MICRO... |
Add "trace " prefix missed out from previous commit | ,;(map (fn [form]
~(do
(def ,var ,form)
- (eprintf (string (dyn :pretty-format "%q")
+ (eprintf (string "trace "
+ (dyn :pretty-format "%q")
" is "
(dyn :pretty-format "%q"))
',form
|
CMake: move_dll works with empty arguments; | @@ -522,12 +522,12 @@ if(WIN32)
target_compile_definitions(lovr PUBLIC -Dinline=__inline -Dsnprintf=_snprintf)
endif()
- function(move_dll ARG_TARGET)
- if(TARGET ${ARG_TARGET})
+ function(move_dll)
+ if(TARGET ${ARGV0})
add_custom_command(TARGET lovr POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
- $<TARGET_FILE:${ARG_TA... |
build: Add flow explanations to build.bat | @@ -77,6 +77,15 @@ for %%N in (%SUPPORTED_BUILD_SPECS%) do (
)
rem Silently exit if the build target could not be matched
+rem
+rem The reason for ignoring build target mismatch are projects
+rem like NetKVM, viostor, and vioscsi, which build different
+rem sln/vcxproj for different targets. Higher level script
+rem do... |
SR: Only run replay tests if `kdb` is available | @@ -3,6 +3,7 @@ if (ENABLE_KDB_TESTING)
SET(USE_CMAKE_KDB_COMMAND "")
if (BUILD_SHARED)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb")
+ set (ENABLE_REPLAY_TESTS TRUE)
elseif (BUILD_FULL)
set (KDB_COMMAND "${CMAKE_BINARY_DIR}/bin/kdb-full")
elseif (BUILD_STATIC)
@@ -74,6 +75,7 @@ if (ENABLE_KDB_TESTING)
list (APPEND S... |
restore plainClient | @@ -4,17 +4,12 @@ import (
"bufio"
"fmt"
"net/http"
- "os"
)
func main() {
- fd, err := os.Open(".")
- fmt.Println(fd)
-
resp, err := http.Get("http://cribl.io")
if err != nil {
-
panic(err)
}
defer resp.Body.Close()
|
Hii: Fix for incorrect password prompt not showing up
In HII when security state is locked | @@ -2413,6 +2413,7 @@ SetSecurityState(
)
{
EFI_STATUS ReturnCode = EFI_UNSUPPORTED;
+ EFI_STATUS TempReturnCode = EFI_UNSUPPORTED;
DIMM *pDimms[MAX_DIMMS];
UINT32 DimmsNum = 0;
UINT16 PayloadBufferSize = 0;
@@ -2693,6 +2694,7 @@ SetSecurityState(
NVDIMM_DBG("Failed on SetDimmSecurityState, ReturnCode=" FORMAT_EFI_STAT... |
test/recipes/81-test_cmp_cli.t: use app() rather than cmd()
Fixes | @@ -28,7 +28,7 @@ plan skip_all => "These tests are not supported in a fuzz build"
plan skip_all => "These tests are not supported in a no-cmp build"
if disabled("cmp");
-my $app = bldtop_dir("apps/openssl cmp");
+my @app = qw(openssl cmp);
my @cmp_basic_tests = (
[ "show help", [ "-help" ], 1 ],
@@ -53,7 +53,7 @@ fore... |
Test single stray ] doesn't close a CDATA section
Also uses multi-byte characters around the ] to exercise more code. | @@ -5996,6 +5996,16 @@ START_TEST(test_utf8_in_cdata_section)
}
END_TEST
+/* Test that little-endian UTF-16 in a CDATA section is handled */
+START_TEST(test_utf8_in_cdata_section_2)
+{
+ const char *text = "<doc><![CDATA[\xc3\xa9]\xc3\xa9two]]></doc>";
+ const XML_Char *expected = "\xc3\xa9]\xc3\xa9two";
+
+ run_chara... |
fixed segmentation fault on big PMKID hashes | @@ -1311,7 +1311,7 @@ if(testzeroedpmkid(macclient, macap, pmkid) == false)
exit(EXIT_FAILURE);
}
pmkidlist = pmkidlistnew;
- pmkidlistptr = pmkidlistnew +maclistmax;
+ pmkidlistptr = pmkidlistnew +pmkidlistmax;
pmkidlistmax += PMKIDLIST_MAX;
}
memset(pmkidlistptr, 0, PMKIDLIST_SIZE);
|
Remove library suffix fix for C# on macOS | @@ -1236,16 +1236,6 @@ function(tinyspline_add_swig_library)
)
endif()
endif()
- # Fix library suffix for C# on macOS.
- if(${ARGS_LANG} STREQUAL "csharp" AND ${TINYSPLINE_PLATFORM_NAME} STREQUAL
- "macosx"
- )
- set_property(
- TARGET ${ARGS_TARGET}
- APPEND
- PROPERTY SUFFIX ".dylib"
- )
- endif()
# Fix library suffi... |
test: add platon test case test_004ParametersInit_0008TxInitFailureRecipientErrorHexFormat
fix the issue
teambition task id | @@ -211,6 +211,23 @@ START_TEST(test_004ParametersInit_0007TxInitSuccessGasLimitHexNullOx)
}
END_TEST
+START_TEST(test_004ParametersInit_0008TxInitFailureRecipientErrorHexFormat)
+{
+ BSINT32 rtnVal;
+ BoatPlatONTx tx_ptr;
+
+ BoatIotSdkInit();
+
+ rtnVal = platonWalletPrepare();
+ ck_assert_int_eq(rtnVal, BOAT_SUCCESS... |
ci/cd: retaining config.h.in as artifact from build stage | @@ -12,7 +12,7 @@ compile:
- ./configure --enable-strict
- make -j4
artifacts: # save output objects for test stages
- paths: [makefile, configure, config.h]
+ paths: [makefile, configure, config.h, config.h.in]
# run all test programs
check:
|
correct the cmake options for building comgr | @@ -80,15 +80,25 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
$SUDO rm -rf $BUILD_AOMP/build/comgr
export LLVM_DIR=$AOMP_INSTALL_DIR
export Clang_DIR=$AOMP_INSTALL_DIR
- MYCMAKEOPTS="-DCMAKE_INSTALL_PREFIX=$INSTALL_COMGR -DCMAKE_BUILD_TYPE=$BUILDTYPE $AOMP_ORIGIN_RPATH -DLLVM_BUILD_MAIN_SRC_DIR=$AOMP_REP... |
fixed format char | @@ -291,7 +291,7 @@ int elektraJniOpen (Plugin * handle, Key * errorKey)
jmethodID midPluginConstructor = (*data->env)->GetMethodID (data->env, data->clsPlugin, "<init>", "()V");
if (midPluginConstructor == 0)
{
- ELEKTRA_SET_RESOURCE_ERRORF (errorKey, "Cannot find Java constructor of plugin %c", classname);
+ ELEKTRA_... |
Switch to %fits for kelp testing. | rep/(list line)
==
|- ^- hoon
+ :: tup: tuple matching this line
+ ::
+ =/ tup/crib [%tupl p.one q.one ~]
:: if no other choices, construct head
::
- ?~ rep relative:clear(mod [%tupl p.one q.one ~])
+ ?~ rep relative:clear(mod tup)
:: fin: loop completion
::
=/ fin/hoon $(one i.rep, rep t.rep)
:^ %wtcl
:: test if the h... |
rand: don't leak memory | @@ -111,7 +111,7 @@ static int seed_src_generate(void *vseed, unsigned char *out, size_t outlen,
entropy_available = ossl_pool_acquire_entropy(pool);
if (entropy_available > 0)
- memcpy(out, rand_pool_detach(pool), rand_pool_length(pool));
+ memcpy(out, rand_pool_buffer(pool), rand_pool_length(pool));
rand_pool_free(po... |
Tests: unitd stderr output redirected to unit.log.
A part of the debug log was printed to stderr before the log file was opened.
Now, this output is redirected to the same log file. | @@ -209,8 +209,7 @@ class TestUnit(unittest.TestCase):
os.mkdir(self.testdir + '/state')
- print()
-
+ with open(self.testdir + '/unit.log', 'w') as log:
self._p = subprocess.Popen(
[
self.unitd,
@@ -220,7 +219,8 @@ class TestUnit(unittest.TestCase):
'--pid', self.testdir + '/unit.pid',
'--log', self.testdir + '/unit.l... |
Fix missing appcontainer names for some service processes | @@ -449,6 +449,32 @@ PPH_STRING PhGetAppContainerName(
appContainerName = PhCreateString(packageMonikerName);
AppContainerFreeMemory_I(packageMonikerName);
}
+ else // Check the local system account appcontainer mappings. (dmex)
+ {
+ static PH_STRINGREF appcontainerMappings = PH_STRINGREF_INIT(L"Software\\Classes\\Loc... |
board/yorp/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -20,17 +20,26 @@ __override const int led_charge_lvl_2 = 100;
/* Yorp: Note there is only LED for charge / power */
__override struct led_descriptor
led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
- [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_BLUE, 2 * LED_ONE_SEC},
- {EC_LED_COLOR_AMBER, 2 * LED_ONE_SEC} },
- [... |
Accel: fix POCL_DEBUG opt to use POCL_MSG_PRINT_ACCEL | +#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#include <stdarg.h>
#include "pocl_cl.h"
#include "pocl_debug.h"
@@ -41,6 +41,9 @@ static pocl_lock_t console_mutex;
}
/* else parse */
char* tokenize = strdup (debug);
+ for(int i =0; i < strlen (tokenize); i++){
+ tokenize[i] = tolower(to... |
Fix logical -> bitwise boolean operator in backup unit test.
This unset more than the storageFeatureCompress flag but the test was not affected.
Found on MacOS M1. | @@ -539,7 +539,7 @@ testRun(void)
// With the expected backupCopyResultCopy, unset the storageFeatureCompress bit for the storageRepo for code coverage
uint64_t feature = storageRepo()->interface.feature;
- ((Storage *)storageRepo())->interface.feature = feature && ((1 << storageFeatureCompress) ^ 0xFFFFFFFFFFFFFFFF);
... |
u3: adds comments to inner hashtable struct definitions | /* u3h_node: map node.
*/
typedef struct {
- c3_w map_w;
- u3h_slot sot_w[0];
+ c3_w map_w; // bitmap for [sot_w]
+ u3h_slot sot_w[0]; // filled slots
} u3h_node;
/* u3h_root: hash root table
/* u3h_buck: bottom bucket.
*/
typedef struct {
- c3_w len_w;
- u3h_slot sot_w[0];
+ c3_w len_w; // length of [sot_w]
+ u3h_slot... |
esp32/modsocket: Raise an exception if socket.connect did not succeed. | @@ -151,7 +151,10 @@ STATIC mp_obj_t socket_connect(const mp_obj_t arg0, const mp_obj_t arg1) {
_socket_getaddrinfo(arg1, &res);
int r = lwip_connect(self->fd, res->ai_addr, res->ai_addrlen);
lwip_freeaddrinfo(res);
- return mp_obj_new_int(r);
+ if (r != 0) {
+ exception_from_errno(errno);
+ }
+ return mp_const_none;
}... |
[snitch] Fix address handling in `axi_adapter` | @@ -77,7 +77,7 @@ module snitch_axi_adapter #(
write_t write_data_in;
write_t write_data_out;
- assign axi_req_o.aw.addr = {slv_qaddr_i[$bits(axi_req_o.aw.addr)-1:AxiByteOffset],{AxiByteOffset{1'b0}}};
+ assign axi_req_o.aw.addr = slv_qaddr_i;
assign axi_req_o.aw.prot = 3'b0;
assign axi_req_o.aw.region = 4'b0;
assign a... |
ames: ignore pki nponsorship loss | event-core
:: +on-publ-sponsor: handle new or lost sponsor for peer
::
- :: TODO: handle sponsor loss
+ :: TODO: really handle sponsor loss
::
++ on-publ-sponsor
|= [=ship sponsor=(unit ship)]
^+ event-core
::
?~ sponsor
- ~| %ames-lost-sponsor^our^ship !!
+ %- (slog leaf+"ames: {(scow %p ship)} lost sponsor, ignoring"... |
Add test of mod_wsgi-standalone. | @@ -22,11 +22,8 @@ jobs:
- name: "Store built packages"
uses: actions/upload-artifact@v2
with:
- name: files
- path: |
- dist/*
- scripts/*
- tests/*
+ name: dist
+ path: dist/*
tests:
name: "Test mod_wsgi package (Python ${{ matrix.python-version }})"
@@ -38,24 +35,30 @@ jobs:
matrix:
python-version: ["2.7", "3.5", "3... |
ikev2: cleanup tunnels after subsequent sa-init
Type: fix | @@ -1951,6 +1951,8 @@ ikev2_generate_message (ikev2_sa_t * sa, ike_header_t * ike, void *user)
ikev2_payload_add_sa (chain, sa->childs[0].i_proposals);
ikev2_payload_add_ts (chain, sa->childs[0].tsi, IKEV2_PAYLOAD_TSI);
ikev2_payload_add_ts (chain, sa->childs[0].tsr, IKEV2_PAYLOAD_TSR);
+ ikev2_payload_add_notify (chai... |
recipes/90-test_shlibload.t: disable tests on AIX till further notice. | @@ -19,6 +19,7 @@ use lib bldtop_dir('.');
use configdata;
plan skip_all => "Test only supported in a shared build" if disabled("shared");
+plan skip_all => "Test is disabled on AIX" if config('target') =~ m|^aix|;
plan tests => 4;
|
Update PhGetJsonArrayString flags | static json_object_ptr json_get_object(
_In_ json_object_ptr rootObj,
- _In_ const PSTR key
+ _In_ PSTR key
)
{
json_object_ptr returnObj;
@@ -86,6 +86,13 @@ PVOID PhCreateJsonObject(
return json_object_new_object();
}
+PVOID PhCreateJsonStringObject(
+ _In_ PSTR Value
+ )
+{
+ return json_object_new_string(Value);
+}
... |
application paper | @@ -139,5 +139,8 @@ Compressed Sensing MRI Reconstruction on Intel HARPv2.
Computing Machines (FCCM), San Diego, CA, USA, 2019, pp. 254-257.
doi: 10.1109/FCCM.2019.00041
-
+Smith DS, Sengupta S, Smith SA, Welch EB.
+Trajectory optimized NUFFT: Faster non-Cartesian MRI reconstruction through
+prior knowledge and paralle... |
Fix straggler
contrib/pgcrypto did contain an unedited fall-through marker after all. | @@ -169,7 +169,7 @@ pgp_get_keyid(MBuf *pgp_data, char *dst)
break;
case PGP_PKT_SYMENCRYPTED_SESSKEY:
got_symenc_key++;
- /* fall through */
+ /* FALLTHROUGH */
case PGP_PKT_SIGNATURE:
case PGP_PKT_MARKER:
case PGP_PKT_TRUST:
|
gpcheckcloud: use strncpy() to set eolString
string overflow won't happen here because gpcheckcloud_newline was
checked before, but still, strncpy() looks better. | @@ -206,7 +206,8 @@ static bool downloadS3(const char *urlWithOptions) {
return false;
}
- strcpy(eolString, reader->getParams().getGpcheckcloud_newline().c_str());
+ strncpy(eolString, reader->getParams().getGpcheckcloud_newline().c_str(), EOL_CHARS_MAX_LEN);
+ eolString[EOL_CHARS_MAX_LEN] = '\0';
do {
data_len = BUF_... |
gall: include sub-nonce in unsubscribe wire | ?: ?=([* %pass * %g %deal * * %leave *] move)
=/ =wire p.move.move
?> ?=([%use @ @ %out @ @ *] wire)
- =/ sub-wire t.t.t.t.t.t.wire
=/ =dock [q.p q]:q.move.move
+ =/ sys-wire=^wire (scag 6 `^wire`wire)
+ =/ sub-wire=^wire (slag 6 `^wire`wire)
+ ::
+ ?. (~(has by outbound.watches.yoke) sub-wire dock)
+ =. ap-core
+ =/ =... |
document required libraries for CentOS 7 | @@ -81,6 +81,18 @@ To install the required libraries on Debian and Ubuntu run:
install version 0.5.2 of the ISMRMRD library
+To install the required libraries on Redhat / Centos run:
+
+ $ sudo yum install devtoolset-8 atlas-devel fftw3-devel libpng-devel lapack-devel
+
+It may be required to install support for softwa... |
test(adc2): temporary ignore adc2 unit test (with WiFi) to pass the CI.
the issue is introduced in commit | @@ -40,7 +40,7 @@ static esp_err_t event_handler(void *ctx, system_event_t *event)
return ESP_OK;
}
-TEST_CASE("adc2 work with wifi","[adc]")
+TEST_CASE("adc2 work with wifi","[adc][ignore]")
{
int read_raw;
int target_value;
|
#define T_AXIS | #include "joysticks.h"
#include "openbor.h"
+#define T_AXIS 7000
+
SDL_Joystick *joystick[JOY_LIST_TOTAL]; // SDL struct for joysticks
static int usejoy; // To be or Not to be used?
@@ -194,8 +196,8 @@ void getPads(Uint8* keystate, Uint8* keystate_def)
{
int axisfirst = 1 + i * JOY_MAX_INPUTS + joysticks[i].NumButtons ... |
docs: add binary api trace replay details
Folks need to know that they MUST carefully control the set of plugins
to avoid feeding messages to the wrong binary API message handlers. | @@ -182,6 +182,80 @@ and `src/vlibapi/api_shared.c
<https://docs.fd.io/vpp/18.11/d6/dd1/api__shared_8c.html>`_. See also
the debug CLI command "api trace"
+API trace replay caveats
+________________________
+
+The vpp instance which replays a binary API trace must have the same
+message-ID numbering space as the vpp in... |
bump dctl in ya tool | },
"dctl": {
"formula": {
- "sandbox_id": [461023202],
+ "sandbox_id": [482552142],
"match": "dctl"
},
"executable": {
|
Fix gettable for lua versions below 5.3 | @@ -281,9 +281,7 @@ gettable :: StackIndex -> Lua LTYPE
gettable n = liftLua $ \l ->
toEnum . fromIntegral <$> lua_gettable l (fromStackIndex n)
#else
-gettable n = liftLua $ \l -> do
- lua_gettable l (fromStackIndex n)
- ltype (-1)
+gettable n = (liftLua $ \l -> lua_gettable l (fromStackIndex n)) *> ltype (-1)
#endif
... |
Fix
Skip leading BOM in XML document | @@ -74,6 +74,7 @@ static const char *CDSTART = "<![CDATA[";
static const char *CDEND = "]]>";
static const char *DEC_NUMBERS = "0123456789";
static const char *HEX_NUMBERS = "0123456789ABCDEFabcdef";
+static const char *UTF8_BOM = "\xef\xbb\xbf";
typedef struct char_info
{
@@ -591,6 +592,19 @@ static int Parser_skipStr... |
Set homepage to | @@ -10,7 +10,7 @@ description: The Foreign.Lua module is a wrapper of Lua language
.
<https://github.com/hslua/hslua-examples Example programs>
are available in a separate repository.
-homepage: https://github.com/hslua/hslua
+homepage: https://hslua.github.io/
bug-reports: https://github.com/hslua/hslua/issues
license... |
Fixed MVEX.SSS error-condition | @@ -3189,7 +3189,8 @@ static ZydisStatus ZydisDecodeInstruction(ZydisDecoderContext* context, ZydisIns
{ 1, 0, 0, 0, 0, 0, 0, 0 }
};
ZYDIS_ASSERT(def->functionality < ZYDIS_ARRAY_SIZE(lookup));
- if (!lookup[def->functionality])
+ ZYDIS_ASSERT(info->details.mvex.SSS < 8);
+ if (!lookup[def->functionality][info->details... |
fix map mode to send correct mode id to packet | @@ -520,13 +520,13 @@ enum INPVAL_TYPE
enum MAPCMD_TYPE
{
- MAPCMD_AddPin,
- MAPCMD_InsertPin,
- MAPCMD_MovePin,
- MAPCMD_RemovePin,
- MAPCMD_ClearPins,
- MAPCMD_ToggleEdit_Request,
- MAPCMD_ToggleEdit_Reply
+ MAPCMD_AddPin = 1,
+ MAPCMD_InsertPin = 2,
+ MAPCMD_MovePin = 3,
+ MAPCMD_RemovePin = 4,
+ MAPCMD_ClearPins = ... |
SOVERSION bump to version 7.7.2 | @@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 7)
-set(SYSREPO_MICRO_SOVERSION 1)
+set(SYSREPO_MICRO_SO... |
naive: fixes bug (absolute vs relative step) in signature octs slice | =^ sig pos (take 3 65)
=/ res=(unit [=tx pos=@ud]) parse-tx
?~ res ~
- =/ [len=@ rem=@] (dvr (sub pos.u.res pos) 8)
- ?> =(0 rem)
+ =/ dif (sub pos.u.res pos)
+ =/ len =>((dvr dif 8) ?>(=(0 q) p))
:- ~ :_ pos.u.res
- [sig [len (cut 0 [pos pos.u.res] batch)] tx.u.res]
+ [sig [len (cut 0 [pos dif] batch)] tx.u.res]
::
++... |
Fix GNU 7.3.0 warning re sprintf | @@ -116,7 +116,7 @@ static int split_file_by_subtype(FILE* in, const char* filename, unsigned long *
grib_context* c=grib_context_get_default();
if (!in) return 1;
- sprintf(ofilename, OUTPUT_FILENAME_DEFAULT); /*default name*/
+ sprintf(ofilename, "%s", OUTPUT_FILENAME_DEFAULT); /*default name*/
while ( err!=GRIB_END_... |
Fix HideUnnamedHandles setting not being saved when closing the process properties window | @@ -467,6 +467,8 @@ INT_PTR CALLBACK PhpProcessHandlesDlgProc(
BOOLEAN hide;
hide = Button_GetCheck(GetDlgItem(hwndDlg, IDC_HIDEUNNAMEDHANDLES)) == BST_CHECKED;
+
+ PhSetIntegerSetting(L"HideUnnamedHandles", hide);
PhSetOptionsHandleList(&handlesContext->ListContext, hide);
}
break;
|
compiler; rename getNumArguments to be clearer as to the intent | @@ -2695,8 +2695,8 @@ void expression(Compiler* compiler)
// Returns the number of arguments to the instruction at [ip] in [fn]'s
// bytecode.
-static int getNumArguments(const uint8_t* bytecode, const Value* constants,
- int ip)
+static int getByteCountForArguments(const uint8_t* bytecode,
+ const Value* constants, in... |
Support Local Code Coverage Usage | @@ -12,6 +12,9 @@ This script merges the coverage data.
.PARAMETER Tls
The TLS library test.
+.PARAMETER Local
+ Indicates local execution/usage (not Azure Pipelines) of the script.
+
#>
param (
@@ -25,7 +28,10 @@ param (
[Parameter(Mandatory = $false)]
[ValidateSet("schannel", "openssl", "stub", "mitls")]
- [string]$T... |
throw better exceptions in multipart chunk reconstruction | @@ -573,8 +573,7 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA
if(partNumber<0 || partNumber>int(parts.size()))
{
- // bail here - bad part number
- throw int();
+ throw IEX_NAMESPACE::IoExc("part number out of range");
}
Header& header = parts[partNumber]->header;
@@ -601,14 +600,... |
malefor: configure DB PD
Fill tcpc_config[] and usb_muxes[] base on DB type, make sure DB type-C
work well.
BRANCH=none
TEST=Type-C function is OK at DB. | #include "driver/ppc/sn5s330.h"
#include "driver/ppc/syv682x.h"
#include "driver/sync.h"
+#include "driver/tcpm/ps8xxx.h"
+#include "driver/tcpm/tcpci.h"
#include "extpower.h"
#include "fan.h"
#include "fan_chip.h"
@@ -309,6 +311,32 @@ const struct pwm_t pwm_channels[] = {
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PW... |
BugID:20040062: Rework HAL_TCP_Read API implementation. | @@ -188,6 +188,7 @@ int32_t HAL_TCP_Read(uintptr_t fd, char *buf, uint32_t len, uint32_t timeout_ms)
struct timeval timeout;
if (fd >= FD_SETSIZE) {
+ PLATFORM_LOG_E("%s error: fd (%d) >= FD_SETSIZE (%d)", __func__, fd, FD_SETSIZE);
return -1;
}
@@ -198,6 +199,8 @@ int32_t HAL_TCP_Read(uintptr_t fd, char *buf, uint32_t... |
Add get_filter test | @@ -109,6 +109,12 @@ def test_blob_writer():
data = fIn.read()
assert data == qpafilter.BLOB_START_MARKER + qpafilter.BLOB_END_MARKER
+def test_get_filter():
+ category = "Temperature and Cooling"
+ actual = qpafilter.get_filter(category)
+ assert actual == qpafilter.temp_filter
+ # TODO negative case: pass in non exis... |
Silence warning chipid files with STLINK_FLASH_TYPE_UNKNOWN
The chipid configuration parser currently emits a warning when it
encounters a file with the flash type set to
STLINK_FLASH_TYPE_UNKNOWN. In practice, this means that the warning
will always be printed since 'unknown_device.chip' uses this
value. Make STLINK_F... | @@ -1001,7 +1001,7 @@ void process_chipfile(char *fname) {
} else if (strcmp (word, "flash_type") == 0) {
if (sscanf(value, "%i", (int *)&ts->flash_type) < 1) {
fprintf(stderr, "Failed to parse flash type\n");
- } else if (ts->flash_type <= STLINK_FLASH_TYPE_UNKNOWN || ts->flash_type >= STLINK_FLASH_TYPE_MAX) {
+ } els... |
RPL Lite: whenever hearing an old version from the root, reset DIO timer to let the root know about the current version | @@ -395,9 +395,15 @@ process_dio_from_current_dag(uip_ipaddr_t *from, rpl_dio_t *dio)
return;
}
- /* If the DIO sender is on an older version of the DAG, ignore it. The node
- will eventually hear the global repair and catch up. */
+ /* If the DIO sender is on an older version of the DAG, do not process it
+ * further.... |
IPAddr: Add test cases matching any IP address | @@ -37,6 +37,11 @@ static inline void testIPv4 (const char * ip, int ret)
testIP (ip, ret, "ipv4");
}
+static inline void testIPAny (const char * ip, int ret)
+{
+ testIP (ip, ret, "");
+}
+
int main (int argc, char ** argv)
{
printf ("IPADDR TESTS\n");
@@ -63,6 +68,11 @@ int main (int argc, char ** argv)
testIPv6 ("::... |
[bsp][apollo2] update scons config: update MDK support. | @@ -64,16 +64,14 @@ elif PLATFORM == 'armcc':
LINK = 'armlink'
TARGET_EXT = 'axf'
- DEVICE = ' --device DARMSTM'
- CFLAGS = DEVICE + ' --apcs=interwork'
+ DEVICE = ' --cpu Cortex-M4'
+ CFLAGS = DEVICE + ' --c99 --apcs=interwork'
AFLAGS = DEVICE
- LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info venee... |
drv/virtual: Fix error for use of main name.
This fixes the following error:
../../../lib/pbio/drv/virtual.c:23:15: error: 'main' is usually a function [-Werror=main]
PyObject *main = PyImport_ImportModule("__main__");
^~~~
cc1: all warnings being treated as errors | @@ -151,15 +151,15 @@ static pbio_error_t pbdrv_virtual_check_cpython_exception(void) {
*/
static PyObject *pbdrv_virtual_get_platform(void) {
// new ref
- PyObject *main = PyImport_ImportModule("__main__");
- if (!main) {
+ PyObject *main_obj = PyImport_ImportModule("__main__");
+ if (!main_obj) {
return NULL;
}
// ne... |
Modify system files as root
Add missing sudo commands
[ci skip] | - If you want to link cmake3 to cmake, run:
```bash
- ln -sf ../../bin/cmake3 /usr/local/bin/cmake
+ sudo ln -sf ../../bin/cmake3 /usr/local/bin/cmake
```
- Make sure that you add `/usr/local/lib` and `/usr/local/lib64` to
@@ -91,7 +91,7 @@ then run command `ldconfig`.
```bash
- cat >> /etc/sysctl.conf <<-EOF
+ sudo ba... |
better health | @@ -16,7 +16,7 @@ def sign(a):
class HealthProcessor:
def __init__(self, beatmap, drainrate=None):
- self.multiplier = {0: -1, 50: -0.05, 105: 0.2, 15: 0.5, 35: 1, 100: 0.5, 300: 1}
+ self.multiplier = {0: -1, 50: -0.05, 105: 0.2, 15: 0.35, 35: 0.5, 100: 0.5, 300: 1}
self.minimum_health_error = 0.01
self.min_health_tar... |
X509_NAME_cmp(): Clearly document its semantics, referencing relevant RFCs
Fixes | @@ -25,16 +25,20 @@ This set of functions are used to compare X509 objects, including X509
certificates, X509 CRL objects and various values in an X509 certificate.
The X509_cmp() function compares two B<X509> objects indicated by parameters
-B<a> and B<b>. The comparison is based on the B<memcmp> result of the hash
+I... |
tests: remove stray 'in' in CMake file
Apparently PGI is happy to accept garbage on the command line... until
it isn't. | @@ -74,7 +74,7 @@ if("${CLOCK_GETTIME_EXISTS}")
endif()
if("${OPENMP_SIMD_FLAGS}" STREQUAL "")
- foreach(omp_simd_flag in "-fopenmp-simd" "-qopenmp-simd" "-openmp-simd")
+ foreach(omp_simd_flag "-fopenmp-simd" "-qopenmp-simd" "-openmp-simd")
string (REGEX REPLACE "[^a-zA-Z0-9]+" "_" omp_simd_flag_name "CFLAG_${omp_simd... |
Fix typos and small enhancement of docu | @@ -257,6 +257,10 @@ An array containing entries for `lfs_addr`, `lfs_size`, `spiffs_addr` and `spiff
print("The LFS size is " .. node.getpartitiontable().lfs_size)
```
+#### See also
+[`node.setpartitiontable()`](#nodesetpartitiontable)
+
+
## node.heap()
Returns the current available heap size in bytes. Note that due... |
Improve error message on syntax errors with 'is'/'are' | @@ -66,7 +66,7 @@ sockeyeFile = do
return $ AST.NetSpec $ concat nodes
netSpec = do
- nodeIds <- try single <|> multiple
+ nodeIds <- choice [try single, try multiple]
node <- nodeSpec
return $ map (\nodeId -> (nodeId, node)) nodeIds
where single = do
|
MicroPython: Rewrite Enviro manifest.py to new style. | include("../manifest.py")
-freeze("$(MPY_DIR)/tools", "upip.py")
-freeze("$(MPY_DIR)/tools", "upip_utarfile.py")
-freeze("$(MPY_LIB_DIR)/python-ecosys/urequests", "urequests.py")
-freeze("$(MPY_LIB_DIR)/micropython/umqtt.simple", "umqtt")
+module("upip.py", base_path="$(MPY_DIR)/tools", opt=3)
+module("upip_utarfile.py... |
Add explanation for signed char assert | #include "typelist.h"
-static_assert(TSignedInts::THave<char>::value, "expect TSignedInts::THave<char>::value");
+static_assert(
+ TSignedInts::THave<char>::value,
+ "char type in Arcadia must be signed; add -fsigned-char to compiler options");
|
Print missing | @@ -46,8 +46,13 @@ for sha in $commits; do
[[ ${found_author} == true && ${found_committer} == true ]] && break
done
+ if [[ ${found_author} == false ]]; then
+ echo -e "Missing \"Signed-off-by\" for \"${author}\" in commit ${sha}"
+ fi
+ if [[ ${found_committer} == false ]]; then
+ echo -e "Missing \"Signed-off-by\" f... |
BugID:21055387:Fix iotx_coap_api.c WhiteScan issue | @@ -868,7 +868,10 @@ int IOT_CoAP_DeviceNameAuth(iotx_coap_context_t *p_context)
coap_log(LOG_ERR, "Send authentication message to server\n");
coap_log(LOG_INFO, "The payload is: %s\n", p_payload);
coap_log(LOG_INFO, "Send authentication message to server\n");
- ret = coap_send(p_session, pdu);
+ if (coap_send(p_sessio... |
Remove mutex not being used anymore | @@ -617,16 +617,12 @@ struct sctp_tcb {
uint16_t resv;
#if defined(__FreeBSD__) && !defined(__Userspace__)
struct mtx tcb_mtx;
- struct mtx tcb_send_mtx;
#elif defined(SCTP_PROCESS_LEVEL_LOCKS)
userland_mutex_t tcb_mtx;
- userland_mutex_t tcb_send_mtx;
#elif defined(__APPLE__) && !defined(__Userspace__)
lck_mtx_t* tcb_... |
test-suite: enable static lib check for OpenCoarrays | @@ -72,17 +72,17 @@ check_rms
fi
}
-#@test "[$testname] Verify static library is not present in ${PKG}_LIB ($LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
-# LIB=${PKG}_LIB
-#
-# if [ -z ${!LIB} ];then
-# flunk "${PKG}_LIB directory not defined"
-# fi
-#
-# if [ -e ${!LIB}/${library}.a ];then
-# flunk "${library}.a exists ... |
Fix issue with registry creation; | @@ -26,6 +26,7 @@ static void luax_pushobjectregistry(lua_State* L) {
lua_setmetatable(L, -2);
// Write the table to the registry
+ lua_pushvalue(L, -1);
lua_setfield(L, LUA_REGISTRYINDEX, "_lovrobjects");
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.