message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
oicmgr: Fix writing to maps | @@ -162,13 +162,17 @@ static int
omgr_init_writer(struct cbor_encoder_writer *writer, void *m,
void *unused)
{
- struct cbor_mbuf_writer *cmw;
+ /* struct cbor_mbuf_writer *cmw; */
- if (!writer) {
- return MGMT_ERR_EINVAL;
- }
- cmw = (struct cbor_mbuf_writer *)writer;
- cbor_mbuf_writer_init(cmw, m);
+ /* if (!writer... |
Polar stereo support | @@ -153,12 +153,11 @@ static int unpack_string(grib_accessor* a, char* v, size_t* len)
size_t size = 64;
char grid_type[512] = {0,};
grib_handle* h = grib_handle_of_accessor(a);
+ double earthMajorAxisInMetres = 0, earthMinorAxisInMetres = 0, radius = 0;
err = grib_get_string(h, self->grid_type, grid_type, &size);
if (... |
No longer have snprintf emulation functions in libcups2. | @@ -71,14 +71,12 @@ _cupsThreadWait
_cupsUserDefault
_cups_gettimeofday
_cups_safe_vsnprintf
-_cups_snprintf
_cups_strcasecmp
_cups_strcpy
_cups_strcpy
_cups_strlcat
_cups_strlcpy
_cups_strncasecmp
-_cups_vsnprintf
_httpAddrSetPort
_httpCreateCredentials
_httpDecodeURI
|
0.47.0 live reload source revert after press ESC | @@ -2292,9 +2292,6 @@ static bool loadFileIntoBuffer(Console* console, char* buffer, const char* fileN
memcpy(buffer, contents, SDL_min(size, TIC_CODE_SIZE-1));
SDL_free(contents);
- embed.yes = true;
- embed.fast = true;
-
return true;
}
|
Fix code style in keyboard_inject | #include "util/log.h"
/** Downcast key processor to sc_keyboard_inject */
-#define DOWNCAST(KP) \
- container_of(KP, struct sc_keyboard_inject, key_processor)
+#define DOWNCAST(KP) container_of(KP, struct sc_keyboard_inject, key_processor)
#define MAP(FROM, TO) case FROM: *to = TO; return true
#define FAIL default: ret... |
tests: fix test-checkstyle to check plugin tests
Type: fix | @@ -267,7 +267,7 @@ checkstyle: verify-test-dir
@virtualenv $(VENV_PATH) -p python3
@bash -c "source $(VENV_PATH)/bin/activate && python3 -m pip install pycodestyle"
@bash -c "source $(VENV_PATH)/bin/activate &&\
- pycodestyle --show-source --ignore=W504,E126,E241,E226,E305,E704,E741,E722 --exclude=$(WS_ROOT)/test/_*.p... |
Fix pydfu path. | @@ -18,7 +18,7 @@ OBJCOPY = $(Q)arm-none-eabi-objcopy
OBJDUMP = $(Q)arm-none-eabi-objdump
PYTHON = $(Q)python
MKDFU = micropython/tools/dfu.py
-PYDFU = $(Q)../usr/pydfu.py
+PYDFU = $(Q)../tools/pydfu.py
MKDIR = $(Q)mkdir
ECHO = $(Q)@echo
MAKE = $(Q)make
|
task: on retries, put chunk down | @@ -164,6 +164,14 @@ struct flb_task_retry *flb_task_retry_create(struct flb_task *task,
*/
flb_input_chunk_set_up_down(task->ic);
+ /*
+ * Besides limits adjusted above, a retry that's going to only one place
+ * must be down.
+ */
+ if (mk_list_size(&task->routes) == 1) {
+ flb_input_chunk_down(task->ic);
+ }
+
retur... |
ExtendedTools: Fix build error | @@ -61,7 +61,6 @@ NTSTATUS EtpRefreshUnloadedDlls(
NTSTATUS status;
ULONG capturedElementSize;
ULONG capturedElementCount;
- ULONG capturedEventTraceLength;
PVOID capturedEventTrace = NULL;
PVOID currentEvent;
ULONG i;
@@ -75,6 +74,7 @@ NTSTATUS EtpRefreshUnloadedDlls(
if (Context->IsWow64)
{
PPH_STRING eventTraceStrin... |
OcMemoryLib: Fix type assignment | @@ -495,7 +495,7 @@ OcUpdateDescriptors (
for (Index = 0; Index < EntryCount; ++Index) {
if (AREA_WITHIN_DESCRIPTOR (MemoryMap, Address, 1)) {
- MemoryMap->Attribute = Type;
+ MemoryMap->Type = Type;
MemoryMap->Attribute |= SetAttributes;
MemoryMap->Attribute &= ~DropAttributes;
return EFI_SUCCESS;
|
changes to gsl_odeiv2_driver_apply | @@ -90,7 +90,7 @@ static int * growth_factor_and_growth_rate(double a,double *gf,double *fg,ccl_co
else {
double y[2];
double ainit=EPS_SCALEFAC_GROWTH;
- gsl_odeiv2_system sys={growth_ode_system,NULL,2,cosmo, status}; /* RH */
+ gsl_odeiv2_system sys={growth_ode_system,NULL,2,cosmo}; /* RH */
gsl_odeiv2_driver *d=
gsl... |
armv8: Fix include paths in EFI loader | #include <efi/efi.h>
#include <efi/efilib.h>
#include <multiboot2.h>
-#include "../../include/barrelfish_kpi/types.h"
-#include "../../include/target/aarch64/barrelfish_kpi/arm_core_data.h"
+#include <barrelfish_kpi/types.h>
+#include <barrelfish_kpi/arm_core_data.h>
#include "blob.h"
#include "vm.h"
|
Add -Wno-variadic-macros to warning list
We effectively require a C++ compiler anyway, and the warnings originate
from the few C modules we have remaining
Tested-by: buildbot | @@ -22,7 +22,8 @@ ENDMACRO(list2args)
LIST(APPEND LCB_GNUC_CPP_WARNINGS
-Wall -pedantic -Wshadow -fdiagnostics-show-option -Wformat
- -Wno-strict-aliasing -Wextra -Winit-self -Wno-missing-field-initializers)
+ -Wno-strict-aliasing -Wextra -Winit-self -Wno-missing-field-initializers
+ -Wno-variadic-macros)
IF("${CMAKE_C... |
remove expired option from do_usage | @@ -398,7 +398,6 @@ do_usage(char *name, int exitcode)
printf(" -U socket receive buffer size, max/min/default values depend on OS\n");
printf(" -T IO timeout in milliseconds for server connections, defaults to %d\n", iotimeout);
printf(" -E disable disconnecting idle connections after 10 minutes\n");
- printf(" -m sen... |
contact-push-hook: speed up asymptotics by only doing a fixed number of scries | ++ rolo
^- rolodex:store
=/ ugroup (scry-group:grp resource)
+ =/ =rolodex:store
+ (scry-for:con rolodex:store /all)
%- ~(gas by *rolodex:store)
?~ ugroup
- =/ c=(unit contact:store) (get-contact:con our.bowl)
+ =/ c=(unit contact:store) (~(get by rolodex) our.bowl)
?~ c
[our.bowl *contact:store]~
[our.bowl u.c]~
%+ mu... |
running all int_int failed, commented out up test_bhdct_get_nonexist_empty | @@ -1498,6 +1498,7 @@ bhdct_run_tests(
if (bhdct_context.test_classes & ION_BHDCT_INT_INT) {
planck_unit_suite_t *suite = planck_unit_new_suite();
+/*
PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_setup);
PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_insert_single);
PLANCK_UNIT_ADD_TO_SUITE(suite, test_bhdct_insert_multiple)... |
Remove picoquic_decode_ack_frame helpers as well | @@ -2505,7 +2505,7 @@ static int picoquic_process_ack_range(
return ret;
}
-uint8_t* picoquic_decode_ack_frame_maybe_ecn(picoquic_cnx_t* cnx, uint8_t* bytes,
+uint8_t* picoquic_decode_ack_frame(picoquic_cnx_t* cnx, uint8_t* bytes,
const uint8_t* bytes_max, uint64_t current_time, int epoch, int is_ecn)
{
uint64_t num_bl... |
build/rtl8721csm/download.sh : Support km4_boot_all_tz.bin download
When enabling trustzone, km4_boot_all_tz.bin should be downloaded instead of km4_boot_all.bin. | @@ -96,7 +96,11 @@ download_km4_bl()
cd ${IMG_TOOL_PATH}
echo ""
echo "=========================="
+ if [[ "${CONFIG_AMEBAD_TRUSTZONE}" == "y" ]];then
+ echo "Downloading KM4_BL_TZ IMAGE"
+ else
echo "Downloading KM4_BL IMAGE"
+ fi
echo "=========================="
for part in ${parts[@]}; do
@@ -110,9 +114,13 @@ downl... |
Missed a conflict marker from a previous merge. | @@ -2358,7 +2358,6 @@ fstatvfs(int fd, struct statvfs *buf)
scopeLog("fstatvfs", fd, CFG_LOG_DEBUG);
if (checkFSEntry(fd)) {
//doFSMetric(FS_XXX, fd, NULL, EVENT_BASED, "fstatvfs");
->>>>>>> ad8025bbc98d2620b654f296ab4e19c91144a8cb
}
}
return rc;
|
noncart/traj.c: revert undocumented change
This change was introduced in the traj.c rewrite, but it breaks
exisiting code. | @@ -111,7 +111,7 @@ void calc_base_angles(double base_angle[DIMS], int Y, int mb, int turns, struct
double angle_t = 0.;
if (turns > 1)
- angle_t = angle_atom / (turns * mb) * (conf.full_circle ? 2 : 1);
+ angle_t = angle_atom / turns * (conf.full_circle ? 2 : 1);
// Golden Angle
|
servo_updater: add reboot flag
This allows a reboot request regardless of whether update
is required.
BRANCH=servo
TEST=servo reboots | @@ -213,6 +213,8 @@ def main():
help="Update even if version match", default=False)
parser.add_argument('-v', '--verbose', action="store_true",
help="Chatty output")
+ parser.add_argument('-r', '--reboot', action="store_true",
+ help="Always reboot, even after probe.")
args = parser.parse_args()
@@ -237,6 +239,8 @@ def... |
Use calloc to allocate unique request key and initialize buffer. | @@ -1930,7 +1930,7 @@ gen_unique_req_key (GLogItem * logitem)
}
/* includes terminating null */
- key = xmalloc (s1 + s2 + s3 + nul);
+ key = xcalloc (s1 + s2 + s3 + nul, sizeof (char));
/* append request */
memcpy (key, logitem->req, s1);
|
Tests: prevented writing to the closed socket for websocket tests. | @@ -180,7 +180,10 @@ class TestApplicationWebsocket(TestApplicationProto):
frame_len = len(frame)
while pos < frame_len:
end = min(pos + chopsize, frame_len)
+ try:
sock.sendall(frame[pos:end])
+ except BrokenPipeError:
+ end = frame_len
pos = end
def message(self, sock, type, message, fragmention_size=None, **kwargs):... |
build: bump min cmake version to 3.13 and remove workarounds
Type: make | # See the License for the specific language governing permissions and
# limitations under the License.
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_COMPILER_NAMES
clang-13
@@ -26,14 +26,6 @@ set(CMAKE_C_COMPILER_NAMES
project(vpp C)
-if(CMAKE_VERSION VERSION_LESS 3.12)
- macro... |
remove all win installer dependencies | @@ -496,12 +496,12 @@ $(PROMPT_SRCDIR)/html/templates.h: $(PROMPT_SRCDIR)/html/static/css/lib/bootstra
ifdef MAC_OS
install: install_bin install_man install_conf install_scheme_handler
else
-ifdef MSYS
-install: win_installer
- @bin/installer.exe
-else
+#ifdef MSYS
+#install: win_installer
+# @bin/installer.exe
+#else
... |
VERSION bump to version 2.0.101 | @@ -62,7 +62,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 100)
+set(LIBYANG_MICRO_VERSION 101)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
group-store: remove empty tags
Fixes urbit/landscape#568 | (~(has by tags) tag)
==
%= +<
- ::
- tags
- %+ ~(jab by tags) tag
- |=((set ship) (~(dif in +<) ships))
+ tags (dif-ju tags tag ships)
==
:_ state
(send-diff %remove-tag rid tag ships)
(send-diff %remove-group rid ~)
::
--
-
+:: TODO: move to +zuse
+++ dif-ju
+ |= [=tags =tag remove=(set ship)]
+ =/ ships ~(tap in remo... |
Add issue reference to MSVC workaround comment | @@ -432,6 +432,7 @@ static ASTCENC_SIMD_INLINE vint4 unorm16_to_sf16(vint4 p)
vmask4 is_small = p < vint4(4);
// Manually inline clz() on Visual Studio to avoid release build codegen bug
+ // see https://github.com/ARM-software/astc-encoder/issues/259
#if !defined(__clang__) && defined(_MSC_VER)
vint4 a = (~lsr<8>(p)) ... |
odissey: fix typo | @@ -323,7 +323,7 @@ od_beready_wait(od_server_t *server, char *procedure, int time_ms)
od_pooler_t *pooler = server->pooler;
so_stream_t *stream = &server->stream;
so_stream_reset(stream);
- /* wait for responce */
+ /* wait for response */
while (1) {
int rc;
rc = od_read(server->io, stream, time_ms);
|
Incorporate Code Review Feedback for Client Hello Fuzz Test | * permissions and limitations under the License.
*/
-#include <errno.h>
-#include <fcntl.h>
-#include <stddef.h>
#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
#include "api/s2n.h"
#include "stuffer/s2n_stuffer.h"
-#include "tls/s2n_cipher_suites.h"
-#include "tls/s2n_config.h"
#inc... |
BugID:17974906: in keil project, define __aeabi_errno_addr(), place errno
at armcc_libc.c instead of the default location identified by __user_libspace() | #include "k_config.h"
#include <hal/hal.h>
-int errno;
+volatile int errno = 0;
extern uart_dev_t uart_0;
#if defined (__CC_ARM) && defined(__MICROLIB)
@@ -25,6 +25,12 @@ int gettimeofday(struct timeval *tv, void *tzp)
return 0;
}
+volatile int *__aeabi_errno_addr()
+{
+ return &errno;
+}
+
+
#if (RHINO_CONFIG_MM_TLF >... |
Dooly: update thermal table
Copied from Puff config.
TEST=buildall
BRANCH=none
Tested-by: Andrew McRae | @@ -442,8 +442,8 @@ const static struct ec_thermal_config thermal_a = {
[EC_TEMP_THRESH_HIGH] = C_TO_K(58),
[EC_TEMP_THRESH_HALT] = 0,
},
- .temp_fan_off = C_TO_K(25),
- .temp_fan_max = C_TO_K(55),
+ .temp_fan_off = C_TO_K(41),
+ .temp_fan_max = C_TO_K(72),
};
struct ec_thermal_config thermal_params[] = {
|
options/posix: Remove unneeded check for sys_close, as sys_close is always present | @@ -60,7 +60,7 @@ FILE *popen(const char *command, const char *typestr) {
pid_t child;
FILE *ret = nullptr;
- if (!mlibc::sys_fork || !mlibc::sys_close || !mlibc::sys_dup2 || !mlibc::sys_execve
+ if (!mlibc::sys_fork || !mlibc::sys_dup2 || !mlibc::sys_execve
|| !mlibc::sys_sigprocmask || !mlibc::sys_sigaction || !mlibc... |
added list of recommended tools to help, to filter converted hashes, to calculate wordlists, to get standard and/or default PSKs and to retrieve PSKs from hashes | @@ -5423,8 +5423,11 @@ printf("%s %s (C) %s ZeroBeat\n"
"Detection of bit errors does not work on cleaned dump files!\n"
"Do not use %s in combination with third party cap/pcap/pcapng cleaning tools (except: tshark and/or Wireshark)!\n"
"It is much better to run gzip to compress the files. Wireshark, tshark and hcxpcap... |
added gitignore gradlew | @@ -92,6 +92,10 @@ java/gradlew
java/gradlew.bat
java/gradle/wrapper
+java/example/gradlew
+java/example/gradlew.bat
+java/example/gradle/wrapper
+
### Added by Hedron's Bazel Compile Commands Extractor: https://github.com/hedronvision/bazel-compile-commands-extractor
# The external link: Differs on Windows vs macOS/Li... |
Fix VMA_DYNAMIC_VULKAN_FUNCTIONS compilation errors when VK_NO_PROTOTYPES is defined | @@ -1997,7 +1997,7 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
// Define these macros to decorate all public functions with additional code,
// before and after returned type, appropriately. This may be useful for
-// exporing the functions when compiling VMA as a separate library. Example:
+// export... |
ftell() can return -1 if an error occurred. Handle those cases. | @@ -196,7 +196,7 @@ const char* _yr_compiler_default_include_callback(
char* f;
FILE* fh;
char* file_buffer;
- size_t file_length;
+ long file_length;
if (calling_rule_filename != NULL)
{
@@ -255,6 +255,12 @@ const char* _yr_compiler_default_include_callback(
file_length = ftell(fh);
fseek(fh, 0, SEEK_SET);
+ if (file_... |
Make CoAP more configurable | #define ER_COAP_CONF_H_
/* Features that can be disabled to achieve smaller memory footprint */
+#ifndef COAP_LINK_FORMAT_FILTERING
#define COAP_LINK_FORMAT_FILTERING 0
+#endif /* COAP_LINK_FORMAT_FILTERING */
+
+#ifndef COAP_PROXY_OPTION_PROCESSING
#define COAP_PROXY_OPTION_PROCESSING 0
+#endif /* COAP_PROXY_OPTION_PR... |
docs(README.md): update debugging section with examples, remove SaiphC from Links | @@ -179,20 +179,43 @@ Included headers must be `orca/` prefixed:
$ gcc myBot.c -o myBot.out -pthread -ldiscord -lcurl -lcrypto -lm
```
-## Debugging Memory Errors
+## Recommended debuggers
+
+First, make sure your executable is compiled with the `-g` flag so you can get more
+detailed debugger messages.
+
+### Valgrind... |
Cancel renaming variable by pressing escape | @@ -275,6 +275,8 @@ export const VariableSelect: FC<VariableSelectProps> = ({
const onRenameKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === "Enter") {
onRenameFinish();
+ } else if (e.key === "Escape") {
+ setRenameVisible(false);
}
};
|
bugid:17646749:[mqtt]modify iotx_mc_send_packet to avoid write overflow | @@ -1202,7 +1202,7 @@ static int iotx_mc_send_packet(iotx_mc_client_t *c, char *buf, int length, iotx_
while (sent < length && !utils_time_is_expired(time)) {
left_t = iotx_time_left(time);
left_t = (left_t == 0) ? 1 : left_t;
- rc = c->ipstack->write(c->ipstack, &buf[sent], length, left_t);
+ rc = c->ipstack->write(c-... |
Fix contributors in release notes. | <release-improvement-list>
<release-item>
+ <release-item-contributor-list>
+ <release-item-contributor id="cynthia.shang"/>
+ <release-item-reviewer id="david.steele"/>
+ </release-item-contributor-list>
+
<p>The <cmd>info</cmd> command is implemented entirely in C.</p>
</release-item>
|
Fix nbrRetry check | /*******************************************************************************
* Variables
******************************************************************************/
-uint8_t nbrRetry = 0;
+volatile uint8_t nbrRetry = 0;
/*******************************************************************************
* Function
... |
added shading to the Code Editor | @@ -83,6 +83,7 @@ static void drawCode(Code* code, bool withCursor)
if(code->cursor.selection && pointer >= selection.start && pointer < selection.end)
code->tic->api.rect(code->tic, x-1, y-1, TIC_FONT_WIDTH+1, TIC_FONT_HEIGHT+1, getConfig()->theme.code.select);
+ else code->tic->api.draw_char(code->tic, symbol, x+1, y... |
docs: fix esp_pthread example syntax error | @@ -13,11 +13,15 @@ This module offers Espressif specific extensions to the pthread library that can
Example to tune the stack size of the pthread:
-.. highlight:: c
+.. code-block:: c
-::
+ void * thread_func(void * p)
+ {
+ printf("In thread_func\n");
+ return NULL;
+ }
- main()
+ void app_main(void)
{
pthread_t t1;
... |
Build: correct BASE shlib_version_as_filename
This function is designed to use $config{shlib_version} directly
instead of taking an input argument, yet the BASE variant didn't do
this. | @@ -28,8 +28,8 @@ sub sharedname { return __isshared($_[1]) ? $_[1] : undef } # Name of shared li
sub staticname { return __base($_[1], '.a') } # Name of static lib
# Convenience function to convert the shlib version to an acceptable part
-# of a file or directory name.
-sub shlib_version_as_filename { return $_[1] }
+... |
framework/st_things : Change location of Wifi_init()
Change "wifi_manager_init()" to "things_initialize_stack()" | @@ -569,6 +569,14 @@ int things_initialize_stack(const char *json_path, bool *easysetup_completed)
is_things_module_inited = 1;
*easysetup_completed = dm_is_there_things_cloud();
+
+ things_register_set_ap_connection_func(things_wifi_connection_cb);
+
+ if (wifi_manager_init(&wifi_callbacks) != WIFI_MANAGER_SUCCESS) {
... |
util/fptool: Fix pylint warnings
BRANCH=none
TEST=cros lint util/fptool.py | @@ -13,8 +13,7 @@ import sys
def cmd_flash(args: argparse.Namespace) -> int:
- """
- Flash the entire firmware FPMCU using the native bootloader.
+ """Flash the entire firmware FPMCU using the native bootloader.
This requires the Chromebook to be in dev mode with hardware write protect
disabled.
@@ -33,7 +32,7 @@ def c... |
fixup! Cleanup getrandom(2) | @@ -34,7 +34,7 @@ u64 do_getrandom(buffer b, u64 flags)
if (i % 8 == 0)
random_val = random_u64();
- if (flags == GRND_RANDOM && i == (MAX_RANDOM_ENTROPY_COUNT - 1))
+ if (flags & GRND_RANDOM && i == (MAX_RANDOM_ENTROPY_COUNT - 1))
break;
}
return i;
|
Fix va_arg all in test_error_c90 | @@ -524,7 +524,7 @@ void test_error_c90(const char *desc, ...)
va_list ap;
va_start(ap, desc);
- test_fail_message(NULL, NULL, -1, NULL, NULL, NULL, NULL, desc, ap);
+ test_fail_message_va(NULL, NULL, -1, NULL, NULL, NULL, NULL, desc, ap);
va_end(ap);
}
|
Add OSX build variations to Azure CI | @@ -74,7 +74,27 @@ jobs:
steps:
- script: |
brew update
- make TARGET=CORE2 DYNAMIC_ARCH=1 USE_OPENMP=1 CC=gcc-10 FC=gfortran-10
-
+ make TARGET=CORE2 DYNAMIC_ARCH=1 USE_OPENMP=1 INTERFACE64=1 CC=gcc-10 FC=gfortran-10
+- job: OSX_GCC_Nothreads
+ pool:
+ vmImage: 'macOS-10.15'
+ steps:
+ - script: |
+ brew update
+ make... |
New directives in .clang-format | BasedOnStyle: Google
-IndentWidth: 4
-ColumnLimit: 100
AlignAfterOpenBracket: DontAlign
+AlignConsecutiveAssignments: true
+AlignConsecutiveDeclarations: true
+AlignConsecutiveMacros: true
+AlignEscapedNewlines: false
+AlignOperands: true
AllowShortFunctionsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
... |
add comment on crash on Windows server 2019 | @@ -172,6 +172,8 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim
// We prefer to use BCryptGenRandom instead of (the unofficial) RtlGenRandom but when using
// dynamic overriding, we observed it can raise an exception when compiled with C++, and
// sometimes deadlocks when also runni... |
rtdl: make log variables constexpr | uintptr_t libraryBase = 0x41000000;
-bool verbose = false;
-bool stillSlightlyVerbose = false;
-bool logBaseAddresses = false;
-bool eagerBinding = true;
+constexpr bool verbose = false;
+constexpr bool stillSlightlyVerbose = false;
+constexpr bool logBaseAddresses = false;
+constexpr bool eagerBinding = true;
#if defi... |
CI: GitHub Actions: test with gcc-12 | @@ -241,6 +241,12 @@ jobs:
- version: 11
distro: ubuntu-22.04
arch_flags: -ffast-math
+ - version: 12
+ distro: ubuntu-22.04
+ arch_flags: -march=native
+ - version: 12
+ distro: ubuntu-22.04
+ arch_flags: -ffast-math
runs-on: ${{ matrix.distro }}
env:
CC: gcc-${{ matrix.version }}
|
sidebar: changed color of subscribed item icons | @@ -136,7 +136,7 @@ export function SidebarItem(props: {
{DM ? img : (
<Icon
display="block"
- color={color}
+ color={isSynced ? 'black' : 'gray'}
icon={getModuleIcon(mod) as any}
/>
)
|
fix pck: update makefile for rpm again and again | @@ -507,7 +507,7 @@ else
endif
DEBIAN_DEV_DEPENDENCIES = "libthemis (= $(VERSION)+$(DEBIAN_CODENAME))"
RPM_DEPENDENCIES = openssl
-RPM_DEV_DEPENDENCIES = "libthemis = "$(shell echo -n "$(VERSION)"|sed s/-/_/g)-1.$(ARCHITECTURE)
+RPM_DEV_DEPENDENCIES = libthemis
ifeq ($(shell lsb_release -is 2> /dev/null),Debian)
NAME_S... |
Align armclang flags with project-generator changes | @@ -9,6 +9,8 @@ tool_specific:
misc:
asm_flags:
- -g
+ - -x assembler-with-cpp
+ - -masm=auto
cpp_flags:
- --target=arm-arm-none-eabi
c_flags:
|
Fix rollback writing beyond end of page | @@ -83,7 +83,7 @@ static struct at45db_dev at45db_default_dev = {
.hf_base_addr = 0,
.hf_size = 8192 * 512, /* FIXME: depends on page size */
.hf_sector_cnt = 8192,
- .hf_align = 1,
+ .hf_align = 0,
},
/* SPI settings + updates baudrate on _init */
@@ -277,6 +277,7 @@ at45db_write(const struct hal_flash *hal_flash_dev,... |
chat: z-index raised on profile overlay
Also rewritten in indigo-react. | import React, { PureComponent } from 'react';
-import { Link } from 'react-router-dom';
import { cite } from '~/logic/lib/util';
import { Sigil } from '~/logic/lib/sigil';
-import { Center, Button } from "@tlon/indigo-react";
+import { Box, Col, Button, Text } from "@tlon/indigo-react";
export const OVERLAY_HEIGHT = 25... |
Fix crasher test for gcc >= 8 when using -O2 or -O3. | @@ -87,6 +87,11 @@ write_maps(char *fname)
#endif
#ifdef __GNUC__
+#ifndef __clang__
+// Gcc >= 8 became too good at inlining aliase c into b when using -O2 or -O3,
+// so force -O1 in all cases, otherwise a frame will be missing in the tests.
+#pragma GCC optimize "-O1"
+#endif
int c(int x) NOINLINE ALIAS(b);
#define ... |
OcCryptoLib: Drop copy-pasted extra volatile | @@ -76,7 +76,7 @@ SecureZeroMem (
IN UINTN Length
)
{
- volatile UINT8 *volatile Destination;
+ volatile UINT8 *Destination;
if (Length == 0) {
return Buffer;
@@ -85,7 +85,7 @@ SecureZeroMem (
ASSERT (Buffer != NULL);
ASSERT (Length <= (MAX_ADDRESS - (UINTN) Buffer + 1));
- Destination = (volatile UINT8 *volatile) Buff... |
libkernel variable exports | @@ -3322,11 +3322,9 @@ modules:
kernel: false
nid: 0xCAE9ACE6
functions:
- SceKernelStackChkGuard: 0x4458BCF3
__sce_aeabi_idiv0: 0x4373B548
__sce_aeabi_ldiv0: 0xFB235848
__stack_chk_fail: 0x37691BF8
- __stack_chk_guard: 0x93B8AA67
_sceKernelCreateLwMutex: 0xB84EF718
sceClibAbort: 0x2F2C6046
sceClibDprintf: 0x4340EF77
@... |
[Kernel] Serial driver only outputs info on newlines | @@ -84,7 +84,10 @@ void serial_puts_int(char* str, bool print_prefix) {
void serial_puts(char* str) {
- serial_puts_int(str, true);
+ static bool previous_output_contained_newline = false;
+ serial_puts_int(str, previous_output_contained_newline);
+ // If this output ended on a newline, the next line should come with t... |
linux-raspberrypi: Bump 4.19 to 4.19.58 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:"
-LINUX_VERSION ?= "4.19.57"
+LINUX_VERSION ?= "4.19.58"
LINUX_RPI_BRANCH ?= "rpi-4.19.y"
-SRCREV = "e95c533eba52d1879d94bdd1ede00548ad1cf622"
+SRCREV = "8222f38b1ceadd0642d49812fd34a3a6cb00e264"
SRC_URI = " \
git://github.com/raspberrypi/linux.git;protocol=git;... |
SOVERSION bump to version 6.3.2 | @@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 6)
set(SYSREPO_MINOR_SOVERSION 3)
-set(SYSREPO_MICRO_SOVERSION 1)
+set(SYSREPO_MICRO_SO... |
NFSC update
fixed | @@ -236,13 +236,19 @@ DWORD WINAPI Init(LPVOID)
DWORD* dword_AB0958 = *hook::pattern("A1 ? ? ? ? 3B C6 74 0C 8B 08 50 FF 51 08 89 35").get(0).get<DWORD*>(1);
injector::WriteMemory(dword_748D5A, dword_AB0958, true);
DWORD* dword_748D66 = pattern.get(0).get<DWORD>(27);
- DWORD* dword_B42F48 = *hook::pattern("8B 86 ? ? ? ... |
vlib: fix vlib_pci_get_device_info on when not running as root
While comment properly says that only first 64 bytes can be read, actual
code was returning error instead being happy with 64 bytes received. | @@ -182,10 +182,8 @@ vlib_pci_get_device_info (vlib_pci_addr_t * addr, clib_error_t ** error)
/* You can only read more that 64 bytes of config space as root; so we try to
read the full space but fall back to just the first 64 bytes. */
- if (read (fd, &di->config_data, sizeof (di->config_data)) !=
- sizeof (di->config... |
docs/esp32: Correct quickref for ESP32 hardware SPI with non-default IO. | @@ -128,6 +128,8 @@ with timer ID of -1::
The period is in milliseconds.
+.. _Pins_and_GPIO:
+
Pins and GPIO
-------------
@@ -274,8 +276,13 @@ class::
Hardware SPI bus
----------------
-There are two hardware SPI channels that allow faster (up to 80Mhz)
-transmission rates, but are only supported on a subset of pins.
... |
clay: report cache sizes in |mass | :_ ..^$ :_ ~
:^ hen %give %mass
:+ %clay %|
- :~ domestic+&+rom.ruf
+ =/ domestic
+ %+ turn (sort ~(tap by dos.rom.ruf) aor)
+ |= [=desk =dojo]
+ :+ desk %|
+ :~ ankh+&+ank.dom.dojo
+ mime+&+mim.dom.dojo
+ ford+&+fod.dom.dojo
+ ==
+ :~ domestic+|+domestic
foreign+&+hoy.ruf
:+ %object-store %|
:~ commits+&+hut.ran.ruf
|
Jenkinsfile: migrate doc job to warnings next generation plugin | @@ -763,9 +763,7 @@ def buildDoc() {
sh "ln -s ${VERSION} current"
}
- warnings parserConfigurations: [
- [parserName: 'Doxygen', pattern: 'build/doc/doxygen.log']
- ]
+ recordIssues(tools: [doxygen(pattern: 'build/doc/doxygen.log')])
def uploadDir = "api/${env.BRANCH_NAME}"
if (!isMaster()) {
|
Added missing comments to 'visibilitychange' EventListener. | @@ -1700,10 +1700,13 @@ GoAccess.App = {
},
};
+// Adds the visibilitychange EventListener
document.addEventListener('visibilitychange', function () {
+ // fires when user switches tabs, apps, etc.
if (document.visibilityState === 'hidden')
GoAccess.App.hasFocus = false;
+ // fires when app transitions from hidden or u... |
Work CI-CD
Fix typo in command line. | @@ -110,7 +110,7 @@ steps:
script: |
# update pip (until the build agent image is updated)
- pythin -m pip install --upgrade pip
+ python -m pip install --upgrade pip
# install Cloudsmith CLI
python -m pip install --upgrade cloudsmith-cli
|
Fix unused cmd flag in clang build | @@ -168,7 +168,10 @@ build_target() {
# tui in the future
# add libraries -lncurses
else
- add cc_flags -Og -feliminate-unused-debug-symbols
+ add cc_flags -Og
+ if [[ $cc_id = gcc ]]; then
+ add cc_flags -feliminate-unused-debug-symbols
+ fi
# needed if address is already specified? doesn't work on mac clang, at
# lea... |
out_azure_blob: register upstream with instance | @@ -113,7 +113,7 @@ struct flb_azure_blob *flb_azure_blob_conf_create(struct flb_output_instance *in
}
/* Compress (gzip) */
- tmp = flb_output_get_property("compress", ins);
+ tmp = (char *) flb_output_get_property("compress", ins);
ctx->compress_gzip = FLB_FALSE;
if (tmp) {
if (strcasecmp(tmp, "gzip") == 0) {
@@ -149... |
session: increase retries to grab mq lock
With thousands of UDP sessions,
Sometimes VPP needs more time to grab the MQ lock for a session.
So increased tries from 5 to 75.
Type: fix | @@ -683,7 +683,7 @@ mq_try_lock_and_alloc_msg (svm_msg_q_t *mq, session_mq_rings_e ring,
{
int rv, n_try = 0;
- while (n_try < 5)
+ while (n_try < 75)
{
rv = svm_msg_q_lock_and_alloc_msg_w_ring (mq, ring, SVM_Q_NOWAIT, msg);
if (!rv)
|
Remove comment pertaining to removed "samimport" function [minor] | from pysam.utils import PysamDispatcher
# samtools command line options to export in python
-#
-# import is a python reserved word.
SAMTOOLS_DISPATCH = {
# samtools 'documented' commands
"view": ("view", None),
|
don't wake up every 10 seconds on unused devices | @@ -57,7 +57,7 @@ namespace NCudaLib {
}
if (!hasRunning && isEmpty) {
- InputTaskQueue.Wait(TDuration::Seconds(10));
+ InputTaskQueue.Wait(TDuration::Max());
} else if (!isEmpty) {
THolder<ICommand> task = InputTaskQueue.Dequeue();
|
Include classpath to android.jar in Javadoc generator | @@ -29,7 +29,7 @@ find ${tempDir} -name "*.java" > ${tempDir}/files
# Execute JavaDoc
rm -rf ${javadocDir}
mkdir -p ${javadocDir}
-${javadocExec} -source 1.6 -d ${javadocDir} -doctitle "CARTO Mobile SDK for Android" "@${tempDir}/files"
+${javadocExec} -classpath "${ANDROID_HOME}/platforms/android-8/android.jar" -source... |
Reduce the surface of processing delayed handshake packets | @@ -3270,10 +3270,9 @@ static int conn_on_stateless_reset(ngtcp2_conn *conn, const ngtcp2_pkt_hd *hd,
* conn_recv_delayed_handshake_pkt processes the received handshake
* packet which is received after handshake completed. This function
* does the minimal job, and its purpose is send acknowledgement of
- * this packet ... |
fix time-of-check time-of-use problem | @@ -434,13 +434,13 @@ clean:
* On success, the 1 is returned. */
static int
verify_static_content (const char *req) {
+ if ((req == NULL) || (*req == '\0'))
+ return 0;
+
const char *nul = req + strlen (req);
const char *ext = NULL, *pch = NULL;
int elen = 0, i;
- if ((req == NULL) || (*req == '\0'))
- return 0;
-
for ... |
Memory leak: smart table | @@ -380,6 +380,8 @@ static int grib_load_smart_table(grib_context* c, const char* filename,
numberOfColumns = 0;
while (*s) {
+ char* tcol = t->entries[code].column[numberOfColumns];
+ if ( tcol ) grib_context_free_persistent(c, tcol);
t->entries[code].column[numberOfColumns] = grib_context_strdup_persistent(c, s);
num... |
Remove unused string duplication | @@ -321,7 +321,7 @@ PH_KNOWN_PROCESS_TYPE PhGetProcessKnownTypeEx(
PhGetSystemRoot(&systemRootPrefix);
- fileName = PhDuplicateString(FileName);
+ fileName = PhReferenceObject(FileName);
name = fileName->sr;
knownProcessType = UnknownProcessType;
|
hw/mcu/nordic: Waiting for HFCLK to settle
Checking both STATE and SRC of HFCLK if refcount is 0 | @@ -44,7 +44,16 @@ nrf52_clock_hfxo_request(void)
__HAL_DISABLE_INTERRUPTS(ctx);
assert(nrf52_clock_hfxo_refcnt < 0xff);
if (nrf52_clock_hfxo_refcnt == 0) {
+ /* Check the current STATE and SRC of HFCLK */
+ if ((NRF_CLOCK->HFCLKSTAT &
+ (CLOCK_HFCLKSTAT_SRC_Msk | CLOCK_HFCLKSTAT_STATE_Msk)) !=
+ (CLOCK_HFCLKSTAT_SRC_X... |
don't add peerdir to jdk in swig plugin for android | @@ -47,6 +47,7 @@ class Swig(iw.CustomCommand):
self._out_name = os.path.splitext(os.path.basename(self._path))[0] + '.jsrc'
self._out_header = os.path.splitext(self._main_out)[0] + '.h'
self._package = 'ru.yandex.' + os.path.dirname(self._path).replace('$S/', '').replace('$B/', '').replace('/', '.').replace('-', '_')
... |
Document dependency on nm | """
This script confirms that the naming of all symbols and identifiers in Mbed TLS
-are consistent with the house style and are also self-consistent. It performs
-the following checks:
+are consistent with the house style and are also self-consistent. It only runs
+on Linux and macOS since it depends on nm.
+
+The scr... |
tests: fix ames tests | =. now.nec ~1111.1.1
=. eny.nec 0xdead.beef
=. life.ames-state.nec 2
-=. scry-gate.nec |=(* ``[%noun !>(*(list turf))])
+=. rof.nec |=(* ``[%noun !>(*(list turf))])
=. crypto-core.ames-state.nec (pit:nu:crub:crypto 512 (shaz 'nec'))
=/ nec-pub pub:ex:crypto-core.ames-state.nec
=/ nec-sec sec:ex:crypto-core.ames-state.n... |
Added Try catch for stack handing in Afd Tests | @@ -130,10 +130,29 @@ class BasicAfdFuncTests : public ::testing::Test,
{
::remove(TEST_STORAGE_FILENAME);
server.stop();
+
+
+ try
+ {
IAFDClient::DestroyInstance(&m_pAFDClient);
m_pAFDClient = NULL;
+ }
+ catch (...)
+ {
+ printf("exception in IAFDClient::DestroyInstance(&m_pAFDClient);");
+ }
+
+ PAL::sleep(100);
+
... |
VERSION bump to version 1.3.8 | @@ -27,7 +27,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 3)
-set(SYSREPO_MICRO_VERSION 7)
+set(SYSREPO_MICRO_VERSION 8)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR... |
fix test with snapsnot - deny to shrink model | @@ -5814,6 +5814,7 @@ def test_snapshot_without_random_seed():
'--column-description', data_file('adult', 'train.cd'),
'-i', str(iters),
'-T', '4',
+ '--use-best-model', 'False',
'--eval-file', eval_path,
]
if additional_params:
|
[lemon] fix gcc implicit-fallthrough warning | @@ -1941,7 +1941,7 @@ struct pstate *psp;
psp->preccounter = 0;
psp->firstrule = psp->lastrule = 0;
psp->gp->nrule = 0;
- /* Fall thru to next case */
+ /* Fall through */
case WAITING_FOR_DECL_OR_RULE:
if( x[0]=='%' ){
psp->state = WAITING_FOR_DECL_KEYWORD;
|
FormikOnBlur: update form on initialValues change | @@ -18,7 +18,7 @@ export function FormikOnBlur<
setSubmitting(true);
const { values } = formikBag;
formikBag.submitForm().then(() => {
- formikBag.resetForm({ values })
+ formikBag.resetForm({ values });
setSubmitting(false);
});
}
@@ -29,6 +29,10 @@ export function FormikOnBlur<
formikBag.isSubmitting
]);
+ useEffect(... |
build: update automake sources | @@ -54,7 +54,8 @@ cglm_HEADERS = include/cglm/version.h \
include/cglm/plane.h \
include/cglm/frustum.h \
include/cglm/box.h \
- include/cglm/color.h
+ include/cglm/color.h \
+ include/cglm/project.h
cglm_calldir=$(includedir)/cglm/call
cglm_call_HEADERS = include/cglm/call/mat4.h \
@@ -68,7 +69,8 @@ cglm_call_HEADERS ... |
Indicate that the source is on sourcehut as well. | @@ -62,6 +62,12 @@ Shows documentation for the doc macro.
To get a list of all bindings in the default
environment, use the `(all-symbols)` function.
+## Source
+
+You can get the source on [GitHub](https://github.com/janet-lang/janet) or
+[SourceHut](https://sr.ht/~bakpakin/janet). While the GitHub repo is the officia... |
contrib-cmake: removed useless TestSuite calls | #include "foo.h"
-TestSuite(strlen);
-
Test(strlen, empty)
{
cr_assert_eq(foo_strlen(""), 0);
@@ -20,8 +18,6 @@ Test(strlen, longer)
cr_assert_eq(foo_strlen("foo\0bar"), 3);
}
-TestSuite(strcpy);
-
Test(strcpy, empty)
{
char dst[] = "a";
@@ -48,8 +44,6 @@ Test(strcpy, larger_dest)
cr_assert_str_eq(&dst[4], "baz");
}
-T... |
tests: runtime: out_tcp: updated downstream intialization call | @@ -337,11 +337,12 @@ void flb_test_tcp_with_tls()
ret = flb_lib_push(ctx->flb, ctx->i_ffd, (char *) out_buf, out_buf_size);
TEST_CHECK(ret >= 0);
- downstream = flb_downstream_create(ctx->flb->config,
+ downstream = flb_downstream_create(FLB_DOWNSTREAM_TYPE_TCP,
+ FLB_IO_TCP | FLB_IO_TLS,
DEFAULT_HOST,
port,
- FLB_IO_... |
Add `print_help` function to nuttx-stm32f4 target
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka | #define JERRY_STANDALONE_EXIT_CODE_OK (0)
#define JERRY_STANDALONE_EXIT_CODE_FAIL (1)
+/**
+ * Print usage and available options
+ */
+static void
+print_help (char *name)
+{
+ jerry_port_console ("Usage: %s [OPTION]... [FILE]...\n"
+ "\n"
+ "Options:\n"
+ " --mem-stats\n"
+ " --mem-stats-separate\n"
+ " --show-opcodes... |
capp: fix endian conversion
Acked-by: Stewart Smith | @@ -168,7 +168,7 @@ int64_t capp_load_ucode(unsigned int chip_id, uint32_t opal_id,
/* 'CAPPULID' in ASCII */
if ((be64_to_cpu(ucode->eyecatcher) != 0x43415050554C4944UL) ||
- (be64_to_cpu(ucode->version != 1))) {
+ (be64_to_cpu(ucode->version) != 1)) {
PHBERR(opal_id, chip_id, index,
"CAPP: ucode header invalid\n");
r... |
tests: internal: hashtable: use new hashtable func prototype | @@ -79,7 +79,7 @@ void test_create_zero()
{
struct flb_hash *ht;
- ht = flb_hash_create(0);
+ ht = flb_hash_create(0, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht == NULL);
}
@@ -91,7 +91,7 @@ void test_single()
size_t out_size;
struct flb_hash *ht;
- ht = flb_hash_create(1);
+ ht = flb_hash_create(1, FLB_HASH_EVICT_NONE, -... |
Disable -Waddress-of-packed-member for GCC9
We throw a bunch of errors in errorlog code otherwise, which we should
fix, but we don't *have* to yet. | @@ -125,7 +125,8 @@ endif
CFLAGS += $(call try-cflag,$(CC),-Wjump-misses-init) \
$(call try-cflag,$(CC),-Wsuggest-attribute=const) \
$(call try-cflag,$(CC),-Wsuggest-attribute=noreturn) \
- $(call try-cflag,$(CC),-Wstack-usage=1024)
+ $(call try-cflag,$(CC),-Wstack-usage=1024) \
+ $(call try-cflag,$(CC),-Wno-error=addr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.