message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
BugID:24500332:[umesh2]fix generic mutex is not release in deinit issue | @@ -727,7 +727,9 @@ static int service_state_deinit(service_state_t *state)
hal_mutex_unlock(state->lock);
hal_semaphore_free(state->leave_semp);
+ state->leave_semp = NULL;
hal_mutex_free(state->lock);
+ state->lock = NULL;
hal_free(state);
return 0;
}
|
cast type to avoid warning | @@ -484,7 +484,7 @@ static scs_int proj_semi_definite_cone(scs_float *X, const scs_int n,
/* Solve eigenproblem, reuse workspaces */
BLAS(syev)("Vectors", "Lower", &nb, Xs, &nb, e, work, &lwork, &info);
if (info != 0) {
- scs_printf("WARN: LAPACK syev error, info = %i\n", info);
+ scs_printf("WARN: LAPACK syev error, i... |
esp32/mpthreadport: Don't explicitly free thread struct in TCB cleanup.
Because vPortCleanUpTCB runs on the FreeRTOS idle task and cannot execute
any VM or runtime related code like freeing memory. | @@ -166,6 +166,8 @@ void mp_thread_finish(void) {
mp_thread_mutex_unlock(&thread_mutex);
}
+// This is called from the FreeRTOS idle task and is not within Python context,
+// so MP_STATE_THREAD is not valid and it does not have the GIL.
void vPortCleanUpTCB(void *tcb) {
if (thread == NULL) {
// threading not yet initi... |
Typo in SSL_CTX_sess_number.pod - started | @@ -32,7 +32,7 @@ client mode.
SSL_CTX_sess_connect_good() returns the number of successfully established
SSL/TLS sessions in client mode.
-SSL_CTX_sess_connect_renegotiate() returns the number of start renegotiations
+SSL_CTX_sess_connect_renegotiate() returns the number of started renegotiations
in client mode.
SSL_C... |
bootloader: Change range of the factory reset pin in Kconfig
Closes: | @@ -123,7 +123,8 @@ menu "Bootloader config"
config BOOTLOADER_NUM_PIN_FACTORY_RESET
int "Number of the GPIO input for factory reset"
depends on BOOTLOADER_FACTORY_RESET
- range 0 39
+ range 0 39 if IDF_TARGET_ESP32
+ range 0 44 if IDF_TARGET_ESP32S2
default 4
help
The selected GPIO will be configured as an input with ... |
YAJL: Add required `array` metadata in test | @@ -161,6 +161,10 @@ kdb set user/tests/yajl/roots/bloody/roots 'No Roots'
# Add an array containing two elements
kdb set user/tests/yajl/now ', Now'
+# Elektra arrays require the metakey `array` to the parent.
+# Otherwise the keys below `user/tests/yajl/now` would be
+# interpreted as normal key-value pairs.
+kdb met... |
[consensus] Panic upon no Consensus or BlockFactory | @@ -59,7 +59,7 @@ type BlockFactory interface {
func Start(c Consensus) {
bf := c.BlockFactory()
if c == nil || bf == nil {
- logger.Errorf("failed to start consensus service (no Consensus or BlockFactory)")
+ logger.Fatal("failed to start consensus service: no Consensus or BlockFactory")
}
go bf.Start()
|
compiler/sim: Add --gc-sections option to the linker
This patch make sure that image does not contain
not used functions and data as it is done for other targets | @@ -25,7 +25,7 @@ compiler.path.archive: "ar"
compiler.path.objdump: "objdump"
compiler.path.objsize: "size"
compiler.path.objcopy: "objcopy"
-compiler.flags.base: [-m32, -Wall, -Werror, -ggdb]
+compiler.flags.base: [-m32, -Wall, -Werror, -ggdb, -ffunction-sections, -fdata-sections]
compiler.ld.resolve_circular_deps: t... |
highlevel: fix more memleaks | @@ -212,16 +212,21 @@ void elektraErrorReset (ElektraError ** error)
elektraFree (actualError->description);
}
- if (actualError->lowLevelError != NULL && actualError->lowLevelError->warnings != NULL)
+ ElektraKDBError * kdbError = actualError->lowLevelError;
+ if (kdbError != NULL)
{
- for (int i = 0; i < actualError-... |
fix assertion comparison | @@ -359,7 +359,7 @@ static void mi_heap_absorb(mi_heap_t* heap, mi_heap_t* from) {
// turns out to be ok as `_mi_heap_delayed_free` only visits the list and calls a
// the regular `_mi_free_delayed_block` which is safe.
_mi_heap_delayed_free(from);
- mi_assert_internal(from->thread_delayed_free == NULL);
+ mi_assert_in... |
pr_occlum: add rune kill test
Fixes: | @@ -78,5 +78,11 @@ jobs:
sed -i 's#/var/run/rune/liberpal-skeleton-v2.so#/opt/occlum/build/lib/libocclum-pal.so#g' config.json;
rune --debug run occlum-app && rm -rf rootfs config.json"
+ - uses: ./.github/actions/rune-kill
+ timeout-minutes: 3
+ with:
+ container-id: ${{ env.rune_test }}
+ container-name: occlum-app
+... |
posix: use buffered pipes for fifo | @@ -756,7 +756,7 @@ int posix_mkfifo(const char *pathname, mode_t mode)
if ((proc_lookup("/dev/posix/pipes", NULL, &pipesrv)) < 0)
return set_errno(-ENOSYS);
- if (proc_create(pipesrv.port, pxPipe, 0, oid, pipesrv, NULL, &oid) < 0)
+ if (proc_create(pipesrv.port, pxBufferPipe, 0, oid, pipesrv, NULL, &oid) < 0)
return s... |
fixed Kconfig IDLE hook config | @@ -51,11 +51,16 @@ config RT_USING_OVERFLOW_CHECK
config RT_USING_HOOK
bool "Enable system hook"
default y
+ select RT_USING_IDLE_HOOK
help
Enable the hook function when system running, such as idle thread hook,
thread context switch etc.
- if RT_USING_HOOK
+config RT_USING_IDLE_HOOK
+ bool "Enable IDLE Task hook"
+ d... |
idf_tools.py: fix downloading for tools which have "on_request" options for some platforms.
'install' and 'download' options can be used for 'required' or 'all' tools | @@ -1065,7 +1065,10 @@ def action_download(args):
tool_for_platform = tool_obj.copy_for_platform(platform)
tools_info_for_platform[name] = tool_for_platform
- if 'all' in tools_spec:
+ if not tools_spec or 'required' in tools_spec:
+ tools_spec = [k for k, v in tools_info_for_platform.items() if v.get_install_type() ==... |
[Textpad] Use a white background | @@ -23,6 +23,9 @@ int main(int argc, char** argv) {
window,
(gui_window_resized_cb_t)_input_sizer
);
+ input->background_color = color_white();
+ // Necessary to display the updated background color
+ gui_text_view_clear(input);
gui_enter_event_loop();
|
Remove use of malloc in lists.c
Note still a call to free since valueToString hasn't been updated | @@ -223,7 +223,7 @@ static Value joinListItem(VM *vm, int argCount, Value *args) {
char *output;
char *fullString = NULL;
- int index = 0;
+ int length = 0;
int delimiterLength = strlen(delimiter);
for (int j = 0; j < list->values.count - 1; ++j) {
@@ -233,15 +233,16 @@ static Value joinListItem(VM *vm, int argCount, V... |
zephyr: herobrine: Enable VBOOT and EFS2
Enable VBOOT and EFS2 for herobrine.
BRANCH=none
TEST=Verify EC software sync with locally build AP firmware. | @@ -51,9 +51,6 @@ CONFIG_PLATFORM_EC_POWER_SLEEP_FAILURE_DETECTION=y
CONFIG_PLATFORM_EC_CHIPSET_RESET_HOOK=y
CONFIG_PLATFORM_EC_CHIPSET_RESUME_INIT_HOOK=y
-# TODO(b:193719620): Enable EC EFS2.
-CONFIG_PLATFORM_EC_VBOOT_EFS2=n
-
# MKBP event mask
CONFIG_PLATFORM_EC_MKBP_EVENT_WAKEUP_MASK=y
CONFIG_PLATFORM_EC_MKBP_HOST_E... |
afu_test: fix memory leak in regex_t struct
Use regex_t in a unique_ptr with a custom deleter that calls regree. | #include <unistd.h>
#include <chrono>
#include <future>
+#include <memory>
#include <random>
#include <thread>
@@ -73,14 +74,18 @@ union pcie_address {
static pcie_address parse(const char *s)
{
- regex_t re;
+ auto deleter = [&](regex_t *r){
+ regfree(r);
+ delete r;
+ };
+ std::unique_ptr<regex_t, decltype(deleter)> ... |
publish: add delete note front-end for note author | @@ -33,6 +33,7 @@ export class Note extends Component {
});
this.scrollElement = React.createRef();
this.onScroll = this.onScroll.bind(this);
+ this.deletePost = this.deletePost.bind(this);
}
componentWillMount() {
@@ -47,6 +48,16 @@ export class Note extends Component {
window.api.fetchNote(this.props.ship, this.props... |
Add black link to bpf file header | @@ -16,3 +16,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
+
|
Patch CBMC queue stubs to allocate objects of sizes CBMC can model. | #include "queue.h"
#include "queue_datastructure.h"
+#ifndef CBMC_OBJECT_BITS
+#define CBMC_OBJECT_BITS 7
+#endif
+
+#ifndef CBMC_OBJECT_MAX_SIZE
+#define CBMC_OBJECT_MAX_SIZE (UINT32_MAX>>(CBMC_OBJECT_BITS+1))
+#endif
+
/* Using prvCopyDataToQueue together with prvNotifyQueueSetContainer
leads to a problem space explo... |
Remove conditional includes from libtcod.cpp
These are handled in the source files themselves. | #include "libtcod/path.cpp"
#include "libtcod/sys.cpp"
#include "libtcod/sys_c.cpp"
-#include "libtcod/txtfield.cpp"
-#include "libtcod/zip.cpp"
-
-#ifndef TCOD_BARE
+#include "libtcod/sys_opengl_c.cpp"
#include "libtcod/sys_sdl_c.cpp"
-#include "libtcod/sys_sdl2_c.cpp"
#include "libtcod/sys_sdl_img_bmp.cpp"
#include "... |
docs: add version for this user manual | ### Overview
This article introduces the functions and usage of BoAT IoT Framework SDK 2.x.
The intended readers of this guide are customers who integrate the BoAT IoT Framework SDK.
+The user manual version is 1.0.0.
### Abbreviated Terms
|Term |Explanation |
|
forgot to store status flag in ESSIDLIST | @@ -2509,6 +2509,7 @@ for(c = 0; c < apstaessidcount; c++)
{
if((zeiger1->essidlen != zeiger2->essidlen) && (memcmp(zeiger1->mac_ap, zeiger2->mac_ap, 6) != 0) && (memcmp(zeiger1->mac_sta, zeiger2->mac_sta, 6) != 0) && (memcmp(zeiger1->essid, zeiger2->essid, zeiger1->essidlen) != 0))
{
+ zeiger2->status |= zeiger1->stat... |
Fix known but not problematic buffer access violation
This is needed to make regression tests pass with
CPPFLAGS=-DMPROTECT_BUFFERS. | @@ -791,8 +791,17 @@ fsm_vacuum_page(Relation rel, FSMAddress addr, bool *eof_p)
* pages, increasing the chances that a later vacuum can truncate the
* relation.
*/
+#ifdef MPROTECT_BUFFERS
+ /*
+ * When mprotect() is used to detect shared buffer access violations, lock
+ * must be acquired so that write access is allo... |
test: Change init condition for test_polarity_cc1_default
BRANCH=none
TEST=Run usb_typec_drp_acc_trysrc host test | @@ -162,6 +162,14 @@ __maybe_unused static int test_polarity_cc1_default(void)
mock_tcpc.cc1 = TYPEC_CC_VOLT_RP_DEF;
mock_tcpc.cc2 = TYPEC_CC_VOLT_OPEN;
mock_tcpc.vbus_level = 1;
+
+ /*
+ * In this test we are expecting value of polarity, which is set by
+ * default for tcpc mock. Initialize it with something else, in ... |
Don't add -lrt flag on macos | @@ -34,7 +34,7 @@ BINDIR=$(PREFIX)/bin
#CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -g
CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden
-CLIBS=-lm -ldl -lrt
+CLIBS=-lm -ldl
JANET_TARGET=janet
JANET_LIBRARY=libjanet.so
DEBUGGER=gdb
@@ -46,6 +46,7 @@ ifeq ($(UNAME), Darwin)
LDCONFIG:=
else
... |
Fix clang-format fallback check
`[ -z "${CLANG_FORMAT+x}" ]` checks if CLANG_FORMAT is unset, but the
variable will be set even if `which` fails, so we have to check if it is
empty instead. | RECOMMENDED_CLANG_FORMAT_MAJOR="11"
CLANG_FORMAT=`which clang-format-$RECOMMENDED_CLANG_FORMAT_MAJOR 2>/dev/null`
-if [ -z "${CLANG_FORMAT+x}" ]; then
+if [ -z "$CLANG_FORMAT" ]; then
CLANG_FORMAT=`which clang-format 2>/dev/null`
fi
|
Update CHANGELOG.md for test changes and Ethernet support in PIC32MZEF
TLS test updates.
Support for Ethernet connectivity was added back to Microchip PIC32MZEF. | ### Updates
#### Demo specific stack size and priority
- Make stack size and priority to be demo specific. In current release all demos have same stack size and priority. This change will make stack size and priority configurable for each demo. Demo can use default stack size/ priority or define its own.
+#### Ethernet... |
Fixed uninitialized var. | @@ -1573,7 +1573,7 @@ celix_status_t fw_addBundleListener(framework_pt framework, bundle_pt bundle, bu
celix_status_t fw_removeBundleListener(framework_pt framework, bundle_pt bundle, bundle_listener_pt listener) {
celix_status_t status = CELIX_SUCCESS;
- fw_bundle_listener_pt bundleListener;
+ fw_bundle_listener_pt bu... |
kdb: avoid raw pointers in factory | class Instancer
{
public:
- virtual Command * get () = 0;
+ virtual std::unique_ptr<Command> get () = 0;
virtual ~Instancer ()
{
}
@@ -68,15 +68,15 @@ public:
template <class T>
class Cnstancer : public Instancer
{
- virtual T * get () override
+ virtual std::unique_ptr<Command> get () override
{
- return new T ();
+ r... |
fix crash on V0.2 direction detection | @@ -399,6 +399,7 @@ ACVP_RESULT acvp_aes_kat_handler(ACVP_CTX *ctx, JSON_Object *obj)
/*
* verify the direction is valid - 0.2 version only
*/
+ if (dir_str != NULL) {
if (!strncmp(dir_str, "encrypt", 7)) {
dir = ACVP_DIR_ENCRYPT;
} else if (!strncmp(dir_str, "decrypt", 7)) {
@@ -407,7 +408,7 @@ ACVP_RESULT acvp_aes_ka... |
use DN for pattern cells when exporting to C | @@ -3,6 +3,8 @@ import { DutyInstrument, NoiseInstrument, WaveInstrument } from "../../../store/
import { PatternCell } from "./song/PatternCell";
import { Song } from "./song/Song";
+const noteConsts = ["C_3","Cs3","D_3","Ds3","E_3","F_3","Fs3","G_3","Gs3","A_3","As3","B_3","C_4","Cs4","D_4","Ds4","E_4","F_4","Fs4","G... |
BugID:21838817: remove the ulocation global inlude and code style | @@ -33,6 +33,15 @@ typedef union {
} coordinate;
} location_t;
+#ifdef QXWZ_ENABLED
+typedef struct ulocation_qxwz_usr_config {
+ char *appkey;
+ char *appsecret;
+ char *device_ID;
+ char *device_Type;
+} ulocation_qxwz_usr_config_t;
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -90,10 +99,17 @@ int ulocation_up... |
Fix issue with throwing uncaught errors. | @@ -56,8 +56,10 @@ int gst_start(Gst *vm) {
frame.size * sizeof(GstValue));
}
stack -= frame.prevSize + GST_FRAME_SIZE;
- if (stack <= thread.data)
+ if (stack <= thread.data) {
+ thread.count = 0;
break;
+ }
frame = *((GstStackFrame *)(stack - GST_FRAME_SIZE));
}
if (thread.count < GST_FRAME_SIZE)
|
BugID:17868639:modified canopen callback func | #include "hal_can_stm32f4.h"
#include "hal_timer_stm32f4.h"
+#ifdef AOS_CANOPEN
+#include "co_adapter.h"
+#endif
+
#if defined (__CC_ARM) && defined(__MICROLIB)
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
#define GETCHAR_PROTOTYPE int fgetc(FILE *f)
@@ -53,7 +57,9 @@ gpio_dev_t brd_gpio_table[] =
CAN_MAPPING C... |
fix strange issue | @@ -257,7 +257,9 @@ free_browsers_hash (void) {
}
if (conf.browsers_file) {
free (conf.user_browsers_hash);
- }Yandex
+ }
+}
+
static int
is_dup (char ***list, int len, const char *browser) {
int i;
@@ -279,7 +281,7 @@ set_browser (char ***list, int idx, const char *browser, const char *type) {
list[idx][0] = xstrdup (... |
slight image update | @@ -3,38 +3,36 @@ LABEL maintainer "asv13@pitt.edu"
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y git make g++ gcc wget swig libtool autoconf
-RUN pip install numpy ipython[all]
+RUN pip install numpy ipython[all] scipy matplotlib
ENV GSL_TAR="gsl-2.3.tar.gz"
ENV GSL_DL="http://ftp.wayne.edu/gnu/gsl/$... |
Updated README.md Docker section (config file). | @@ -246,7 +246,7 @@ If you want to expose goaccess on a different port on the host machine, you
ws-url ws://example.com:8080
-or for secured connections:
+or for secured connections, please ensure your configuration file has:
ws-url wss://example.com:8080
|
iOS: remove restricted API usage - fix AppStore submit issue | //#define HAVE_WORKING_FORK 1
//RHO
-#define HAVE___SYSCALL 1
+//RHO by Apple's require for AppStore submit
+//#define HAVE___SYSCALL 1
+//RHO
+
#define HAVE__LONGJMP 1
#define HAVE_ATAN2L 1
#define HAVE_ATAN2F 1
#define UCONTEXT_IN_SIGNAL_H 1
#define DEFINE_MCONTEXT_PTR(mc, uc) mcontext_t mc = (uc)->uc_mcontext
-#defi... |
[libdl] fix formatting issue | @@ -86,8 +86,8 @@ typedef struct elfhdr
header string table" entry offset */
} Elf32_Ehdr;
-
-typedef struct elf64_hdr {
+typedef struct elf64_hdr
+{
unsigned char e_ident[EI_NIDENT]; /* ELF Identification */
Elf64_Half e_type; /* object file type */
Elf64_Half e_machine; /* machine */
@@ -135,7 +135,6 @@ typedef struc... |
updating README for pipeline changes | -**Concourse Pipeline** [](https://gpdb.data.pivotal.ci/teams/gpdb) |
+**Concourse Pipeline** [](https://prod.ci... |
h7: fix hal_tick | @@ -42,6 +42,11 @@ void SysTick_Handler() {
systick_val = SysTick->VAL;
systick_pending = 0;
(void)(SysTick->CTRL);
+
+#ifdef USE_HAL_DRIVER
+ // used by the HAL for some timekeeping and timeouts, should always be 1ms
+ HAL_IncTick();
+#endif
}
uint32_t time_micros_isr() {
|
hwdocs: Start XF docs. | @@ -20,3 +20,4 @@ Contents:
fermi/index
kepler/index
maxwell/index
+ xf
|
add eval folder to mk_wheel.py | @@ -185,6 +185,7 @@ def build(arc_root, out_root, tail_args):
shutil.copy('core.py', 'catboost/catboost/core.py')
shutil.copy('datasets.py', 'catboost/catboost/datasets.py')
shutil.copy('utils.py', 'catboost/catboost/utils.py')
+ shutil.copytree('eval', 'catboost/catboost/eval')
shutil.copytree('widget', 'catboost/catb... |
Fix memory leaks in conf_def.c
Fixes
CLA: trivial | @@ -442,11 +442,13 @@ static int def_load_bio(CONF *conf, BIO *in, long *line)
if (biosk == NULL) {
if ((biosk = sk_BIO_new_null()) == NULL) {
CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE);
+ BIO_free(next);
goto err;
}
}
if (!sk_BIO_push(biosk, in)) {
CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE);
+ BIO_free... |
Hold the flag_lock when calling child callbacks
Not holding the flag lock when creating/removing child providers can
confuse the activation counts if the parent provider is loaded/unloaded
at the same time. | * some other function while holding a lock make sure you know whether it
* will make any upcalls or not. For example ossl_provider_up_ref() can call
* ossl_provider_up_ref_parent() which can call the c_prov_up_ref() upcall.
- * - It is permissible to hold the store lock when calling child provider
- * callbacks. No oth... |
rpi-config: Handle ARMSTUB | @@ -191,6 +191,17 @@ do_deploy() {
# Append extra config if the user has provided any
printf "${RPI_EXTRA_CONFIG}\n" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+
+ # Handle setup with armstub file
+ if [ -n "${ARMSTUB}" ]; then
+ echo "\n# ARM stub configuration" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "a... |
Inline window events handling
Now that all screen-related events are handled from screen.c, there is
no need for a separate method for window events. | @@ -541,34 +541,6 @@ screen_resize_to_pixel_perfect(struct screen *screen) {
content_size.height);
}
-static void
-screen_handle_window_event(struct screen *screen,
- const SDL_WindowEvent *event) {
- switch (event->event) {
- case SDL_WINDOWEVENT_EXPOSED:
- screen_render(screen, true);
- break;
- case SDL_WINDOWEVENT_... |
Detect RISC-V ISA extensions | # elif defined(__xtensa__)
# define M3_ARCH "xtensa"
# elif defined(__riscv)
-# define M3_ARCH "riscv"
+# if defined(__riscv_32e)
+# define _M3_ARCH_RV "rv32e"
+# elif __riscv_xlen == 128
+# define _M3_ARCH_RV "rv128i"
+# elif __riscv_xlen == 64
+# define _M3_ARCH_RV "rv64i"
+# elif __riscv_xlen == 32
+# define _M3_ARC... |
fix to controls_if_elseif maybe be aborted during merge | @@ -406,7 +406,7 @@ Blockly.Blocks['controls_if'] = {
// Rebuild block.
for (var i = 1; i <= this.elseifCount_; i++) {
this.appendValueInput('IF' + i)
- .setCheck('Boolean')
+ .setCheck([Number,Boolean])
.appendField(Blockly.Msg['CONTROLS_IF_MSG_ELSEIF']);
this.appendStatementInput('DO' + i)
.appendField(Blockly.Msg['C... |
Default errhand implementation handles restart event; | @@ -233,7 +233,10 @@ function lovr.errhand(message, traceback)
return function()
lovr.event.pump()
- for name, a in lovr.event.poll() do if name == 'quit' then return a or 1 end end
+ for name, a in lovr.event.poll() do
+ if name == 'quit' then return a or 1
+ elseif name == 'restart' then return 'restart', lovr.restar... |
HW: Fixing detach action in mmio.vhd | @@ -799,7 +799,7 @@ BEGIN
context_stop_q <= (OTHERS => '0');
IF (context_status_mmio_addr = jmm_d_i.context_id) AND (jmm_c_i.status_we = '1') THEN
- context_stop_ack_q0 <= context_stop_ack_q0 AND jmm_d_i.context_active;
+ context_stop_ack_q0 <= context_stop_ack_q0 AND jmm_d_i.attached_to_action;
ELSE
context_stop_ack_q... |
Build: Fix warning reported by Clang
Clang does not support the option switch `-Wno-psabi`. | include (LibAddMacros)
-if (DEPENDENCY_PHASE)
+if (DEPENDENCY_PHASE AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set_source_files_properties(range.c PROPERTIES COMPILE_FLAGS -Wno-psabi)
endif ()
|
Clean up auth code. | // Types...
//
-typedef struct pappl_authdata_s // PAM authentication data
+typedef struct _pappl_authdata_s // PAM authentication data
{
const char *username, // Username string
*password; // Password string
-} pappl_authdata_t;
+} _pappl_authdata_t;
//
@@ -40,7 +40,7 @@ typedef struct pappl_authdata_s // PAM authenti... |
Clarify IFA_LOCAL code in kernel_netlink. | @@ -1334,13 +1334,16 @@ parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res)
struct rtattr *rta;
len -= NLMSG_ALIGN(sizeof(*addr));
rta = IFA_RTA(addr);
- int has_local = 0; /* A _LOCAL TLV may be bound with a _ADDRESS' which
- represents the peer's address. In this case, ignore _ADDRESS. */
+ int is_l... |
Remove debug info and hacks | @@ -637,15 +637,13 @@ PrelinkedInjectKext (
return Status;
}
- if (XmlNodePrepend (Context->KextList, "dict", NULL, NewInfoPlist) == NULL) {
+ if (XmlNodeAppend (Context->KextList, "dict", NULL, NewInfoPlist) == NULL) {
if (PrelinkedKext != NULL) {
InternalFreePrelinkedKext (PrelinkedKext);
}
return EFI_OUT_OF_RESOURCE... |
board/hammer/board.h: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | #undef CONFIG_USB_I2C_MAX_WRITE_COUNT
#ifdef VARIANT_HAMMER_TP_LARGE_PAGE
/* Zed requires 516 byte per packet for touchpad update */
-#define CONFIG_USB_I2C_MAX_WRITE_COUNT (1024 - 4) /* 4 is maximum header size \
+#define CONFIG_USB_I2C_MAX_WRITE_COUNT \
+ (1024 - 4) /* 4 is maximum header size \
*/
#else
-#define CON... |
Include vulkan.h before #define VMA_VULKAN_VERSION | @@ -126,6 +126,10 @@ for user-defined purpose without allocating any real GPU memory.
extern "C" {
#endif
+#ifndef VULKAN_H_
+ #include <vulkan/vulkan.h>
+#endif
+
// Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,
// where AAA = major, BBB = minor, CCC = patch.
// If you want to use ... |
IPv4 layer ignores packets intended for other hosts | @@ -31,6 +31,14 @@ bool ip_equals__buf_u32(const uint8_t ip_buf[IPv4_ADDR_SIZE], uint32_t ip2) {
}
void ipv4_receive(packet_info_t* packet_info, ipv4_packet_t* packet, uint32_t packet_size) {
+ // Ignore packets intended for other hosts
+ uint8_t ipv4[IPv4_ADDR_SIZE];
+ net_copy_local_ipv4_addr(ipv4);
+ if (memcmp(&pac... |
Use struct/union initialization syntax for SDL events in xterm code. | @@ -220,21 +220,29 @@ static void *xterm_handle_input(void *arg) {
sym = tolower(sym);
mod = KMOD_SHIFT;
}
- SDL_Event down_event;
- down_event.type = SDL_KEYDOWN;
- down_event.key.timestamp = SDL_GetTicks();
- down_event.key.windowID = 0;
- down_event.key.state = SDL_PRESSED;
- down_event.key.repeat = 0;
- down_event.... |
docs: Add "sidebarCollapsible: false" | @@ -7,6 +7,7 @@ module.exports = {
organizationName: "zmkfirmware", // Usually your GitHub org/user name.
projectName: "zmk", // Usually your repo name.
themeConfig: {
+ sidebarCollapsible: false,
navbar: {
title: "ZMK Firmware",
logo: {
|
stm32mon: add STM32H7 identifier
Add a new chip ID to support the STM32H7x3 parts.
BRANCH=none
TEST=flash_ec --board=meowth_fp
Commit-Ready: Vincent Palatin
Tested-by: Vincent Palatin | @@ -93,6 +93,7 @@ struct stm32_def {
{0x442, "STM32F09x", 0x40000, 2048, {13, 13} },
{0x431, "STM32F411", 0x80000, 16384, {13, 19} },
{0x441, "STM32F412", 0x80000, 16384, {13, 19} },
+ {0x450, "STM32H74x", 0x200000, 131768, {13, 19} },
{0x451, "STM32F76x", 0x200000, 32768, {13, 19} },
{ 0 }
};
|
append alphas at the end | @@ -143,6 +143,7 @@ def prepare_circle(beatmap, scale, skin, settings, hd):
# for late tapping
slidercircle_frames[-1].append(orig_slider)
circle_frames[-1].append(orig_circle)
+ alphas.append(alpha)
else:
interval = int(settings.timeframe / settings.fps)
|
DHCP-test: more robust sleep check | @@ -360,6 +360,16 @@ class TestDHCP(VppTestCase):
# not sure why this is not decoding
# adv = pkt[DHCP6_Advertise]
+ def wait_for_no_route(self, address, length,
+ n_tries=50, s_time=1):
+ while (n_tries):
+ if not find_route(self, address, length):
+ return True
+ n_tries = n_tries - 1
+ self.sleep(s_time)
+
+ return ... |
no reset backpain when in rising or risingattack | @@ -22747,7 +22747,6 @@ int set_rise(entity *iRise, int type, int reset)
iRise->falling = 0;
iRise->rising = 1;
iRise->riseattacking = 0;
- iRise->inbackpain = 0;
iRise->projectile = 0;
iRise->nograb = iRise->nograb_default; //iRise->nograb = 0;
iRise->velocity.x = self->velocity.z = self->velocity.y = 0;
@@ -22801,6 +... |
vere: improves error handling in binary download | @@ -992,9 +992,11 @@ _king_save_file(c3_c* url_c, FILE* fil_u)
// XX retry?
//
if ( CURLE_OK != res_i ) {
+ u3l_log("curl: failed %s: %s\n", url_c, curl_easy_strerror(res_i));
ret_i = -1;
}
if ( 300 <= cod_i ) {
+ u3l_log("curl: error %s: HTTP %ld\n", url_c, cod_i);
ret_i = -2;
}
@@ -1112,8 +1114,9 @@ _king_get_vere(c3... |
Fix startup delay when using show details menu | @@ -536,8 +536,6 @@ VOID PhMwpOnDestroy(
{
PhMainWndExiting = TRUE;
- PhSetIntegerSetting(L"MainWindowTabRestoreIndex", TabCtrl_GetCurSel(TabControlHandle));
-
// Notify pages and plugins that we are shutting down.
PhMwpNotifyAllPages(MainTabPageDestroy, NULL, NULL);
@@ -634,7 +632,7 @@ VOID PhMwpOnCommand(
if (PhShell... |
Sanity check for input buffer overruns in RLE uncompress | @@ -129,6 +129,11 @@ rleUncompress (int inLength, int maxLength, const signed char in[], char out[])
if (0 > (maxLength -= count))
return 0;
+ // check the input buffer is big enough to contain
+ // 'count' bytes of remaining data
+ if (inLength < 0)
+ return 0;
+
memcpy(out, in, count);
out += count;
in += count;
|
Apply over sampling | @@ -274,10 +274,25 @@ soundmng_create(UINT rate, UINT bufmsec)
UINT samples;
int i;
- if (opened || ((rate != 11025) && (rate != 22050) && (rate != 44100))) {
+ if (opened) {
+ return 0;
+ }
+ switch(rate) {
+ case 11025:
+ case 22050:
+ case 44100:
+ case 48000:
+ case 88200:
+ case 96000:
+ case 176400:
+ case 192000... |
tests MAINTENANCE fix test_parser_yin ASAN stack overflow | @@ -630,7 +630,7 @@ test_yin_parse_content(void **state)
struct lysp_when *when_p = NULL;
struct lysp_type_enum pos_enum = {}, val_enum = {};
struct lysp_type req_type = {}, range_type = {}, len_type = {}, patter_type = {}, enum_type = {};
- uint8_t config = 0;
+ uint16_t config = 0;
ly_in_new_memory(data, &st->in);
ly... |
Spoof disable | @@ -337,11 +337,11 @@ namespace MiningCore.Stratum
if (line.StartsWith("PROXY "))
{
- var proxyAddresses = proxyProtocol.ProxyAddresses?.Select(x => IPAddress.Parse(x)).ToArray();
- if (proxyAddresses == null || !proxyAddresses.Any())
- proxyAddresses = new[] { IPAddress.Loopback };
+ //var proxyAddresses = proxyProtoc... |
hoon: refactors +ro-co:co, modernizing syntax | |=({? b/@ c/tape} [(dug b) c])
::
++ ro-co
- |= {{buz/@ bas/@ dop/@} dug/$-(@ @)}
- |= hol/@
+ |= [[buz=@ bas=@ dop=@] dug=$-(@ @)]
+ |= hol=@
^- tape
?: =(0 dop)
rep
- => .(rep $(dop (dec dop)))
:- '.'
- %- (em-co [bas 1] |=({? b/@ c/tape} [(dug b) c]))
- [(cut buz [(dec dop) 1] hol)]
+ =/ pod (dec dop)
+ %. (cut buz ... |
Fix sensors/hyt271.c:811:16: error: 'data.data' may be used uninitialized [-Werror=maybe-uninitialized] | @@ -782,11 +782,11 @@ static int hyt271_thread(int argc, char** argv)
{
FAR struct hyt271_dev_s *priv = (FAR struct hyt271_dev_s *)
((uintptr_t)strtoul(argv[1], NULL, 0));
+ uint32_t orawdata = 0;
while (true)
{
int ret;
- uint32_t orawdata;
struct hyt271_sensor_data_s data;
struct hyt271_sensor_s *hsensor = &priv->sen... |
Satisfy review feedback | @@ -10,9 +10,11 @@ package com.blockset.walletkit;
import com.blockset.walletkit.errors.WalletConnectorError;
import com.blockset.walletkit.utility.CompletionHandler;
+import com.google.common.base.Preconditions;
import java.util.Map;
+import android.support.annotation.NonNull;
import android.support.annotation.Nullabl... |
rpi-cmdline: Leave cma value to kernel default
Fixes where setting cma to a lower value affects the ability of
libcamera-apps to capture higher resolution images. | @@ -13,10 +13,6 @@ CMDLINE_ROOTFS ?= "root=/dev/mmcblk0p2 ${CMDLINE_ROOT_FSTYPE} rootwait"
CMDLINE_SERIAL ?= "${@oe.utils.conditional("ENABLE_UART", "1", "console=serial0,115200", "", d)}"
-CMDLINE_CMA ?= "${@oe.utils.conditional("RASPBERRYPI_CAMERA_V2", "1", "cma=64M", "", d)}"
-
-CMDLINE_CMA ?= "${@oe.utils.condition... |
sysdeps/managarm: Allow retrieval in sys_sigaction() | @@ -36,7 +36,6 @@ int sys_sigprocmask(int how, const sigset_t *set, sigset_t *retrieve) {
int sys_sigaction(int number, const struct sigaction *__restrict action,
struct sigaction *__restrict saved_action) {
SignalGuard sguard;
- __ensure(action);
// TODO: Respect restorer. __ensure(!(action->sa_flags & SA_RESTORER));
... |
Updated RecvMessage, payload.WireguardStatusUpdate | @@ -122,6 +122,9 @@ func (c *extDataplaneConn) RecvMessage() (msg interface{}, err error) {
msg = payload.HostEndpointStatusUpdate
case *proto.FromDataplane_HostEndpointStatusRemove:
msg = payload.HostEndpointStatusRemove
+ case *proto.FromDataplane_WireguardStatusUpdate:
+ msg = payload.WireguardStatusUpdate
+
default... |
spi: simplify reconfigure | @@ -229,19 +229,22 @@ bool spi_dma_wait_for_ready(spi_ports_t port) {
}
static void spi_reconfigure(spi_bus_device_t *bus) {
- if (spi_port_config[bus->port].mode == bus->mode && spi_port_config[bus->port].hz == bus->hz) {
+ const spi_port_def_t *port = &spi_port_defs[bus->port];
+
+ spi_port_config_t *config = &spi_po... |
cleans up error handling on proxy reverse listener failures | @@ -1378,7 +1378,6 @@ _proxy_reverse_listen_cb(uv_stream_t* tcp_u, c3_i sas_i)
static void
_proxy_reverse_start(u3_proxy_conn* con_u, u3_noun sip)
{
- // XX free somewhere
u3_proxy_reverse* rev_u = _proxy_reverse_new(con_u, sip);
struct sockaddr_in add_u;
@@ -1386,9 +1385,7 @@ _proxy_reverse_start(u3_proxy_conn* con_u,... |
[CMAKE] Fixed builds with '.c' in the path | @@ -369,9 +369,12 @@ set(WRAPPEDS
"${BOX86_ROOT}/src/wrapped/wrappedcrashhandler.c"
)
+# If BOX86_ROOT contains a ".c", the build breaks...
+string(REPLACE ".c" "_private.h" MODROOT ${BOX86_ROOT})
set(WRAPPEDS_HEAD "${BOX86_ROOT}/src/wrapped/wrappedd3dadapter9_gen.h")
foreach(A ${WRAPPEDS})
- string(REPLACE ".c" "_priv... |
WebView: extending interface to add getCookies and removeCookie [ci skip] | @@ -270,6 +270,32 @@ For most mobile platforms, WebView.execute_js has been implemented via redirecti
</PARAMS>
</METHOD>
+ <METHOD name="getCookies">
+ <DESC>Returns cookies map for specified URL. Can only be called from UI thread. Crosswalk is not supported.</DESC>
+ <PLATFORM>Android, iOS</PLATFORM>
+ <PARAMS>
+ <PA... |
Update test_cstrhelper.cpp
Fixed mem leak | ******************************************************************************
*/
+#include <string>
+
#define BOOST_TEST_MODULE cstr_helper
#include <boost/test/unit_test.hpp>
@@ -30,15 +32,15 @@ BOOST_AUTO_TEST_SUITE(test_cstrhelper)
BOOST_AUTO_TEST_CASE(test_duplicate) {
- char source[] = "I will be rewarded for goo... |
count FT-PSK of ASSOCIATIONREQUEST frames | @@ -186,6 +186,7 @@ static long int authnetworkeapcount;
static long int authunknowncount;
static long int associationrequestcount;
static long int associationrequestpskcount;
+static long int associationrequestftpskcount;
static long int associationrequestpsk256count;
static long int associationrequestsae256count;
sta... |
specify correct MD5 for libusb-1.0.23.7z | @@ -79,7 +79,7 @@ if(NOT LIBUSB_FOUND)
file(DOWNLOAD
https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-${LIBUSB_WIN_VERSION}/libusb-${LIBUSB_WIN_VERSION}.7z/download
${LIBUSB_WIN_ARCHIVE_PATH}
- EXPECTED_MD5 750e64b45aca94fafbdff07171004d03
+ EXPECTED_MD5 cf3d38d2ff053ef343d10c0b8b0950c2
)
endif()
file(MA... |
Fix cnid overflow issue in mutation struct. | @@ -130,7 +130,7 @@ struct c0sk_mutation {
atomic64_t c0skm_tseqno __aligned(SMP_CACHE_BYTES);
volatile u64 c0skm_reqtime __aligned(SMP_CACHE_BYTES);
- u8 c0skm_cnid[HSE_KVS_COUNT_MAX] __aligned(SMP_CACHE_BYTES);
+ u64 c0skm_cnid[HSE_KVS_COUNT_MAX] __aligned(SMP_CACHE_BYTES);
};
_Static_assert(HSE_KVS_COUNT_MAX <= 256,... |
reverted old function to proper compare w old | @@ -303,6 +303,30 @@ static uint8_t *add_number_to_sign(uint8_t *sign, const xdag_hash_t num)
for (i = 0; i < sizeof(xdag_hash_t) && !n[i]; ++i);
+ leadzero = (i < sizeof(xdag_hash_t) && n[i] & 0x80);
+ len = (sizeof(xdag_hash_t) - i) + leadzero;
+ *sign++ = 0x02;
+ *sign++ = len;
+
+ if (leadzero) {
+ *sign++ = 0;
+ }... |
tasking_get_task_with_pid searches from the start of the linked list instead of from the running task | @@ -103,10 +103,10 @@ static void _tasking_add_task_to_runlist(task_small_t* task) {
}
task_small_t* tasking_get_task_with_pid(int pid) {
- if (!_current_task_small) {
+ if (!_task_list_head) {
return NULL;
}
- task_small_t* iter = _current_task_small;
+ task_small_t* iter = _task_list_head;
for (int i = 0; i < MAX_TAS... |
max7456: speed up clear | @@ -171,22 +171,17 @@ uint8_t max7456_clear_async() {
return 0;
}
- static uint8_t clr_col = 0;
- static uint8_t clr_row = 0;
+ static uint8_t row = 0;
static const uint8_t buffer[] = " ";
- max7456_push_string(OSD_ATTR_TEXT, clr_col, clr_row, buffer, 15);
-
- clr_row++;
- if (clr_row > MAX7456_ROWS) {
- clr_row = 0;
-... |
Use BBR CC for multipath perf tests | @@ -450,6 +450,7 @@ int multipath_test_one(uint64_t max_completion_microsec, multipath_test_enum_t t
}
else if (test_id == multipath_test_perf) {
multipath_test_perf_links(test_ctx, 0);
+ picoquic_set_default_congestion_algorithm(test_ctx->qserver, picoquic_bbr_algorithm);
}
test_ctx->c_to_s_link->queue_delay_max = 2 *... |
[OpenGL] Cleanup stderr output a little | @@ -90,7 +90,6 @@ void imgui_create(void *ctx)
imgui_custom_style(params);
GLint vp [4]; glGetIntegerv (GL_VIEWPORT, vp);
- printf("viewport %d %d %d %d\n", vp[0], vp[1], vp[2], vp[3]);
ImGui::GetIO().IniFilename = NULL;
ImGui::GetIO().DisplaySize = ImVec2(vp[2], vp[3]);
@@ -163,7 +162,7 @@ void* get_proc_address(const... |
testcase/network: fix svace issue
fix handle_leak issue in network TC | @@ -74,8 +74,9 @@ void tc_net_recvfrom_sock_n(void)
int fd = socket(AF_INET, SOCK_STREAM, IPPROTO_UDP);
int ret = recvfrom(fd, buffer, MAXRCVLEN, 0, (struct sockaddr *)&serverStorage, &addr_size);
- TC_ASSERT_EQ("recvfrom", ret, -1);
+ TC_ASSERT_EQ_CLEANUP("recvfrom", ret, -1, close(fd));
TC_SUCCESS_RESULT();
+ close(f... |
JNI: Only strip whitespace from defined variable | @@ -5,8 +5,10 @@ include (SafeCheckSymbolExists)
if (DEPENDENCY_PHASE)
if (APPLE)
execute_process (COMMAND "/usr/libexec/java_home" OUTPUT_VARIABLE JAVA_HOME)
+ if (JAVA_HOME)
string (STRIP ${JAVA_HOME}
JAVA_HOME)
+ endif (JAVA_HOME)
endif ()
find_package (JNI QUIET)
|
bond: problem switching from l2 to l3
when the last interface is removed from l2 in the bonding group, we should
invoke ethernet_set_rx_direct to allow ip packets to go directly to
ip4-input. | @@ -104,6 +104,17 @@ bond_set_l2_mode_function (vnet_main_t * vnm,
ethernet_set_rx_redirect (vnm, sif_hw, 1);
}
}
+ else if ((bif_hw->l2_if_count == 0) && (l2_if_adjust == -1))
+ {
+ /* Just removed last L2 subinterface on this port */
+ vec_foreach (sw_if_index, bif->slaves)
+ {
+ sif_hw = vnet_get_sup_hw_interface (v... |
Document when a new session ticket gets created on resumption | @@ -77,6 +77,12 @@ the key that was used to encrypt the session ticket.
When the B<gen_cb> callback is invoked, the SSL_get_session() function can be
used to retrieve the SSL_SESSION for SSL_SESSION_set1_ticket_appdata().
+By default, in TLSv1.2 and below, a new session ticket is not issued on a
+successful resumption ... |
Add sceKernelMemcpyToUserRo/Rx function nids | @@ -9547,6 +9547,8 @@ modules:
ksceKernelGetUidDLinkClass: 0xC105604E
ksceKernelGetUidHeapClass: 0x4CCA935D
ksceKernelGetUidMemBlockClass: 0xAF729575
+ ksceKernelMemcpyToUserRo: 0xA6F95838
+ ksceKernelMemcpyToUserRx: 0x67BAD5B4
ksceKernelNameHeapGetInfo: 0xE443253B
ksceKernelRxMemcpyKernelToUserForPid: 0x30931572
ksceK... |
TEST: Pass -no-CAstore in 80-test_ocsp.t
Without passing -no-CAstore the default CAstore will be used and the
testsuite will fail the system has certificates installed.
Fixes: | @@ -45,7 +45,7 @@ sub test_ocsp {
"-partial_chain", @check_time,
"-CAfile", catfile($ocspdir, $CAfile),
"-verify_other", catfile($ocspdir, $untrusted),
- "-no-CApath"])),
+ "-no-CApath", "-no-CAstore"])),
$title); });
}
|
Update power.h
Added cold reset, shutdown and suspend functions. | @@ -142,6 +142,27 @@ int scePowerGetGpuClockFrequency(void);
*/
int scePowerGetGpuXbarClockFrequency(void);
+/**
+ * Requests PS Vita to do a cold reset
+ *
+ * @return always 0
+ */
+int scePowerRequestColdReset(void);
+
+/**
+ * Requests PS Vita to go into standby
+ *
+ * @return always 0
+ */
+int scePowerRequestSta... |
NimBLE AFR: Fix Notification/Indication tx handling
The handling of notifications/indications is done in BLE_GAP_EVENT_NOTIFY_TX where the appropriate status is returned.
So, it is not required in prvBTSendIndication | @@ -616,16 +616,6 @@ BTStatus_t prvBTSendIndication( uint8_t ucServerIf,
{
ESP_LOGD( TAG, "Send Notifications" );
xESPstatus = ble_gattc_notify_custom( usConnId, usAttributeHandle + gattOffset, om );
-
- if( xGattServerCb.pxIndicationSentCb != NULL )
- {
- if( xESPstatus != 0 )
- {
- xStatus = eBTStatusFail;
- }
-
- xG... |
[vpp-705]uri_cli issue:show session get nothing tips when session management disable | @@ -80,7 +80,7 @@ show_session_command_fn (vlib_main_t * vm, unformat_input_t * input,
if (!smm->is_enabled)
{
- clib_error_return (0, "session layer is not enabled");
+ return clib_error_return (0, "session layer is not enabled");
}
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -152,7 +152,7 @@ clea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.