message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Verbose asm output | @@ -51,7 +51,7 @@ local function link_obj(o_filename, so_filename)
end
function c_compiler.compile_c_to_s(src, dst, _modname)
- return compile_c(src, dst, "-S")
+ return compile_c(src, dst, "-S -fverbose-asm")
end
function c_compiler.compile_s_to_o(src, dst, _modname)
|
include aarch64 builds for docs RPM | @@ -77,7 +77,15 @@ make ; %{parser} steps.tex > recipe.sh ; popd
pushd docs/recipes/install/sles12sp1/x86_64/warewulf/pbspro
make ; %{parser} steps.tex > recipe.sh ; popd
+#----------------------
+# aarch64-based recipes
+#----------------------
+pushd docs/recipes/install/centos7.2/aarch64/warewulf/slurm
+make ; %{par... |
[SBT] Quiet down jgit http warnings | resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)
resolvers += Classpaths.sbtPluginReleases
-resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"
+resolvers += "jgit-repo" at "https://download.eclipse.org/jgit... |
BugID:16731946:add lock to tlsf_realloc | @@ -1232,7 +1232,7 @@ void tlsf_free(tlsf_t tlsf, void* ptr)
** - an extended buffer size will leave the newly-allocated area with
** contents undefined
*/
-void* tlsf_realloc(tlsf_t tlsf, void* ptr, size_t size)
+void* _tlsf_realloc(tlsf_t tlsf, void* ptr, size_t size)
{
control_t* control = tlsf_cast(control_t*, tlsf... |
console; enable backspace. | /* Control characters */
#define ESC 0x1b
#define DEL 0x7f
+#define BS 0x08
/* ANSI escape sequences */
#define ANSI_ESC '['
@@ -458,6 +459,7 @@ console_handle_char(uint8_t byte)
nlip_state |= NLIP_DATA_START1;
break;
case DEL:
+ case BS:
if (cur > 0) {
del_char(&input->line[--cur], end);
}
|
tests/sprintf: add tests for # and + | @@ -44,5 +44,38 @@ int main() {
sprintf(buf, "%3.2d", 123);
assert(buf[0] == '1' && buf[1] == '2' && buf[2] == '3'
&& buf[3] == '\0');
+
+ // Test '+' and ' ' flags - mlibc issue #229.
+ sprintf(buf, "%+d", 12);
+ assert(buf[0] == '+' && buf[1] == '1' && buf[2] == '2' && buf[3] == '\0');
+ sprintf(buf, "% d", 12);
+ as... |
http: check return of snprintf
Purely cautionary / defensive programming; no reason to think this would
have been a problem. | @@ -1635,9 +1635,12 @@ _http_release_ports_file(c3_c *pax_c)
{
c3_c* nam_c = ".http.ports";
c3_w len_w = 1 + strlen(pax_c) + 1 + strlen(nam_c);
-
c3_c* paf_c = c3_malloc(len_w);
- snprintf(paf_c, len_w, "%s/%s", pax_c, nam_c);
+ c3_i wit_i;
+
+ wit_i = snprintf(paf_c, len_w, "%s/%s", pax_c, nam_c);
+ c3_assert(wit_i > ... |
COIL: Rename GT7288 address define
Rename GT7288 address definition to match current I2C naming
conventions.
BRANCH=None
TEST=make -j buildall | #define CPRINTS(format, args...) cprints(CC_TOUCHPAD, format, ## args)
-#define GT7288_SLAVE_ADDRESS 0x14
+#define GT7288_I2C_ADDR_FLAGS 0x14
#define GT7288_REPORT_ID_PTP 0x04
@@ -47,7 +47,7 @@ static int gt7288_read_desc(uint16_t register_id, uint8_t *data,
uint8_t reg_bytes[] = {
register_id & 0xFF, (register_id & 0x... |
Fix firmware version number. | * the IDE will Not connect if the major version number is different.
*/
#define FIRMWARE_VERSION_MAJOR (3)
-#define FIRMWARE_VERSION_MINOR (4)
-#define FIRMWARE_VERSION_PATCH (0)
+#define FIRMWARE_VERSION_MINOR (3)
+#define FIRMWARE_VERSION_PATCH (1)
/**
* To add a new debugging command, increment the last command valu... |
fix garbage value in ksFindHierarchy | @@ -1291,7 +1291,15 @@ ssize_t ksCopyInternal (KeySet * ks, size_t to, size_t from)
elektraCursor ksFindHierarchy (const KeySet * ks, const Key * root, elektraCursor * end)
{
if (ks == NULL || root == NULL) return -1;
- if (ks->data == NULL) return 0;
+ if (ks->data == NULL)
+ {
+ if (end != NULL)
+ {
+ *end = 0;
+ }
+... |
site.cfg only | @@ -131,9 +131,6 @@ module load fftw
module load numpy
CFLAGS="%{optflags} -fno-strict-aliasing" \
-FFTW=$FFTW_LIB \
-BLAS=$OPENBLAS_LIB \
-LAPACK=$OPENBLAS_LIB \
%if "%{compiler_family}" == "intel"
LDSHARED="icc -shared" \
python setup.py config --compiler=intelm --fcompiler=intelem build_clib --compiler=intelem --fco... |
Blind update of transport_param_test to work with version 'PCQ1' | @@ -81,7 +81,7 @@ static picoquic_tp_t transport_param_test10 = {
};
uint8_t client_param1[] = {
- 'P', 'C', 'Q', '0',
+ 'P', 'C', 'Q', '1',
0, 0x28,
0, 0, 0, 4, 0, 0, 0xFF, 0xFF,
0, 1, 0, 4, 0, 0x40, 0, 0,
@@ -131,8 +131,9 @@ uint8_t client_param5[] = {
};
uint8_t server_param1[] = {
- 'P', 'C', 'Q', '0',
- 0x08,
+ 'P... |
[stat_cache] FAM: ignore follow-symlink config
no distinction needs to be made whether or not server.follow-symlink set | @@ -159,9 +159,6 @@ static handler_t stat_cache_handle_fdevent(server *srv, void *_fce, int revent)
for (i = 0; i < events; i++) {
FAMEvent fe;
- splay_tree *node;
- int ndx;
-
if (FAMNextEvent(&scf->fam, &fe) < 0) break;
scf->dirs = splaytree_splay(scf->dirs, (int)(intptr_t)fe.userdata);
if (!scf->dirs || scf->dirs->k... |
Fix compilier warning on -Os, gcc. | @@ -125,7 +125,7 @@ static void bignat_div(struct BigNat *mant, uint32_t divisor) {
int32_t i;
uint32_t quotient, remainder;
uint64_t dividend;
- remainder = 0;
+ remainder = 0, quotient = 0;
for (i = mant->n - 1; i >= 0; i--) {
dividend = ((uint64_t)remainder * BIGNAT_BASE) + mant->digits[i];
if (i < mant->n - 1) mant... |
Implement model_data access. | @@ -50,6 +50,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"energy_status",
"exists",
"model",
+ "model_data",
"model_default",
"name",
"opponent",
@@ -344,6 +345,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
break;
+ case _ENTITY_MODEL_DATA:
+
+ S... |
Show the shell as the secondary view controller at startup | @@ -134,9 +134,11 @@ class SidebarSplitViewController: UISplitViewController, UISplitViewControllerDe
compactFileBrowserNavVC.navigationBar.prefersLargeTitles = true
compactFileBrowserNavVC.view.backgroundColor = .systemBackground
- setViewController(UINavigationController(rootViewController: SidebarViewController(spli... |
gdbmacros; Add os_wakeups, which lists scheduled os_callouts and
when next task wakeups are supposed to happen. | @@ -34,5 +34,40 @@ end
document os_tasks
usage: os_tasks
-
Displays os tasks
+end
+
+define os_callouts
+ printf "Callouts:\n"
+ printf " %8s %10s %10s\n", "tick", "callout", "func"
+ while $c != 0
+ printf " %8d %10p %10p\n", $c->c_ticks, $c, $c->c_ev.ev_cb
+ set $c = $c->c_next.tqe_next
+ end
+end
+
+define os_sleep_... |
disown and pickup of next task. | @@ -3150,13 +3150,23 @@ xfr_serial_means_update(struct auth_xfer* xfr, uint32_t serial)
return 0;
}
+/** disown task_transfer. caller must hold xfr.lock */
+static void
+xfr_transfer_disown(struct auth_xfer* xfr)
+{
+ /* remove the commpoint */
+ comm_point_delete(xfr->task_transfer->cp);
+ xfr->task_transfer->cp = NUL... |
Return the cookie_len value from generate_cookie_callback
The generate_cookie_callback was failing to pass back the generated
cookie length to the caller. This results in DTLS connection failures
from s_server. | @@ -745,6 +745,7 @@ int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
EVP_MAC *hmac = NULL;
EVP_MAC_CTX *ctx = NULL;
OSSL_PARAM params[3], *p = params;
+ size_t mac_len;
/* Initialize a random secret */
if (!cookie_initialized) {
@@ -808,10 +809,11 @@ int generate_cookie_callback(SSL *ssl, unsigned char *co... |
cms: Do not try to check binary format on stdin
Fixes | @@ -278,6 +278,8 @@ static void warn_binary(const char *file)
unsigned char linebuf[1024], *cur, *end;
int len;
+ if (file == NULL)
+ return; /* cannot give a warning for stdin input */
if ((bio = bio_open_default(file, 'r', FORMAT_BINARY)) == NULL)
return; /* cannot give a proper warning since there is an error */
whi... |
Fixed wrong source ids in documentation (nutiteq.osm -> carto.streets), updated version numbers to the latest SDK | @@ -53,7 +53,7 @@ These SDK libraries are managed by CARTO and include all the required libraries
// Add to your build.gradle file:
dependencies {
- compile 'com.carto:carto-mobile-sdk:4.1.0@aar'
+ compile 'com.carto:carto-mobile-sdk:4.1.2@aar'
}
{% endhighlight %}
@@ -64,7 +64,7 @@ These SDK libraries are managed by C... |
Fix build on older Qt versions due missing QLatin1String methods | @@ -527,22 +527,22 @@ static ApiVersion getAcceptHeaderApiVersion(const QString &hdrValue)
static const struct {
ApiVersion version;
- const char *str;
+ QLatin1String str;
} versions[] = {
// ordered by largest version
- {ApiVersion_2_DDEL, "application/vnd.ddel.v2"},
- {ApiVersion_1_1_DDEL, "application/vnd.ddel.v1.1... |
Fix test_french_charref_hexidecimal() to work for | @@ -673,8 +673,14 @@ START_TEST(test_french_charref_hexidecimal)
const char *text =
"<?xml version='1.0' encoding='iso-8859-1'?>\n"
"<doc>éèàçêÈ</doc>";
- run_character_check(text,
- "\xC3\xA9\xC3\xA8\xC3\xA0\xC3\xA7\xC3\xAA\xC3\x88");
+#ifdef XML_UNICODE
+ const XML_Char *expected =
+ XCS... |
virtualize pill cue to print message on invalid jamfile | @@ -1720,13 +1720,26 @@ u3m_boot(c3_o nuu_o, c3_o bug_o, c3_c* dir_c,
printf("boot: loading %s\r\n", ful_c);
{
- u3_noun sys = u3ke_cue(u3m_file(ful_c));
- u3_noun bot;
+ u3_noun pil = u3m_file(ful_c);
+ u3_noun sys, bot;
+
+ {
+ u3_noun pro = u3m_soft(0, u3ke_cue, u3k(pil));
+
+ if ( 0 != u3h(pro) ) {
+ fprintf(stderr... |
ssc: avoid multiple computations | @@ -1170,13 +1170,18 @@ def halomod_Tk3D_SSC(cosmo, hmc,
P_12 = norm12 * (pk * i11_1 * i11_2 + i02_12)
if prof1.is_number_counts:
- b1 = halomod_bias_1pt(cosmo, hmc, k_use, aa, prof1,
- normprof=True)
+ if normprof1:
+ b1 = i11_1 * norm1
+ else:
+ b1 = i11_1 * hmc.profile_norm(cosmo, aa, prof1)
+
if prof2 is None:
b2 =... |
libhfuzz/instrument: increase number of 8bit instrumented regions to 256 | @@ -450,12 +450,12 @@ HF_REQUIRE_SSE42_POPCNT void __sanitizer_cov_trace_pc_guard(uint32_t* guard) {
}
}
-/* Support up to 128 DSO modules with separate 8bit counters */
+/* Support up to 256 DSO modules with separate 8bit counters */
static struct {
uint8_t* start;
size_t cnt;
size_t guard;
-} hf8bitcounters[128] = {}... |
link-store: don't send update if not new
We were taking care not to re-add something to our data store if we
already had it in there, but were still sending out an update
regardless.
With this, we only send out an update if we weren't previously aware
of the content. | :: add link to group submissions
::
=/ =links (~(gut by by-group) path *links)
- =. submissions.links
+ =^ added submissions.links
+ ?: ?=(^ (find ~[submission] submissions.links))
+ [| submissions.links]
+ :- &
(submissions:merge submissions.links ~[submission])
=. by-group (~(put by by-group) path links)
:: add submi... |
blockresolver: added exporting of the commit function to contract
Related to issue | @@ -232,6 +232,7 @@ int elektraBlockresolverGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned E
keyNew ("system/elektra/modules/blockresolver/exports/error", KEY_FUNC, elektraBlockresolverError, KEY_END),
keyNew ("system/elektra/modules/blockresolver/exports/get", KEY_FUNC, elektraBlockresolverGet, KEY_END),
keyNe... |
tools/mksymtab.sh: Fix issue to generate symtab_apps.c for MSYS
The file permission is used to get the execlist, but the file permission
cannot be changed for MSYS environment. As a result, symtab_apps.c cannot
be generated correctly. This commit removes the permission match. | @@ -42,9 +42,9 @@ prefix=$2
varlist=`find $dir -name *-thunk.S 2>/dev/null | xargs grep -h asciz | cut -f3 | sort | uniq`
if [ -z "$varlist" ]; then
- execlist=`find $dir -type f -perm -a=x 2>/dev/null`
+ execlist=`find $dir -type f 2>/dev/null`
if [ ! -z "$execlist" ]; then
- varlist=`nm $execlist | fgrep ' U ' | sed ... |
filter_grep: use kv interface to query properties | #include <sys/types.h>
#include <fluent-bit/flb_info.h>
+#include <fluent-bit/flb_kv.h>
#include <fluent-bit/flb_mem.h>
#include <fluent-bit/flb_str.h>
#include <fluent-bit/flb_filter.h>
@@ -53,12 +54,12 @@ static int set_rules(struct grep_ctx *ctx, struct flb_filter_instance *f_ins)
struct mk_list *head;
struct mk_lis... |
lv_style.c change int16_t to lv_anim_value_t in animation exec cb | *********************/
#include "lv_obj.h"
#include "../lv_misc/lv_mem.h"
+#include "../lv_misc/lv_anim.h"
/*********************
* DEFINES
* STATIC PROTOTYPES
**********************/
#if LV_USE_ANIMATION
-static void style_animator(lv_style_anim_dsc_t * dsc, int16_t val);
+static void style_animator(lv_style_anim_dsc_... |
Remove unused lovrGraphicsSetShapeData; | @@ -364,19 +364,6 @@ void lovrGraphicsMatrixTransform(mat4 transform) {
// Primitives
-void lovrGraphicsSetShapeData(float* data, int dataCount, unsigned int* indices, int indicesCount) {
- vec_clear(&state.shapeIndices);
- vec_clear(&state.shapeData);
-
- if (data) {
- vec_pusharr(&state.shapeData, data, dataCount);
-... |
No longer select scene after creating new actor or trigger | @@ -71,11 +71,6 @@ class Scene extends Component {
}
};
- onMouseDown = e => {
- const { id, selectScene } = this.props;
- selectScene(id);
- };
-
onMouseLeave = e => {
const { sceneHover } = this.props;
sceneHover("");
@@ -142,7 +137,6 @@ class Scene extends Component {
<div
className="Scene__Image"
onMouseMove={this.... |
xerces: small fixes in README | - infos = Information about the template plugin is in keys below
-- infos/author = e1528532 <e1528532@libelektra.org>
+- infos/author = Armin Wurzinger <e1528532@libelektra.org>
- infos/licence = BSD
- infos/provides = storage/xml
- infos/needs =
This plugin is a storage plugin allowing Elektra to read and write XML
fo... |
Disallow Insert and Delete triggers on SplitUpdate
Considering that the original command is UPDATE for a SplitUpdate, fire
INSERT and DELETE triggers may lead to the wrong action to be enforced.
And the triggers in GPDB may require cross segments data changes, disallow
the INSERT and DELETE triggers on a SplitUpdate. | @@ -397,11 +397,11 @@ ExecInsert(ModifyTableState *mtstate,
* violations before firing these triggers, because they can change the
* values to insert. Also, they can run arbitrary user-defined code with
* side-effects that we can't cancel by just not inserting the tuple.
- */
- /*
- * GPDB_12_MERGE_FIXME: PostgreSQL *d... |
Comments: fix deletion
Fixes urbit/landscape#902 | @@ -3,8 +3,7 @@ import { Group } from '@urbit/api';
import { GraphNode } from '@urbit/api/graph';
import bigInt from 'big-integer';
import React, { useCallback, useEffect, useRef } from 'react';
-import { Link, useHistory } from 'react-router-dom';
-import styled from 'styled-components';
+import { Link } from 'react-r... |
pg_upgrade: fix GPDB-specific long options
The --progress, --add-checksum, and --remove-checksum options weren't
being recognized because their option.vals were set to the characters
'2', '3', and '4' (integer values 50, 51, and 52, respectively), while
the option handling was comparing to the literal values 2, 3, and ... | @@ -57,9 +57,9 @@ parseCommandLine(int argc, char *argv[])
/* Greenplum specific parameters */
{"mode", required_argument, NULL, 1},
- {"progress", no_argument, NULL, '2'},
- {"add-checksum", no_argument, NULL, '3'},
- {"remove-checksum", no_argument, NULL, '4'},
+ {"progress", no_argument, NULL, 2},
+ {"add-checksum",... |
Fix PhDeleteDirectory access | @@ -6333,7 +6333,7 @@ static BOOLEAN PhpDeleteDirectoryCallback(
if (NT_SUCCESS(PhCreateFileWin32(
&fileHandle,
PhGetString(fullName),
- FILE_GENERIC_WRITE,
+ FILE_GENERIC_READ | FILE_WRITE_ATTRIBUTES,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_WRITE,
FILE_OPEN,
|
c_frame_callback: whitespace changes to sbp.h | @@ -77,7 +77,8 @@ typedef void (*sbp_msg_callback_t)(u16 sender_id, u8 len, u8 msg[], void *contex
/** SBP callback node.
* Forms a linked list of callbacks.
- * \note Must be statically allocated for use with sbp_register_callback().
+ * \note Must be statically allocated for use with sbp_register_callback()
+ * and s... |
nrf: Make LTO configurable via Makefile flag.
LTO messes up debuggability and may cause some other issues.
Additionally, it does not always result in reduced code size. | @@ -69,6 +69,13 @@ CFLAGS_MCU_m4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-s
CFLAGS_MCU_m0 = $(CFLAGS_CORTEX_M) --short-enums -mtune=cortex-m0 -mcpu=cortex-m0 -mfloat-abi=soft -fno-builtin
+LTO ?= 1
+ifeq ($(LTO),1)
+CFLAGS_LTO += -flto
+else
+CFLAGS_LTO += -Wl,--gc-sections -ffunction-sections -... |
kernel/os; document the purpose of OS_COREDUMP. | @@ -31,7 +31,7 @@ syscfg.defs:
restrictions:
- SHELL_TASK
OS_COREDUMP:
- description: 'TBD'
+ description: 'Attempt to dump corefile when system crashes'
value: 0
OS_SCHEDULING:
description: 'Whether OS will be started or not'
|
Add tmpfs support to "hse storage profile" | #include <sys/statvfs.h>
#include <sys/time.h>
#include <sys/uio.h>
+#include <sys/vfs.h>
+#if __linux__
+#include <linux/magic.h>
+#endif
/* We use 128KiB writes in all cases */
#define PROF_BLOCK_SIZE (128u * 1024)
@@ -53,6 +57,7 @@ struct storage_profile_work {
uint64_t file_sz;
uint64_t block_sz;
int rc;
+ bool tmp... |
cleanup candidate list on error | @@ -3472,11 +3472,15 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
}
struct neat_he_candidate *candidate = calloc(1, sizeof(*candidate));
- if (!candidate)
+ if (!candidate) {
+ nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
+ }
+
candidate->pollable_socket = calloc(1, s... |
unix/Makefile: Update libffi include/lib paths for MICROPY_STANDALONE=1.
With these settings, the lib is now linked properly for different arch
variants, e.g. x86_64 -m64 vs -m32 vs -mx32. | @@ -152,12 +152,8 @@ endif
ifeq ($(MICROPY_PY_FFI),1)
ifeq ($(MICROPY_STANDALONE),1)
-LIBFFI_CFLAGS_MOD := -I$(shell ls -1d $(BUILD)/lib/libffi/out/lib/libffi-*/include)
- ifeq ($(MICROPY_FORCE_32BIT),1)
- LIBFFI_LDFLAGS_MOD = $(BUILD)/lib/libffi/out/lib32/libffi.a
- else
- LIBFFI_LDFLAGS_MOD = $(BUILD)/lib/libffi/out/... |
jvpp: ignore messages if callback method is missing | @@ -226,11 +226,19 @@ static void vl_api_${handler_name}_t_handler (vl_api_${handler_name}_t * mp)
{
${plugin_name}_main_t *plugin_main = &${plugin_name}_main;
JNIEnv *env = jvpp_main.jenv;
+ jthrowable exc;
$err_handler
jmethodID constructor = (*env)->GetMethodID(env, ${class_ref_name}Class, "<init>", "()V");
jmethodI... |
Add CMake options to disable various dependencies.
Actually doing so will cause compile errors until the sources are updated. | @@ -28,12 +28,14 @@ else()
message(FATAL_ERROR "Unknown option for LIBTCOD_SDL2: '${LIBTCOD_SDL2}'")
endif()
-set_property(CACHE LIBTCOD_ZLIB PROPERTY STRINGS "find_package" "conan")
+set_property(CACHE LIBTCOD_ZLIB PROPERTY STRINGS "find_package" "conan" "disable")
if(LIBTCOD_ZLIB STREQUAL "find_package")
find_package... |
Updated docs on parallel scale | @@ -173,7 +173,16 @@ Near clipping and Far clipping
are so you will have to experiment.
Parallel scale
- Zoom factor: larger values zoom the camera towards the focus.
+ Acts like a zoom factor that zooms the camera towards the focus. For a
+ parallel projection, it is half
+ the height of an object in the window. For e... |
call global postgetstorage plugins (like spec) before non-global ones (like type)
Fixes | @@ -1394,6 +1394,19 @@ cachemiss:
ksClear (ks);
splitMergeBackends (split, ks);
+ if (elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, INIT) == ELEKTRA_PLUGIN_STATUS_ERROR)
+ {
+ goto error;
+ }
+ if (elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, MAXONCE) == ELEKTRA_PLUGIN_STATUS_ERROR)
+ {
+ goto er... |
Allocate LMS C_RANDOM_VALUE as hash size | #define J_HASH_IDX_LEN (1)
#define D_CONST_LEN (2)
-/* Currently only defined for SHA256, 32 is the max hash output size */
-#define C_RANDOM_VALUE_LEN_MAX (MBEDTLS_LMOTS_N_HASH_LEN_MAX)
-
#define DIGIT_MAX_VALUE ((1u << W_WINTERNITZ_PARAMETER) - 1u)
#define D_CONST_LEN (2)
@@ -731,7 +728,7 @@ int mbedtls_lmots_sign( m... |
contributing.md: added more pre-req detail to the beginning of the edit
Added information pertaining to nix and git-lfs installation required to work with urbit's interfaces. | @@ -251,9 +251,13 @@ $ git lfs pull
## Interface development
-Designing interfaces within urbit/urbit requires that the above steps for
-fake `~zod` initialization are followed. Once your fake ship is running and you
-see
+[nix](https://github.com/NixOS/nix) and `git-lfs` should be installed at
+this point, and have be... |
wifi_prov_mgr : Updated the set of WIFI_REASON_ codes used for setting WIFI_PROV_STA_AUTH_ERROR | @@ -852,9 +852,8 @@ static void wifi_prov_mgr_event_handler_internal(
switch (disconnected->reason) {
case WIFI_REASON_AUTH_EXPIRE:
case WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT:
- case WIFI_REASON_BEACON_TIMEOUT:
case WIFI_REASON_AUTH_FAIL:
- case WIFI_REASON_ASSOC_FAIL:
+ case WIFI_REASON_ASSOC_EXPIRE:
case WIFI_REASON_HAN... |
Donot install package if segment list is empty.
This commit fixed the regresstion introduced by commit
WorkerPool: Error out if numWorkers is 0 or less.
Details in | @@ -862,9 +862,10 @@ class InstallPackage(Operation):
# distribute package to segments
srcFile = self.gppkg.abspath
dstFile = os.path.join(GPHOME, self.gppkg.pkg)
- GpScp(srcFile, dstFile, self.segment_host_list).run()
# install package on segments
+ if self.segment_host_list:
+ GpScp(srcFile, dstFile, self.segment_hos... |
fix build failure on appveyor
modify appveyor.yml to fit new appveyor build environment
use windows-style command | @@ -5,16 +5,16 @@ platform:
- Win64
before_build:
- - cmd: curl -fsSL https://github.com/tboox/xmake/releases/download/v2.0.5/xmake-v2.0.5.exe -o xmake-installer.exe
- - cmd: mkdir program
- - cmd: xmake-installer.exe /S /D=program
+ - ps: Invoke-WebRequest "https://github.com/tboox/xmake/releases/download/v2.1.2/xmake... |
fix(random):
BoatRandom() return BOAT_SUCCESS | @@ -76,7 +76,8 @@ BOAT_RESULT BoatRandom(BUINT8 *output, BUINT32 outputLen, void *rsvd)
(void)rsvd;
- return random_buffer(output, outputLen);
+ random_buffer(output, outputLen);
+ return BOAT_SUCCESS;
}
|
Fixed sending of bytes over PandaSerial | @@ -19,6 +19,9 @@ class PandaSerial(object):
def write(self, dat):
#print "W: ", dat.encode("hex")
#print ' pigeon_send("' + ''.join(map(lambda x: "\\x%02X" % ord(x), dat)) + '");'
+ if(isinstance(dat, bytes)):
+ return self.panda.serial_write(self.port, dat)
+ else:
return self.panda.serial_write(self.port, str.encode... |
Makefile.include: fix 'usage' | @@ -43,7 +43,7 @@ ifdef CI
endif
usage:
- @echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget] [targets]"
+ @echo "make MAKETARGETS... [TARGET=(TARGET)] [BOARD=(BOARD)] [savetarget] [targets]"
targets:
@ls -1 $(CONTIKI)/arch/platform $(TARGETDIRS)
|
mqueue: fix compilation error when CONFIG_DISABLE_MQUEUE=y
This patch fixes compilation error when CONFIG_DISABLE_MQUEUE is
enabled.
In file included from group/group_leave.c:71:0:
./mqueue/mqueue.h:73:5: error: "CONFIG_MQ_MAXMSGSIZE" is not defined [-Werror=undef]
#if CONFIG_MQ_MAXMSGSIZE > 0
^
cc1: all warnings being... | #include <tinyara/mqueue.h>
-#if CONFIG_MQ_MAXMSGSIZE > 0
+#if !defined(CONFIG_DISABLE_MQUEUE) && CONFIG_MQ_MAXMSGSIZE > 0
/****************************************************************************
* Pre-processor Definitions
|
workflow/sdcard: use workflow/blocking | // limitations under the License.
#include "sdcard.h"
+
+#include "blocking.h"
+#include "workflow.h"
+
#include "generated/hww.pb.h"
-#include "workflow/workflow.h"
#include <ui/components/ui_components.h>
-#include <ui/screen_process.h>
#include <ui/screen_stack.h>
-static bool _done = false;
-
-static bool _is_done(... |
Utilities: Fix session retrieval in macrecovery when verifying MLB | @@ -289,7 +289,7 @@ def action_verify(args):
"""
Try to verify MLB serial number.
"""
- session = get_session()
+ session = get_session(args)
generic_latest = get_image_info(session, bid=RECENT_MAC, mlb=MLB_ZERO,
diag=False, os_type='latest')
uvalid_default = get_image_info(session, bid=args.board_id, mlb=args.mlb,
|
ports/stm32: Call mp_deinit() before soft reboot. | @@ -624,12 +624,6 @@ soft_reset:
usbdbg_wait_for_command(1000);
}
- #if MICROPY_PY_LWIP
- // Must call GC sweep here to close open sockets.
- gc_sweep_all();
- systick_disable_dispatch(SYSTICK_DISPATCH_LWIP);
- #endif
-
// soft reset
storage_flush();
@@ -639,6 +633,9 @@ soft_reset:
#if MICROPY_PY_BLUETOOTH
mp_bluetooth... |
bugid:19795128:[alcs]fix prefix/secret set and load | @@ -333,12 +333,15 @@ static int add_svr_key(CoAPContext *ctx, const char *keyprefix, const char *secr
return COAP_ERROR_MALLOC;
}
+ memset(item, 0, sizeof(svr_key_item));
item->keyInfo.secret = (char *) coap_malloc(strlen(secret) + 1);
if (!item->keyInfo.secret) {
HAL_MutexUnlock(lst->list_mutex);
coap_free(item);
ret... |
FIX: handled memory allocation failure for connection object. | @@ -607,6 +607,12 @@ void dispatch_conn_new(int sfd, STATE_FUNC init_state, int event_flags,
int read_buffer_size, enum network_transport transport)
{
CQ_ITEM *item = cqi_new();
+ if (item == NULL) {
+ close(sfd);
+ mc_logger->log(EXTENSION_LOG_WARNING, NULL,
+ "Failed to allocate memory for connection object.\n");
+ r... |
apps/btshell: Fix not reporting scan start error
Extended parameter cannot be invalid as this is verified by parsing
function so just print error in common exit path. | @@ -1310,11 +1310,14 @@ cmd_scan(int argc, char **argv)
&g_scan_opts);
break;
default:
- rc = -1;
- console_printf("invalid 'extended' parameter\n");
+ assert(0);
break;
}
+ if (rc != 0) {
+ console_printf("error scanning; rc=%d\n", rc);
+ }
+
return rc;
}
|
Add missing Endl | @@ -667,7 +667,7 @@ namespace NCatboostCuda {
} else if (ShouldConsiderWeightsByDefault(metrics.back())) {
metrics.back()->GetUseWeights() = true;
CATBOOST_INFO_LOG << "Note: eval_metric is using sample weights by default. " <<
- "Set MetricName:use_weights=False to calculate unweighted metric.";
+ "Set MetricName:use_... |
Emitter: Closure transform doesn't need emit->class_block_depth.
It's always going to be 3 for reasons documented. | @@ -1157,8 +1157,15 @@ static void perform_closure_transform(lily_emit_state *emit,
/* The backing closure is always a class method, never the class
constructor itself. Use +1 for the right depth. This search should
never fail. */
- uint16_t self_spot = find_closed_sym_spot(emit,
- emit->class_block_depth + 1, (lily_sy... |
filter_modify: remove free of unitialized value (CID 183634) | @@ -269,7 +269,6 @@ static int setup(struct filter_modify_ctx *ctx,
flb_error
("[filter_modify] Unable to allocate memory for rule");
teardown(ctx);
- flb_free(condition);
flb_utils_split_free(split);
return -1;
}
|
release i3-gaps 4.21 | @@ -63,7 +63,7 @@ config_h = declare_dependency(
sources: vcs_tag(
input: config_h_in,
output: 'config.h',
- fallback: meson.project_version() + '-non-git',
+ fallback: meson.project_version() + ' (2022-09-21)',
)
)
|
Ragger tests now take CLI arguments for device model and elfs location | @@ -4,51 +4,62 @@ from ragger import Firmware
from ragger.backend import SpeculosBackend, LedgerCommBackend, LedgerWalletBackend, BackendInterface
from ethereum_client.client import EthereumClient
-ELFS_DIR = (Path(__file__).parent.parent / "elfs").resolve()
FWS = [
Firmware("nanos", "2.1"),
Firmware("nanox", "2.0.2"),... |
pwm_nrf52: fix crash on close not checking playing status | @@ -339,7 +339,10 @@ nrf52_pwm_close(struct os_dev *odev)
return (EINVAL);
}
+ if(instances[inst_id].playing) {
nrfx_pwm_uninit(&instances[inst_id].drv_instance);
+ }
+
cleanup_instance(inst_id);
if (os_started()) {
@@ -545,8 +548,13 @@ nrf52_pwm_disable(struct pwm_dev *dev)
return (-EINVAL);
}
+ if (!instances[inst_id... |
Fix PayloadDecoder broken for win32-mini-lib flavor
* Fix PayloadDecoder broken for win32-mini-lib flavor
* Update setup-buildtools.cmd
Temporary fix for GitHub Action runner issue | //
#include "PayloadDecoder.hpp"
+#if !defined(HAVE_MAT_ZLIB) || !defined(HAVE_MAT_JSONHPP)
+
+/* PayloadDecoder functionality requires ZLib and json.hpp.
+ * If these components are not included in the build, then
+ * replace decoder utility functions with stubs that return
+ * false.
+ */
+namespace MAT_NS_BEGIN
+{
+... |
rune: fix the wrong input parameter in KillPayload
The first parameter of func KillPayload(pid int, sig int)
is pid rather than sig. | @@ -180,7 +180,7 @@ func forwardSignal(rt *runtime.EnclaveRuntimeWrapper, notifySignal <-chan os.Sig
return
case sig := <-notifySignal:
n := int(sig.(syscall.Signal))
- err := rt.KillPayload(n, -1)
+ err := rt.KillPayload(-1, n)
if err != nil {
logrus.Debugf("failed to kill enclave runtime with signal %d", n)
}
|
handle non unique channel numbers | @@ -7376,7 +7376,8 @@ for(c = 0; c < 256; c++)
if(frequency <= 1000) testchannel = frequency;
else if((frequency >= 2407) && (frequency <= 2474)) testchannel = (frequency -2407)/5;
else if((frequency >= 2481) && (frequency <= 2487)) testchannel = (frequency -2412)/5;
- else if((frequency >= 5035) && (frequency <= 6425)... |
Remove NULL pointer validation in sha256.c | @@ -159,8 +159,6 @@ static int mbedtls_a64_crypto_sha256_determine_support( void )
void mbedtls_sha256_init( mbedtls_sha256_context *ctx )
{
- SHA256_VALIDATE( ctx != NULL );
-
memset( ctx, 0, sizeof( mbedtls_sha256_context ) );
}
@@ -175,9 +173,6 @@ void mbedtls_sha256_free( mbedtls_sha256_context *ctx )
void mbedtls_... |
tools/makemanifest.py: Show directory name if there is a FreezeError. | @@ -199,7 +199,7 @@ def mkdir(filename):
def freeze_internal(kind, path, script, opt):
path = convert_path(path)
if not os.path.isdir(path):
- raise FreezeError("freeze path must be a directory")
+ raise FreezeError("freeze path must be a directory: {}".format(path))
if script is None and kind == KIND_AS_STR:
if any(f[... |
fcrypt: minor improvement in shredTemporaryFile ()
Prevent writing to corrupted files.
See feedback from . | @@ -102,7 +102,6 @@ error:
*/
static int shredTemporaryFile (int fd, Key * errorKey)
{
- kdb_octet_t error = 0;
kdb_octet_t buffer[512] = { 0 };
struct stat tmpStat;
@@ -120,16 +119,10 @@ static int shredTemporaryFile (int fd, Key * errorKey)
for (off_t i = 0; i < tmpStat.st_size; i += sizeof (buffer))
{
if (write (fd,... |
Add gcc63-linux-arm toolchain for cross-compilation
Add gcc63 toolchain for cross-compilation | "gcc_version": "6.0"
}
},
+ "gcc63-armv7a": {
+ "name": "gcc63",
+ "tools": {
+ "cc": { "bottle": "gcc63-armv7a", "executable": "cc" },
+ "c++": { "bottle": "gcc63-armv7a", "executable": "c++" },
+ "gcov": { "bottle": "gcc63-armv7a", "executable": "gcov" },
+ "c++filt": { "bottle": "gcc63-armv7a", "executable": "c++fil... |
stm32/Makefile: Add settings to support H7 MCUs. | @@ -53,7 +53,7 @@ INC += -I$(USBDEV_DIR)/core/inc -I$(USBDEV_DIR)/class/inc
CFLAGS_CORTEX_M = -mthumb
# Select hardware floating-point support
-ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32F767xx STM32F769xx))
+ifeq ($(CMSIS_MCU),$(filter $(CMSIS_MCU),STM32F767xx STM32F769xx STM32H743xx))
CFLAGS_CORTEX_M += -mfpu=fpv5... |
Update mk_wheel.py | @@ -34,7 +34,7 @@ class PythonTrait(object):
def gen_cmd(self):
cmd = [
sys.executable, arc_root + '/ya', 'make', os.path.join(arc_root, 'catboost', 'python-package', 'catboost'),
- '--no-src-links', '-r', '--output', out_root, '-DPYTHON_CONFIG=' + self.py_config, '-DNO_DEBUGINFO',
+ '--no-src-links', '-r', '--output',... |
imageio: add ability restrict max image size
WEBP_MAX_IMAGE_SIZE can be defined to control this limit.
Set it to 1.5GiB w/--config=asan-fuzzer to avoid OOM with large resolution
images. This limit leaves some headroom over the single image max of 2^14 *
2^14 * 4 | @@ -137,7 +137,11 @@ void ImgIoUtilCopyPlane(const uint8_t* src, int src_stride,
int ImgIoUtilCheckSizeArgumentsOverflow(uint64_t nmemb, size_t size) {
const uint64_t total_size = nmemb * size;
- return (total_size == (size_t)total_size);
+ int ok = (total_size == (size_t)total_size);
+#if defined(WEBP_MAX_IMAGE_SIZE)
... |
Update yfm for ya tool to 2.10.1 | },
"yfm": {
"formula": {
- "sandbox_id": 618063136,
+ "sandbox_id": 618755316,
"match": "yfm"
},
"executable": {
|
Support escaping delimiters in MANGOHUD_CONFIG | @@ -182,8 +182,15 @@ parse_string(const char *s, char *out_param, char *out_value)
if (*s == '=') {
s++;
i++;
- for (; !is_delimiter(*s); s++, out_value++, i++)
+ for (; !is_delimiter(*s); s++, out_value++, i++) {
*out_value = *s;
+ // Consume escaped delimiter, but don't escape null. Might be end of string.
+ if (*s =... |
Adds GPDB Merge notice for pg_upgrade
Detailed steps that we need to follow to make sure upstream merge is
updated to support additional flags we added for pg_upgrade related to
check mode. | @@ -87,3 +87,20 @@ intention is for this to be a quick test that all objects are handled by
pg_upgrade; upgrade testing still requires the full run across all
segments/mirrors. The smoketest can be invoked by "make check" in the
contrib/pg_upgrade directory.
+
+GPDB Merge notice:
+------------------
+We added the gp_fa... |
add link to rename plugin | @@ -19,7 +19,7 @@ The problem, in general, can be described as: Which phase of the KDB should be u
### Observed problems with changing key names
-For example, the `rename` plugin supports different transformations for `get` and `set`.
+For example, the [`rename` plugin](../../src/plugins/rename/README.md) supports diff... |
document gfortran dependency | @@ -72,7 +72,7 @@ The software tools in recon should run on any recent Linux distribution.
To install the required libraries on Debian and Ubuntu run:
- $ sudo apt-get install gcc make libfftw3-dev liblapacke-dev libpng-dev libopenblas-dev
+ $ sudo apt-get install gcc make libfftw3-dev liblapacke-dev libpng-dev libopen... |
Stop dropping ctrs when no ctrs | @@ -503,9 +503,12 @@ static void SelectCtrsToDropAfterCalc(
},
candList);
+ if (!fullNeededMemoryForCtrs) {
+ return;
+ }
auto currentMemoryUsage = NMemInfo::GetMemInfo().RSS;
if (fullNeededMemoryForCtrs + currentMemoryUsage > memoryLimit) {
- CATBOOST_DEBUG_LOG << "Needed more memory than allowed, will drop some ctrs ... |
include/rsa.h: Format with clang-format
BRANCH=none
TEST=none | @@ -58,10 +58,8 @@ struct rsa_public_key {
};
#endif
-int rsa_verify(const struct rsa_public_key *key,
- const uint8_t *signature,
- const uint8_t *sha,
- uint32_t *workbuf32);
+int rsa_verify(const struct rsa_public_key *key, const uint8_t *signature,
+ const uint8_t *sha, uint32_t *workbuf32);
#endif /* !__ASSEMBLER_... |
Add comment explaining generate_psa_code.py
Explain that the output filename is derived from the -d
argument, so that it's obvious why the CMakefile code
does what it does. | @@ -92,6 +92,8 @@ function(add_test_suite suite_name)
add_custom_command(
OUTPUT
+ # The output filename of generate_test_code.py is derived from the -d
+ # input argument.
test_suite_${data_name}.c
COMMAND
${MBEDTLS_PYTHON_EXECUTABLE}
|
val_alloc should be checked for 1, not 0 | @@ -2935,7 +2935,7 @@ evhtp_kv_new(const char * key, const char * val,
{
kv->vlen = strlen(val);
- if (val_alloc == 0)
+ if (val_alloc == 1)
{
char * s = htp__malloc_(kv->vlen + 1);
|
kernel/os; fix crash_restore_regs for m4 when FP registers
are pushed to exception stack. | @@ -174,7 +174,7 @@ os_default_irq(struct trap_frame *tf)
struct coredump_regs regs;
#endif
#if MYNEWT_VAL(OS_CRASH_RESTORE_REGS)
- uint32_t *orig_sp;
+ uint32_t orig_sp;
#endif
console_blocking_mode();
@@ -212,10 +212,19 @@ os_default_irq(struct trap_frame *tf)
#if MYNEWT_VAL(OS_CRASH_RESTORE_REGS)
if (((SCB->ICSR & S... |
Prevent interaction with main window when enable color modal is open | import electron from "electron";
const dialog = electron.remote ? electron.remote.dialog : electron.dialog;
+const win = electron.remote.getCurrentWindow();
export default () => {
// eslint-disable-next-line global-require
@@ -15,5 +16,5 @@ export default () => {
detail: l10n("DIALOG_ENABLE_COLOR_MODE_DESCRIPTION")
};
... |
CHANGES: note which command line utilities are marked for deprecation but still available.
Some of the utilities are much easier to use than their pkey alternatives.
These have been modified to use the PKEY APIs but still note that they are
deprecated. | @@ -79,11 +79,6 @@ OpenSSL 3.0
*Richard Levitte*
- * The command line utilities ecparam and ec have been deprecated. Instead
- use the pkeyparam, pkey and genpkey programs.
-
- *Paul Dale*
-
* All of the low level RSA functions have been deprecated including:
RSA_new_method, RSA_bits, RSA_size, RSA_security_bits,
@@ -1... |
[kernel] add a cast on NewtonEulerFrom1DLocalFrameR | @@ -339,6 +339,12 @@ KERNEL_REGISTRATION()
return std11::dynamic_pointer_cast<LagrangianDS>(ds);
}
+ SP::NewtonEulerFrom1DLocalFrameR cast_NewtonEulerFrom1DLocalFrameR(SP::Relation r)
+ {
+ return std11::dynamic_pointer_cast<NewtonEulerFrom1DLocalFrameR>(r);
+ }
+
+
// Required to get size of a graph of interactions in... |
Fix missing icons regression | @@ -3049,8 +3049,10 @@ VOID PhProcessImageListInitialization(
PhImageListItemType = PhCreateObjectType(L"ImageListItem", 0, PhpImageListItemDeleteProcedure);
- PhProcessLargeImageList = ImageList_Create(32, 32, ILC_MASK | ILC_COLOR32, 100, 100);
- PhProcessSmallImageList = ImageList_Create(16, 16, ILC_MASK | ILC_COLOR3... |
Codegen await input | @@ -522,6 +522,10 @@ class ScriptBuilder {
);
};
+ _inputWait = (mask: number) => {
+ this._addCmd("VM_INPUT_WAIT", mask);
+ };
+
_stop = () => {
this._assertStackNeutral();
this._addComment("Stop Script");
@@ -748,6 +752,14 @@ class ScriptBuilder {
this._overlayWait(true, [".UI_WAIT_WINDOW"]);
};
+ // ----------------... |
ames: refactor +load | [%2 ames-state-2]
[%3 ^ames-state]
==
- ^+ ames-gate
- ?- -.old-state
- %3
+ |^ ^+ ames-gate
+ ::
+ =? old-state ?=(%1 -.old-state) %2^(state-1-to-2 +.old-state)
+ =? old-state ?=(%2 -.old-state) %3^(state-2-to-3 +.old-state)
+ ::
+ ?> ?=(%3 -.old-state)
ames-gate(ames-state +.old-state)
::
- %2
- =. ames-state
- :* pe... |
Don't change the move order. | ?~ mor
[ova vanes]
=^ nyx vanes (jack lac i.mor)
- $(ova (weld ova p.nyx), mor (weld t.mor q.nyx))
+ $(ova (weld ova p.nyx), mor (weld q.nyx t.mor))
--
--
=< :: Arvo larval stage
|
[MEMPOOL] Nonce is checked ahead of Balance during validation | @@ -269,15 +269,15 @@ func (mp *MemPool) validate(tx *types.Tx) error {
if err != nil {
return err
}
+ if tx.GetBody().GetNonce() <= ns.Nonce {
+ return message.ErrTxNonceTooLow
+ }
if tx.GetBody().GetAmount() > ns.Balance {
if !mp.cfg.EnableTestmode {
// Skip balance validation in test mode
return message.ErrInsuffici... |
Use global variable rm_ID_values directly. | @@ -127,24 +127,22 @@ Export_ChromaticityInfo(ChromaticityInfo *ci, VALUE chrom)
VALUE chrom_members;
VALUE red_primary, green_primary, blue_primary, white_point;
VALUE entry_members, x, y;
- ID values_id;
if (CLASS_OF(chrom) != Class_Chromaticity)
{
rb_raise(rb_eTypeError, "type mismatch: %s given",
rb_class2name(CLAS... |
Add example to CLI helper | @@ -21,6 +21,17 @@ parsed as errors, since they hadn't been declared yet.
EXAMPLE:
+ // initialize the CLI helper.
+ fio_cli_start(argc, argv, "App description or NULL");
+ // setup possible command line arguments.
+ fio_cli_accept_num("port p", "the port to listen to, defaults to 3000.");
+ fio_cli_accept_bool("log v"... |
docs: include pbspro now that recipes exist for aarch64 | @@ -58,7 +58,7 @@ echo "Querying available packages for baseOS=${baseos}, arch=${arch}: minor_ver=
if [[ "${arch}" == "aarch64" ]];then
echo "Querying aarch64..."
- skip="mvapich2|pbspro|impi-ohpc|lmod-defaults-intel"
+ skip="mvapich2|impi-ohpc|lmod-defaults-intel"
fi
repobase="http://build.openhpc.community/OpenHPC:/$... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.