message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
makefile.unix,dist: use ascii for text output
this prevents unknown escapes containing '-'s getting stripped on OS X
when a tty targeted font is used | @@ -474,7 +474,7 @@ dist: all
for m in man/[cdv]webp.1 man/gif2webp.1 man/webpmux.1 \
man/img2webp.1 man/webpinfo.1; do \
basenam=$$(basename $$m .1); \
- $(GROFF) -t -e -man -T utf8 $$m \
+ $(GROFF) -t -e -man -T ascii $$m \
| $(COL) -bx >$(DESTDIR)/doc/$${basenam}.txt; \
$(GROFF) -t -e -man -T html $$m \
| $(COL) -bx... |
Don't crash if an unrecognised digest is used with dsa_paramgen_md | @@ -189,9 +189,15 @@ static int pkey_dsa_ctrl_str(EVP_PKEY_CTX *ctx,
NULL);
}
if (strcmp(type, "dsa_paramgen_md") == 0) {
+ const EVP_MD *md = EVP_get_digestbyname(value);
+
+ if (md == NULL) {
+ DSAerr(DSA_F_PKEY_DSA_CTRL_STR, DSA_R_INVALID_DIGEST_TYPE);
+ return 0;
+ }
return EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_... |
i2s: Fixed divide 0 issue while setting PDM down sampling issue
Closes | @@ -1154,8 +1154,8 @@ esp_err_t i2s_set_pdm_rx_down_sample(i2s_port_t i2s_num, i2s_pdm_dsr_t downsampl
ESP_RETURN_ON_FALSE((p_i2s[i2s_num]->mode == I2S_COMM_MODE_PDM), ESP_ERR_INVALID_ARG, TAG, "i2s mode is not PDM mode");
xSemaphoreTake(p_i2s[i2s_num]->rx->mux, portMAX_DELAY);
i2s_stop(i2s_num);
- i2s_pdm_rx_slot_conf... |
Handle TCP disconnect in remoteConfig(). | @@ -176,10 +176,12 @@ remoteConfig()
do {
rc = g_fn.recv(g_cfg.cmdConn, buf, sizeof(buf), MSG_DONTWAIT);
/*
- * TODO: if we get an error, we don't get the whoile file
+ * TODO: if we get an error, we don't get the whole file
* When we support ndjson look for new line as EOF
*/
if (rc <= 0) {
+ close(g_cfg.cmdConn);
+ g... |
tcp_example error fix (signed /unsigned mismatch) | @@ -48,10 +48,10 @@ void heartbeat_callback(u16 sender_id, u8 len, u8 msg[], void *context)
fprintf(stdout, "%s\n", __FUNCTION__);
}
-u32 socket_read(u8 *buff, u32 n, void *context)
+s32 socket_read(u8 *buff, u32 n, void *context)
{
(void)context;
- u32 result;
+ s32 result;
result = read(socket_desc, buff, n);
return ... |
mostly style | @@ -2171,8 +2171,9 @@ FIO_FUNC inline uintptr_t fio_ct_if2(uintptr_t cond, uintptr_t a, uintptr_t b) {
#endif
/* Note: using BIG_ENDIAN invokes false positives on some systems */
-#if (defined(__BIG_ENDIAN__) && __BIG_ENDIAN__) || \
- (defined(__LITTLE_ENDIAN__) && !__LITTLE_ENDIAN__) || \
+#if !defined(__BIG_ENDIAN__)... |
Fix naming of L2 cache size item reported for Vortex | @@ -424,7 +424,7 @@ void get_cpuconfig(void)
sysctlbyname("hw.l1dcachesize",&value,&length,NULL,0);
printf("#define L1_DATA_SIZE %d \n",value);
sysctlbyname("hw.l2dcachesize",&value,&length,NULL,0);
- printf("#define L2_DATA_SIZE %d \n",value);
+ printf("#define L2_SIZE %d \n",value);
break;
#endif
}
|
commands/focus: focus view inside container
seat_get_focus_inactive_floating and seat_get_focus_inactive_tiling do
not always return a view, so get the previously focused view from the
container with seat_get_focus_inactive_view. This is the i3 behavior. | @@ -267,6 +267,11 @@ static struct cmd_results *focus_mode(struct sway_workspace *ws,
new_focus = seat_get_focus_inactive_tiling(seat, ws);
}
if (new_focus) {
+ struct sway_container *new_focus_view =
+ seat_get_focus_inactive_view(seat, &new_focus->node);
+ if (new_focus_view) {
+ new_focus = new_focus_view;
+ }
seat_... |
misc: add assert to check the RTVM CPU affinity
The current ACRN Configurator have no warning when the user set CPU zero
to RTVM.
This patch add an assert to check the above. | </xs:annotation>
</xs:assert>
+ <xs:assert test="every $vm in /acrn-config/vm[vm_type = 'RTVM'] satisfies
+ count($vm//pcpu_id[./text() = '0']) = 0">
+ <xs:annotation acrn:severity="error" acrn:report-on="$vm//cpu_affinity">
+ <xs:documentation>The CPU 0 can't assign to RTVM {$vm/name/text()}.</xs:documentation>
+ </xs... |
doc: improve CLion target description | @@ -153,21 +153,21 @@ as follows:
The most thorough way to test your changes is to run all tests. Therefore
navigate to your run-configurations (Run -> Edit Configurations...) and look
for the entry `run_all`. There, `run_all` should be selected as `Executable`,
-`kdb` as `Target`. Now you can execute this run configur... |
foomatic-rip: Allow a file with only "%!" as valid (zero-page) PostScript file. | @@ -542,7 +542,7 @@ int guess_file_type(const char *begin, size_t len, int *startpos)
if (!p)
return UNKNOWN_FILE;
*startpos = p - begin;
- if ((end - p) > 2 && !memcmp(p, "%!", 2))
+ if ((end - p) >= 2 && !memcmp(p, "%!", 2))
return PS_FILE;
else if ((end - p) > 7 && !memcmp(p, "%PDF-1.", 7))
return PDF_FILE;
@@ -582,... |
BUFR keys iterator memory leak (fixed) | @@ -146,6 +146,7 @@ static int next_attribute(bufr_keys_iterator* kiter)
char* prefix=0;
if (!kiter->prefix) return 0;
if (!kiter->attributes[i_curr_attribute]) {
+ grib_context_free(kiter->current->context,kiter->prefix);
kiter->prefix=0;
return 0;
}
@@ -167,10 +168,6 @@ int codes_bufr_keys_iterator_next(bufr_keys_ite... |
some clean-ups | @@ -1437,7 +1437,7 @@ while(1)
}
zeiger = essidlistin +essidlistincount;
}
-fclose(fh_essidlistin);
+if(fh_essidlistin != NULL) fclose(fh_essidlistin);
qsort(essidlistin, essidlistincount, ESSIDLIST_SIZE, sort_essidlistin);
qsort(hashlist, pmkideapolcount, HASHLIST_SIZE, sort_maclist_by_essidlen);
@@ -1450,7 +1450,6 @@... |
Log the reason for settrlimit() failures (errno) | @@ -10152,6 +10152,7 @@ static int wsgi_start_process(apr_pool_t *p, WSGIDaemonProcess *daemon)
if (daemon->group->cpu_time_limit > 0) {
struct rlimit limit;
int result = -1;
+ errno = ENOSYS;
limit.rlim_cur = daemon->group->cpu_time_limit;
@@ -10163,7 +10164,7 @@ static int wsgi_start_process(apr_pool_t *p, WSGIDaemon... |
VERSION bump to version 1.4.117 | @@ -46,7 +46,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 116)
+set(SYSREPO_MICRO_VERSION 117)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_... |
stake tweaks | @@ -696,8 +696,10 @@ void StakeMiner(CWallet *pwallet)
fTryToSync = false;
if (vNodes.size() < 3 || nBestHeight < GetNumBlocksOfPeers())
{
+ if (fDebug && GetBoolArg("-printcoinstake"))
+ printf("StakeMiner() vNodes.size() < 3 || nBestHeight < GetNumBlocksOfPeers()\n");
vnThreadsRunning[THREAD_STAKE_MINER]--;
- MilliSl... |
Fix `SyntaxWarning` on 'ipaddress' | @@ -1103,7 +1103,7 @@ class _BaseNetwork(_IPAddressBase):
try:
# Always false if one is v4 and the other is v6.
if a._version != b._version:
- raise TypeError("%s and %s are not of the same version" (a, b))
+ raise TypeError("%s and %s are not of the same version" % (a, b))
return (b.network_address <= a.network_addres... |
zephyr/shim/include/zephyr_gpio_signal.h: Format with clang-format
BRANCH=none
TEST=none | (GPIO_SIGNAL_NAME_FROM_ORD(id##_ORD)))
#define GPIO_SIGNAL(id) GPIO_SIGNAL_NAME(id)
-#define GPIO_SIGNAL_WITH_COMMA(id) \
- GPIO_SIGNAL(id),
+#define GPIO_SIGNAL_WITH_COMMA(id) GPIO_SIGNAL(id),
enum gpio_signal {
GPIO_UNIMPLEMENTED = -1,
#if DT_NODE_EXISTS(DT_PATH(named_gpios))
@@ -118,8 +117,8 @@ BUILD_ASSERT(GPIO_COU... |
Remove win32 third-party tarball from ivy
We have a high level goal to remove all ivy dependencies for gpdb6.
kfw and pygresql were the only dependencies in this tarball. We are
dropping both from ivy so we no longer need to pull the tarball here. | <conf name="rhel7_x86_64" visibility="public"/>
<conf name="suse11_x86_64" visibility="public"/>
<conf name="sles11_x86_64" visibility="public"/>
- <conf name="win32" visibility="public"/>
<conf name="aix7_ppc_64" visibility="public"/>
</configurations>
<dependency org="xerces" name="xerces-c" rev="3.1.1-p1" conf="rhel... |
Remove suspicious friction override; | @@ -184,7 +184,6 @@ int lovrWorldCollide(World* world, Shape* a, Shape* b, float friction, float res
contacts[c].surface.mode = 0;
contacts[c].surface.mu = friction;
contacts[c].surface.bounce = restitution;
- contacts[c].surface.mu = dInfinity;
if (restitution > 0) {
contacts[c].surface.mode |= dContactBounce;
|
defination: fix the bug that esp_derive_local_mac() defination missing
Closes: | @@ -149,7 +149,7 @@ esp_err_t esp_efuse_mac_get_default(uint8_t* mac)
esp_err_t system_efuse_read_mac(uint8_t *mac) __attribute__((alias("esp_efuse_mac_get_default")));
esp_err_t esp_efuse_read_mac(uint8_t *mac) __attribute__((alias("esp_efuse_mac_get_default")));
-esp_err_t esp_derive_mac(uint8_t* local_mac, const uin... |
driverkit: 1G align allocations so that mem serv can always handle the request | @@ -58,7 +58,7 @@ static void parse_namelist(char *in, struct hwmodel_name *names, int *conversion
}
#define ALLOC_WRAP_Q "state_get(S)," \
- "alloc_wrap(S, %zu, 21, %"PRIi32",%s, NewS)," \
+ "alloc_wrap(S, %zu, %d, %"PRIi32",%s, NewS)," \
"state_set(NewS)."
errval_t driverkit_hwmodel_ram_alloc(struct capref *dst,
@@ -... |
align: add MCST LCC to compilers known to support __alignof__ | HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \
HEDLEY_TI_CL430_VERSION_CHECK(16,9,0) || \
HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,2) || \
+ HEDLEY_MCST_LCC_VERSION_CHECK(1,25,10) || \
defined(__IBM__ALIGNOF__) || \
defined(__clang__)
#define SIMDE_ALIGN_OF(Type) __alignof__(Type)
|
kubectl-gadget: Add sys_mod capability needed by python-based gadgets | @@ -291,6 +291,10 @@ spec:
# Needed for gadgets that don't dumb the memory rlimit.
# (Currently only applies to BCC python-based gadgets)
- IPC_LOCK
+
+ # Needed by BCC python-based gadgets to load the kheaders module:
+ # https://github.com/iovisor/bcc/blob/v0.24.0/src/cc/frontends/clang/kbuild_helper.cc#L158
+ - SYS_... |
[GB] Implement ADD A, u8 instruction | @@ -829,6 +829,30 @@ impl CpuState {
self.update_flag(FlagUpdate::HalfCarry(true));
Some(InstrInfo::seq(2, 2))
}
+ 0xc6 => {
+ // ADD A, u8
+ // TODO(PT): Refactor with ADD A, Reg8?
+ let a = self.reg(RegisterName::A);
+ let val = self.mmu.read(self.get_pc() + 1);
+
+ if debug {
+ println!("ADD {a}, {val:02x}");
+ }
+
... |
fix fedora-review tool errors | @@ -24,6 +24,7 @@ BuildRequires: systemd-rpm-macros
BuildRequires: systemd
BuildRequires: pybind11-devel
BuildRequires: tbb-devel
+BuildRequires: git
%description
Open Programmable Acceleration Engine (OPAE) is a software framework
|
appveyor: it was unexpected | @@ -104,7 +104,7 @@ install:
- gem install rest-client --no-document -f
- gem install listen --no-document -f
- gem install zip --no-document -f
- - gem install bundler --no-document -f
+ - gem install bundler --quiet --no-ri --no-rdoc -f
- bundler --version
before_test:
|
Update status badge link from Travis CI to Github Actions | -# SDL2 binding for Go [](https://app.travis-ci.com/github/veandco/go-sdl2) [](https://goreportcard.com/report/github.com/veandco/go-sdl2) [![Reviewed... |
extmod/vfs: Support opening a file descriptor (int) with VfsPosix.
Fixes issue | #include "extmod/vfs_fat.h"
#endif
+#if MICROPY_VFS_POSIX
+#include "extmod/vfs_posix.h"
+#endif
+
// For mp_vfs_proxy_call, the maximum number of additional args that can be passed.
// A fixed maximum size is used to avoid the need for a costly variable array.
#define PROXY_MAX_ARGS (2)
@@ -264,6 +268,13 @@ mp_obj_t m... |
travis: removing cache_name | @@ -118,15 +118,15 @@ matrix:
- language: objective-c
os: osx
- env: RHO_TARGET="iphone" RHO_APP="auto_common_spec" CACHE_NAME="RVM_OSX"
+ env: RHO_TARGET="iphone" RHO_APP="auto_common_spec"
- language: objective-c
os: osx
- env: RHO_TARGET="iphone" RHO_APP="framework_spec" CACHE_NAME="RVM_OSX"
+ env: RHO_TARGET="iphon... |
CBLK: No irqs and little higher cache read timeout | #include "snap_hls_if.h"
#include "capiblock.h"
-#undef CONFIG_WAIT_FOR_IRQ /* Not fully working */
+#undef CONFIG_WAIT_FOR_IRQ /* Not working */
#undef CONFIG_PRINT_STATUS /* health checking if needed */
#undef CONFIG_FIFO_SCHEDULING /* only root */
#undef CONFIG_PIN_COMPLETION_THREAD /* try to pin completion thread *... |
feat(venachain):modify venachain solidity2c python file | @@ -755,7 +755,7 @@ class CFunctionGen():
inputs_len = len(inputs)
input_str = '('
- input_str += 'BoatPlatoneTx *tx_ptr'
+ input_str += 'BoatVenachainTx *tx_ptr'
if inputs_len != 0:
input_str += ', '
@@ -851,7 +851,7 @@ class CFunctionGen():
# Set Nonce
if not self.is_Change_Blockchain_State(abi_item):
- func_body_str... |
SetStatusBarModal: prevent flexShrink on mobile | @@ -77,9 +77,11 @@ export const SetStatusBarModal = (props) => {
)}
<Row
{...rest}
+ flexShrink={0}
onClick={() => setModalShown(true)}>
<Text color='black'
cursor='pointer'
+ flexShrink={0}
fontSize={1}>
Set Status
</Text>
|
Oops... remove debug message | @@ -353,7 +353,6 @@ FIO_FUNC void *fio_hash_insert(fio_hash_s *hash, FIO_HASH_KEY_TYPE key,
if (!info && !obj)
return NULL;
while (!info) {
- fprintf(stderr, "no info\n");
fio_hash_rehash(hash);
info = fio_hash_seek_pos_(hash, key);
}
|
Fix - fix docstring. | @@ -2547,7 +2547,7 @@ JANET_CORE_FN(cfun_ev_thread,
"to resume with. "
"Unlike `ev/go`, this function will suspend the current fiber until the thread is complete. "
"If you want to run the thread without waiting for a result, pass the `:n` flag to return nil immediately. "
- "Otherwise, returns (a copy of) the final re... |
respect large pages for arena allocation | @@ -232,6 +232,7 @@ void* _mi_arena_alloc_aligned(size_t size, size_t alignment, bool* commit, bool*
for (size_t i = 0; i < MI_MAX_ARENAS; i++) {
mi_arena_t* arena = (mi_arena_t*)mi_atomic_read_ptr_relaxed(mi_atomic_cast(void*, &mi_arenas[i]));
if (arena==NULL) break;
+ if (*large || !arena->is_large) { // large OS pag... |
include/sys/boardctl.h : Add macro of boardctl
To reset the board through sw, we should call boardctl(BOARDIOC_RESET, EXIT_SUCCESS/FAILURE).
For easy use, add macro as board_sw_reset() | ****************************************************************************/
#include <tinyara/config.h>
#include <stdint.h>
+#include <stdlib.h>
#include <tinyara/fs/ioctl.h>
@@ -169,5 +170,9 @@ int boardctl(unsigned int cmd, uintptr_t arg);
}
#endif
+#define board_sw_reset() do { \
+ boardctl(BOARDIOC_RESET, EXIT_SU... |
up grpc runtime to 1.43.2 | @@ -984,8 +984,8 @@ when ($JAVA_PROTO_RUNTIME == "javalite") {
otherwise {
_JAVA_PROTO_OUT_ARG=--java_out=
JAVA_PROTOBUF_PEERS=contrib/java/com/google/protobuf/protobuf-java/${JAVA_PROTO_RUNTIME_VERSION}
- JAVA_GRPC_STUB=contrib/java/io/grpc/grpc-stub/1.26.0
- JAVA_GRPC_PROTOBUF=contrib/java/io/grpc/grpc-protobuf/1.26.... |
Make depth test more flexible; | @@ -471,13 +471,14 @@ int l_lovrGraphicsGetDepthTest(lua_State* L) {
}
int l_lovrGraphicsSetDepthTest(lua_State* L) {
- if (lua_isnoneornil(L, 1) && lua_isnoneornil(L, 2)) {
- lovrGraphicsSetDepthTest(COMPARE_NONE, false);
- } else {
- CompareMode mode = *(CompareMode*) luax_checkenum(L, 1, &CompareModes, "compare mode... |
Fix dealloc size to match virtio_scsi_request alloc size | @@ -158,7 +158,7 @@ closure_function(4, 1, void, virtio_scsi_request_complete,
apply(bound(c), s, r);
backed_heap contiguous = s->v->virtio_dev.contiguous;
dealloc_unmap(contiguous, r, bound(r_phys),
- pad(sizeof(*r) + r->alloc_len, contiguous->h.pagesize));
+ sizeof(*r) + r->alloc_len);
closure_finish();
}
|
xfpga: fix for cstr_dup
Separate the malloc check from the copy check so that a successful
allocation can be freed on copy error. | -// Copyright(c) 2017-2018, Intel Corporation
+// Copyright(c) 2017-2019, Intel Corporation
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
@@ -1400,8 +1400,13 @@ STATIC char *cstr_dup(const char *str)
{
size_t s = s... |
fix gpload test fail
It seams not to support join python3 string like f'{}'. We now join string by the formatting way. | @@ -444,11 +444,11 @@ def drop_tables():
name = i[1]
match = re.search('ext_gpload',name)
if match:
- queryString = f'DROP EXTERNAL TABLE "{schema}"."{name}";'
+ queryString = 'DROP EXTERNAL TABLE "%s"."%s";'%(schema, name)
db.query(queryString.encode('utf-8'))
else:
- queryString = f'DROP TABLE "{schema}"."{name}";'
+... |
options/posix: add IN_CLASS* macros in netinet/in.h | #include <sys/socket.h> // struct sockaddr
#include <abi-bits/socket.h>
#include <abi-bits/in.h>
+#include <arpa/inet.h>
#ifdef __cplusplus
extern "C" {
@@ -77,15 +78,30 @@ uint16_t ntohs(uint16_t);
((((const uint8_t *)(a))[1] & 0xf) == 0xe)); \
})
-#define IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000)
-... |
memif: map shared memory with clib_mem_vm_map_shared(...)
Type: improvement | @@ -344,11 +344,11 @@ clib_error_t *
memif_init_regions_and_queues (memif_if_t * mif)
{
vlib_main_t *vm = vlib_get_main ();
+ memif_socket_file_t *msf;
memif_ring_t *ring = NULL;
- int i, j;
+ int fd, i, j;
u64 buffer_offset;
memif_region_t *r;
- clib_mem_vm_alloc_t alloc = { 0 };
clib_error_t *err;
ASSERT (vec_len (mi... |
headers: whitespace fixes and grammar tweaks | @@ -4568,7 +4568,7 @@ unsigned int RESAMP(_get_num_output)(RESAMP() _q, \
\
/* Execute arbitrary resampler on a single input sample and store the */ \
/* resulting samples in the output array. The number of output samples */ \
-/* is dependent upon the resampling rate but will be at most */ \
+/* depends upon the resam... |
Added VENDOR_KONKE (0x1268) | #define VENDOR_1233 0x1233 // Used by Third Reality
#define VENDOR_1234 0x1234 // Used by Xiaomi Mi
#define VENDOR_SAMJIN 0x1241
+#define VENDOR_KONKE 0x1268
#define VENDOR_OSRAM_STACK 0xBBAA
#define VENDOR_LEGRAND 0x1021
#define VENDOR_C2DF 0xC2DF
|
chip/mt8192_scp: add static for non-exposed functions
BRANCH=none
TEST=make BOARD=asurada_scp | @@ -116,14 +116,14 @@ void uart_tx_stop(void)
enable_sleep(SLEEP_MASK_UART);
}
-void uart_process(void)
+static void uart_process(void)
{
uart_process_input();
uart_process_output();
}
#if (UARTN < SCP_UART_COUNT)
-void irq_group12_handler(void)
+static void irq_group12_handler(void)
{
extern volatile int ec_int;
|
travis: add GCC 9 build | @@ -17,15 +17,22 @@ env:
jobs:
include:
- - name: "gcc amd64"
- compiler: gcc
- arch: amd64
-
- - name: "clang amd64"
- arch: amd64
- compiler: clang
+ - name: "gcc-9"
+ compiler: gcc-9
+ env:
+ - C_COMPILER=gcc-9
+ - CXX_COMPILER=g++-9
+ - COMPILER_FLAGS='-fsanitize=address,undefined'
+ addons:
+ apt:
+ sources:
+ - s... |
pppd: Fix PAP Request packet. | @@ -137,7 +137,8 @@ void pap_task(FAR struct ppp_context_s *ctx, FAR uint8_t * buffer)
if (!(ctx->pap_state & PAP_TX_UP) && !(ctx->pap_state & PAP_TX_TIMEOUT))
{
/* Do we need to send a PAP auth packet? Check if we have a request
- * pending */
+ * pending.
+ */
if ((ppp_arch_clock_seconds() - ctx->pap_prev_seconds) > ... |
clarifying that sky130_nda key is now optional | @@ -6,9 +6,11 @@ vlsi.core.max_threads: 12
# Technology paths
technology.sky130:
- sky130A: "/path-to-/sky130A"
- openram_lib: "/path-to-/sky130_sram_macros"
- sky130_nda: "/path-to-/skywater-src-nda"
+ sky130A: "/path/to/sky130A"
+ openram_lib: "/path/to/sky130_sram_macros"
+
+ # this key is OPTIONAL, no NDA files wil... |
feat(gui): LCUIWidget_ClearTrash() will return count | @@ -107,16 +107,20 @@ static void Widget_UpdateStatus(LCUI_Widget widget)
}
}
-void LCUIWidget_ClearTrash(void)
+size_t LCUIWidget_ClearTrash(void)
{
+ size_t count;
LinkedListNode *node;
+
node = LCUIWidget.trash.head.next;
+ count = LCUIWidget.trash.length;
while (node) {
LinkedListNode *next = node->next;
LinkedList... |
docs - update platform requirements to mention GPDB 6, not GPDB 6.0.0 | <topic id="topic_eyc_l2h_zz">
<title>Extensions</title>
<body>
+ <p>This table lists the versions of the Pivotal Greenplum Extensions that are compatible
+ with this release of Greenplum Database 6.</p>
<table class="- topic/table " id="table_b1q_m2h_zz">
- <title class="- topic/title ">Pivotal Greenplum 6.0.0 Extensio... |
net/tcp: TCP_WAITALL should use state flag
The feature of MSG_WAITALL is broken since the wrong flag is used | @@ -402,7 +402,8 @@ static uint16_t tcp_recvhandler(FAR struct net_driver_s *dev,
* next receive is performed.
*/
- if ((pstate->ir_recvlen > 0 && (flags & TCP_WAITALL) == 0) ||
+ if ((pstate->ir_recvlen > 0 &&
+ (pstate->ir_cb->flags & TCP_WAITALL) == 0) ||
pstate->ir_buflen == 0)
{
ninfo("TCP resume\n");
|
pem_read_bio_key_decoder: Avoid spurious error on unknown PEM data | @@ -55,11 +55,24 @@ static EVP_PKEY *pem_read_bio_key_decoder(BIO *bp, EVP_PKEY **x,
if (!OSSL_DECODER_CTX_set_pem_password_cb(dctx, cb, u))
goto err;
+ ERR_set_mark();
while (!OSSL_DECODER_from_bio(dctx, bp) || pkey == NULL)
- if (BIO_eof(bp) != 0 || (newpos = BIO_tell(bp)) < 0 || newpos <= pos)
+ if (BIO_eof(bp) != 0... |
network/netmgr: fix svace 637316
fix svace 637316 | @@ -221,14 +221,14 @@ static struct addrinfo *_netdev_copy_addrinfo(struct addrinfo *src)
memcpy(dst->ai_addr, tmp->ai_addr, sizeof(struct sockaddr));
if (tmp->ai_canonname) {
- dst->ai_canonname = (char *)kumm_malloc(sizeof(tmp->ai_canonname));
+ dst->ai_canonname = (char *)kumm_malloc(strlen(tmp->ai_canonname) + 1);
... |
build: upload windows binaries directly to gcp | @@ -153,3 +153,36 @@ jobs:
- run: mingw32-make build/urbit
- run: build/urbit -l -d -B ../../bin/solid.pill -F bus && curl -f --data '{"source":{"dojo":"+hood/exit"},"sink":{"app":"hood"}}' http://localhost:12321
+
+ - uses: actions/setup-python@v2
+ if: ${{ env.DO_UPLOAD == 'true' }}
+ with:
+ python-version: 3.7
+
+ ... |
ocvalidate: Added CryptexFixup.kext | @@ -30,6 +30,7 @@ KEXT_PRECEDENCE mKextPrecedence[] = {
{ "AirportBrcmFixup.kext", "Lilu.kext" },
{ "BrightnessKeys.kext", "Lilu.kext" },
{ "CpuTscSync.kext", "Lilu.kext" },
+ { "CryptexFixup.kext", "Lilu.kext" },
{ "CPUFriend.kext", "Lilu.kext" },
{ "CPUFriendDataProvider.kext", "CPUFriend.kext" },
{ "DebugEnhancer.ke... |
Make pressure reader work again. | @@ -36,6 +36,7 @@ func pollSensors() {
// If it's not currently connected, try connecting to pressure sensor
if globalSettings.Sensors_Enabled && !globalStatus.PressureSensorConnected {
globalStatus.PressureSensorConnected = initPressureSensor() // I2C temperature and pressure altitude.
+ go tempAndPressureSender()
}
/... |
markdownlinkconverter: sanitize array access with size check, close | @@ -46,7 +46,7 @@ const char * const linksToSrc[] = { ".h", ".c", ".cpp", ".hpp", ".cmake", ".ini"
// both need to be terminated with an empty string
// helpers
-static void printTarget (FILE * output, char * target, char * inputFilename, int indexofElektraRoot, bool isMarkdown, int lineCount);
+static void printTarget... |
titanc_spec: assert.truthy -> assert | @@ -38,6 +38,6 @@ describe("Titanc", function()
util.shell("./titanc --emit-c test.titan")
util.shell("./titanc --emit-asm test.c")
local s, err = util.get_file_contents("test.s")
- assert.is_truthy(s)
+ assert(s, err)
end)
end)
|
update hrr tests | @@ -11313,14 +11313,13 @@ requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3
run_test "TLS 1.3: server: HRR check - mbedtls" \
"$P_SRV debug_level=4 force_version=tls13 curves=secp384r1" \
"$P_CLI debug_level=4 force_version=tls13 curves=secp256r1,secp384r1" \
- 1 \
+ 0 \
-s "tls13 server state: MBEDTLS_SSL_CLIENT_HELLO"... |
Adding comments for godoc | @@ -76,7 +76,9 @@ func filterNets(mixedCIDRs []string, ipVersion uint8) (filtered []string, filter
return
}
-//FilterRuleToIPVersion: Filter rule based on the IPversion
+//FilterRuleToIPVersion: If the rule applies to the give IP version, returns a copy of the rule
+//excluding the CIDRs that are not for the given IP v... |
doc: fix incomplete ping session initialization
Thanks for reporting this issue.
Closes | @@ -65,6 +65,11 @@ Example method to create a new ping session and register callbacks:
void initialize_ping()
{
/* convert URL to IP address */
+ ip_addr_t target_addr;
+ struct addrinfo hint;
+ struct addrinfo *res = NULL;
+ memset(&hint, 0, sizeof(hint));
+ memset(&target_addr, 0, sizeof(target_addr));
getaddrinfo("w... |
CMSIS-Core(A): Add MMU section_normal_nc macro
I added the macro definition for non-cache area. | @@ -1788,6 +1788,21 @@ typedef struct RegionStruct {
region.sh_t = NON_SHARED; \
MMU_GetSectionDescriptor(&descriptor_l1, region);
+//Sect_Normal_NC. Outer & inner non-cacheable, non-shareable, executable, rw, domain 0
+#define section_normal_nc(descriptor_l1, region) region.rg_t = SECTION; \
+ region.domain = 0x0; \
+... |
test BUGFIX custom timeout for larger data | @@ -502,7 +502,7 @@ test_edit_item_create(struct test_state *state, struct timespec *ts_start, struc
return r;
}
- if ((r = sr_apply_changes(state->sess, 0))) {
+ if ((r = sr_apply_changes(state->sess, state->count * 100))) {
return r;
}
@@ -513,7 +513,7 @@ test_edit_item_create(struct test_state *state, struct timespe... |
Check if command input has at least 2 arguments | @@ -31,7 +31,7 @@ static struct cmd_handler input_handlers[] = {
struct cmd_results *cmd_input(int argc, char **argv) {
struct cmd_results *error = NULL;
- if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 1))) {
+ if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 2))) {
return error;
}
|
fix incorrect tree count comparison | @@ -179,7 +179,7 @@ TFullModel DeserializeModel(const TString& serializedModel) {
void TObliviousTrees::TruncateTrees(size_t begin, size_t end) {
CB_ENSURE(begin <= end, "begin tree index should be not greater than end tree index.");
- CB_ENSURE(end <= TreeSplits.size(), "end tree index should be not greater than tree ... |
scrypt: free the MD reference correctly.
The code was calling EVP_MD_meth_free which is incorrect. It should call
EVP_MD_free. It happened to work but by luck rather than design. | @@ -75,7 +75,7 @@ static void kdf_scrypt_free(void *vctx)
KDF_SCRYPT *ctx = (KDF_SCRYPT *)vctx;
if (ctx != NULL) {
- EVP_MD_meth_free(ctx->sha256);
+ EVP_MD_free(ctx->sha256);
kdf_scrypt_reset(ctx);
OPENSSL_free(ctx);
}
|
fixed qsort() issue | @@ -137,7 +137,10 @@ static int sort_maclist_by_time(const void *a, const void *b)
{
const maclist_t *ia = (const maclist_t *)a;
const maclist_t *ib = (const maclist_t *)b;
-return (ia->timestamp < ib->timestamp);
+
+if(ia->timestamp < ib->timestamp) return 1;
+else if(ia->timestamp > ib->timestamp) return -1;
+return ... |
sandbox: Turn off wasm since it's making the sandbox misbehave. | @@ -6,7 +6,7 @@ SET(CMAKE_RANLIB emranlib)
SET(MY_EXPORTS "'_get_parser', '_run_parser', '_get_parser_error'")
SET(MY_EXPORTS "${MY_EXPORTS}, '_destroy_parser'")
-SET(CMAKE_C_FLAGS "-O1 -Wno-warn-absolute-paths --memory-init-file 0 -s EXPORTED_FUNCTIONS=\"[${MY_EXPORTS}]\" -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"cwrap\"]... |
Test recursive parameter entity | @@ -4065,6 +4065,12 @@ START_TEST(test_external_entity_values)
NULL,
XML_ERROR_PARTIAL_CHAR
},
+ {
+ "%e1;",
+ "Recursive parameter entity not faulted",
+ NULL,
+ XML_ERROR_RECURSIVE_ENTITY_REF
+ },
{ NULL, NULL, NULL, XML_ERROR_NONE }
};
int i;
|
Fix for new font API | @@ -76,7 +76,7 @@ void render(uint32_t time_ms) {
// draw FPS meter & watermark
screen.watermark();
screen.pen = Pen(255, 255, 255);
- screen.text(std::to_string(ms_end - ms_start) + "ms/frame", &minimal_font[0][0], blit::Point(2, 240 - 10));
+ screen.text(std::to_string(ms_end - ms_start) + "ms/frame", minimal_font, b... |
docs:update cn trans for jtag-debugging | @@ -183,7 +183,6 @@ In case these issues occur, please remove the component. The figure below shows
.. figure:: ../../../_static/esp32-devkitc-c15-location.png
:align: center
:alt: Location of C15 (colored yellow) on ESP32-DevKitC V4 board
- :figclass: align-center
:width: 30%
Location of C15 (yellow) on ESP32-DevKitC ... |
add note about when unicorn support was enabled in micropython | @@ -19,8 +19,8 @@ The table below shows the current state of compatibly and some notes to set expe
|---|---|---|---
|[Pico Explorer Base](https://shop.pimoroni.com/products/pico-explorer-base)|Yes|Yes|
|[Pico RGB Keypad](https://shop.pimoroni.com/products/pico-rgb-keypad-base)|Yes|Yes|
-|[Pico Unicorn Pack](https://sho... |
fix crash if zero blocks | @@ -632,8 +632,10 @@ namespace NKernel {
numBlocks.x = (leafSize + blockSize * N - 1) / (blockSize * N);
numBlocks.y = 1;
numBlocks.z = 1;
-
- SplitAndMakeSequenceInSingleLeafImpl<N, blockSize><<<numBlocks, blockSize, 0, stream>>>(compressedIndex, loadIndices, parts, leafId, splitFeature, splitBin, splitFlags, indices)... |
Clarify legal requirements for contributions | @@ -19,8 +19,6 @@ Making a Contribution
1. Write a test which shows that the bug was fixed or that the feature works as expected.
1. Send a pull request (PR) and work with us until it gets merged and published. Contributions may need some modifications, so a few rounds of review and fixing may be necessary. We will inc... |
Bump bbr2 to draft-02 | @@ -673,7 +673,7 @@ static void bbr_start_probe_bw_down(ngtcp2_bbr2_cc *bbr, ngtcp2_tstamp ts) {
bbr_start_round(bbr);
bbr->state = NGTCP2_BBR2_STATE_PROBE_BW_DOWN;
- bbr->pacing_gain = 0.75;
+ bbr->pacing_gain = 0.9;
bbr->cwnd_gain = 2;
}
@@ -771,6 +771,8 @@ static void bbr_update_probe_bw_cycle_phase(ngtcp2_bbr2_cc *... |
Rename sctp_dtrace_declare.h to sctp_kdtrace.h. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_cc_functions.c 310590 2016-12-26 11:06:41Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_cc_functions.c 353488 2019-10-14 13:02:49Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -50,8 +50,8 @@ __FBSDID("$FreeBSD: head/sys... |
composite: do not require CDCACM driver to be set, composite interface is generic | # error "USB composite device support is not enabled (CONFIG_USBDEV_COMPOSITE)"
#endif
-#ifndef CONFIG_CDCACM
-# error "USB CDC/ACM serial device support is not enabled (CONFIG_CDCACM)"
-#endif
-
-#ifndef CONFIG_CDCACM_COMPOSITE
-# error "USB CDC/ACM serial composite device support is not enabled (CONFIG_CDCACM_COMPOSI... |
tools/offcputime Filter out negative offcpu duration | @@ -146,8 +146,13 @@ int oncpu(struct pt_regs *ctx, struct task_struct *prev) {
}
// calculate current thread's delta time
- u64 delta = bpf_ktime_get_ns() - *tsp;
+ u64 t_start = *tsp;
+ u64 t_end = bpf_ktime_get_ns();
start.delete(&pid);
+ if (t_start > t_end) {
+ return 0;
+ }
+ u64 delta = t_end - t_start;
delta = ... |
ensure '-dv' isn't added multiple times to command line. Change placemnt of ';' when creating engineArgs string, fixes parsing problem. | @@ -295,6 +295,11 @@ static bool EndsWith(const char *s, const char *suffix)
* visit's components. Use double-quotes when re-surrounding instead of
* single.
*
+ * Kathleen Biagas, Mon Jul 17 15:11:09 MST 2017
+ * Ensure '-dv' isn't added multiple times to the command line.
+ * Change placement of ';' when creating the... |
http_server: metrics: prometheus: add fluentbit_build_info metric
this PR adds metric fluentbit_build_info to prometheus metrics
added metric output:
#HELP fluentbit_build_info Build version information.
#TYPE fluentbit_build_info gauge
fluentbit_build_info{version="1.5.0",edition="Community"} 1 | #include <fluent-bit/flb_filter.h>
#include <fluent-bit/flb_output.h>
#include <fluent-bit/flb_sds.h>
+#include <fluent-bit/flb_version.h>
#include "metrics.h"
#include <fluent-bit/flb_http_server.h>
@@ -393,6 +394,25 @@ void cb_metrics_prometheus(mk_request_t *request, void *data)
tmp_sds = flb_sds_cat(sds, "\n", 1);
... |
remove unnecessary construct | @@ -108,21 +108,15 @@ private:
TIntrusivePtr<Inner> Impl_;
public:
- template <EMemoryType Type>
- explicit TCudaVec(ui64 size = 0)
- : Impl_(new Inner(size, Type))
- {
- }
+
TCudaVec(ui64 size, EMemoryType type)
: Impl_(new Inner(size, type))
{
}
- template <EMemoryType Type>
- explicit TCudaVec(TConstArrayRef<T> data... |
VERSION bump to version 2.2.29 | @@ -65,7 +65,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 28)
+set(SYSREPO_MICRO_VERSION 29)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Avoid warning in asm.c on windows. | @@ -252,8 +252,8 @@ static int32_t doarg_1(
case JANET_NUMBER:
{
double y = janet_unwrap_number(x);
- if (y >= INT32_MIN && y <= INT32_MAX) {
- ret = y;
+ if (janet_checkintrange(y)) {
+ ret = (int32_t) y;
} else {
goto error;
}
|
Use zip rather than enumerate
After improving coding style, pylint suggeted using enumerate but
zip is more appropriate to avoid indexing | @@ -183,13 +183,13 @@ def test_all_common():
"PSK-AES256-CBC-SHA",
]
- for i, m_cipher in enumerate(m_ciphers):
+ for m, g_exp, o_exp in zip(m_ciphers, g_ciphers, o_ciphers):
- g = translate_gnutls(m_cipher)
- assert_equal(g, g_ciphers[i])
+ g = translate_gnutls(m)
+ assert_equal(g, g_exp)
- o = translate_ossl(m_cipher... |
Some comments refinement | @@ -717,7 +717,7 @@ static themis_status_t secure_comparator_bob_step2(secure_comparator_t *comp_ctx
}
/* Finally Bob sends to Alice on 2 step:
- * G2b || G2b signature || G3b || G3b signature || Pb || Qb || Qb signature
+ * G2b || G2b signature || G3b || G3b signature || Pb || Qb || Pb + Qb signature
* Bob proceeds 2 ... |
Add some libssl wrappers | @@ -935,7 +935,7 @@ GO(CRYPTO_strdup, pFppi)
//GO(d2i_ASN1_VISIBLESTRING,
//GO(d2i_AUTHORITY_INFO_ACCESS,
//GO(d2i_AUTHORITY_KEYID,
-//GO(d2i_AutoPrivateKey,
+GO(d2i_AutoPrivateKey, pFppl)
//GO(d2i_BASIC_CONSTRAINTS,
//GO(d2i_CERTIFICATEPOLICIES,
//GO(d2i_CMS_bio,
@@ -1756,7 +1756,7 @@ GO(ERR_remove_thread_state, vFp)
... |
Guard use of -march=nehalem to gcc >= 4.9
Fixes | @@ -260,7 +260,24 @@ build_target() {
esac
case $arch in
- x86_64) add cc_flags -march=nehalem;;
+ x86_64)
+ # 'nehalem' tuning actually produces faster code for orca than later
+ # archs, for both gcc and clang, even if it's running on a later arch
+ # CPU. This is likely due to smaller emitted code size. gcc earlier ... |
enable caddress ntime sharing with proto 33500 | @@ -43,14 +43,14 @@ extern int MIN_MN_PROTO_VERSION;
// nTime field added to CAddress, starting with this version;
// if possible, avoid requesting addresses nodes older than this
-static const int CADDR_TIME_VERSION = 31005;
+static const int CADDR_TIME_VERSION = 33500; // start sharing node timeinfo with this proto v... |
README: update mailing list
Update the top-level README.md file to refer to the new mailing list. | @@ -58,7 +58,7 @@ For more information in the source, here are some pointers:
Developers welcome!
* Our developer mailing list:
- http://lists.runtime.co/mailman/listinfo/dev-mcuboot_lists.runtime.co
+ https://groups.io/g/mcuboot
* Our Slack channel: https://mcuboot.slack.com/ <br />
Get your invite [here!](https://joi... |
BugID:19162920: remove the use of malloc. | @@ -61,7 +61,7 @@ int bt_mesh_conn_disconnect(bt_mesh_conn_t conn, uint8_t reason)
struct svc_paire_node {
struct bt_mesh_gatt_service *msvc;
- struct bt_gatt_service *svc;
+ struct bt_gatt_service svc;
} _svc_paire[SVC_ENTRY_MAX] = {{0}};
/* TODO: manage the services in linked list. */
@@ -85,15 +85,10 @@ int bt_mesh_... |
updated for RHEL
Added in RHEL 7.6 Beta information | - [Arch](#arch---aur)
- [Gentoo](#gentoo---portage)
- [openSUSE](#opensuse---binary)
+ - [RHEL](#redhat---binary)
* [Source](#source)
- [Debian](#debian---source)
- [Ubuntu](#ubuntu---source)
@@ -145,6 +146,13 @@ sudo zypper ref
sudo zypper in bcc-tools bcc-examples
```
+## RHEL - Binary
+
+For Redhat 7.6 (Beta) bcc is... |
OcFileLib: Ensure that non-null terminated label is handled properly | @@ -39,6 +39,8 @@ GetVolumeLabel (
EFI_FILE_HANDLE Volume;
EFI_FILE_SYSTEM_VOLUME_LABEL *VolumeInfo;
+ UINTN VolumeLabelSize;
+ CHAR16 *VolumeLabel;
ASSERT (FileSystem != NULL);
@@ -56,7 +58,7 @@ GetVolumeLabel (
Volume,
&gEfiFileSystemVolumeLabelInfoIdGuid,
sizeof (EFI_FILE_SYSTEM_VOLUME_LABEL),
- NULL
+ &VolumeLabelS... |
Tests: address configuration tests reworked. | @@ -8,6 +8,15 @@ from unit.control import TestControl
class TestConfiguration(TestControl):
prerequisites = {'modules': {'python': 'any'}}
+ def try_addr(self, addr):
+ return self.conf(
+ {
+ "listeners": {addr: {"pass": "routes"}},
+ "routes": [{"action": {"return": 200}}],
+ "applications": {},
+ }
+ )
+
def test_js... |
Add protection for rfcomm close API in SPP | @@ -210,16 +210,18 @@ void port_release_port (tPORT *p_port)
osi_mutex_global_lock();
RFCOMM_TRACE_DEBUG("port_release_port, p_port:%p", p_port);
+ if (p_port->rx.queue) {
while ((p_buf = (BT_HDR *)fixed_queue_dequeue(p_port->rx.queue, 0)) != NULL) {
osi_free (p_buf);
}
-
+ }
p_port->rx.queue_size = 0;
+ if (p_port->tx... |
libnetif_raw: adding k1om to build architectures | build library { target = "net_if_raw",
cFiles = [ "interface_raw.c" ],
addLibraries = libDeps [ "devif", "devif_backend_idc"],
- architectures = ["armv7", "armv8"]}
+ architectures = ["armv7", "armv8", "k1om"]}
]
|
khan: docs, lift arg vase into (unit) | ?. =(%nonexistent s.args)
~& >>> bad-name+s.args
(expect !>(|))
- (expect-eq !>(~) t.args)
+ (expect-eq !>(`~) t.args)
:: ++ test-khan-take-dud
:: !!
:: ++ test-khan-take-watch-fail
|
Design: Use list syntax for descriptions | @@ -267,9 +267,9 @@ with `KEY_TYPE`.
Data structures start with a capital letter for every part of the word:
- KDB ... Key Data Base Handle
- KeySet ... Key Set
- Key ... Key
+- `KDB` ... Key Data Base Handle
+- `KeySet` ... Key Set
+- `Key` ... Key
We use singular for all names.
|
Enable invalid param test for ecp | @@ -61,7 +61,7 @@ inline static int mbedtls_ecp_group_cmp( mbedtls_ecp_group *grp1,
* END_DEPENDENCIES
*/
-/* BEGIN_CASE depends_on:NOT_DEFINED */
+/* BEGIN_CASE */
void ecp_invalid_param( )
{
mbedtls_ecp_group grp;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.