message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add initial security editor TokenDefaultDacl support | @@ -754,7 +754,7 @@ _Callback_ NTSTATUS PhStdGetObjectSecurity(
status = PhpGetObjectSecurityWithTimeout(handle, SecurityInformation, SecurityDescriptor);
NtClose(handle);
}
- if (
+ else if (
PhEqualString2(this->ObjectType, L"LsaAccount", TRUE) ||
PhEqualString2(this->ObjectType, L"LsaPolicy", TRUE) ||
PhEqualString2... |
distro-packages/python-rpm-macros: strip proj_delim from name for specfile search | --- a/macros.lua 2017-12-07 11:46:04.000000000 -0800
-+++ b/macros.lua 2017-12-07 15:30:01.000000000 -0800
-@@ -56,15 +56,15 @@
- specpath = rpm.expand("%_specfile")
++++ b/macros.lua 2017-12-08 12:47:48.000000000 -0800
+@@ -14,7 +14,7 @@
+ -- ...but check that it is actually in the buildset
+ if insert_last_python the... |
Update docstrings in boot.janet
Elaborate on usage of reduce and accumulate. | (defn reduce
"Reduce, also know as fold-left in many languages, transforms
- an indexed type (array, tuple) with a function to produce a value."
+ an indexed type (array, tuple) with a function to produce a value by applying f to
+ each element in order. f is a function of 2 arguments, (f accum el), where
+ accum is th... |
charge_state_v2: dump_charge_state: Add cflush
The dump_charge_state (chgstate console command) is quite large,
and may get truncated, let's add 2 cflush at approximately
each third of the output.
BRANCH=none
TEST=On wand, type chgstate in EC console | @@ -297,6 +297,7 @@ static void dump_charge_state(void)
DUMP_CHG(status, "0x%x");
DUMP_CHG(option, "0x%x");
DUMP_CHG(flags, "0x%x");
+ cflush();
ccprintf("batt.*:\n");
ccprintf("\ttemperature = %dC\n",
DECI_KELVIN_TO_CELSIUS(curr.batt.temperature));
@@ -309,6 +310,7 @@ static void dump_charge_state(void)
DUMP_BATT(rema... |
Don't resize the window
Should have been removed in an earlier patch. | @@ -302,12 +302,6 @@ void resize_renderer(int sizeX, int sizeY) {
std::cout << "Textured destroyed" << std::endl;
- current_width = sizeX;
- current_height = sizeY;
- SDL_SetWindowSize(window, sizeX, sizeY);
-
- std::cout << "Window size set" << std::endl;
-
__fb_texture_RGB24 = SDL_CreateTexture(renderer, SDL_PIXELFOR... |
luci-theme-argon: Remove renderModeMenu function
luci-theme-argon no '#modemenu' , should remove renderModeMenu function. | @@ -9,9 +9,15 @@ return baseclass.extend({
render: function (tree) {
var node = tree,
- url = '';
+ url = '',
+ children = ui.menu.getChildren(tree);
- this.renderModeMenu(node);
+ for (var i = 0; i < children.length; i++) {
+ var isActive = (L.env.requestpath.length ? children[i].name == L.env.requestpath[0] : i == 0)... |
send_message: fix unknown erc20 example
Since adding more tokens in the previous commit, this erc20 token
became known. I just modify the contract address a bit to make it
unknown. | @@ -602,7 +602,7 @@ class SendMessage:
)
elif inp == "4":
tx = binascii.unhexlify(
- "f8aa81b9843b9aca0083010985949c23d67aea7b95d80942e3836bcdf7e708a747c280b844a9059cbb000000000000000000000000857b3d969eacb775a9f79cabc62ec4bb1d1cd60e000000000000000000000000000000000000000000000098a63cbeb859d027b026a0d3b1a9ba4aff7ebf81dc... |
Fixes an incorrect loop that installed bundles multiple times | @@ -599,9 +599,7 @@ static void framework_autoStartConfiguredBundles(bundle_context_t *fwCtx) {
framework_autoInstallConfiguredBundlesForList(fwCtx, autoStart, installedBundles);
}
}
- for (int i = 0; i < len; ++i) {
framework_autoStartConfiguredBundlesForList(fwCtx, installedBundles);
- }
celix_arrayList_destroy(insta... |
syscalls: Fixed syscalls array bound check | @@ -1213,7 +1213,7 @@ void *syscalls_dispatch(int n, char *ustack)
{
void *retval;
- if (n > sizeof(syscalls) / sizeof(syscalls[0]))
+ if (n >= sizeof(syscalls) / sizeof(syscalls[0]))
return (void *)-EINVAL;
proc_threadProtect();
|
Update NO_INVARIANCE change log entry | @@ -40,9 +40,10 @@ cost:quality trade off.
`cl.exe` and `clangcl.exe` compilers.
* **Feature:** The core codec now supports arm64 for both MSVC `cl.exe` and
`clangcl.exe` compilers.
- * **Feature:** `NO_INVARIANCE` builds with AVX2 will enable `-mfma` and
- `-ffp-contract=fast` when using Clang or GCC. This reduces ima... |
Ugh restructured text sucks | @@ -48,7 +48,7 @@ The first step in attaching the FIR filter as a MMIO peripheral is to create an
:end-before: DOC include end: GenericFIRBlock chisel
Connecting DspBlock by TileLink
-----------------------
+-------------------------------
With these classes implemented, you can begin to construct the chain by extendin... |
Add static assert check | #if defined(MBEDTLS_SSL_TLS_C)
+#include <assert.h>
+
#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
#else
@@ -3160,35 +3162,35 @@ static int ssl_handshake_init( mbedtls_ssl_context *ssl )
{
const int *md;
const int *sig_hashes = ssl->conf->sig_hashes;
- size_t sig_algs_len = sizeof( uint16_t );
- size_t... |
Fix-up to
Define OSSL_SIGNATURE_PARAM_NONCE_TYPE as "nonce-type" (rather than
"nonce_type") so that it is consistent with the documentation. | @@ -466,7 +466,7 @@ extern "C" {
#define OSSL_SIGNATURE_PARAM_MGF1_PROPERTIES \
OSSL_PKEY_PARAM_MGF1_PROPERTIES
#define OSSL_SIGNATURE_PARAM_DIGEST_SIZE OSSL_PKEY_PARAM_DIGEST_SIZE
-#define OSSL_SIGNATURE_PARAM_NONCE_TYPE "nonce_type"
+#define OSSL_SIGNATURE_PARAM_NONCE_TYPE "nonce-type"
/* Asym cipher parameters */
#d... |
Fix aix build failure | @@ -159,6 +159,10 @@ ifneq "$(findstring $(BLD_ARCH),suse11_x86_64 sles11_x86_64)" ""
APU_CONFIG=--with-apu-config=$(BLD_THIRDPARTY_BIN_DIR)/apu-1-config
endif
+ifneq "$(findstring $(BLD_ARCH),aix7_ppc_64 aix5_ppc_64 aix5_ppc_32)" ""
+APR_CONFIG=--with-apr-config=$(BLD_THIRDPARTY_BIN_DIR)/apr-1-config
+endif
+
aix7_ppc... |
Change win config location to mangohud folder | @@ -40,7 +40,7 @@ void enumerate_config_files(std::vector<std::string>& paths)
if (!env_config.empty())
paths.push_back(env_config + mangohud_dir + "MangoHud.conf");
#ifdef _WIN32
- paths.push_back("C:\\MangoHud.conf");
+ paths.push_back("C:\\mangohud\\MangoHud.conf");
#endif
std::string exe_path = get_exe_path();
auto... |
Fix client crash | @@ -739,6 +739,10 @@ int Client::extend_max_stream_data(int64_t stream_id, uint64_t max_data) {
namespace {
int recv_new_token(ngtcp2_conn *conn, const ngtcp2_vec *token,
void *user_data) {
+ if (config.token_file.empty()) {
+ return 0;
+ }
+
auto f = BIO_new_file(config.token_file.data(), "w");
if (f == nullptr) {
std... |
Fixes an issues with C++ properties using std::string and being assigned nullptr values. | @@ -201,7 +201,7 @@ int CServiceDependency<T,I>::invokeCallback(std::function<void(const I*, Propert
hash_map_iterator_t iter = hashMapIterator_construct((hash_map_pt)props);
while(hashMapIterator_hasNext(&iter)) {
key = (const char*) hashMapIterator_nextKey(&iter);
- value = celix_properties_get(props, key, NULL);
+ v... |
server session BUGFIX do not consider -1 as pending socket | @@ -3149,6 +3149,7 @@ nc_connect_ch_endpt(struct nc_ch_endpt *endpt, struct nc_session **session)
sock = nc_sock_connect(endpt->address, endpt->port, NC_SOCKET_CH_TIMEOUT, &endpt->ka, &endpt->sock_pending, &ip_host);
if (sock < 0) {
+ if (endpt->sock_pending > -1) {
++endpt->sock_retries;
if (endpt->sock_retries == NC_... |
hw/drivers/lps33thw: small fixes
* hw/drivers/lps33thw: Small coding style fixes
Missing spaces
Code/declaration mix
Fix build warning
When LPS33THW_ONE_SHOT_MODE was NOT specified variable
lps33thw was redeclared in a block leaving previous
declaration unused. | @@ -109,12 +109,9 @@ static const struct sensor_driver g_lps33thw_sensor_driver = {
static void lps33thw_one_shot_read_cb(struct os_event *ev)
{
int rc;
- struct lps33thw *lps33thw;
- struct sensor *sensor;
- lps33thw = (struct lps33thw *)ev->ev_arg;
- sensor = &lps33thw->sensor;
- struct sensor_itf *itf;
- itf = SENSO... |
Add workaround for RS5 insider build version checking | @@ -217,7 +217,7 @@ static VOID PhInitializeWindowsVersion(
WindowsVersion = WINDOWS_10_RS4;
break;
default:
- WindowsVersion = WINDOWS_10;
+ WindowsVersion = WindowsVersion > 17134 ? WINDOWS_10_RS4 : WINDOWS_10;
break;
}
}
|
Clamp cursor to within scene bounds in point and click scenes | #include "GameTime.h"
#include "ScriptRunner.h"
#include "Camera.h"
+#include "DataManager.h"
#include "rand.h"
#define POINT_N_CLICK_CAMERA_DEADZONE 24
@@ -43,14 +44,14 @@ void Update_PointNClick() {
dir_y = 0;
// Move
- if (INPUT_LEFT) {
+ if (INPUT_LEFT && Gt16(player.pos.x, 0)) {
dir_x = -1;
- } else if (INPUT_RIGH... |
add contentid param id. | @@ -368,7 +368,7 @@ int sceAppMgrAppDataMountById(int id, char *titleid, char *mount_point);
*
* @return 0 on success, < 0 on error.
*
- * @note param: 8 (category), 9 (stitle/title?), 10 (title/stitle?), 12 (titleid)
+ * @note param: 6 (contentid) 8 (category), 9 (stitle/title?), 10 (title/stitle?), 12 (titleid)
*/
in... |
better formatting in error messages | |= [k=beak v=(unit dome:clay)]
^- tank
=/ received=tape ?~(v "missing" "received")
- leaf+"{<k>} {received}"
+ leaf+"{<(en-beam k ~)>} {received}"
:_ discarded
leaf+"fusing into {<syd>} from {<bas>} {<con>} - overwriting prior fuse"
=. fiz (make-melt bas con)
:: responses we get for the merge will cause take-fuse to cr... |
docs(discord): typo | @@ -36,7 +36,7 @@ struct discord_voice_cbs;
/** @defgroup DiscordLimitsGeneral
* @note assume the worst-case scenario for strings,
- * where each character is 4 bytes long (UTF32)
+ * where each character is 4 bytes long (UTF8)
* @{ */
#define DISCORD_MAX_NAME_LEN 4*100 + 1
#define DISCORD_MAX_TOPIC_LEN 4*1024 + 1
@@ -... |
schema tree BUGFIX always set features of a module | @@ -800,12 +800,6 @@ lys_set_implemented_r(struct lys_module *mod, const char **features, struct lys_
assert(!mod->implemented);
- if (mod->ctx->flags & LY_CTX_EXPLICIT_COMPILE) {
- /* do not compile the module yet */
- mod->to_compile = 1;
- return LY_SUCCESS;
- }
-
/* we have module from the current context */
m = ly... |
Fix ChibiOS ADCv2 config struct | @@ -105,6 +105,8 @@ HRESULT Library_win_dev_adc_native_Windows_Devices_Adc_AdcChannel::NativeReadVal
ADC_CR2_SWSTART, /* CR2 */
ADC_SMPR1_SMP_AN11(ADC_SAMPLE_3), /* SMPR1 */
0, /* SMPR2 */
+ 0, /* HTR */
+ 0, /* LTR */
0, /* SQR1 */
0, /* SQR2 */
ADC_SQR3_SQ1_N(adcDefinition.adcChannel)
|
Deploy only for STM32 | @@ -39,6 +39,14 @@ jobs:
gcc-arm-none-eabi
libnewlib-arm-none-eabi
libstdc++-arm-none-eabi-newlib
+ before_deploy:
+ - make install
+ - tar -zcf ${TRAVIS_BUILD_DIR}${REPO}-${BUILD_ENV}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar.gz bin
+ deploy:
+ provider: releases
+ file: ${TRAVIS_BUILD_DIR}${REPO}-${BUILD_ENV}-${TRAVIS... |
add halt call instead log in console | @@ -56,6 +56,6 @@ void init_clock(heap backed_virtual)
write_msr(MSR_KVM_SYSTEM_TIME, physical_from_virtual(vclock)| 1);
if (0 == vclock->system_time)
{
- console("FATAL ERROR:system clock is inaccessible\n");
+ halt("FATAL ERROR:system clock is inaccessible\n");
}
}
|
YAML CPP: Move key creation into separate function | @@ -20,6 +20,22 @@ using namespace kdb;
namespace
{
+/**
+ * @brief This function creates a new key from the given parameters.
+ *
+ * @param name This string specifies the postfix of the name of the key produced by this function.
+ * @param parent This key specifies the prefix of the name of the key produced by this f... |
Add entry point in docker compose image for gitlab ci. | @@ -35,8 +35,10 @@ variables:
build:
type: build
image: docker/compose:1.23.2
+ entrypoint: sh
script:
- $CI_PROJECT_DIR/docker-compose.sh build
- $CI_PROJECT_DIR/docker-compose.sh push
only:
- develop
+# - master
|
The call to put_unwind_info is what makes pi invalid, so clear the
valid bit here, and soon stop bothering to clear it in other places. | @@ -499,6 +499,7 @@ put_unwind_info (struct dwarf_cursor *c, unw_proc_info_t *pi)
mempool_free (&dwarf_cie_info_pool, pi->unwind_info);
pi->unwind_info = NULL;
}
+ c->pi_valid = 0;
}
static inline int
|
Remove node loader process exit handler, as it is not needed (for now) in the loader. | @@ -3563,25 +3563,6 @@ void *node_loader_impl_register(void *node_impl_ptr, void *env_ptr, void *functi
}
}
- /* Set up the process exit handler */
-#if NODE_MAJOR_VERSION >= 12 || (NODE_MAJOR_VERSION == 12 && NODE_MINOR_VERSION >= 13)
- // TODO: Review this
- {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8:... |
fix typo in redis.conf. Interfece changed to interface | # the "bind" configuration directive, followed by one or more IP addresses.
# Each address can be prefixed by "-", which means that redis will not fail to
# start if the address is not available. Being not available only refers to
-# addresses that does not correspond to any network interfece. Addresses that
+# address... |
[config_tool] vCAT widget behavior
let vCAT chunk no longer fixed-drag | @@ -23,9 +23,9 @@ export default {
computed: {
sliderOptions() {
let options = {}
- if (this.isVcat) {
- options['behaviour'] = 'drag-fixed'
- }
+ // if (this.isVcat) {
+ // options['behaviour'] = 'drag-fixed'
+ // }
return options
},
hexField: {
|
dnstap io, make sure to free current message when stream closes. | @@ -306,6 +306,16 @@ static int dtio_find_msg(struct dt_io_thread* dtio)
return 0;
}
+/** delete the current message in the dtio, and reset counters */
+static void dtio_cur_msg_free(struct dt_io_thread* dtio)
+{
+ free(dtio->cur_msg);
+ dtio->cur_msg = NULL;
+ dtio->cur_msg_len = 0;
+ dtio->cur_msg_done = 0;
+ dtio->c... |
Support the deprecated SDL callback in the new renderer. | #include <SDL.h>
#include "../vendor/lodepng.h"
+#include "libtcod_int.h"
// ----------------------------------------------------------------------------
// SDL2 Atlas
@@ -337,7 +338,32 @@ static int sdl2_accumulate(struct TCOD_Renderer* self,
TCOD_sdl2_render_console(context->atlas, console, &context->cache_console);
... |
gppylib: remove race in WorkerPool progress test
Despite my best efforts to avoid races on overloaded test containers,
test_join_and_indicate_progress_prints_dots_until_pool_is_done() has
been failing fairly often. Replace the simple-but-flaky time-based test
with an implementation that serializes the components of the... | -import unittest
+import os
import StringIO
import threading
import time
+import unittest
import mock
@@ -245,26 +246,52 @@ class WorkerPoolTest(unittest.TestCase):
self.assertEqual(stdout.getvalue(), '')
def test_join_and_indicate_progress_prints_dots_until_pool_is_done(self):
- # To avoid false negatives from the rac... |
cmake: fix getting component requirements | @@ -87,7 +87,7 @@ foreach(__component_target ${__component_targets})
list(REMOVE_ITEM __component_requires ${__component_alias} ${__component_name})
endif()
- if(__component_requires)
+ if(__component_priv_requires)
list(REMOVE_DUPLICATES __component_priv_requires)
list(REMOVE_ITEM __component_priv_requires ${__compone... |
esp_http_client_read: Add check for esp_http_client_is_complete_data_received before returning ESP_FAIL
Closes: | @@ -991,7 +991,7 @@ int esp_http_client_read(esp_http_client_handle_t client, char *buffer, int len)
}
ESP_LOG_LEVEL(sev, TAG, "esp_transport_read returned:%d and errno:%d ", rlen, errno);
}
- if (rlen < 0 && ridx == 0) {
+ if (rlen < 0 && ridx == 0 && !esp_http_client_is_complete_data_received(client)) {
return ESP_FA... |
dpdk: bump to 22.07
Type: feature
This patch bumps DPDK version to 22.07. | @@ -22,9 +22,10 @@ DPDK_FAILSAFE_PMD ?= n
DPDK_MACHINE ?= default
DPDK_MLX_IBV_LINK ?= static
-dpdk_version ?= 22.03
+dpdk_version ?= 22.07
dpdk_base_url ?= http://fast.dpdk.org/rel
dpdk_tarball := dpdk-$(dpdk_version).tar.xz
+dpdk_tarball_md5sum_22.07 := fb73b58b80b1349cd05fe9cf6984afd4
dpdk_tarball_md5sum_22.03 := a0... |
Updated function comment under parser.c. | @@ -2010,7 +2010,7 @@ set_spec_visitor_key (char **fdate, const char *ftime)
}
/* Generate a unique key for the visitors panel from the given logitem
- * structure and assign it to out key data structure.
+ * structure and assign it to the output key data structure.
*
* On error, or if no date is found, 1 is returned.
... |
cmake: rename THIRD-PARTY-LICENSES in PackagingFedora | @@ -19,15 +19,15 @@ set (CPACK_RPM_PACKAGE_AUTOREQPROV 1)
set (CPACK_RPM_CHANGELOG_FILE "${CMAKE_SOURCE_DIR}/scripts/packaging/fedora/changelog")
-execute_process (COMMAND bash "${CMAKE_SOURCE_DIR}/scripts/packaging/fedora/map_licenses.sh" "${CMAKE_SOURCE_DIR}/doc/THIRD-PARTY-LICENSES"
+execute_process (COMMAND bash "$... |
BugID:16966632:fix drop incoming PUBLISH data issue. | @@ -308,11 +308,24 @@ static int iotx_mc_handle_recv_PUBLISH(iotx_mc_client_t *c, char *topic, char *m
return FAIL_RETURN;
}
mal_debug("iotx_mc_handle_recv_PUBLISH topic=%s msg=%s", topic, msg);
+ /* flowControl for specific topic */
+ static uint64_t time_prev = 0;
+ uint64_t time_curr = 0;
char *filterStr = "{\"metho... |
bugid:23646919:Add RHINO_BIT_CTZ to improve performance | @@ -49,11 +49,11 @@ RHINO_INLINE uint8_t krhino_clz32(uint32_t x)
uint8_t n = 0;
if (x == 0) {
- return 32;
+ return BITMAP_UNIT_SIZE;
}
#ifdef RHINO_BIT_CLZ
- n += RHINO_BIT_CLZ(x);
+ n = RHINO_BIT_CLZ(x);
#else
if ((x & 0XFFFF0000) == 0) {
x <<= 16;
@@ -86,9 +86,12 @@ RHINO_INLINE uint8_t krhino_ctz32(uint32_t x)
uin... |
skip GPU tests when no GPU available | @@ -146,8 +146,12 @@ Unit_Test_UBSan:
Unit_Test_GPU:
image: nvidia/cuda:10.2-devel-ubuntu18.04
stage: test1
- script:
- - AUTOCLEAN=0 CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make utest_gpu
+ script: |
+ if nvidia-smi ; then
+ AUTOCLEAN=0 CUDA=1 CUDA_BASE=/usr/local/cuda CUDA_LIB=lib64 make utest_gpu
+ else
+ pr... |
Updated make rules for MSPSim as submodule to Cooja | # $Id: Makefile.msp430,v 1.35 2011/01/19 07:30:31 adamdunkels Exp $
+COOJA_PATH ?= $(CONTIKI)/tools/cooja
+
ifdef nodeid
CFLAGS += -DNODEID=$(nodeid)
endif
@@ -215,19 +217,24 @@ else
$(OBJCOPY) $^ -O ihex $@
endif
-$(CONTIKI)/tools/mspsim/build.xml:
+$(COOJA_PATH)/build.xml:
+ @echo '----------------'
+ @echo 'Could no... |
ZCLDB: Add IKEA manufacturer specific clusters and attributes | <value name="Emergency mains and transfer switch" value="6"></value>
<value name="Mains (single phase) with battery backup" value="0x81"></value>
</attribute>
+ <attribute id="0x0008" name="Unknown 1" type="enum8" access="r" required="o" >
+ <description>IKEA control outlet specific.</description>
+ </attribute>
+ <att... |
Update the TestRunner
This makes the TestRunner run each test class individually
Although we can run them all tests in a single run command by
running each individually makes finding failurs from the error
much simpler. | @@ -11,16 +11,65 @@ public class TestRunner {
public static void main(String args[]) {
JUnitCore junit = new JUnitCore();
junit.addListener(new TextListener(System.out));
- Result result = junit.run(
- OCMainTest.class,
- OCRepresentationTest.class,
- OCUuidTest.class);
+ Result result;
+ int exit_status = 0;
+ System.... |
test: fix coverity & argument cannot be negative | @@ -666,12 +666,12 @@ static int rfc7919_test(void)
DH_get0_key(b, &bpub_key, NULL);
alen = DH_size(a);
- if (!TEST_ptr(abuf = OPENSSL_malloc(alen))
+ if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen))
|| !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1))
goto err;
blen = DH_size(b);
- if (!... |
Fixed API Query parameter handling | @@ -224,8 +224,8 @@ namespace MiningCore.Api
if (pool == null)
return;
- var page = context.GetQueryParameter<int>("page");
- var pageSize = context.GetQueryParameter<int?>("pageSize") ?? 20;
+ var page = context.GetQueryParameter<int>("page", 0);
+ var pageSize = context.GetQueryParameter<int>("pageSize", 20);
if (pag... |
added full support for WPA2 SHA384 AES-128-CMAC (802.11w SUITE B) | @@ -26,7 +26,7 @@ Detailed description
--------------
| Tool | Description |
-| -------------- | ---------------------------------------------------------------------------------------------------- |
+| -------------- | ----------------------------------------------------------------------------------------------------... |
Add error check to prevent corrupt files trying to unpack | @@ -439,6 +439,12 @@ exr_read_scanline_chunk_info (
fsize);
}
}
+
+ if (cinfo->packed_size == 0 && cinfo->unpacked_size > 0)
+ return pctxt->report_error (
+ pctxt,
+ EXR_ERR_INVALID_ARGUMENT,
+ "Invalid packed size of 0");
return EXR_ERR_SUCCESS;
}
@@ -942,6 +948,13 @@ exr_read_tile_chunk_info (
cinfo->sample_count_da... |
CI: keep ccache size within limits
The ccache configuration done by the action
is not available inside the docker container,
so perform it manually before running the tests. | @@ -128,6 +128,8 @@ jobs:
# Set permissions for Docker mount
sudo chown -R 1000:1000 .
# Run test
- docker run --privileged --sysctl net.ipv6.conf.all.disable_ipv6=0 -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -... |
Don't reactivate deleted ZGP switches | @@ -1515,7 +1515,7 @@ void DeRestPluginPrivate::gpDataIndication(const deCONZ::GpDataIndication &ind)
}
}
- if (!sensor)
+ if (!sensor || sensor->deletedState() == Sensor::StateDeleted)
{
if (searchSensorsState != SearchSensorsActive)
{
@@ -1590,24 +1590,6 @@ void DeRestPluginPrivate::gpDataIndication(const deCONZ::GpD... |
scheduler: schedule retries immediately if engine is shutting down | @@ -286,8 +286,13 @@ int flb_sched_request_create(struct flb_config *config, void *data, int tries)
timer->data = request;
timer->event.mask = MK_EVENT_EMPTY;
- /* Get suggested wait_time for this request */
- seconds = backoff_full_jitter((int)config->sched_base, (int)config->sched_cap, tries);
+ /* Get suggested wait... |
[cmake] Turn on MA57 in defaut options | @@ -54,7 +54,7 @@ option(WITH_MUMPS "Compilation with the MUMPS solver. Default = OFF" OFF)
option(WITH_UMFPACK "Compilation with the UMFPACK solver. Default = OFF" OFF)
option(WITH_SUPERLU "Compilation with the SuperLU solver. Default = OFF" OFF)
option(WITH_SUPERLU_MT "Compilation with the SuperLU solver, multithread... |
improved warnings | @@ -685,21 +685,21 @@ if(sequenceerrorcount > 0)
{
printf("\nWarning: out of sequence timestamps!\n"
"This dump file contains frames with out of sequence timestamps.\n"
- "It is a bug of the capturing tool.\n");
+ "That is a bug of the capturing tool.\n");
}
if(zeroedtimestampcount > 0)
{
printf("\nWarning: missing tim... |
Fixed read/write permissions of Core_A Private Timer registers | @@ -650,14 +650,14 @@ typedef struct
__IOM uint32_t LOAD; //!< \brief Offset: 0x000 (R/W) Private Timer Load Register
__IOM uint32_t COUNTER; //!< \brief Offset: 0x004 (R/W) Private Timer Counter Register
__IOM uint32_t CONTROL; //!< \brief Offset: 0x008 (R/W) Private Timer Control Register
- __IM uint32_t ISR; //!< \b... |
SOVERSION bump to version 2.20.23 | @@ -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 20)
-set(LIBYANG_MICRO_SOVERSION 22)
+set(LIBYANG_MICRO_SOVERSION 23)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG... |
Fix OMV2 build. | #define OMV_DMA_MEMORY SRAM2 // Misc DMA buffers
#define OMV_FB_SIZE (151K) // FB memory: header + QVGA/GS image
-#define OMV_FB_ALLOC_SIZE (14K) // minimum fb alloc size
+#define OMV_FB_ALLOC_SIZE (12K) // minimum fb alloc size
#define OMV_STACK_SIZE (4K)
#define OMV_HEAP_SIZE (52K)
|
s5j/irq: tidy up a bit
Fixes trivial coding style issues, replacing spaces with tabs. | * language governing permissions and limitations under the License.
*
****************************************************************************/
-/****************************************************************************************************
+/*******************************************************************... |
apps/cmp.c: Fix bug on -path option introduced in commit | @@ -527,7 +527,7 @@ static varref cmp_vars[] = { /* must be in same order as enumerated above! */
{&opt_oldcert}, {(char **)&opt_revreason},
- {&opt_server}, {&opt_proxy}, {&opt_no_proxy}, {&opt_path},
+ {&opt_server}, {&opt_path}, {&opt_proxy}, {&opt_no_proxy},
{(char **)&opt_msg_timeout}, {(char **)&opt_total_timeout... |
cmake: add hidden option to link components as group
Adds a hidden option to link components in projects as one big group for
debugging purposes. Makes it easy to single out if symbols are not
really defined or some requirements are missing for components leading
to undefined link errors. | @@ -440,6 +440,10 @@ macro(project project_name)
add_executable(${project_elf} "${project_elf_src}")
add_dependencies(${project_elf} _project_elf_src)
+ if(__PROJECT_GROUP_LINK_COMPONENTS)
+ target_link_libraries(${project_elf} "-Wl,--start-group")
+ endif()
+
if(test_components)
target_link_libraries(${project_elf} "-... |
VERSION bump to version 2.0.190 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 189)
+set(LIBYANG_MICRO_VERSION 190)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
Fix typos in kretfunc documentation
Fixes an incorrect link to kretfunc documentation section and fixes example to use proper macro | @@ -17,7 +17,7 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s
- [7. Raw Tracepoints](#7-raw-tracepoints)
- [8. system call tracepoints](#8-system-call-tracepoints)
- [9. kfuncs](#9-kfuncs)
- - [10. kretfuncs](#9-kretfuncs)
+ - [10. kretfuncs](#10-kretfuncs)
- [Data](#data)
- [1. bpf... |
main shm BUGFIX wrong value used | @@ -1993,7 +1993,7 @@ sr_shmmain_ly_int_data_sched_apply(sr_conn_ctx_t *conn, struct lyd_node *sr_mods
goto cleanup;
}
- if (change) {
+ if (*change) {
/* check that persistent module data can be loaded with updated modules */
if ((err_info = sr_shmmain_sched_check_data(sr_mods, old_ctx, new_ctx, &fail)) || fail) {
got... |
tree data BUGFIX handle opaque nodes in lists
Refs | @@ -3902,7 +3902,7 @@ lyd_path_list_predicate(const struct lyd_node *node, char **buffer, size_t *bufl
const char *val;
char quot;
- for (key = lyd_child(node); key && (key->schema->flags & LYS_KEY); key = key->next) {
+ for (key = lyd_child(node); key && key->schema && (key->schema->flags & LYS_KEY); key = key->next) ... |
Update cipher definition | @@ -838,8 +838,7 @@ static SSL_CIPHER ssl3_ciphers[] = {
1,
TLS1_3_TXT_AES_128_GCM_SHA256,
TLS1_3_CK_AES_128_GCM_SHA256,
- SSL_kRSA,
- SSL_aRSA,
+ 0, 0,
SSL_AES128GCM,
SSL_AEAD,
TLS1_3_VERSION, TLS1_3_VERSION,
|
Remove some old filters - small test results are the same as in the previous commit. | @@ -27,17 +27,6 @@ int chimericAlignScore (ChimericSegment & seg1, ChimericSegment & seg2)
bool ReadAlign::chimericDetectionMult() {
bool chimRecord=false;
-
- //////////////////// chimeras
- //stich windows => chimeras
- //stich only the best window with one of the lower score ones for now - do not stich 2 lower score... |
fix compilation with MI_DEBUG>3, issue | @@ -84,9 +84,10 @@ static bool mi_page_is_valid_init(mi_page_t* page) {
mi_assert_internal(mi_page_list_is_valid(page,page->local_free));
#if MI_DEBUG>3 // generally too expensive to check this
- if (page->flags.is_zero) {
- for(mi_block_t* block = page->free; block != NULL; mi_block_next(page,block)) {
- mi_assert_exp... |
out_azure: fix leak on exception | @@ -176,6 +176,7 @@ static int build_headers(struct flb_http_client *c,
str_hash = flb_sds_create_size(256);
if (!str_hash) {
flb_errno();
+ flb_sds_destroy(rfc1123date);
return -1;
}
|
fs/smartfs : Add logic to check journal contents before recovery
Before calculate journal crc, check validation of its contents first. | @@ -5552,12 +5552,30 @@ static int smart_journal_scan(FAR struct smart_struct_s *dev, bool print_dump)
static int smart_journal_recovery(FAR struct smart_struct_s *dev, journal_log_t *log)
{
int ret = OK;
- int type;
+ uint8_t type;
size_t mtd_size = sizeof(struct smart_sect_header_s);
uint32_t address = smart_journal_... |
Fix Cassandra Xms and Xmx to 2G | # the same value to avoid stop-the-world GC pauses during resize, and
# so that we can lock the heap in memory on startup to prevent any
# of it from being swapped out.
-#-Xms4G
-#-Xmx4G
+-Xms2G
+-Xmx2G
# Young generation size is automatically calculated by cassandra-env
# based on this formula: min(100 * num_cores, 1/... |
system/termcurses/tcurses_vt100.c: Fix spelling error in last commit. | @@ -827,7 +827,7 @@ static int tcurses_vt100_getkeycode(FAR struct termcurses_s *dev, FAR int *speci
*keymodifiers = 0;
*specialkey = 0;
ismodifier = false;
- buildkeycount = 0;
+ keybuildcount = 0;
while (keycode == -1)
{
|
Fixing hud width issues | @@ -445,20 +445,6 @@ parse_overlay_config(struct overlay_params *params,
params->font_size = 24;
}
- //increase hud width if io read and write
- if (!params->width) {
- if (((params->enabled[OVERLAY_PARAM_ENABLED_gpu_core_clock] && !params->enabled[OVERLAY_PARAM_ENABLED_gpu_power])
- || (!params->enabled[OVERLAY_PARAM_... |
libc; fix integer overflow of alloc size due to multiplication.
Pointed out by | #include <stdlib.h>
#include <string.h>
-
-/* FIXME: This should look for multiplication overflow */
+#include <stdint.h>
void *calloc(size_t nmemb, size_t size)
{
void *ptr;
+ int nb;
+ nb = sizeof(size_t) * 4;
+ if (size >= SIZE_MAX >> nb || nmemb >= SIZE_MAX >> nb) {
+ return NULL;
+ }
size *= nmemb;
ptr = malloc(si... |
build/tools/esp32: Modify command and operator that "dash" not support.
In ubuntu environment, "dash" is default shell, it does not support
built-in "let" command and comparsion operator "==", so modify it
to work in both "bash" and "dash". | @@ -31,11 +31,11 @@ i=0
#find romfs partition number
for pname in $flash_type_list
do
- if [ "$pname" == "romfs" ]; then
+ if [ "$pname" = "romfs" ]; then
isromfs_exist=1
break
fi
- let "romfs_num += 1"
+ romfs_num=`expr $romfs_num + 1`
done
#find romfs partition start address
@@ -51,7 +51,7 @@ do
break
fi
romfs_addr=`... |
Enable ch2 ADC/DAC on stream start only if ch2 is used | @@ -616,10 +616,11 @@ int ILimeSDRStreaming::Streamer::UpdateThreads(bool stopAll)
lmsControl.Modify_SPI_Reg_bits(LMS7param(LML2_MODE), 0, fromChip);
lmsControl.Modify_SPI_Reg_bits(LMS7param(LML1_FIDM), 0, fromChip);
lmsControl.Modify_SPI_Reg_bits(LMS7param(LML2_FIDM), 0, fromChip);
+
lmsControl.Modify_SPI_Reg_bits(LMS... |
u3: cleans up comments in u3s_sift_ud() | @@ -875,9 +875,7 @@ u3s_sift_ud_bytes(c3_w len_w, c3_y* byt_y)
return ( 1 == len_w ) ? (u3_noun)0 : u3_none;
}
- // if ( (1 == len_w) && ('0' == *byt_y) ) return (u3_noun)val_s;
-
- // +ted:ab: leading nonzero, 0-2 digits
+ // +ted:ab: leading nonzero, 0-2 additional digits
//
if ( NOT_DEC(*byt_y) ) return u3_none;
@@ ... |
snprintf: Remove the %o and %p support
%x could be used to replace the %o print option.
%x could be used to replace the %p print option also.
Acked-by: Eddie Dong | @@ -508,19 +508,6 @@ void do_print(const char *fmt_arg, struct print_param *param,
uint32_t));
}
}
- /* octal number */
- else if (ch == 'o') {
- if ((param->vars.flags &
- PRINT_FLAG_LONG_LONG) != 0U) {
- print_pow2(param,
- __builtin_va_arg(args,
- uint64_t), 3U);
- } else {
- print_pow2(param,
- __builtin_va_arg(arg... |
ManifoldAPI fix POST entity UTF8 format | @@ -4,6 +4,7 @@ import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
@@ -293,7 +294,7 @@ public class ManifoldAPI {
try {
if (verb.equals("PUT") || verb.equals("... |
doc: add some comments for coding guidelines
This patch adds some comments for coding guidelines. | .. _coding_guidelines:
+.. This document is being generated with a python script.
+.. If you would like to update this document, please contact Shiqing.
+.. Shiqing Gao <shiqing.gao@intel.com>
+
Coding Guidelines
#################
|
Remove double error messages | @@ -756,30 +756,26 @@ SSL_TEST_CTX *SSL_TEST_CTX_create(const CONF *conf, const char *test_section)
/* Subsections */
if (strcmp(option->name, "client") == 0) {
- if (!parse_client_options(&ctx->extra.client, conf,
- option->value))
+ if (!parse_client_options(&ctx->extra.client, conf, option->value))
goto err;
} else ... |
better detection of crappy cap files | @@ -1480,6 +1480,17 @@ if((apstaessidlistecleaned != NULL) && (hccapxbestoutname != NULL))
continue;
}
}
+
+ for(ec = 0; ec < zeigeressid->essidlen; ec++)
+ {
+ if((zeigeressid->essid[ec] > 0x7e) && (essidchangecount > 2))
+ {
+ zeigeressid++;
+ continue;
+ }
+ }
+
+
zeiger->essidlen = zeigeressid->essidlen;
memset(zei... |
test BUGFIX wrong dereference | @@ -386,7 +386,7 @@ clb_trusted_cert_lists(const char *name, void *UNUSED(user_data), char ***cert_p
*cert_data_count = 1;
return 0;
} else if (!strcmp(name, "client_cert_list")) {
- *cert_paths = malloc(sizeof *cert_paths);
+ *cert_paths = malloc(sizeof **cert_paths);
(*cert_paths)[0] = strdup(TESTS_DIR"/data/client.c... |
rl->enc_ctx must be non-NULL and cipher must be set
Otherwise ssl3_cipher() cannot work properly.
Fixes Coverity CID | @@ -98,10 +98,8 @@ static int ssl3_cipher(OSSL_RECORD_LAYER *rl, SSL3_RECORD *inrecs, size_t n_recs
return 0;
ds = rl->enc_ctx;
- if (rl->enc_ctx == NULL)
- enc = NULL;
- else
- enc = EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx);
+ if (ds == NULL || (enc = EVP_CIPHER_CTX_get0_cipher(ds)) == NULL)
+ return 0;
provided = (EVP... |
Set C standard for all compilers in compile options (cmake). | @@ -36,19 +36,13 @@ include(Portability)
set(DEFAULT_PROJECT_OPTIONS
DEBUG_POSTFIX "d"
- CXX_STANDARD 11 # Not available before CMake 3.1; see below for manual command line argument addition
+ CXX_STANDARD 11
+ C_STANDARD 11 # TODO: Provide support for older standards
LINKER_LANGUAGE "CXX"
POSITION_INDEPENDENT_CODE ON
... |
network: change keepalive type to char | /* Network connection setup */
struct flb_net_setup {
/* enable/disable keepalive support */
- int keepalive;
+ char keepalive;
/* max time in seconds that a keepalive connection can be idle */
int keepalive_idle_timeout;
|
enabled valid report | @@ -39,7 +39,7 @@ namespace
(ebi::vcf::VERSION_OPTION, "Display version of the assembly checker")
(ebi::vcf::INPUT_OPTION, po::value<std::string>()->default_value(ebi::vcf::STDIN), "Path to the input VCF file, or stdin")
(ebi::vcf::FASTA_OPTION, po::value<std::string>(), "Path to the input FASTA file; please note that ... |
save config after ootx data is completed | @@ -31,6 +31,8 @@ static void reset_calibration( struct SurviveCalData * cd );
void ootx_packet_clbk_d(ootx_decoder_context *ct, ootx_packet* packet)
{
+ static uint8_t lighthouses_completed = 0;
+
SurviveContext * ctx = (SurviveContext*)(ct->user);
SurviveCalData * cd = ctx->calptr;
int id = ct->user1;
@@ -57,7 +59,11... |
[CUDA] Implement CL_MEM_ALLOC_HOST_PTR | @@ -242,17 +242,15 @@ cl_int pocl_cuda_alloc_mem_obj(cl_device_id device, cl_mem mem_obj)
mem_obj->mem_host_ptr, 0);
CUDA_CHECK(result, "cuMemHostGetDevicePointer");
}
+ else if (flags & CL_MEM_ALLOC_HOST_PTR)
+ {
+ result = cuMemHostAlloc(&b, mem_obj->size, CU_MEMHOSTREGISTER_DEVICEMAP);
+ CUDA_CHECK(result, "cuMemHos... |
Added 'facebookexternalhit' to the default crawler list. | @@ -163,6 +163,7 @@ static const char *browsers[][2] = {
/* Crawlers/Bots (Possible Safari based) */
{"AppleBot", "Crawlers"},
+ {"facebookexternalhit", "Crawlers"},
{"Twitter", "Crawlers"},
{"Safari", "Safari"},
|
doc: Upgrade RT kernel to 5.15 in sample app guide | @@ -117,7 +117,7 @@ As a normal (e.g., **acrn**) user, follow these steps:
cd ~/acrn-work/acrn-hypervisor
git fetch --all
- git checkout v3.1
+ git checkout master
#. Build the ACRN sample application source code::
@@ -162,13 +162,12 @@ Make the RT_VM Image
*********************
1. Check out the ``acrn-kernel`` source ... |
tests: internal: ra: Use putenv() for Windows compatibility
MSVC supports putenv(), but not setenv(). This has been causing
build errors on AppVeyor. Fix it. | @@ -113,7 +113,7 @@ void cb_translate()
}
/* Set environment variables */
- setenv("FLB_ENV", "translated", 1);
+ putenv("FLB_ENV=translated");
/* Formatter */
fmt = \
|
language-server: address review issues | ++ on-watch
|= =path
?: ?=([%primary ~] path)
- :_ this
- ~
+ `this
?. ?=([%http-response @ ~] path)
(on-watch:def path)
`this
|= res=out:notification:lsp-sur
^- (list card)
:_ ~
- [%give %fact `/primary %language-server-rpc-notification !>(res)]
+ [%give %fact ~[/primary] %language-server-rpc-notification !>(res)]
::
... |
Fix SAL warning when passing 0 to PhPrintPointer | @@ -437,7 +437,7 @@ FORCEINLINE VOID PhPrintUInt64(
FORCEINLINE VOID PhPrintPointer(
_Out_writes_(PH_PTR_STR_LEN_1) PWSTR Destination,
- _In_ PVOID Pointer
+ _In_opt_ PVOID Pointer
)
{
Destination[0] = L'0';
|
Fallback to current song waveforms in song preview | @@ -144,6 +144,10 @@ const preview = (note, type, instrument, square2, waves = []) => {
console.log(note, instrument, square2);
const noteFreq = note2freq[note];
+ if (waves.length === 0) {
+ waves = current_song.waves;
+ }
+
switch (type) {
case "duty":
if (!square2) {
|
Add recording circle to render_mango | @@ -1257,6 +1257,8 @@ void render_mango(swapchain_stats& data, struct overlay_params& params, ImVec2&
ImGui::PopStyleColor();
}
+ if(logger->is_active())
+ ImGui::GetWindowDrawList()->AddCircleFilled(ImVec2(data.main_window_pos.x + window_size.x - 15, data.main_window_pos.y + 15), 10, params.engine_color, 20);
ImGui::E... |
Fixed syntax error for SceKernelBootimage.yml. | @@ -8,4 +8,4 @@ modules:
kernel: true
nid: 0x17E65BD7
variables:
- - sceKernelBootimageEntries: 0x9C08E88A
\ No newline at end of file
+ sceKernelBootimageEntries: 0x9C08E88A
|
Clear the Websocket protocol object in the handler | @@ -73,8 +73,10 @@ static VALUE iodine_ws_write(VALUE self, VALUE data) {
// fprintf(stderr, "iodine_ws_write: self = %p ; data = %p\n"
// "\t\tString ptr: %p, String length: %lu\n",
// (void *)ws, (void *)data, RSTRING_PTR(data), RSTRING_LEN(data));
- if (!ws || ((protocol_s *)ws)->service != WEBSOCKET_ID_STR)
+ if (!... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.