message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
bbr: Allow at least 10 packets to cover up user space latency | @@ -371,14 +371,9 @@ static void bbr_set_send_quantum(ngtcp2_bbr_cc *cc, ngtcp2_conn_stat *cstat) {
if (cstat->pacing_rate < 1.2 * 1024 * 1024 / 8 / NGTCP2_SECONDS) {
cstat->send_quantum = cstat->max_udp_payload_size;
- return;
- }
-
- if (cstat->pacing_rate < 24.0 * 1024 * 1024 / 8 / NGTCP2_SECONDS) {
+ } else if (cst... |
Test reallocation failure in xmlns attribute handling
Note that this commit provokes a segfault due to a bug in
storeAtts() | @@ -4505,6 +4505,32 @@ START_TEST(test_nsalloc_long_prefix)
#undef MAX_ALLOC_COUNT
END_TEST
+/* Test attribute handling in the face of a dodgy reallocator */
+START_TEST(test_nsalloc_realloc_attributes)
+{
+ const char *text =
+ "<foo:e xmlns:foo='http://expat.sf.net/' bar:a='12'\n"
+ " xmlns:bar='http://expat.sf.net/'... |
I modified the internal launcher to use mesagl for the engine if
available so that saving images without screen capture works. | @@ -2805,6 +2805,12 @@ class MainLauncher(object):
# If lib/mesgl/libGL.so exists, then add lib/mesgl to LD_LIBRARY_PATH
# for gui and viewer running with a window.
#
+ # Eric Brugger, Tue Dec 11 11:52:39 PST 2018
+ # I modified Kathleen's last change so that the logic is now if
+ # lib/mesgl/libGL.so exists, then add ... |
Check mkdir return value in audio_register
Concider mkdir fail case.
If it happens, audio_register failed | @@ -833,10 +833,12 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev)
static bool dev_audio_created = false;
#ifndef CONFIG_AUDIO_CUSTOM_DEV_PATH
FAR const char *devname = "/dev/audio";
+ int ret;
#elif !defined(CONFIG_AUDIO_DEV_ROOT)
FAR const char *devname = CONFIG_AUDIO_DEV_PATH;
FAR cons... |
Stylecheck for plgo/pkg/signature/ | @@ -528,9 +528,6 @@ migrations:
- a.yandex-team.ru/strm/plgo/pkg/live_test
- a.yandex-team.ru/strm/plgo/pkg/pinger
- a.yandex-team.ru/strm/plgo/pkg/pinger_test
- - a.yandex-team.ru/strm/plgo/pkg/signature/generate_sign_url
- - a.yandex-team.ru/strm/plgo/pkg/signature
- - a.yandex-team.ru/strm/plgo/pkg/signature_test
- ... |
Update c_check.cmake | @@ -73,6 +73,10 @@ if (${ARCH} STREQUAL "X86")
set(ARCH x86)
endif ()
+if (${ARCH} MATCHES "ppc")
+ set(ARCH power)
+endif ()
+
set(COMPILER_ID ${CMAKE_CXX_COMPILER_ID})
if (${COMPILER_ID} STREQUAL "GNU")
set(COMPILER_ID "GCC")
|
tools: acrn-manager: fix a potential NULL pointer dereference
check the return value of vmmngr_find() before dereference in wait_vm_stop() | @@ -504,8 +504,13 @@ static int wait_vm_stop(const char * vmname, unsigned int timeout)
vmmngr_update();
s = vmmngr_find(vmname);
+ if (s == NULL) {
+ printf("%s: vm %s not found\n", __func__, vmname);
+ return -1;
+ } else {
if (s->state == VM_CREATED)
return 0;
+ }
sleep(1);
} while (t--);
|
Add invalid parameter check at image_buffer_init() / image_buffer_resize() | @@ -231,6 +231,38 @@ image_buffer_init(
int g;
int b;
+ /* check parameters */
+ if (width <= 0) {
+ sixel_helper_set_additional_message(
+ "image_buffer_init: an invalid width parameter detected.");
+ status = SIXEL_BAD_INPUT;
+ goto end;
+ }
+ if (height <= 0) {
+ sixel_helper_set_additional_message(
+ "image_buffer_... |
sdl/video: fix build failure on Windows 10 due to mismatching type casting inside GetICCProfile() | @@ -1091,7 +1091,7 @@ func (window *Window) SetKeyboardGrab(grabbed bool) {
//
// (https://wiki.libsdl.org/SDL_GetWindowICCProfile)
func (window *Window) GetICCProfile() (iccProfile unsafe.Pointer, size uintptr, err error) {
- _size := (*C.ulong)(unsafe.Pointer(&size))
+ _size := (*C.size_t)(unsafe.Pointer(&size))
iccP... |
https_server: Fix example test failure
Closed the client connection gracefully for the https server
callback check to pass in test
Made some functions static in the example | @@ -141,11 +141,13 @@ def test_examples_protocol_https_server_simple(env, extra_data): # type: (tiny_
resp = conn.getresponse()
dut1.expect('performing session handshake')
got_resp = resp.read().decode('utf-8')
- # Close the connection
if got_resp != success_response:
Utility.console_log('Response obtained does not mat... |
increase test task priority | #include "iot_system_init.h"
#include "iot_wifi.h"
#include "aws_clientcredential.h"
+#include "iot_config.h"
/* Test application includes. */
#include "aws_test_runner.h"
#define mainLOGGING_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 5 )
#define mainLOGGING_MESSAGE_QUEUE_LENGTH ( 15 )
-#define mainTEST_RUNNER_TASK_S... |
Disable 02-test_errstr.t on msys/mingw as well as MSWin32
There is too high a risk that perl and OpenSSL are linked with
different C RTLs, and thereby get different messages for even the most
mundane error numbers. | @@ -31,6 +31,12 @@ setup('test_errstr');
plan skip_all => 'This is unsupported for cross compiled configurations'
if config('CROSS_COMPILE');
+# The same can be said when compiling OpenSSL with mingw configuration
+# on Windows when built with msys perl. Similar problems are also observed
+# in MSVC builds, depending o... |
docs: add missing disk_wb_rate row in gpperfmon system table reference | <codeph>disk_rb_rate</codeph>
</entry>
<entry>bigint</entry>
+ <entry>Bytes per second for disk read operations.</entry>
+ </row>
+ <row>
+ <entry>
+ <codeph>disk_wb_rate</codeph>
+ </entry>
+ <entry>bigint</entry>
<entry>Bytes per second for disk write operations.</entry>
</row>
<row>
|
common BUGFIX shm copy function alignment
Fixes cesnet/netopeer2#828 | @@ -2417,7 +2417,7 @@ sr_shmcpy(char *shm_addr, const void *src, size_t size, char **shm_end)
memcpy(*shm_end, src, size);
}
ret = *shm_end - shm_addr;
- *shm_end += size;
+ *shm_end += SR_SHM_SIZE(size);
return ret;
}
|
crash fix, problem was with the sprintf() buffer overflow | @@ -804,7 +804,7 @@ static void drawBitMode(Sprite* sprite, s32 x, s32 y, s32 w, s32 h)
setCursor(tic_cursor_hand);
over = true;
- SHOW_TOOLTIP("%i%s PER PIXEL", mode, mode > 1 ? "BITS":"BIT");
+ SHOW_TOOLTIP("%i%s PER PIXEL\0", mode, mode > 1 ? "BITS":"BIT");
if(checkMouseClick(&rect, tic_mouse_left))
{
@@ -1721,7 +17... |
framework/st_things : optimize stack size
optimize st_things optimize stack size | @@ -32,21 +32,23 @@ typedef const struct thread_info_s {
int thread_size;
} thread_info_s;
-static const thread_info_s things_stack_thread_name[THINGS_STACK_MAX_INDEX] = { {"THINGS_STACK_PING", 4 * 1024}, /*THINGS_STACK_PING_THREAD */
- {"THINGS_STACK_RESET", 4 * 1024}, /*THINGS_STACK_RESETLOOP_THREAD */
- {"THINGS_STA... |
Fix Error: wireless/ieee802154/mrf24j40/mrf24j40_radif.c:138:45: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat] | @@ -135,7 +135,7 @@ static void mrf24j40_setorder(FAR struct mrf24j40_radio_s *dev, uint8_t bo,
remcnt = (bi - (maincnt * dev->slpclkper)) / 50;
}
- wlinfo("MAINCNT: %lu, REMCNT: %lu\n", maincnt, remcnt);
+ wlinfo("MAINCNT: %" PRIu32 ", REMCNT: %" PRIu32 "\n", maincnt, remcnt);
/* Program the Main Counter, MAINCNT (0x2... |
Remove include under linux | @@ -71,8 +71,6 @@ typedef void *sys_prot_t;
typedef u64_t ptrdiff_t;
typedef unsigned long mem_ptr_t;
-#include "../runtime/timer.h"
-
// format specifiers
#define X8_F "c" /* not actually hex */
#define U16_F "d"
|
sanitizers: clean up san_options for various cases | /* Raise SIGABRT on error or continue with exitcode logic */
#define kABORT_ENABLED "abort_on_error=1"
-#define kABORT_DISABLED "abort_on_error=0"
+#define kABORT_DISABLED "abort_on_error=0:exitcode=" HF_XSTR(HF_SAN_EXIT_CODE)
/*
* Common sanitizer flags
*/
#define kSAN_COMMON \
"symbolize=1:" \
- "detect_odr_violation... |
uncomment / comment prefered mode (first = friendly / 2 angry) | @@ -9,6 +9,7 @@ then
iw dev $WLANDEV set type monitor
ip link set $WLANDEV up
wlandump-ng -i $WLANDEV -o $ARCHIVNAME.cap -c 1 -t 3600 -d 10000 -D 100 -s 0
+# wlandump-ng -i $WLANDEV -o $ARCHIVNAME.cap -c 1 -t 4 -d 25 -D 2 -r -s 0
fi
pioff &
systemctl start dhcpcd@eth0.service
|
out_datadog: adjust test formatter callback params | @@ -86,6 +86,7 @@ static int datadog_format(struct flb_config *config,
struct flb_input_instance *ins,
void *plugin_context,
void *flush_ctx,
+ int event_type,
const char *tag, int tag_len,
const void *data, size_t bytes,
void **out_data, size_t *out_size)
@@ -320,6 +321,7 @@ static void cb_datadog_flush(struct flb_eve... |
Change to invoke orca_run and reject bad time args | #include "base.h"
#include "field.h"
+#include "sim.h"
#include <getopt.h>
int main(int argc, char** argv) {
@@ -16,7 +17,13 @@ int main(int argc, char** argv) {
switch (c) {
case 't':
ticks = atoi(optarg);
+ if (ticks == 0 && strcmp(optarg, "0")) {
+ fprintf(stderr, "Bad time argument %s\n", optarg);
+ return 1;
+ }
b... |
ubxlib_builder: Add coloredlogs pip module to image | @@ -49,7 +49,7 @@ WORKDIR /workdir
#***************************************************
RUN pip3 install \
- pyserial pylint psutil pylink-square requests_toolbelt rpyc debugpy invoke && \
+ pyserial pylint psutil pylink-square requests_toolbelt rpyc debugpy invoke coloredlogs && \
apt-get update && apt-get install -y ... |
Utils:LogoutHook - dont rewrite identical file | @@ -26,6 +26,7 @@ fi
abort() {
echo "Fatal error: ${1}"
+# echo "Fatal error: ${1}" >> error.log
exit 1
}
@@ -35,7 +36,11 @@ rm -f /tmp/nvram.plist
UUID="$(nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-path | /usr/bin/sed 's/.*GPT,\([^,]*\),.*/\1/')"
if [ "$(printf '%s' "${UUID}" | /usr/bin/wc -c)" -eq 36 ] && [ -z "... |
Fix typo in mbedtls_ecjpake_write_shared_key() comment | @@ -267,7 +267,7 @@ int mbedtls_ecjpake_derive_secret( mbedtls_ecjpake_context *ctx,
* \param buf The buffer to write the derived secret to. This must
* be a writable buffer of length \p len Bytes.
* \param len The length of \p buf in Bytes.
- * \param olen The address at which to store the total number of Bytes
+ * \p... |
Fix linker dispatch
expects correct `$_LINKER_ID` | @@ -1369,8 +1369,8 @@ class Linker(object):
else:
emit_big('''
macro _USE_LINKER() {
- ENABLE(UNUSED_MACRO)
- }''')
+ SET(_LINKER_ID %(default_linker)s)
+ }''' % {'default_linker': self.type})
emit_big('''
### @usage: USE_LINKER_BFD()
|
clay: don't forget the extra q
+load still nest-fails though. | ?~ fil.u.jam !!
=* fil u.fil.u.jam
?> =(%jam p.q.fil)
- ;;(@ q.q.fil)
+ ;;(@ q.q.q.fil)
--
:: +is-kernel-path: should changing .pax cause a kernel or vane reload?
::
|
hoon: make +slab respect variance (%read) and return false | ::
++ slab :: test if contains
|= {cog/@tas typ/type}
- =(& -:(~(find ut typ) %free [cog ~]))
+ ?= [%| *]
+ (~(find ut typ) %read ~[cog])
::
++ slap
|= {vax/vase gen/hoon} ^- vase :: untyped vase .*
|
Fix function handlers for :out and :err.
They were not properly handled for formatting functions. | @@ -545,6 +545,16 @@ static Janet cfun_io_printf_impl_x(int32_t argc, Janet *argv, int newline,
if (newline) janet_buffer_push_u8(buf, '\n');
return janet_wrap_nil();
}
+ case JANET_FUNCTION: {
+ /* Special case function */
+ JanetFunction *fun = janet_unwrap_function(x);
+ JanetBuffer *buf = janet_buffer(0);
+ janet_b... |
doc: packagemanager.md: section fix | @@ -6,7 +6,7 @@ CARTO Mobile SDK offers a convenient way for you to manage different offline pac
* `routing:carto.streets` for routing packages
* `geocoding:carto.streets` for geocoding packages
-##### Define the folder to store the files
+### Define Folder
Each type of package should be stored in a different folder, e... |
Shorted some error strings. | @@ -48,21 +48,21 @@ static const char *const error_message[] = {
/* Target flash errors */
// ERROR_RESET
- "The interface firmware FAILED to reset/halt the target MCU",
+ "Failed to reset/halt the target MCU",
// ERROR_ALGO_DL
- "The interface firmware FAILED to download the flash programming algorithms to the target ... |
Null reference error is fixed. | @@ -486,10 +486,9 @@ static void close_connection(connection_list_element *connection, const char *me
uint32_t ip = conn_data->ip;
uint16_t port = conn_data->port;
+ if(conn_data->miner) {
char address_buf[33];
xdag_hash2address(conn_data->miner->id.data, address_buf);
-
- if(conn_data->miner) {
xdag_info("Pool: miner ... |
Enlarge script eval size | @@ -451,7 +451,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
valtype vchPushValue;
vector<bool> vfExec;
vector<valtype> altstack;
- if (script.size() > 10000)
+ if (script.size() > 22000) //10kb previous 22kb now
return false;
int nOpCount = 0;
|
Modification of the stopping test. | @@ -1166,7 +1166,8 @@ void gfc3d_IPM(GlobalFrictionContactProblem* restrict problem, double* restrict
printIteresProbMatlabFile(iteration, globalVelocity, velocity, reaction, d, n, m, iterates);
// check exit condition
- totalresidual = fmax(fmax(error[0], error[1]),fmin(error[2], error[5]));
+ //totalresidual = fmax(f... |
ActionTypes.md: Adding IBM HLS action types | @@ -5,8 +5,11 @@ Reserved | 00.00.00.00 | 00.00.00.00 | Reserved
free | 00.00.00.01 | 00.00.FF.FF | Free for experimental use
IBM | 10.14.00.00 | 10.14.00.00 | SNAP framework example
IBM | 10.14.00.01 | 10.14.0F.FF | Reserved for IBM Actions
-IBM | 10.14.10.00 | 10.14.10.00 | HLS memcopy
-IBM | 10.14.10.01 | 10.14.10.0... |
Update pio test | @@ -179,7 +179,7 @@ jobs:
- uses: actions/checkout@v1
- name: Install PlatformIO
run: |
- python -m pip install --upgrade pip
+ pip install -U pip
pip install -U platformio
- name: Build Arduino
continue-on-error: true # TODO
|
Use ESP_CONFIG instead of ESP_CONF | #define __ESP_DEFAULT_CONFIG_H
/**
- * \defgroup ESP_CONF Configuration
+ * \defgroup ESP_CONFIG Configuration
* \brief Configuration parameters
* \{
*
*
* \note Value must be set to `1` in the current revision
*
- * \note Check \ref ESP_CONF_OS group for more configuration related to operating system
+ * \note Check \... |
Adds a test to check if a timed delay use service call will timeout. | @@ -185,10 +185,11 @@ TEST(CelixBundleContextServicesTests, registerAndUseServiceWithTimeout) {
std::future<bool> result{std::async([&]{
opts.waitTimeoutInSeconds = 5.0;
+ printf("Trying to call calc with timeout of %f\n", opts.waitTimeoutInSeconds);
bool calledAsync = celix_bundleContext_useServiceWithOptions(ctx, &op... |
mangoapp: disable amdgpu_handles | @@ -173,7 +173,9 @@ struct amdgpu_handles
, version_minor(minor)
{
set_sampling_period(500000000 /* 500ms */);
+#ifndef MANGOAPP
collector = std::thread(&amdgpu_handles::amdgpu_poll, this);
+#endif
}
~amdgpu_handles()
|
libbarrelfish: pinned: refill slabs in 64 page chunks instead of page by page | @@ -66,6 +66,10 @@ errval_t vspace_pinned_init(void)
return SYS_ERR_OK;
}
+// Amount of memory to allocate when we have to refill one of the slab
+// allocators backing the pinned vspace state
+#define PINNED_REFILL_SIZE (64 * BASE_PAGE_SIZE)
+
/**
* \brief Allocate some slabs
*
@@ -109,7 +113,13 @@ errval_t vspace_pin... |
Added comments to docs for installation on macOS Catalina and later. | @@ -28,6 +28,15 @@ select zip, and download it into your preferred directory. Then type
Currently, the installer doesn't add the VPLanet executable to your :code:`PATH` variable, so
you'll have to `do it manually <https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix>`_.
+If you are run... |
Don't use foreach_vlib_main macro w/out barrier sync
It should be OK to scrape dispatch stats without forcing a barrier
sync. Scrape the stats manually. We'll see what happens. | @@ -371,6 +371,7 @@ stat_segment_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
f64 last_runtime, dt, now;
vlib_main_t *this_vlib_main;
stats_main_t *sm = &stats_main;
+ int i;
last_runtime = 0.0;
last_input_packets = 0;
@@ -388,10 +389,13 @@ stat_segment_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
vecto... |
range: free old locale | @@ -179,6 +179,7 @@ int main (int argc, char ** argv)
testChar ("c", 1, "a-f");
setlocale (LC_ALL, old_locale);
+ elektraFree (old_locale);
printf ("\ntestmod_range RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError);
return nbError;
|
tcp: fix the tcp src-address cli
When the src-address to add match a route
without a valid output interface(such as default route 0.0.0.0/0),
fib_entry_get_resolving_interface() will return (u32)~0,
which will cause crash in ip4_neighbor_proxy_enable().
Type: fix | @@ -411,6 +411,8 @@ tcp_configure_v4_source_address_range (vlib_main_t * vm,
return VNET_API_ERROR_NEXT_HOP_NOT_IN_FIB;
sw_if_index = fib_entry_get_resolving_interface (fei);
+ if (sw_if_index == (u32) ~0)
+ return VNET_API_ERROR_NO_MATCHING_INTERFACE;
/* Configure proxy arp across the range */
rv = ip4_neighbor_proxy_... |
add warnings for pool configuration | @@ -568,12 +568,16 @@ int xdag_pool_set_config(const char *pool_config)
sscanf(pool_config, "%d", &g_max_miners_count);
- if (g_max_miners_count < 0)
+ if (g_max_miners_count < 0) {
g_max_miners_count = 0;
- else if (g_max_miners_count > MAX_MINERS_COUNT)
+ xdag_warn("pool : wrong miner count");
+ } else if (g_max_mine... |
BugID:18560837: add source config.in for some mcu | menu "MCU Configuration"
## --- Generated Automatically ---
+source "platform/mcu/aamcu_demo/Config.in"
source "platform/mcu/atsamd5x_e5x/Config.in"
+source "platform/mcu/atsaml21/Config.in"
source "platform/mcu/bk7231/Config.in"
source "platform/mcu/bk7231u/Config.in"
source "platform/mcu/csky/Config.in"
@@ -13,7 +15,... |
libstb/container: Add missing includes
libstb will sometimes randomly fail to compile due to missing types.
This appears to solve it but I didn't look too far into why it mostly
works (or can be made to work with make clean) without this. | #define __STB_CONTAINER_H
#include <stdint.h>
+#include <stdbool.h>
#include <stdlib.h>
+#include <ccan/short_types/short_types.h>
#include <ccan/endian/endian.h>
#define SECURE_BOOT_HEADERS_SIZE 4096
|
Fix V computing when using < 4 bytes chain IDs | @@ -41,9 +41,10 @@ unsigned int io_seproxyhal_touch_tx_ok(__attribute__((unused)) const bagl_elemen
// New API
// Note that this is wrong for a large v, but ledgerjs will recover.
- // Casting to u32 not to introduce breaking changes. In the future, this should be
- // updated.
- uint32_t v = U4BE(tmpContent.txContent.... |
man: fix doc-nit in property.pod
This causes travis build failures on master | @@ -71,7 +71,7 @@ A I<property query> is a sequence of comma separated property query clauses.
The full syntax for property queries appears below, but the available syntatic
features are:
-=over
+=over 4
=item *
|
Optimized terminal and HTML UI output when tailing multiple files.
This should reduce the number of reflows on the TUI and on the HTML report
since it no longer sends one message per file via the WebSocket. | @@ -864,12 +864,6 @@ perform_tail_follow (GLog * glog) {
out:
- if (!conf.output_stdout) {
- tail_term ();
- } else {
- tail_html ();
- }
-
return 0;
}
@@ -880,14 +874,18 @@ tail_loop_html (Logs * logs) {
.tv_sec = conf.html_refresh ? conf.html_refresh : HTML_REFRESH,
.tv_nsec = 0,
};
- int i = 0;
+ int i = 0, ret = 0;... |
Update Related projects
Add BrotliHaxe | @@ -82,3 +82,5 @@ and development.
Independent [decoder](https://github.com/madler/brotli) implementation by Mark Adler, based entirely on format specification.
JavaScript port of brotli [decoder](https://github.com/devongovett/brotli.js). Could be used directly via `npm install brotli`
+
+Hand ported [decoder / encode... |
use proper casing for keys | @@ -58,10 +58,9 @@ if (numberOfForecastsUsedInLocalTime == 1) {
# need something here to compute the diff between date time of *OfForecastUsedInLocalTime and the local time defined in section 1 (dataDate and dataTime)
# this would be the offset (step) used to index data in mars as mars.step
- meta DateTimeOfForecastUse... |
doc update for update path | \input{vc.tex}
% Define Base OS and other local macros
+<<<<<<< 4974dd3be4c9bc46474134bc650d1824fe86ca20
\newcommand{\baseOS}{CentOS7.3}
\newcommand{\OSRepo}{CentOS\_7.3}
\newcommand{\baseos}{centos7.3}
+=======
+\newcommand{\baseOS}{CentOS7}
+\newcommand{\OSRepo}{CentOS\_7}
+\newcommand{\baseos}{centos7.2}
+>>>>>>> do... |
sse4.1: AltiVec implementations of simde_mm_ceil_* | @@ -37,6 +37,8 @@ SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
# define SIMDE_SSE4_1_NATIVE
# elif defined(__ARM_NEON) && !defined(SIMDE_SSE4_1_NO_NEON) && !defined(SIMDE_NO_NEON)
# define SIMDE_SSE4_1_NEON
+# elif defined(SIMDE_ARCH_POWER_ALTIVEC)
+# define SIMDE_SSE4_1_POWER_ALTIVEC
# endif
# if defined(SIMDE_SSE4_1_NATIVE) &&... |
at-master: fix compiler warning
Use != instead of inverting the LHS before
comparing it to a value.
This fixes a -Wlogical-not-parentheses warning
with Clang. | @@ -127,7 +127,7 @@ at_register(struct at_cmd *cmd, struct process *app_process,
const char *cmd_hdr, const uint8_t hdr_len,
const uint8_t cmd_max_len, at_event_callback_t event_callback)
{
- if((hdr_len < 1) || (cmd_max_len < 1) || (!strncmp(cmd_hdr, "AT", 2) == 0) ||
+ if((hdr_len < 1) || (cmd_max_len < 1) || (strncm... |
Always use houdiniInputCurve to input curves | @@ -218,11 +218,6 @@ getInputNodeForMultiple(int $type, string $objects[])
if(!size($objects))
return "";
- if(size($objects) == 1)
- {
- return getInputNodeForSingle($objects[0]);
- }
-
$inputNode = `createNode -skipSelect "houdiniInputCurve"`;
for($i = 0; $i < size($objects); $i++)
|
mkimg-stm32: Fixed gdb_symbols generation | @@ -123,7 +123,8 @@ for app in $@; do
cp $app tmp.elf
${CROSS}strip tmp.elf
printf "App %s @offset 0x%08x\n" $app $OFFSET
- printf "add-symbol-file %s 0x%08x\n" `realpath $app` $((OFFSET + $FLASH_START + $((0xc0)))) >> $GDB_SYM_FILE
+ ELFOFFS=$((`readelf -l $app | grep "LOAD" | grep "R E" | awk '{ print $2 }'`))
+ prin... |
Comment out QEID nextUpdate field check | @@ -190,8 +190,9 @@ oe_result_t oe_validate_qe_identity(
if (oe_datetime_compare(&parsed_info.issue_date, &from) > 0)
from = parsed_info.issue_date;
- if (oe_datetime_compare(&parsed_info.next_update, &until) < 0)
- until = parsed_info.next_update;
+ // Do not check QEID "nextUpdate"
+ // if (oe_datetime_compare(&parse... |
Fix window covering update by ZCL report/read attributes
The value was shadowed and always set to report. This prevents the binding report configuration to properly work. | @@ -155,8 +155,6 @@ void DeRestPluginPrivate::handleWindowCoveringClusterIndication(const deCONZ::Ap
return;
}
- NodeValue::UpdateType updateType = NodeValue::UpdateByZclReport;
-
if (attrid == 0x0008) // current CurrentPositionLiftPercentage 0-100
{
// Update value in the GUI.
|
added ALFA AWUS036ACH to list of supported wifi adapters | @@ -137,6 +137,7 @@ This list is for information purposes only and should not be regarded as a bindi
| TP-LINK Archer T2UH | ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter) |
| ASUS USB-AC51 | ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610U]... |
AUTHORS, COPYING: Update copyright information and authors' list with new author | @@ -41,6 +41,7 @@ Copyright: 2007-2016 Apple Inc
2011, Tim Waugh
2013-2016, Till Kamppeter
2014, Joseph Simon
+ 2017, Sahil Arora
License: LGPL-2
Files: cupsfilters/colord.c
@@ -106,6 +107,7 @@ Files: mime/cupsfilters*.convs*
Copyright: 2007-2011, Apple Inc
1997-2007, Easy Software Products
2012-2016, Till Kamppeter
+ ... |
set is multiclass flag properly | @@ -435,7 +435,7 @@ namespace NCatboostCuda {
static TVector<THolder<IGpuMetric>> CreateGpuMetricFromDescription(ELossFunction targetObjective, const NCatboostOptions::TLossDescription& metricDescription, ui32 approxDim) {
TVector<THolder<IGpuMetric>> result;
const auto numClasses = approxDim == 1 ? 2 : approxDim;
- co... |
dill: |install %base from sponsor on boot | =. tem ~
=. +> (pass / %g %jolt %base ram)
=? +> ?=(?(%earl %duke %king) can)
- (ota sein %kids)
+ (ota sein %base)
:: make kids desk publicly readable, so syncs work.
::
=. +> (show %kids)
|
Handle border width and height on minimum floating sizes
This fixes: | @@ -81,16 +81,24 @@ static void handle_pointer_motion(struct sway_seat *seat, uint32_t time_msec) {
int min_width, max_width, min_height, max_height;
floating_calculate_constraints(&min_width, &max_width,
&min_height, &max_height);
- width = fmax(min_width + border_width, fmin(width, max_width));
- height = fmax(min_he... |
make the GFXLIST env variable work when building deviceRTLs for amdgcn | @@ -112,10 +112,12 @@ if [ "$GXXLOC" == "" ] ; then
exit 1
fi
+GFXSEMICOLONS=`echo $GFXLIST | tr ' ' ';' `
COMMON_CMAKE_OPTS="-DOPENMP_ENABLE_LIBOMPTARGET=1
-DCMAKE_INSTALL_PREFIX=$INSTALL_OPENMP
-DOPENMP_TEST_C_COMPILER=$AOMP/bin/clang
-DOPENMP_TEST_CXX_COMPILER=$AOMP/bin/clang++
+-DLIBOMPTARGET_AMDGCN_GFXLIST=$GFXSEM... |
nimble/host: Fix coding style
Some of those variables are also redundant. | @@ -469,7 +469,6 @@ ble_sm_sc_random_rx(struct ble_sm_proc *proc, struct ble_sm_result *res)
if (proc->flags & BLE_SM_PROC_F_INITIATOR) {
ble_sm_sc_random_advance(proc);
- int rc;
rc = ble_sm_sc_io_action(proc, &ioact);
if (rc != 0) {
@@ -497,6 +496,7 @@ ble_sm_sc_public_key_exec(struct ble_sm_proc *proc, struct ble_sm... |
language settings fix attempt | </resource>
</language>
</provider>
- <provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1571803272661094421" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compile... |
test: fix newt tests
Tests! What a concept! | @@ -18,18 +18,18 @@ _newt_encode(u3_atom mat, c3_w* len_w)
c3_w met_w = u3r_met(3, mat);
c3_y* buf_y;
- *len_w = 8 + met_w;
+ *len_w = 5 + met_w;
buf_y = c3_malloc(*len_w);
// write header; c3_d is futureproofing
//
- buf_y[0] = ((met_w >> 0) & 0xff);
- buf_y[1] = ((met_w >> 8) & 0xff);
- buf_y[2] = ((met_w >> 16) & 0x... |
Removed unused movement type | @@ -461,25 +461,8 @@ void SceneUpdateActors_b()
if (actors[i].movement_type == AI_RANDOM_FACE)
{
memcpy(&actors[i].dir, directions[r & 3], sizeof(POS));
- actors[i].moving = FALSE;
++r;
}
- else if (actors[i].movement_type == AI_ROTATE_TRB)
- {
- if (actors[i].dir.y == -1)
- {
- memcpy(&actors[i].dir, directions[3], si... |
le_tc/kernel: add missing PROTECTED build flag for sched TC's
The TC's under this flag may fail as they use kernel API this_taski() directly from application. | @@ -524,6 +524,7 @@ static void tc_sched_sched_getstreams(void)
TC_SUCCESS_RESULT();
}
+#if !defined(CONFIG_BUILD_PROTECTED)
/**
* @fn :tc_sched_task_setcancelstate
* @brief :This tc tests sched_task_setcancelstate()
@@ -647,6 +648,7 @@ static void tc_sched_task_testcancel(void)
TC_SUCCESS_RESULT();
}
#endif
+#endif
/*... |
save roquefort config after generation in yacare | @@ -609,7 +609,7 @@ macro YCR_GENERATE_CONFIGS_INTL(Package, App, Configs...) {
}
macro YCR_GENERATE_CONFIGS(Package, App) {
- .CMD=$YCR_GENERATE_CONFIGS_INTL($Package $App ${pre=etc/yandex/maps/yacare/:App.conf} ${pre=etc/logrotate.d/:App} ${pre=etc/monrun/conf.d/:App.conf} ${pre=etc/nginx/sites-available/:App.conf} $... |
rune/README: add credit info
Fixes: | @@ -115,3 +115,6 @@ Assuming you have an OCI bundle from the previous step you can execute the conta
cd "$HOME/rune_workdir/rune-container"
sudo rune run ${Occlum_application_container_name}
```
+
+# Credits
+Some codes in rune have been borrowed from [runc](https://github.com/opencontainers/runc) project.
|
Fix recentering scroll on undo | @@ -1340,6 +1340,7 @@ void app_input_cmd(App_state* a, App_input_cmd ev) {
undo_history_pop(&a->undo_hist, &a->field, &a->tick_num);
}
tui_cursor_confine(&a->tui_cursor, a->field.height, a->field.width);
+ app_make_cursor_visible(a);
a->needs_remarking = true;
a->is_draw_dirty = true;
}
|
buitl_tables.pl - do not call out arm lmod-defaults on x86 | @@ -38,6 +38,10 @@ push @exclude, "lmod-defaults-gnu-impi-ohpc";
push @exclude, "lmod-defaults-gnu-mpich-ohpc";
push @exclude, "lmod-defaults-gnu-mvapich2-ohpc";
push @exclude, "lmod-defaults-gnu-openmpi-ohpc";
+if ( $ENV{'PWD'} =~ /\S+\/x86_64\// ) {
+ push @exclude, "lmod-defaults-arm1-mpich-ohpc";
+ push @exclude, "... |
Conform display of path with existing display of source map info | (cond
(x :ref) (string :var " (" (type (in (x :ref) 0)) ")")
(x :macro) :macro
- (x :module) (string :module " (" (x :kind) ": " (x :path) ")")
+ (x :module) (string :module " (" (x :kind) ")")
(type (x :value)))
"\n"))
(def sm (x :source-map))
(def d (x :doc))
(print "\n\n"
- (if d bind-type "")
- (if-let [[path line ... |
Remove now unneccesary check for AFR_METADATA_MODE | @@ -459,6 +459,8 @@ else()
set(exe_target aws_demos)
endif()
+include("${CMAKE_CURRENT_LIST_DIR}/bootloader.cmake")
+
# Do not add demos or tests if they're turned off.
if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS)
@@ -533,12 +535,6 @@ if(AFR_ENABLE_DEMOS OR AFR_ENABLE_TESTS)
endfunction()
- if (AFR_METADATA_MODE)
- return(... |
Remove unnecessary vector clear operation. | @@ -73,7 +73,6 @@ namespace ARIASDK_NS_BEGIN
netType = NetworkType_Any;
netSpeed = 0;
powerState = PowerSource_Any;
- timers.clear();
}
} TransmitProfileRule;
|
README: Add some notes about external projects using NimBLE
Point to known external projects that use NimBLE. | @@ -105,6 +105,15 @@ Implements a simple BLE peripheral that supports the Nordic
UART / Serial Port Emulation service
(https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00072.html).
+## External projects using NimBLE
+
+Several other projects provide support for using NimBLE either by [NPL... |
[mod_accesslog] reformat numeric timestamp | @@ -898,19 +898,18 @@ static int log_access_record (const request_st * const r, buffer * const b, form
#if defined(HAVE_STRUCT_TM_GMTOFF)
long scd, hrs, min;
buffer_append_strftime(ts_accesslog_str, "[%d/%b/%Y:%H:%M:%S ", tmptr);
- buffer_append_string_len(ts_accesslog_str, tmptr->tm_gmtoff >= 0 ? "+" : "-", 1);
scd = ... |
[build.sh] Allow passing extra options to meson configure with CONFIGURE_OPTS env var | @@ -120,14 +120,14 @@ configure() {
dependencies
git submodule update --init --depth 50
if [[ ! -f "build/meson64/build.ninja" ]]; then
- meson build/meson64 --libdir lib/mangohud/lib64 --prefix /usr -Dappend_libdir_mangohud=false
+ meson build/meson64 --libdir lib/mangohud/lib64 --prefix /usr -Dappend_libdir_mangohud=... |
do some exception handling | @@ -1356,9 +1356,14 @@ return dumpstack
#if LUA_DEBUG
//get asset's absolute path
- string projectFn = UnityEditor.AssetDatabase.GetAssetPath(asset);
- int idx = projectFn.IndexOf("/");
- absoluteFn = Application.dataPath + projectFn.Substring(idx);
+ string assetFn = UnityEditor.AssetDatabase.GetAssetPath(asset);
+ if... |
fix for normal output to Maya if N and maya_locked_normal are both point
attributes - i.e. allow shared normals to be exported to maya | @@ -1532,7 +1532,7 @@ OutputGeometryPart::computeMesh(
{
MVectorArray setNormalList;
MIntArray vertexList;
- for(unsigned int i = 0, length = vertexList.length();
+ for(unsigned int i = 0, length = normal.length();
i < length; ++i)
{
if((*promotedLockedNormal)[i])
|
Fix potential unsigned overflow in calculations | @@ -316,7 +316,7 @@ static int ocf_metadata_calculate_metadata_size(
/* Cache size in bytes */
diff_lines = ctrl->device_lines * line_size;
/* Sub metadata size which is in 4 kiB unit */
- diff_lines -= count_pages * PAGE_SIZE;
+ diff_lines -= (int64_t)count_pages * PAGE_SIZE;
/* Convert back to cache lines */
diff_lin... |
updated _preparation_next_release.md announcing the change of AUTHORS.md | @@ -226,4 +226,4 @@ work on Java bindings
- email: libelektra@hellwach.at
- github user: [tucek](https://github.com/tucek)
-- devel/test on: Debian, Ubuntu
+- devel/test on: Debian (WSL2), Ubuntu (WSL2)
|
Add username to some comments | @@ -1125,7 +1125,7 @@ VOID PhpFillProcessItem(
// Process information
{
// If we're dealing with System (PID 4), we need to get the
- // kernel file name. Otherwise, get the image file name.
+ // kernel file name. Otherwise, get the image file name. (wj32)
if (ProcessItem->ProcessId != SYSTEM_PROCESS_ID)
{
@@ -1201,7 +... |
mdns test: Add test to resolve esp32 hostname with DiG | @@ -6,12 +6,11 @@ import struct
import dpkt
import dpkt.dns
from threading import Thread, Event
+import subprocess
from tiny_test_fw import DUT
import ttfw_idf
-# g_run_server = True
-# g_done = False
stop_mdns_server = Event()
esp_answered = Event()
@@ -112,7 +111,8 @@ def test_examples_protocol_mdns(env, extra_data):... |
build CHANGE forbid building even with libssh 0.9.4
It also includes a bug that causes the inactive timeout
to elapse even when it should not be measured. | @@ -216,7 +216,6 @@ if(ENABLE_TLS OR ENABLE_DNSSEC OR ENABLE_SSH)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_TLS")
endif()
- #TODO target_link_libraries(netconf2 PUBLIC OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(netconf2 ${OPENSSL_LIBRARIES})
include_directories(${OPENSSL_INCLUDE_DIR})
endif()
@@ -227,8 ... |
Add wasm to architectures returned by os/arch. | @@ -98,6 +98,8 @@ static Janet os_arch(int32_t argc, Janet *argv) {
/* Check 64-bit vs 32-bit */
#if defined(JANET_ARCH_NAME)
return janet_ckeywordv(janet_stringify(JANET_ARCH_NAME));
+#elif defined(__EMSCRIPTEN__)
+ return janet_ckeywordv("wasm");
#elif (defined(__x86_64__) || defined(_M_X64))
return janet_ckeywordv("... |
king: my god, I shall flog the man responsible for this! | @@ -120,7 +120,7 @@ addCostCenter :: String -> Exp -> Exp
addCostCenter tag exp =
LetE [ValD (VarP nom) (NormalB exp) []] (VarE nom)
where
- nom = mkName $ "scc_" ++ tag
+ nom = mkName $ "scc_" ++ filter C.isAlphaNum tag
deriveFromNoun :: Name -> Q [Dec]
deriveFromNoun tyName = do
|
Call tostring eagerly
I think this version is a bit prettier | @@ -47,11 +47,11 @@ local Exception = util.Class()
function Exception:init(tag, msg, level)
self.tag = tag
self.msg = msg
- self.stack_trace = debug.traceback("", level)
+ self.stack_trace = debug.traceback(tostring(msg), level)
end
function Exception:__tostring()
- return tostring(self.msg) .. self.stack_trace
+ retur... |
vppinfra: fix SIGBUS in bihash init when running unpriviledged, take two
Looks like MAP_LOCK is not enough, so call mlock(...) instead....
Type: fix | @@ -53,7 +53,7 @@ static inline void *BV (alloc_aligned) (BVT (clib_bihash) * h, uword nbytes)
rv = mmap (base, alloc, PROT_READ | PROT_WRITE, mmap_flags_huge, -1, 0);
/* fallback - maybe we are still able to allocate normal pages */
- if (rv == MAP_FAILED)
+ if (rv == MAP_FAILED || mlock (base, alloc) != 0)
rv = mmap ... |
Fix issue where list resizing wasn't correct | @@ -263,11 +263,11 @@ char *listToString(Value value) {
elementSize = strlen(element);
}
- if (elementSize > (size - listStringLength - 3)) {
- if (elementSize > size * 2) {
- size += elementSize * 2 + 3;
+ if (elementSize > (size - listStringLength - 6)) {
+ if (elementSize > size) {
+ size = size + elementSize * 2 + ... |
pyocf: add missing import Volume in cache | @@ -39,7 +39,7 @@ from .io import IoDir
from .ioclass import IoClassesInfo, IoClassInfo
from .stats.shared import UsageStats, RequestsStats, BlocksStats, ErrorsStats
from .ctx import OcfCtx
-from .volume import RamVolume
+from .volume import RamVolume, Volume
class Backfill(Structure):
_fields_ = [("_max_queue_size", c... |
Error handling during channel creation improved. | @@ -95,33 +95,42 @@ static void dill_chan_init(struct dill_chan *ch, int index) {
}
int chmake_mem(struct chmem *mem, int chv[2]) {
- if(dill_slow(!mem)) {errno = EINVAL; return -1;}
+ int err;
+ if(dill_slow(!mem)) {err = EINVAL; goto error1;}
/* Returns ECANCELED if the coroutine is shutting down. */
int rc = dill_ca... |
6tisch example: remove unnecessary define from project-conf.h | #define WITH_SECURITY 0
#endif /* WITH_SECURITY */
-/*******************************************************/
-/********* Enable RPL non-storing mode *****************/
-/*******************************************************/
-
-#define RPL_CONF_MOP RPL_MOP_NON_STORING /* Mode of operation*/
-
/* USB serial takes spa... |
scripts: make reformat-markdown not output every file | @@ -28,4 +28,4 @@ if [ $# -gt 0 ]; then
else
markdown_files=$(git ls-files '*.md')
fi
-printf "%s\n" "$markdown_files" | sed -nE 's/(.*)/'"'"'\1'"'"'/p' | xargs "${PRETTIER}" --write --
+printf "%s\n" "$markdown_files" | sed -nE 's/(.*)/'"'"'\1'"'"'/p' | xargs "${PRETTIER}" --write -- > /dev/null
|
API: Specify language of code snippet | @@ -41,18 +41,24 @@ reading in one of these links above.
A C or C++ source file that wants to use Elektra should include:
+```c
#include <kdb.h>
+```
To link an executable with the Elektra library, one way is to
use the `pkg-config` tool:
- $ gcc -o application `pkg-config --cflags --libs elektra` application.c
+```sh
... |
Android: Track minimal_opencv to sv_matrix rename | @@ -83,8 +83,8 @@ LOCAL_SRC_FILES := \
ifeq ($(SURVIVE_MATH_BACKEND),eigen)
LOCAL_HEADER_LIBRARIES := libeigen
LOCAL_SRC_FILES += \
- redist/minimal_opencv.c \
- redist/minimal_opencv.eigen.cpp
+ redist/sv_matrix.c \
+ redist/sv_matrix.eigen.cpp
endif
ifneq ($(TARGET_SURVIVE_CONFIG_PATH),)
|
Fix size_t uint64_t confusion | @@ -337,7 +337,7 @@ const uint8_t * picoquic_process_tp_version_negotiation(const uint8_t* bytes, co
uint32_t current;
uint32_t previous = 0;
uint64_t nb_received = 0;
- size_t nb_compatible;
+ uint64_t nb_compatible;
uint32_t compatible;
*negotiated_vn = 0;
|
OpenCanopy: Fix missing fade animation for the scroll buttons | @@ -1422,6 +1422,15 @@ InternalBootPickerAnimateIntro (
);
mBootPickerContainer.Obj.Opacity = Opacity;
//
+ // Animate the scroll buttons based on their active state.
+ //
+ if (mBootPicker.Hdr.Obj.OffsetX < 0) {
+ mBootPickerLeftScroll.Hdr.Obj.Opacity = Opacity;
+ }
+ if (mBootPicker.Hdr.Obj.OffsetX + mBootPicker.Hdr.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.