message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
cpack: remove rpath | @@ -40,10 +40,6 @@ set (ALL_PLUGINS ${CPACK_COMPONENTS_ALL})
list(FILTER ALL_PLUGINS INCLUDE REGEX "^libelektra4-.*")
string (REPLACE ";" ", " ALL_PLUGINS_STR "${ALL_PLUGINS}")
-set (CMAKE_BUILD_WITH_INSTALL_RPATH 1)
-
-list(APPEND CMAKE_INSTALL_RPATH "${CMAKE_CURRENT_BINARY_DIR}")
-
set (
PACKAGE_DESCRIPTION
"Elektra ... |
[chainmaker]add txHeader data pack function | @@ -29,3 +29,80 @@ wait for its receipt.
#include "http2intf.h"
#include "boatplatform_internal.h"
+
+
+/*!****************************************************************************
+ * @brief channel header packed
+ *
+ * @details
+ * fabric has two types of headers: signature header and channel header, this
+ * fun... |
more alpha at the start hitresult | @@ -26,7 +26,7 @@ class HitResult(FrameObject):
if scores == 300:
return
# [score, x, y, index, alpha, time, go down]
- self.hitresults.append([scores, x, y, 0, 20, 0, 3])
+ self.hitresults.append([scores, x, y, 0, 40, 0, 3])
def add_to_frame(self, background):
i = len(self.hitresults)
|
Java: supporting jsp-file attribute for servlet.
This closes issue on GitHub. | @@ -1214,6 +1214,16 @@ public class Context implements ServletContext, InitParams
processXmlInitParam(reg, (Element) child_node);
continue;
}
+
+ if (tag_name.equals("filter-name")
+ || tag_name.equals("#text")
+ || tag_name.equals("#comment"))
+ {
+ continue;
+ }
+
+ log("processWebXml: tag '" + tag_name + "' for filt... |
write GPS info to CSV file, even though if user don't want --nmea output | @@ -4670,12 +4670,10 @@ while(0 < restlen)
}
else if(option->option_code == OPTIONCODE_NMEA)
{
- if(fh_nmea != NULL)
- {
+ memset(&nmeasentence, 0, OPTIONLEN_MAX);
if(option->option_length >= 48)
{
nmealen = option->option_length;
- memset(&nmeasentence, 0, OPTIONLEN_MAX);
memcpy(&nmeasentence, &option->data, option->o... |
Don't crash on incorrect +grab product type in marks. | (wrap-error call-result)
::
=/ product=vase vase.u.call-result
- :: TODO: why do we check nesting here?
+ :: +grab might produce the wrong type
::
- ?> (~(nest ut p.mark-sample) | p.product)
+ ?. (~(nest ut p.mark-sample) | p.product)
+ %- return-error
+ :~ leaf+"ford: %vale failed"
+ leaf+"+grab has wrong type in mark... |
downstream: added a check to only set the current coroutine when the
downstream is running in async mode. | @@ -257,6 +257,7 @@ struct flb_connection *flb_downstream_conn_get(struct flb_downstream *stream)
flb_sockfd_t connection_fd;
struct flb_connection *connection;
int transport;
+ struct flb_coro *coroutine;
int result;
transport = stream->base.transport;
@@ -273,11 +274,18 @@ struct flb_connection *flb_downstream_conn_g... |
improve oidc-gen.desktop file | [Desktop Entry]
-Version=1.0
+Version=1.1
Name=oidc-gen
Comment=oidc-gen auth code redirect
Icon=utilities-terminal
Terminal=true
Type=Application
-Categories=Application;Network;
MimeType=x-scheme-handler/edu.kit.data.oidc-agent;
+NoDisplay=true
+Keywords=oidc-agent;authorization code;code exchange;redirect;
|
tap: fix flags in custom-dump
Type: fix | @@ -579,17 +579,17 @@ static void *vl_api_tap_create_v2_t_print
s = format (s, "rx-ring-size %u ", (mp->rx_ring_sz));
if (mp->host_mtu_set)
s = format (s, "host-mtu-size %u ", (mp->host_mtu_size));
- if ((mp->tap_flags) & 0x1)
+ if ((mp->tap_flags) & TAP_API_FLAG_GSO)
s = format (s, "gso-enabled ");
- if ((mp->tap_flag... |
Enable build tests for debug and release on Linux and Mac | @@ -18,12 +18,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
+ config: [release, debug]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- - name: build
+ - name: Test ${{ matrix.os }} ${{ matrix.config }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PULL_TOKEN: ${{ secrets.GIT_PULL_T... |
abis/linux: Define the F_SEAL_ family | #define F_GETOWNER_UIDS 17
+#define F_ADD_SEALS 1033
+#define F_GET_SEALS 1034
+
+#define F_SEAL_SEAL 0x0001
+#define F_SEAL_SHRINK 0x0002
+#define F_SEAL_GROW 0x0004
+#define F_SEAL_WRITE 0x0008
+
#define F_RDLCK 0
#define F_WRLCK 1
#define F_UNLCK 2
|
fix "warning ISO C forbids omitting the middle term of a?:expression"
According to the C99 manual 6.5.15
syntax conditional-expression
logical-OR-expression
logical-OR-expression ? expression :conditional-expression
above bnf rules requires expression not be none | @@ -50,7 +50,8 @@ uint64_t get_microcode_version(void)
* According to SDM vol 3 Table 9-7. If data_size field of uCode
* header is zero, the ucode length is 2000
*/
-#define GET_DATA_SIZE(hdptr) ((hdptr)->data_size ? : 2000)
+#define GET_DATA_SIZE(hdptr) ((hdptr)->data_size ?\
+ ((hdptr)->data_size) : 2000)
void acrn_u... |
Fix "for loop initial declarations only in C99" compile error | @@ -246,7 +246,8 @@ static int find_buildid(Elf *e, char *buildid) {
char *buf = (char *)data->d_buf + 16;
size_t length = data->d_size - 16;
- for (size_t i = 0; i < length; ++i) {
+ size_t i = 0;
+ for (i = 0; i < length; ++i) {
sprintf(buildid + (i * 2), "%02hhx", buf[i]);
}
|
Check for V_ASN1_BOOLEAN/V_ASN1_NULL in X509_ATTRIBUTE_get0_data
The member value.ptr is undefined for those ASN1 types. | @@ -314,7 +314,9 @@ void *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx,
ttmp = X509_ATTRIBUTE_get0_type(attr, idx);
if (!ttmp)
return NULL;
- if (atrtype != ASN1_TYPE_get(ttmp)) {
+ if (atrtype == V_ASN1_BOOLEAN
+ || atrtype == V_ASN1_NULL
+ || atrtype != ASN1_TYPE_get(ttmp)) {
X509err(X509_F_X509_ATTRIBUTE_G... |
Test Java test run on macOS | @@ -435,7 +435,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, windows-latest]
+ os: [ubuntu-latest, windows-latest, macos-latest]
java: ["11", "17"]
steps:
|
Avoid compiler warning when casting the result of `GetProcAddress()`
It is most unfortunate that the return type of `GetProcAddress()` is
`FARPROC` (which is essentially `intptr_t(*)(void)): this type cannot
be cast by GCC without warnings to anything but the generic function
pointer type `void(*)(void)`.
Let's work ar... | @@ -145,13 +145,13 @@ void _mi_os_init(void) {
hDll = LoadLibrary(TEXT("kernelbase.dll"));
if (hDll != NULL) {
// use VirtualAlloc2FromApp if possible as it is available to Windows store apps
- pVirtualAlloc2 = (PVirtualAlloc2)GetProcAddress(hDll, "VirtualAlloc2FromApp");
- if (pVirtualAlloc2==NULL) pVirtualAlloc2 = (P... |
OcDataHubLib: axe useless assignment to Status | @@ -213,8 +213,6 @@ SetDataHubEntry (
return EFI_OUT_OF_RESOURCES;
}
- Status = EFI_OUT_OF_RESOURCES;
-
//
// TODO: We may want to fill header some day.
// Currently it is not important.
|
fix pck: update makefile for rpm again | @@ -507,7 +507,7 @@ else
endif
DEBIAN_DEV_DEPENDENCIES = "libthemis (= $(VERSION)+$(DEBIAN_CODENAME))"
RPM_DEPENDENCIES = openssl
-RPM_DEV_DEPENDENCIES = "libthemis = $(VERSION)-1"
+RPM_DEV_DEPENDENCIES = "libthemis = "$(shell echo -n "$(VERSION)"|sed s/-/_/g)-1.$(ARCHITECTURE)
ifeq ($(shell lsb_release -is 2> /dev/nul... |
options/rtdl: Support dynamic TLS | @@ -608,9 +608,28 @@ void *accessDtv(SharedObject *object) {
Tcb *tcb_ptr;
asm ( "mov %%fs:(0), %0" : "=r" (tcb_ptr) );
- __ensure(object->tlsModel == TlsModel::initial);
- __ensure(object->tlsIndex < tcb_ptr->dtvSize);
- __ensure(tcb_ptr->dtvPointers[object->tlsIndex]);
+ // We might need to reallocate the DTV.
+ if(o... |
snap_build and snap_cloud_build running in the same impl_step flow | @@ -34,15 +34,15 @@ set widthCol3 $::env(WIDTHCOL3)
set widthCol4 $::env(WIDTHCOL4)
if { $impl_flow == "CLOUD_BASE" } {
- set cloud_flow TRUE
+ set merge_flow FALSE
set prefix base_
set rpt_dir_prefix $rpt_dir/${prefix}
} elseif { $impl_flow == "CLOUD_MERGE" } {
- set cloud_flow TRUE
+ set merge_flow TRUE
set prefix me... |
BugID:18335647:comp Config.in optimization: sal | -config SAL_ENABLED
- bool "FEATURE_SAL_ENABLED"
+config AOS_COMP_SAL
+ bool "AOS_COMP_SAL"
default n
+ select AOS_COMP_SAL_MODULE_gt202 if SAL_MODULE = "wifi.gt202"
+ select AOS_COMP_DEVICE_SAL_MK3060 if SAL_MODULE = "wifi.mk3060"
+ select AOS_COMP_DEVICE_SAL_ESP8266 if SAL_MODULE = "wifi.esp8266"
+ select AOS_COMP_DE... |
Work around Travis "virtual memory exhausted" error
One particular build was running out of memory. By swapping to debug mode
we reduce the optimisation level which should reduce the amount of memory
required.
[extended tests] | @@ -121,7 +121,7 @@ matrix:
sources:
- ubuntu-toolchain-r-test
compiler: gcc-5
- env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-aria -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
+ env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-aria -DPEDAN... |
Enhance doxygen docy. | @@ -2130,14 +2130,13 @@ tsReal TINYSPLINE_API ts_distance(const tsReal *x, const tsReal *y,
* @{
*/
/**
- * Copies the values of \p x (a vector with dimensionality \p dim) to \p out (a
- * vector with dimensionality greater than or equal to \c 3). If \p dim is less
- * than \c 3, the remaining components of \p out (up ... |
multiline: cri: fix typo | @@ -73,7 +73,7 @@ struct flb_ml_parser *flb_ml_parser_cri(struct flb_config *config)
NULL); /* parser name */
if (!mlp) {
- flb_error("[multiline] could not create 'docker mode'");
+ flb_error("[multiline] could not create 'cri mode'");
return NULL;
}
|
Disable remote-profile import on Windows OS.
Until can be addressed.
This is a merge from 3.0RC. | @@ -391,9 +391,10 @@ QvisHostProfileWindow::CreateWindowContents()
launchProfilesGroup = CreateLaunchProfilesGroup();
machineTabs->addTab(launchProfilesGroup, tr("Launch Profiles"));
-
+#ifndef WIN32
remoteProfilesGroup = CreateRemoteProfilesGroup();
masterWidget->addTab(remoteProfilesGroup, tr("Remote Profiles"));
+#e... |
fix compilatin issue on macOS 10.15 | @@ -93,7 +93,8 @@ class CxPlatWatchdog {
}
public:
CxPlatWatchdog(uint32_t WatchdogTimeoutMs) : TimeoutMs(WatchdogTimeoutMs) {
- CXPLAT_THREAD_CONFIG Config = { 0 };
+ CXPLAT_THREAD_CONFIG Config;
+ memset(&Config, 0, sizeof(CXPLAT_THREAD_CONFIG));
Config.Name = "cxplat_watchdog";
Config.Callback = WatchdogThreadCallba... |
Add -march=skylake-avx512 to flags if target is skylake x | @@ -8,6 +8,13 @@ endif
endif
endif
+ifeq ($(CORE), SKYLAKEX)
+ifndef NO_AVX512
+CCOMMON_OPT += -march=skylake-avx512
+FCOMMON_OPT += -march=skylake-avx512
+endif
+endif
+
ifeq ($(OSNAME), Interix)
ARFLAGS = -m x64
endif
|
Bump superuser_reserved_connections to 10
As requested from field, 3 superuser connections is not enough for gpdb
when customers run superuser maintenance scripts. 10 is the same value
as the resource group admin_group's concurrency default limit. | @@ -1890,7 +1890,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&ReservedBackends,
- 3, RESERVED_FTS_CONNECTIONS, MAX_BACKENDS,
+ 10, RESERVED_FTS_CONNECTIONS, MAX_BACKENDS,
NULL, NULL, NULL
},
|
[chainmaker][#436]add chain_id host_name and org_id | @@ -27,15 +27,21 @@ static BOAT_RESULT chainmakerWalletPrepare(void)
wallet_config.user_prikey_cfg.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_EXTERNAL_INJECTION;
wallet_config.user_prikey_cfg.prikey_type = BOAT_WALLET_PRIKEY_TYPE_SECP256R1;
wallet_config.user_prikey_cfg.prikey_format = BOAT_WALLET_PRIKEY_FORMAT_PKCS;
... |
remote: extract callbacks on push | @@ -722,6 +722,7 @@ static VALUE rb_git_remote_push(int argc, VALUE *argv, VALUE self)
Data_Get_Struct(self, git_remote, remote);
+ rugged_remote_init_callbacks_and_payload_from_options(rb_options, &opts.callbacks, &payload);
rugged_remote_init_custom_headers(rb_options, &opts.custom_headers);
rugged_remote_init_proxy_... |
DPDK: CVE-2018-1059
For further details, please see | @@ -25,14 +25,14 @@ DPDK_MLX5_PMD ?= n
B := $(DPDK_BUILD_DIR)
I := $(DPDK_INSTALL_DIR)
-DPDK_VERSION ?= 18.02
+DPDK_VERSION ?= 18.02.1
PKG_SUFFIX ?= vpp1
DPDK_BASE_URL ?= http://fast.dpdk.org/rel
DPDK_TARBALL := dpdk-$(DPDK_VERSION).tar.xz
DPDK_TAR_URL := $(DPDK_BASE_URL)/$(DPDK_TARBALL)
DPDK_17.11_TARBALL_MD5_CKSUM :=... |
Modified CB project file to enable BlastEm GDB | </MakeCommands>
<Build>
<Target title="debug">
- <Option output="out/rom.bin" prefix_auto="0" extension_auto="0" />
+ <Option output="out/rom.out" prefix_auto="0" extension_auto="0" />
<Option object_output="." />
<Option deps_output="." />
<Option type="1" />
<Option compilerVar="CC" />
</Unit>
<Extensions>
- <code_co... |
vlibmemory: coverity woes
Coverity complains about resource leak after open when fd gets 0 with below
warning.
off_by_one: Testing whether handle tfd is strictly greater than zero is
suspicious. tfd leaks when it is zero.
It is right. 0 is a valid fd. -1 is not. | @@ -552,7 +552,7 @@ vl_map_shmem (const char *region_name, int is_vlib)
while (nanosleep (&ts, &tsrem) < 0)
ts = tsrem;
tfd = open ((char *) api_name, O_RDWR);
- if (tfd > 0)
+ if (tfd >= 0)
break;
}
vec_free (api_name);
|
Add new lines at the end of files. | @@ -217,12 +217,6 @@ TEST_F(MultipleLogManagersTests, PrivacyGuardSharedWithTwoInstancesCoexist)
lm1->SetDataInspector(privacyGuard);
lm2->SetDataInspector(privacyGuard);
- lm1->SetContext("test1", "abc");
-
- lm2->GetSemanticContext().SetAppId("123");
-
- ILogger* l1a = lm1->GetLogger("aaa");
-
ILogger* l2a = lm2->Get... |
ci fix typo in formatting action | @@ -21,7 +21,7 @@ jobs:
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- run: exit 1
- if: steps.check.outputs.triggered != 'true'
+ if: steps.check-comment.outputs.triggered == 'false'
- name: Install astyle
if: success()
run: |
|
Fixed issue with NVM XML invalid token parsing | @@ -143,11 +143,12 @@ int tokenize_and_copy_key_value_pair(
{
wchar_t *tok = line;
int index = 0;
+ int vindex = 0;
memset(key, 0, key_sz);
memset(val, 0, val_sz);
- while (tok[index] != L'\0' && ((tok[index] != L'=') || (tok[index] != L':')))
+ while (tok[index] != L'\0' && ((tok[index] != L'=') && (tok[index] != L':'... |
test: h2o user must be a non-root user in order to test h2o_socket_ebpf_setup() | @@ -35,9 +35,11 @@ my $quic_port = empty_port({
});
sub spawn_my_h2o {
+ my $username = getpwuid($ENV{SUDO_UID});
return spawn_h2o({
opts => [qw(--mode=worker)],
conf => << "EOT",
+user: $username
usdt-selective-tracing: ON
listen:
type: quic
|
utils: Simplify discard max size calculation | @@ -77,8 +77,8 @@ int ocf_submit_obj_discard_wait(ocf_data_obj_t obj, uint64_t addr,
uint64_t length)
{
struct ocf_submit_io_wait_context cntx = { };
- uint32_t bytes;
- uint32_t max_length = ~0;
+ uint64_t bytes;
+ uint64_t max_length = (uint32_t)~0;
ENV_BUG_ON(env_memset(&cntx, sizeof(cntx), 0));
env_atomic_set(&cntx... |
Update for version 0.4.0.
Version 0.3.0 never really happened, as no release
binaries were ever generated. | # Changelog
All notable changes to this project will be documented in this file.
-## 0.3.0 - present
+## 0.4.0 - present
+- Add amalgamated build to janet for easier embedding.
+- Add os/date function
+- Add slurp and spit to core library.
- Added this changelog.
- Added peg module (Parsing Expression Grammars)
- Move ... |
driver/wpc/p9221.h: Format with clang-format
BRANCH=none
TEST=none | * found in the LICENSE file.
*/
-
/*
* IDT P9221-R7 Wireless Power Receiver driver definitions.
*/
#include "charge_manager.h"
#include "task.h"
-
/* ========== Variant-specific configuration ============ */
#define P9221_R7_ADDR_FLAGS 0x61
#define P9221_STAT_OV_TEMP BIT(2)
#define P9221_STAT_OV_VOLT BIT(1)
#define P92... |
chip/host/reboot.c: Format with clang-format
BRANCH=none
TEST=none | @@ -20,8 +20,7 @@ void emulator_reboot(void)
ccprints("Emulator would reboot here. Fuzzing: doing nothing.");
}
#else /* !TEST_FUZZ */
-noreturn
-void emulator_reboot(void)
+noreturn void emulator_reboot(void)
{
char *argv[] = { strdup(__get_prog_name()), NULL };
emulator_flush();
|
AS7262: Update MicroPython example. | from pimoroni_i2c import PimoroniI2C
from breakout_as7262 import BreakoutAS7262
-import picoexplorer as display
+import picographics
import time
-width = display.get_width()
-height = display.get_height()
+
+display = picographics.PicoGraphics(picographics.DISPLAY_PICO_EXPLORER)
+
+width, height = display.get_bounds()
... |
update noexecstack patch for v0.2.20 | -Index: OpenBLAS-0.2.13/exports/Makefile
-===================================================================
---- OpenBLAS-0.2.13.orig/exports/Makefile
-+++ OpenBLAS-0.2.13/exports/Makefile
-@@ -118,6 +118,7 @@ else
+--- OpenBLAS-0.2.20/exports/Makefile 2017-07-23 21:03:35.000000000 -0700
++++ OpenBLAS-0.2.20.patch/ex... |
updates %behn to no-op if its unix-duct is unset | ++ emit-doze
|= =date=(unit @da)
^+ event-core
+ :: no-op if .unix-duct has not yet been set
+ ::
+ ?~ unix-duct.state
+ event-core
:: make sure we don't try to wake up in the past
::
=? date-unit ?=(^ date-unit) `(max now u.date-unit)
|
python3-bindings: SubscriptionTest.py increase sleep time | @@ -34,7 +34,7 @@ class SubscriptionTester(SysrepoTester):
['python3','SubscriptionTestApp.py'])
self.report_pid(self.process.pid)
# wait for running data file to be copied
- sleep(0.1)
+ sleep(1)
def cancelSubscriptionStep(self):
os.kill(self.process.pid, signal.SIGUSR1)
|
Document OPENSSL_secure_clear_free | CRYPTO_secure_malloc_init, CRYPTO_secure_malloc_initialized,
CRYPTO_secure_malloc_done, OPENSSL_secure_malloc, CRYPTO_secure_malloc,
OPENSSL_secure_zalloc, CRYPTO_secure_zalloc, OPENSSL_secure_free,
-CRYPTO_secure_free, OPENSSL_secure_actual_size,
+CRYPTO_secure_free, OPENSSL_secure_clear_free,
+CRYPTO_secure_clear_fre... |
SOVERSION bump to version 5.5.1 | @@ -45,7 +45,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 5)
set(SYSREPO_MINOR_SOVERSION 5)
-set(SYSREPO_MICRO_SOVERSION 0)
+set(SYSREPO_MICRO_SO... |
Fix query for refetch_glue of stub leaking to internet. | 15 June 2017: Wouter
- Fix stub zone queries leaking to the internet for
harden-referral-path ns checks.
+ - Fix query for refetch_glue of stub leaking to internet.
13 June 2017: Wouter
- Fix #1279: Memory leak on reload when python module is enabled.
|
zephyr: test: test lis2dw12_init timeout
BRANCH=none
TEST=zmake configure --test zephyr/projects/drivers
Tested-by: Yuval Peress | @@ -57,6 +57,19 @@ static void test_lis2dw12_init__fail_write_soft_reset(void)
zassert_equal(EC_ERROR_INVAL, rv, NULL);
}
+static void test_lis2dw12_init__timeout_read_soft_reset(void)
+{
+ const struct emul *emul = emul_get_binding(EMUL_LABEL);
+ struct motion_sensor_t *ms = &motion_sensors[LIS2DW12_SENSOR_ID];
+ int ... |
framework/st_things : url safe base64 encoding for artik h/w certificate uuid
problem : (cci1+6o5 -> cci1%2B6o5)
solution : Base64 Encode -> Base64 URL Safe Encode | @@ -306,5 +306,15 @@ bool things_encrypt_artik_uuid(unsigned char *output)
memcpy(output, encode_buf2, 8);
THINGS_LOG_D(THINGS_DEBUG, TAG, "output len [%d][%s]", strlen((char *)output), output);
+ // 6. url safe
+ int i;
+ for (i = 0; i < 8; i++) {
+ if (output[i] == '+')
+ output[i] = '-';
+ else if (output[i] == '/')... |
Add function `sub` | @@ -33,7 +33,8 @@ Provide a lua module containing a selection of useful Text functions.
module Foreign.Lua.Module.Text where
import Data.Text (Text)
-import Foreign.Lua (NumResults, Lua, LuaInteger, ToLuaStack)
+import Data.Maybe (fromMaybe)
+import Foreign.Lua (FromLuaStack, NumResults, Lua, LuaInteger, ToLuaStack)
im... |
fix skinparser for more rare case | # done by Kysan the gay pp farmer thanks
+
# return pos of the first char of the comment or -1 if there is no comment
def detect_comments(line):
ancient_char = ''
@@ -27,7 +28,9 @@ escape_dict = {'\a': '/a',
'\v': '/v',
'\'': "/'",
'\"': '/"',
- '\\': '/'}
+ '\\': '/',
+ ' ': '',
+ '\ufeff': ''}
def raw(text):
@@ -41,1... |
Minify HTML report charts.js upon compiling program. | @@ -91,7 +91,12 @@ else
endif
# Charts.js
chartsjs.h: bin2c$(EXEEXT) resources/js/charts.js
+if HAS_SEDTR
+ cat resources/js/charts.js | sed -E "s@(;)\s?//..*@\1@g" | sed -E "s@^[ \t]*//..*@@g" | sed "s/^[ \t]*//" | sed "/^$$/d" | tr -d "\r\n" > resources/js/charts.js.tmp
+ ./bin2c resources/js/charts.js.tmp src/charts... |
error-drop; print interface by name | @@ -1000,7 +1000,8 @@ format_vnet_error_trace (u8 * s, va_list * va)
CLIB_UNUSED (vlib_node_t * node) = va_arg (*va, vlib_node_t *);
vnet_error_trace_t *t = va_arg (*va, vnet_error_trace_t *);
- s = format (s, " rx:%d", t->sw_if_index);
+ s = format (s, "rx:%U", format_vnet_sw_if_index_name,
+ vnet_get_main (), t->sw_i... |
Remove ClangCL from name build instructions | @@ -25,7 +25,7 @@ cd build
# Configure your build of choice, for example:
# x86-64 using NMake
-cmake -G "NMake Makefiles" -T ClangCL -DCMAKE_BUILD_TYPE=Release ^
+cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=.\ -DISA_AVX2=ON -DISA_SSE41=ON -DISA_SSE2=ON ..
# x86-64 using Visual Studio... |
removed Realtek drivers from list of know as working drivers | @@ -83,8 +83,6 @@ This list is for information purposes only and should not be regarded as a bindi
| SEMPRE WU150-1 | ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter |
| TENDA W311U+ | ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter |
| TP-LINK TL-WN722N v1 | ID 0cf3:9271 Qualcomm At... |
More unit tests for asm scanner | @@ -7,7 +7,11 @@ Build {
Config {
Name = "foo-bar",
Tools = { "yasm", "gcc" },
- Env = { },
+ Env = {
+ ASMINCPATH = {
+ "incy",
+ },
+ },
DefaultOnHost = { native.host_platform },
}
},
@@ -22,6 +26,7 @@ Build {
END
my $obj_file = '__result/foo-asm-541f0091dd54cc51f562e674e41814ab.o';
+#my $obj_file = '__result/foo-asm... |
Fix byte array formatting error in select expressions | @@ -292,9 +292,8 @@ def format_expr_16(e, format_as_value=True):
if case_type == 'DefaultExpression':
conds.append('true /* default */')
elif case_type == 'Constant' and select_type == 'Type_Bits' and 32 < size and size % 8 == 0:
- from utils.hlir import int_to_big_endian_byte_array
- value_len, l = int_to_big_endian_b... |
consistent markdown on shell scripts in readme | @@ -117,15 +117,15 @@ Once you have done this for all of your existing pools you should now restore yo
#### Building on Ubuntu 20.04
```console
-wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
-sudo dpkg -i packages-microsoft-prod.deb
-sudo apt-get upda... |
Mashes error severity DEBUG1-DEBUG5 into DEBUG | @@ -4652,23 +4652,12 @@ error_severity(int elevel)
switch (elevel)
{
- /* GPDB_12_MERGE_FIXME: In PostgreSQL, DEBUG1-DEBUG5 are all mashed together into just
- * DEBUG here. Why are we doing it differently? Revert to upstream version?
- */
case DEBUG1:
- prefix = gettext_noop("DEBUG1");
- break;
case DEBUG2:
- prefix =... |
resolver: reformat assert and also output handle | @@ -75,7 +75,7 @@ static void resolverInit (resolverHandle * p, const char * path)
static resolverHandle * elektraGetResolverHandle (Plugin * handle, Key * parentKey)
{
resolverHandles * pks = elektraPluginGetData (handle);
- ELEKTRA_ASSERT (pks != NULL, "Unable to retrieve plugin data for %s", keyName(parentKey));
+ E... |
call on_close when peer has disconnected | @@ -1228,6 +1228,8 @@ io_readable(neat_ctx *ctx, neat_flow *flow,
struct sockaddr_storage peerAddr;
socklen_t peerAddrLen = sizeof(struct sockaddr_storage);
int stream_id = -1;
+ int retval;
+ char buffer[1];
ssize_t n;
struct msghdr msghdr;
//Not used when notifications aren't available:
@@ -1279,7 +1281,6 @@ io_reada... |
stm32: Enabled CPU usage counting | @@ -615,10 +615,8 @@ int threads_schedule(unsigned int n, cpu_context_t *context, void *arg)
hal_cpuRestore(context, selected->context);
}
-#ifndef CPU_STM32
/* Update CPU usage */
threads_cpuTimeCalc(current, selected);
-#endif
#if 0
/* Test stack usage */
|
Run test-noaccel | @@ -11,7 +11,7 @@ jobs:
- run: sudo apt-get install nasm qemu
- run: cd .. && git clone git@github.com:nanovms/ops.git
- run: make
- - run: make test-nokvm
+ - run: make test-noaccel
nightly-build:
docker:
@@ -22,7 +22,7 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get install nasm qemu
- run: make
- - run: make... |
aqua: build again (still broken) | => $~ |%
+$ versioned-state
$% state-0
- state-1
==
+$ state-0
$: %0
- pil=pill
- assembled=*
- tym=@da
- fleet-snaps=(map term (map ship pier))
- piers=(map ship pier)
- ==
- +$ state-1
- $: %1
pil=pill
assembled=*
tym=@da
fleet-snaps=(map term fleet)
piers=fleet
==
+ :: XX temporarily shadowed, fix and remove
+ ::
+ ... |
webp/decode.h,cosmetics: normalize 'flip' comment
have it match the other boolean options with 'if true...' | @@ -453,7 +453,7 @@ struct WebPDecoderOptions {
int scaled_width, scaled_height; // final resolution
int use_threads; // if true, use multi-threaded decoding
int dithering_strength; // dithering strength (0=Off, 100=full)
- int flip; // flip output vertically
+ int flip; // if true, flip output vertically
int alpha_dit... |
dimmid zero value support | @@ -676,7 +676,7 @@ static int get_system_events_from_file(BOOLEAN reversed, BOOLEAN not_matching, U
{
skip_entry |= check_skip_entry_status_for_event_actionreq_set(not_matching, SYSTEM_EVENT_TYPE_AR_EVENT_GET(event_type_mask), event_message);
}
- if (dimm_uid != NULL)
+ if ((dimm_uid != NULL) && (*dimm_uid != 0))
{
sk... |
Update Lua and add emscripten to docker image. | @@ -58,6 +58,11 @@ RUN apt-get update && \
./configure && \
make && \
make install && \
+ git clone https://github.com/emscripten-core/emsdk.git /opt/emsdk && \
+ cd /opt/emsdk && \
+ ./emsdk install 2.0.20 && \
+ ./emsdk activate 2.0.20 && \
+ echo "source $(pwd)/emsdk_env.sh" >> $HOME/.bashrc && \
wget -P /usr/local/... |
BugID:19075306: Not log mod if input argu is NULL or empty string | static char serverity_name[LOG_NONE] = { 'V', 'A', 'F', 'E', 'W', 'T', 'I', 'D' };
-const char UNKNOWN_BUF[8] = "UNKNOWN";
+const char UNKNOWN_BUF[8] = "";
/* stop filter used in sync log, dedault value LOG_NONE, shall not larger than LOG_NONE */
static uint8_t stop_filter_level = LOG_NONE;
@@ -82,19 +82,23 @@ int rt_l... |
Don't verify ::Nice() call
Does not work with WSL:
It's known issue
issue:https://st.yandex-team.ru/DEVTOOLS-4896 | @@ -677,7 +677,7 @@ void TShellCommand::TImpl::OnFork(TPipes& pipes, sigset_t oldmask, char* const*
}
if (Nice) {
- Y_VERIFY(::Nice(Nice), "nice() failed(%s)", LastSystemErrorText());
+ ::Nice(Nice);
}
if (envp == nullptr) {
|
Fix cpu fallback temp sensor logic
Break the for loop either way so `path` still points to sensor module's hwmon folder. | @@ -291,12 +291,15 @@ bool CPUStats::GetCpuFile() {
#ifndef NDEBUG
std::cerr << "hwmon: sensor name: " << name << std::endl;
#endif
- if (name == "coretemp" && find_temp_input(path, input, "Package id 0")) {
+ if (name == "coretemp") {
+ find_temp_input(path, input, "Package id 0");
break;
}
- else if ((name == "zenpow... |
(os/cpu-count) should not be defined at all with JANET_REDUCED_OS | @@ -209,6 +209,8 @@ JANET_CORE_FN(os_exit,
return janet_wrap_nil();
}
+#ifndef JANET_REDUCED_OS
+
JANET_CORE_FN(os_cpu_count,
"(os/cpu-count &opt dflt)",
"Get an approximate number of CPUs available on for this process to use. If "
@@ -250,7 +252,6 @@ JANET_CORE_FN(os_cpu_count,
#endif
}
-#ifndef JANET_REDUCED_OS
#ifnd... |
fix vcxproj unittest | <ClCompile Include="$(ProjectDir)\ContextFieldsProviderTests.cpp" />
<ClCompile Include="$(ProjectDir)\ControlPlaneProviderTests.cpp" />
<ClCompile Include="$(ProjectDir)\CorrelationVectorTests.cpp" />
- <ClCompile Include="$(ProjectDir)\DataViewerCollectionTests.cpp" />
<ClCompile Include="$(ProjectDir)\DebugEventSour... |
Use only -O1 with AMD AOCC version of flang
to prevent miscompilation of LAPACK codes and tests on Ryzen | @@ -783,6 +783,7 @@ endif
ifeq ($(F_COMPILER), FLANG)
CCOMMON_OPT += -DF_INTERFACE_FLANG
+FCOMMON_OPT += -frecursive
ifdef BINARY64
ifdef INTERFACE64
ifneq ($(INTERFACE64), 0)
@@ -796,6 +797,11 @@ endif
ifeq ($(USE_OPENMP), 1)
FCOMMON_OPT += -fopenmp
endif
+ifeq ($(OSNAME), Linux)
+ifeq ($(ARCH), x86_64)
+FLANG_VENDOR ... |
Fix GPU YetiRank | @@ -66,7 +66,7 @@ void TCatboostOptions::SetLeavesEstimationDefault() {
break;
}
case ELossFunction::YetiRank: {
- defaultEstimationMethod = ELeavesEstimation::Gradient;
+ defaultEstimationMethod = (GetTaskType() == ETaskType::GPU) ? ELeavesEstimation::Newton : ELeavesEstimation::Gradient;
defaultGradientIterations = 1... |
Fixed GCC release build | #endif
#if defined(ZYDIS_RELEASE)
-# if defined(ZYDIS_GNUC)
+# if defined(ZYDIS_CLANG) // GCC eagerly evals && RHS, we have to use nested ifs.
# if __has_builtin(__builtin_unreachable)
# define ZYDIS_UNREACHABLE __builtin_unreachable()
# else
# define ZYDIS_UNREACHABLE
# endif
+# elif defined(ZYDIS_GCC) && ((__GNUC__ =... |
Add asciinema fuzzing example to README.md | @@ -253,4 +253,7 @@ Currently supported bindings are:
* cmake option: `JAVASCRIPT_BINDING`
* [README](./swig/javascript/README.md)
+ ## Fuzzing
+ An asciinema example describing the process of fuzzing libyang2 with the yangfuzz fuzz harness is available at https://asciinema.org/a/260417.
+
|
ledc test: ignore one case.
a bug caused by pcnt. it will fail randomly caused by PCNT bug. It will open when PCNT problem is resolved | @@ -254,7 +254,8 @@ TEST_CASE("LEDC normal channel and timer config", "[ledc][test_env=UT_T1_LEDC]")
}
}
-TEST_CASE("LEDC set and get frequency", "[ledc][test_env=UT_T1_LEDC][timeout=60]")
+// set it ignore: need to debug
+TEST_CASE("LEDC set and get frequency", "[ledc][test_env=UT_T1_LEDC][timeout=60][ignore]")
{
time... |
Fix context_realloc_test() to work in builds | @@ -11326,8 +11326,8 @@ static void
context_realloc_test(const char *text)
{
ExtOption options[] = {
- { "foo", "<!ELEMENT e EMPTY>"},
- { "bar", "<e/>" },
+ { XCS("foo"), "<!ELEMENT e EMPTY>"},
+ { XCS("bar"), "<e/>" },
{ NULL, NULL }
};
int i;
|
docs/uio: Document StringIO/BytesIO(alloc_size) constructors. | @@ -112,3 +112,18 @@ Classes
.. method:: getvalue()
Get the current contents of the underlying buffer which holds data.
+
+.. class:: StringIO(alloc_size)
+.. class:: BytesIO(alloc_size)
+
+ Create an empty `StringIO`/`BytesIO` object, preallocated to hold up
+ to *alloc_size* number of bytes. That means that writing t... |
update default configuration file | # Load peers at startup from this file and save peers to this file at shutdown
--peerfile /etc/kadnode/peers.txt
-#Announce an identifier for the entire runtime of KadNode.
+# For authentication via TLS, x509 certificates need to be provided.
+# The server needs a tuple of the certificate file and private key file:
+# ... |
Added cursor to UI page | @@ -62,6 +62,12 @@ function mapStateToProps(state) {
filename: `frame.png`,
_v: uiVersion
},
+ {
+ id: "cursor",
+ name: "Cursor",
+ filename: `cursor.png`,
+ _v: uiVersion
+ },
{
id: "emotes",
name: "Emotes",
|
zephyr: Fix uart_console_read_buffer_init() return value
This function should have a return value. Add it to avoid a warning.
BRANCH=none
TEST=warning is gone | @@ -57,6 +57,8 @@ enum ec_status uart_console_read_buffer_init(void)
previous_snapshot_idx = current_snapshot_idx;
current_snapshot_idx = tail_idx;
+
+ return EC_RES_SUCCESS;
}
int uart_console_read_buffer(uint8_t type, char *dest, uint16_t dest_size,
|
Fix File.print opening for read instead of write. | @@ -604,7 +604,7 @@ with a newline at the end.
void lily_builtin_File_print(lily_state *s)
{
lily_builtin_File_write(s);
- fputc('\n', lily_file_for_read(s, lily_arg_file(s, 0)));
+ fputc('\n', lily_file_for_write(s, lily_arg_file(s, 0)));
lily_return_unit(s);
}
|
lua: drop dependency on package bytestring | @@ -88,7 +88,6 @@ flag hardcode-reg-keys
common common-options
default-language: Haskell2010
build-depends: base >= 4.8 && < 5
- , bytestring >= 0.10.2 && < 0.11
ghc-options: -Wall
-Wincomplete-record-updates
-Wnoncanonical-monad-instances
|
[arch][x86] drop march to x86-64
march=x86-64-v2 is not supported on old compilers.
Can fix in the future, but for the moment may as well just drop -v2
since it's not really being used. | @@ -118,7 +118,7 @@ ARCH_COMPILEFLAGS += -march=i686
ARCH_OPTFLAGS := -O2
GLOBAL_DEFINES += X86_LEGACY=0
else ifeq ($(SUBARCH),x86-64)
-ARCH_COMPILEFLAGS += -march=x86-64-v2
+ARCH_COMPILEFLAGS += -march=x86-64
ARCH_OPTFLAGS := -O2
GLOBAL_DEFINES += X86_LEGACY=0
endif
|
loadable_apps/binary_update.c : Remove unused local variable
binary_update.c:320:7: warning: unused variable 'path' [-Wunused-variable]
char path[BINARY_PATH_LEN];
^~~~ | @@ -317,7 +317,6 @@ static int binary_update_same_version_test(void)
{
int ret;
uint8_t type = 0;
- char path[BINARY_PATH_LEN];
binary_update_info_t pre_bin_info;
binary_update_info_t cur_bin_info;
|
Note C type changes in changelog. | @@ -15,6 +15,7 @@ This project DOES NOT adhere to [Semantic Versioning](http://semver.org/).
- lodepng and zlib sources moved into `src/vendor/` folder.
- Bundled zlib library updated from `1.2.8` to `1.2.11`.
- LodePNG updated from `20160501` to `20180611`.
+- libtcod C type declarations are stricter.
### Fixed
- `lib... |
schema compile DOC fix default value simplementing new modules | @@ -274,7 +274,7 @@ LY_ERR lys_compile_expr_implement(const struct ly_ctx *ctx, const struct lyxp_ex
* What can cause new modules to be implemented when resolving unres in 5):
* - leafref
* - when, must
- * - identityref default value
+ * - identityref, instance-identifier default value
* - new implemented module augme... |
OcFileLib: Should still free the original label | @@ -80,6 +80,7 @@ GetVolumeLabel (
//
if (VolumeInfo->VolumeLabel[VolumeLabelSize/2-1] != '\0') {
DEBUG ((DEBUG_ERROR, "Found unterminated volume label!"));
+ FreePool (VolumeInfo);
return AllocateCopyPool (sizeof (L"INVALID"), L"INVALID");
} else {
return VolumeInfo->VolumeLabel;
|
fix case issue for socket options | @@ -6,6 +6,11 @@ so_prefix = 'SO'
def sock_prop(so_str):
+ """
+ convert socket option names to system specific integers
+ e.g., 'SO/IPPROTO_IP/IP_TOS' --> 'SO/0/1'
+ """
+ so_str = so_str.upper()
if not so_str.startswith(so_prefix + so_separator):
return
_, level, optname = so_str.split(so_separator)
|
Bump HMAC_MAX_MD_CBLOCK to 200 due to
The maximum (theoretical) block size of SHA3 is 200 bytes. | # include <openssl/evp.h>
# ifndef OPENSSL_NO_DEPRECATED_3_0
-# define HMAC_MAX_MD_CBLOCK 128 /* Deprecated */
+# define HMAC_MAX_MD_CBLOCK 200 /* Deprecated */
# endif
# ifdef __cplusplus
|
OpenCore: Fix shell booting | @@ -41,9 +41,58 @@ STATIC
OC_STORAGE_CONTEXT
mOpenCoreStorage;
+STATIC
+EFI_IMAGE_START
+mOcOriginalStartImage;
+
+STATIC
+UINT32
+mOpenCoreStartImageNest;
+
+STATIC
+EFI_STATUS
+OcEfiStartImage (
+ IN EFI_HANDLE ImageHandle,
+ OUT UINTN *ExitDataSize,
+ OUT CHAR16 **ExitData OPTIONAL
+ )
+{
+ EFI_STATUS Status;
+
+ ++... |
grib_get_data: GRIB2 file with missing jDirectionIncrement produces huge values | @@ -159,6 +159,22 @@ static int init(grib_iterator* iter, grib_handle* h,grib_arguments* args)
if((err = grib_get_long_internal(h, s_jPtsConsec, &self->jPointsAreConsecutive))) return err;
if((err = grib_get_long(h, "iteratorDisableUnrotate", &self->disableUnrotate))) return err;
+ /* If the jDirectionIncrement is miss... |
fix oidc-agent default timeout not applied to autoloaded accounts | @@ -301,6 +301,9 @@ oidc_error_t oidcd_autoload(struct ipcPipe pipes, list_t* loaded_accounts,
return oidc_errno;
}
struct oidc_account* account = getAccountFromJSON(config);
+ account_setDeath(account, agent_state.defaultTimeout
+ ? time(NULL) + agent_state.defaultTimeout
+ : 0);
if (addAccount(pipes, account, loaded_... |
Removed AppVeyor badge from GitHub readme file
GitHub already show CI checks on commit messages, so the badge is redundant | # SphereServer
Game server for Ultima Online
-[](https://ci.appveyor.com/project/coruja747/source)
[](https://scan.coverity.com/projects/sphereserver-sou... |
config-tools: add white space between arguments
The macro definition SOS_VM_BOOTARGS in vm_configurations.h calls
macros SOS_ROOTFS, SOS_CONSOLE and SOS_BOOTARGS_DIFF which is defined in
misc_cfg.h and parsed from scenario.xmls.
Add a whitespace in the end of the argument macros to prevent arguments
are concatenated in... | </xsl:template>
<xsl:template name="sos_rootfs">
- <xsl:value-of select="acrn:define('SOS_ROOTFS', concat($quot, 'root=', vm/board_private/rootfs[text()], $quot), '')" />
+ <xsl:value-of select="acrn:define('SOS_ROOTFS', concat($quot, 'root=', vm/board_private/rootfs[text()], ' ', $quot), '')" />
</xsl:template>
<xsl:t... |
hark-graph-hook: remove ~& | name.u.notif-kind
=/ parent=index:post
(scag parent-lent.u.notif-kind index.post.node)
- ~& parent
?. ?| =(desc %mention)
(~(has in watching) [rid parent])
==
|
aw20198: Set and clear config register bits correctly
This patch makes aw20198_enable set and clear the bits of the config
register correctly.
BRANCH=None
TEST=None | @@ -75,8 +75,8 @@ static int aw20198_enable(struct rgbkbd *ctx, bool enable)
return rv;
}
- return aw20198_write(ctx, AW20198_REG_GCR,
- cfg | (enable ? BIT(0) : 0));
+ WRITE_BIT(cfg, 0, enable);
+ return aw20198_write(ctx, AW20198_REG_GCR, cfg);
}
static int aw20198_set_color(struct rgbkbd *ctx, uint8_t offset,
|
acl: use the global heap when allocating the lookup context
The "ACL as a service" lookup infra is shared, so a global heap must
be used.
Type: fix | @@ -782,6 +782,8 @@ acl_interface_set_inout_acl_list (acl_main_t * am, u32 sw_if_index,
*/
vec_validate_init_empty ((*pinout_lc_index_by_sw_if_index), sw_if_index,
~0);
+ /* lookup context creation is to be done in global heap */
+ void *oldheap = clib_mem_set_heap (am->vlib_main->heap_base);
if (vec_len (vec_acl_list_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.