message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
lib/handler/connect.c -> fix regression in t/50connect-proxy-status.t test | @@ -243,7 +243,7 @@ static void reset_io_timeout(struct st_connect_generator_t *self)
}
}
-static void send_connect_error(struct st_connect_generator_t *self, const char *msg, const char *errstr)
+static void send_connect_error(struct st_connect_generator_t *self, int code, const char *msg, const char *errstr)
{
cancel... |
key zeroisation fix for p12 | @@ -75,6 +75,7 @@ static int pkcs12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
unsigned char *out,
const EVP_MD *md_type))
{
+ int ret = 0;
const EVP_MD *md_type;
HMAC_CTX *hmac = NULL;
unsigned char key[EVP_MAX_MD_SIZE], *salt;
@@ -116,24 +117,27 @@ static int pkcs12_gen_mac(PKCS12 *p12, const char *pass, int... |
Add handling around realloc | @@ -50,8 +50,15 @@ static void repl() {
return;
}
- fullLine = realloc(fullLine, strlen(fullLine) + strlen(line) + 1);
- snprintf(fullLine, strlen(fullLine) + strlen(line) + 1, "%s%s", fullLine, line);
+ char *temp = realloc(fullLine, strlen(fullLine) + strlen(line) + 1);
+
+ if (temp == NULL) {
+ printf("Unable to all... |
Ensure console mouse events are turned off on exit | @@ -3855,6 +3855,9 @@ quit:
qnav_deinit();
if (cont_window)
delwin(cont_window);
+#ifndef FEAT_NOMOUSE
+ printf("\033[?1003l\n"); // turn off console mouse events if they were active
+#endif
printf("\033[?2004h\n"); // Tell terminal to not use bracketed paste
endwin();
ged_deinit(&t.ged);
|
Fixed Luos image source | -<a href="https://luos.io"><img src="https://uploads-ssl.webflow.com/601a78a2b5d030260a40b7ad/603e0cc45afbb50963aa85f2_Gif%20noir%20rect.gif" alt="Luos logo" title="Luos" align="right" height="100" /></a>
+<a href="https://luos.io"><img src="https://www.luos.io/img/logo_luos_animated_white.gif" alt="Luos logo" title="L... |
fix warning: unused variable 'ctx' [-Wunused-variable] | @@ -123,7 +123,6 @@ static int luv_work_cb(lua_State* L) {
static void luv_work_cb_wrapper(uv_work_t* req) {
luv_work_t* work = (luv_work_t*)req->data;
- luv_work_ctx_t* ctx = work->ctx;
lua_State *L = work->args.L;
luv_ctx_t* lctx = luv_context(L);
|
changelog entry for clap-core deprecation | # Changes in 1.1.3
* CMake: generate CMake and pkg-config package files on install
+* CMake: `clap-core` target is now deprecated, use `clap` target instead
* [plugin.h](include/clap/plugin.h) make feature list on clap_plugin_descriptor_t const
# Changes in 1.1.2
|
update maya attrs from parms after the cook, rather than before,
so that they don't end up with an off-by-one-cook error. | @@ -1536,8 +1536,6 @@ AssetNode::compute(const MPlug& plug, MDataBlock& data)
setParmValues(data);
- getParmValues(data);
-
AssetNodeOptions::AccessorDataBlock options(assetNodeOptionsDefinition, data);
MPlug outputPlug(thisMObject(), AssetNode::output);
@@ -1548,6 +1546,12 @@ AssetNode::compute(const MPlug& plug, MDat... |
PEM: Always use PEM_def_callback() when cb == NULL in pem_read_bio_key()
Too many other functions depend on this being done.
Fixes | @@ -48,11 +48,8 @@ static EVP_PKEY *pem_read_bio_key(BIO *bp, EVP_PKEY **x,
return NULL;
}
- if (u != NULL && cb == NULL)
- cb = PEM_def_callback;
if (cb == NULL)
- ui_method = UI_null();
- else
+ cb = PEM_def_callback;
ui_method = allocated_ui_method = UI_UTIL_wrap_read_pem_callback(cb, 0);
if (ui_method == NULL)
retu... |
Update README.md
Additional typographical fix. | @@ -47,7 +47,7 @@ If you plan to use YARA to scan compressed files (.zip, .tar, etc) you should
take a look at [yextend](https://github.com/BayshoreNetworks/yextend), a very
helpful extension to YARA developed and open-sourced by Bayshore Networks.
-Additionally, they guys from [InQuest](https://inquest.net/) have cura... |
nfsuc steam compatibility fix | @@ -37,11 +37,9 @@ void InitRes()
}
list3[i] = 0;
- auto pattern = GetPattern("6A 15 B9 ? ? ? ? 8B F8 E8 ? ? ? ? 33 C9"); //0x12AA194
- injector::WriteMemory(*pattern.get_first<void*>(18), list3.size() - 1, true);
-
- pattern = GetPattern("53 E8 ? ? ? ? 83 C4 1C 33 FF E9 ? ? ? ? E8 ? ? ? ? 33 FF"); //0x587291
- injecto... |
Add minimum size validation for header parameter
Throw exception on values that are less than the minimum acceptable size
of 32 bytes. | @@ -98,6 +98,14 @@ def validate_version(ctx, param, value):
raise click.BadParameter("{}".format(e))
+def validate_header_size(ctx, param, value):
+ min_hdr_size = image.IMAGE_HEADER_SIZE
+ if value < min_hdr_size:
+ raise click.BadParameter(
+ "Minimum value for -H/--header-size is {}".format(min_hdr_size))
+ return v... |
[lwIP] use timeval in libc when minilibc is used | @@ -69,7 +69,7 @@ typedef rt_uint32_t mem_ptr_t;
#define LWIP_PROVIDE_ERRNO
#endif
-#ifdef RT_USING_LIBC
+#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC)
#include <sys/time.h>
#define LWIP_TIMEVAL_PRIVATE 0
#else
|
Zephyr: Clarify keyboard powerbutton assert options
Clarify the causality in the powerbutton assert options, and also
clarify why one might select either option.
BRANCH=None
TEST=zmake build skyrim | @@ -99,15 +99,15 @@ config PLATFORM_EC_KEYBOARD_PWRBTN_ASSERTS_KSI2
bool "Forces KSI2 to be asserted"
help
Enable this if KSI2 is stuck 'asserted' for all scan columns if the
- power button is held. We must be aware of this case in order to
- correctly handle recovery-mode key combinations.
+ power button is held. This... |
adjust columns in Automation web example | @@ -28,6 +28,7 @@ table.GeneratedTable td, table.GeneratedTable th {
border-color: #8f8f8f;
border-style: solid;
padding: 3px;
+ width: 50%;
}
table.GeneratedTable thead {
|
Fix newlines from copying code from my MacMini. | #include <IOKit/IOKitLib.h>
// This would be better than int gethostuuid(uuid_t id, const struct timespec *wait);
-
void get_platform_uuid(char * buf, int bufSize)
-
{
io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
-
CFStringRef uuidCf = (CFStringRef) IORegistryEntryC... |
Speeches embedded in speeches are no longer exempt from filtering.
Closes | ::
|= sep/speech
^- speech
- ?. ?=($lin -.sep) sep
- %_ sep
- msg
+ ?+ -.sep sep
+ ?($ire $fat $app)
+ sep(sep $(sep sep.sep))
+ ::
+ $lin
+ =- sep(msg -)
%- crip
%- tufa
%+ turn (tuba (trip msg.sep))
|
Fixed compiler error on Linux | @@ -133,6 +133,7 @@ bool PacketCreate::doCreate(NetState* net, LPCTSTR charname, bool bFemale, RACE_
ASSERT(client);
const CAccountRef account = client->m_pAccount;
ASSERT(account);
+ RESDISPLAY_VERSION resdisp = static_cast<RESDISPLAY_VERSION>(account->GetResDisp());
// Check if the account is already connected using ... |
doc: added missing div | @@ -834,7 +834,7 @@ Basemaps apply the map background required for rendering data. Basemaps are requ
</div>
<div class="Carousel-item js-Tabpanes-item--lang js-Tabpanes-item--lang--kotlin">
- {% highlight swift %}
+ {% highlight kotlin %}
mapView = MapView(this)
setContentView(mapView)
@@ -2258,6 +2258,8 @@ The followi... |
merge changes from trunk | @@ -1804,27 +1804,21 @@ avtUintahFileFormat::GetVar(int timestate, int domain, const char *varname)
LevelInfo &levelInfo = stepInfo->levelInfo[level];
PatchInfo &patchInfo = levelInfo.patchInfo[local_patch];
- bool nodeCentered;
-
// The region we're going to ask uintah for (from plow to phigh-1)
int plow[3], phigh[3];... |
Improve BN_CTX documentation
Since BN_CTX_init() is gone, all calls use BN_CTX_new(). Also,
essentially all consumers will use BN_CTX_start()/BN_CTX_end(),
so make that more clear from the BN_CTX_new() man page.
Document the thread-unsafety of individual BN_CTX objects. | @@ -26,12 +26,14 @@ BN_CTX_secure_new() allocates and initializes a B<BN_CTX> structure
but uses the secure heap (see L<CRYPTO_secure_malloc(3)>) to hold the
B<BIGNUM>s.
-BN_CTX_free() frees the components of the B<BN_CTX>, and if it was
-created by BN_CTX_new(), also the structure itself.
-If L<BN_CTX_start(3)> has be... |
faq CHANGE mention problems with specific libssh versions | @@ -19,3 +19,20 @@ __A:__ The most likely reason for this is that the SSH key that is used
for this session authentication uses an algorithm not supported by
your system. The supported algorithms are automatically loaded by *libssh*
from OpenSSH configuration files (more info in `ssh_config(5)` and `sshd_config(5)`).
+... |
[io] avoid time_stepping in run_options output | @@ -2100,6 +2100,8 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
d['friction_contact_trace_params']='not serialized' # fix it
d['osi'] = 'not serialized' # fix it
+ d['time_stepping'] = 'not serialized' # fix it
+
d['start_run_iteration_hook']='not serialized' # fix it
d['end_run_iteration_hook... |
proc_mgmt: properly propagate spawnd errors to client | @@ -88,6 +88,7 @@ static void spawn_reply_handler(struct spawn_binding *b, errval_t spawn_err)
if (err_is_ok(spawn_err)) {
err = domain_spawn(spawn->cap_node, spawn->core_id, spawn->argvbuf,
spawn->argvbytes);
+ }
if (cl->type == ClientType_Spawn) {
resp_err = cl->b->tx_vtbl.spawn_response(cl->b, NOP_CONT,
err, spawn->... |
[CUDA] Use pthread_cond_wait in background threads
Previously these were spin-locking which was consuming too much CPU
time. | @@ -57,6 +57,8 @@ typedef struct pocl_cuda_queue_data_s
pthread_t submit_thread;
pthread_t finalize_thread;
pthread_mutex_t lock;
+ pthread_cond_t pending_cond;
+ pthread_cond_t running_cond;
_cl_command_node *volatile pending_queue;
_cl_command_node *volatile running_queue;
cl_command_queue queue;
@@ -324,6 +326,8 @@ ... |
network: on tcp connect change exception from error to debug | @@ -1218,7 +1218,7 @@ flb_sockfd_t flb_net_tcp_connect(const char *host, unsigned long port,
}
if (fd == -1) {
- flb_error("[net] could not connect to %s:%s",
+ flb_debug("[net] could not connect to %s:%s",
host, _port);
}
|
dev-tools/valgrind: specify libexec path, fix LD_LIBRARY_PATH in module | @@ -37,7 +37,8 @@ AMD64/MacOSX.
%setup -q -n %{pname}-%{version}
%build
-./configure --prefix=%{install_path} || { cat config.log && exit 1; }
+./configure --prefix=%{install_path} \
+ --libexecdir=%{install_path}/lib/valgrind || { cat config.log && exit 1; }
make %{?_smp_mflags}
%install
@@ -63,7 +64,7 @@ module-whati... |
panda recover should go through bootstub first | @@ -297,6 +297,7 @@ class Panda(object):
self.reconnect()
def recover(self, timeout=None):
+ self.reset(enter_bootstub=True)
self.reset(enter_bootloader=True)
t_start = time.time()
while len(PandaDFU.list()) == 0:
|
Fixup include path in ossl_shim test after e_os.h work
The include search path was not picking up files in the root of
the tree.
[extended tests] | IF[{- defined $target{cxx} && !$disabled{"external-tests"}-}]
PROGRAMS_NO_INST=ossl_shim
SOURCE[ossl_shim]=ossl_shim.cc async_bio.cc packeted_bio.cc test_config.cc
- INCLUDE[ossl_shim]=. include ../../include
+ INCLUDE[ossl_shim]=. include ../../include ../..
DEPEND[ossl_shim]=../../libssl ../../libcrypto
ENDIF
|
update ya tool arc
inherite Updated flag
remove an unrequired closing brace
Note: mandatory check (NEED_CHECK) was skipped | },
"arc": {
"formula": {
- "sandbox_id": [397068943],
+ "sandbox_id": [397664968],
"match": "arc"
},
"executable": {
|
Fix patch lookup in test infrastructure | import unittest
+from mock import MagicMock, Mock
+
class GpTestCase(unittest.TestCase):
def __init__(self, methodName='runTest'):
@@ -17,11 +19,12 @@ class GpTestCase(unittest.TestCase):
self.__class__.apply_patches_counter += 1
def get_mock_from_apply_patch(self, mock_name):
- ''' Return None if there is no existing ... |
Exclude VCS configuration files from archive generation | # OpenGL Shaders
*.glsl* text
+
+
+# Exclude VCS configuration files from archive generation
+# https://feeding.cloud.geek.nz/posts/excluding-files-from-git-archive/
+.gitattributes export-ignore
+.gitignore export-ignore
+.hgtags export-ignore
+.hgignore export-ignore
|
Disable test if not configured | . ./include.sh
#set -x
-# First decide if we have NetCDF enabled from configure.
-# Temporarily turn off the '-e' flag for set so we dont exit on error
-set +e
-tmp_out=tmp_msg.out
-skip_test=0
-rm -f $tmp_out
-# Invoke the grib_to_netcdf command with no options. If NetCDF was enabled
-# we get a usage message otherwis... |
Fix compiler warning in non-assert builds
Oversight in commit
Reported-by: Erik Rijkers
Discussion: | @@ -143,7 +143,6 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
bool *inisnull = map->inisnull;
Datum *outvalues = map->outvalues;
bool *outisnull = map->outisnull;
- int outnatts = map->outdesc->natts;
int i;
/*
@@ -156,7 +155,7 @@ execute_attr_map_tuple(HeapTuple tuple, TupleConversionMap *map)
/... |
imxrt1050-evk/nxp_demo: Enable TizenRT debug logs
Enable CONFIG_DEBUG and related configs in imxrt1050-evk/nxp_demo
Fix the defconfig by running make menuconfig | @@ -297,10 +297,6 @@ CONFIG_IMXRT_AUTOMOUNT_USERFS_DEVNAME="/dev/smart0p8"
CONFIG_IMXRT_AUTOMOUNT_USERFS_MOUNTPOINT="/mnt"
# CONFIG_IMXRT_AUTOMOUNT_SSSRW is not set
# CONFIG_IMXRT_AUTOMOUNT_ROMFS is not set
-
-#
-# Board-Partition Options
-#
# CONFIG_ARCH_USE_FLASH is not set
#
@@ -491,6 +487,7 @@ CONFIG_STANDARD_SERIA... |
Use ranged-for loop instead of for loop | @@ -121,7 +121,7 @@ namespace ebi
}
std::map<std::string, int> counter;
- for (auto id = ids.begin(); id != ids.end(); ++id) {
+ for (auto & id : ids) {
counter[*id]++;
if (counter[*id] >= 2) {
throw new IdBodyError{line, "ID must not have duplicate values"};
|
win32: task Z1793 - in this case - it is better to be paranoiac | @@ -26,6 +26,7 @@ class CKeyboardSingleton: public CKeyboardSingletonBase
Hashtable<String, String> hashRes;
bool isOk = true;
#ifdef OS_WINDOWS_DESKTOP
+ try {
if (isOpen){
void *was;
Wow64DisableWow64FsRedirection (&was);
@@ -42,12 +43,9 @@ class CKeyboardSingleton: public CKeyboardSingletonBase
}else{
isOk = false;
... |
Allow error to be NULL | @@ -428,7 +428,9 @@ mongoc_topology_compatible (const mongoc_topology_description_t *td,
int32_t max_wire_version;
if (td->compatibility_error.code) {
+ if (error) {
memcpy (error, &td->compatibility_error, sizeof (bson_error_t));
+ }
return false;
}
|
change defualt prompt-mode for oidc-gen to cli | @@ -168,9 +168,9 @@ static struct argp_option options[] = {
"Change the mode how oidc-gen should prompt for passwords. The default is "
"'cli'.",
4},
- {"prompt", OPT_PROMPT_MODE, "cli|gui", 0,
- "Change the mode how oidc-gen should prompt for information. On default "
- "the user is not prompted.",
+ {"prompt", OPT_PR... |
vioapic.c: Using suffix rather than casting
Using suffix "UL" rather than type casting 0xffffffff. | @@ -330,7 +330,7 @@ vioapic_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)
last = vioapic->rtbl[pin].reg;
data64 = (uint64_t)data << lshift;
- mask64 = (uint64_t)0xffffffff << lshift;
+ mask64 = 0xffffffffUL << lshift;
new = last & (~mask64 | RTBL_RO_BITS);
new |= data64 & ~RTBL_RO_BITS;
|
Test when all three inputs to mbedtls_mpi_core_sub() are aliased | @@ -1911,6 +1911,14 @@ void mpi_core_sub( char * input_A, char * input_B,
/* 3b) r = a - b => we should get the correct result */
ASSERT_COMPARE( r, bytes, x, bytes );
+ /* 4 tests "r may be aliased to [...] both" */
+ if ( A.n == B.n && memcmp( A.p, B.p, bytes ) == 0 )
+ {
+ memcpy( r, b, bytes );
+ TEST_EQUAL( carry,... |
BugID:17394649:set coap message handle threshold to 800ms | @@ -688,7 +688,7 @@ static int CoAPRespMessage_handle(CoAPContext *context, NetworkAddr *remote, CoA
return COAP_ERROR_NOT_FOUND;
}
-#define PACKET_INTERVAL_THRE_MS 1
+#define PACKET_INTERVAL_THRE_MS 800
#define PACKET_TRIGGER_NUM 100
static int CoAPRequestMessage_ack_send(CoAPContext *context, NetworkAddr *remote, uns... |
Clarify some help message descriptions | @@ -161,14 +161,13 @@ COMPRESSION
-mask
The input texture is a mask texture with unrelated data stored
in the various color components, so enable error heuristics that
- aim to improve perceptual quality by minimizing the effect of
- error cross-talk across the color components.
+ aim to improve quality by minimizing t... |
tools/Config.mk: compile with full file path | @@ -268,7 +268,7 @@ endif
define PREPROCESS
@echo "CPP: $1->$2"
- $(Q) $(CPP) $(CPPFLAGS) $($(strip $1)_CPPFLAGS) $1 -o $2
+ $(Q) $(CPP) $(CPPFLAGS) $($(strip $1)_CPPFLAGS) $(abspath $1) -o $(abspath $2)
endef
# COMPILE - Default macro to compile one C file
@@ -285,7 +285,7 @@ endef
define COMPILE
@echo "CC: $1"
- $(Q)... |
fix: rename json_inject_alloc to json_ainject | @@ -98,7 +98,7 @@ char * update_my_fork(dati *d)
d->handle.ok_cb = log;
- d->body.size = json_inject_alloc(&d->body.start, NULL, "(sha):s", sha);
+ d->body.size = json_ainject(&d->body.start, NULL, "(sha):s", sha);
fprintf(stderr, "PATCH: %.*s %d\n", d->body.size, d->body.start, d->body.size);
user_agent::run(&d->ua_da... |
change line 50 'fir' to 'fit' | @@ -47,7 +47,7 @@ typedef struct
/*New data for this type */
uint8_t layout :4; /*A layout from 'lv_cont_layout_t' enum*/
uint8_t hor_fit :1; /*1: Enable horizontal fit to involve all children*/
- uint8_t ver_fit :1; /*1: Enable horizontal fir to involve all children*/
+ uint8_t ver_fit :1; /*1: Enable horizontal fit t... |
Update arm_depthwise_separable_conv_HWC_q7_nonsquare.c | * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking.
*
* This function is the version with full list of optimization tricks, but with
- * some contraints:
+ * some constraints:
* ch_im_in is equal to ch_im_out
*
*/
|
Resove GPDB_12_MERGE_FIXME in hba.c
Can't set LDAPS and StartTLS at the same time. When use 'ldaptls'
with 'ldaps' scheme or 'ldapurl' start with 'ldaps://', show an
error message in log file. | @@ -1584,20 +1584,20 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
return NULL;
}
- /* GPDB_12_MERGE_FIXME: Is this still relevant? Is there some additional GPDB
- * features in LDAP authentication, or has PostgreSQL gotten them all by now? */
-#if 0
- if ((parsedline->ldaptls || parsedline->ldapport != 0) && ... |
OcAppleKernel: KmodInfo is packed, clang will access it properly | @@ -186,7 +186,6 @@ PatcherBlockKext (
)
{
UINT64 KmodOffset;
- UINT64 KmodStartAddr;
UINT64 TmpOffset;
KMOD_INFO_64_V1 *KmodInfo;
UINT8 *PatchAddr;
@@ -201,16 +200,13 @@ PatcherBlockKext (
KmodOffset = Context->VirtualKmod - Context->VirtualBase;
KmodInfo = (KMOD_INFO_64_V1 *)((UINT8 *) MachoGetMachHeader64 (&Context-... |
artik053/Kconfig: remove unnecessary if statement
'artik053/Kconfig' is included only when ARCH_BOARD_ARTIK053 is set.
Thus, checking it seems redundant. | -if ARCH_BOARD_ARTIK053
-
config ARTIK053_BOOT_FAILURE_DETECTION
bool "Clear bootcount when boot completes"
default y
@@ -155,4 +153,3 @@ config ARTIK053_RAMMTD_MOUNT_POINT
string "Mountpoint of the partition for ramfs r/w file system"
default "/ramfs"
endif
-endif
|
Use sprite alignment offsets to keep sprite position consistent between frames | @@ -68,8 +68,12 @@ const spriteMiddleware: Middleware<{}, RootState> = (store) => (next) => (
}
const tile: MetaspriteTile = {
id: uuid(),
- x: loc.x,
- y: spriteDef.coordinates.height - loc.y - 16,
+ x: loc.x + alignmentOffsets[si].x,
+ y:
+ spriteDef.coordinates.height -
+ loc.y +
+ alignmentOffsets[si].y -
+ 16,
sli... |
common: remove unused struct | @@ -185,11 +185,6 @@ struct strings_t {
TAILQ_ENTRY(strings_t) pointers;
};
-struct paths_t {
- char path[PATH_MAX];
- TAILQ_ENTRY(paths_t) pointers;
-};
-
/* Maximum number of active fuzzing threads */
#define _HF_THREAD_MAX 1024U
typedef struct {
|
bufr_dump -Efortran creates BUFR which differs from input | @@ -3169,6 +3169,14 @@ int grib_f_get_string(int* gid, char* key, char* val, int len, int len2){
return grib_f_get_string_( gid, key, val, len, len2);
}
+static int is_all_spaces(const char *s)
+{
+ while (*s != '\0') {
+ if (!isspace(*s)) return 0;
+ s++;
+ }
+ return 1;
+}
int grib_f_set_string_(int* gid, char* key, ... |
[bsp][v2m-mps2] fix "scons --target=mdk5" error | @@ -5,9 +5,6 @@ ARCH='arm'
CPU='cortex-m7'
CROSS_TOOL='keil'
-if os.getenv('RTT_CC'):
- CROSS_TOOL = os.getenv('RTT_CC')
-
if CROSS_TOOL == 'keil':
PLATFORM = 'armcc'
EXEC_PATH = 'C:/Keil_v5'
@@ -48,7 +45,6 @@ if PLATFORM == 'armcc':
CFLAGS += ' --c99'
POST_ACTION = 'fromelf -z $TARGET'
- # POST_ACTION = 'fromelf --bin... |
Moved anything rpm-related to pkg/rpm: Fix a path in libbart-devel.spec | @@ -32,7 +32,7 @@ src=$(cut -d' ' -f1 <<<"$line")
dst=%{buildroot}/$(cut -d' ' -f2 <<<"$line")
install -d "$dst"
install "$src" "$dst"
-done < libbart-dev.install
+done < pkg/rpm/libbart-dev.install
# ^ Contents of https://salsa.debian.org/med-team/bart/-/blob/master/debian/libbart-dev.install
%files
|
remove chffr link | @@ -28,8 +28,7 @@ char pageheader[] = "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"</head>\n"
"<body>\n"
"<pre>This is your comma.ai panda\n\n"
-"It's open source. Find the code <a href=\"https://github.com/commaai/panda\">here</a>\n"
-"Designed to work with our dashcam, <a href=\"http://chffr.comma.ai\">chffr</a>\n... |
Make sure ECONNRESET is correct on windows for gpfdist
ECONNRESET is defined as POSIX errno(108) in some windows build environment.
Then gpfdist doesn't redefine it. But that is incorrect value on windows.
So we make sure ECONNRESET is defined as WSAECONNRESET in gpfdist. | #include <io.h>
#define SHUT_WR SD_SEND
#define socklen_t int
-#ifndef ECONNRESET
+#undef ECONNRESET
#define ECONNRESET WSAECONNRESET
#endif
-#endif
-
#include <postgres.h>
#include <pg_config.h>
#include <pg_config_manual.h>
|
add time cost for loading storage | @@ -974,8 +974,11 @@ static void *work_thread(void *arg)
// loading block from the local storage
g_xdag_state = XDAG_STATE_LOAD;
xdag_mess("Loading blocks from local storage...");
+
+ uint64_t start = get_timestamp();
xdag_show_state(0);
xdag_load_blocks(t, get_timestamp(), &t, add_block_callback);
+ xdag_mess("Finish ... |
conifg: fix error ret | @@ -502,7 +502,7 @@ static void tcmu_cancel_config_thread(struct tcmu_config *cfg)
return;
}
- pthread_join(thread_id, &join_retval);
+ ret = pthread_join(thread_id, &join_retval);
if (ret) {
tcmu_err("pthread_join failed with value %d\n", ret);
return;
|
Update capslist.txt sorting | @@ -603,8 +603,6 @@ ID_CAP_WPN_PLATFORM_REG_KEY
ID_CAP_WPTOOLS_INSTALL_FOLDER
ID_CAP_ZMFSERVICES
ID_CAP_ZTRACE
-Microsoft.firmwareRead_cw5n1h2txyewy
-Microsoft.firmwareWrite_cw5n1h2txyewy
accessoryManager
activateAsUser
activity
@@ -619,10 +617,10 @@ appBroadcastSettings
appCaptureServices
appCaptureSettings
appDiagnos... |
cpu.c,cosmetics: fix a typo
VP8DecGetCPUInfo -> VP8GetCPUInfo | @@ -212,7 +212,7 @@ VP8CPUInfo VP8GetCPUInfo = wasmCPUInfo;
#elif defined(WEBP_HAVE_NEON)
// In most cases this function doesn't check for NEON support (it's assumed by
// the configuration), but enables turning off NEON at runtime, for testing
-// purposes, by setting VP8DecGetCPUInfo = NULL.
+// purposes, by setting ... |
net/tcp: remove the redundant ifdef CONFIG_NET_TCP | @@ -76,7 +76,6 @@ struct accept_s
*
****************************************************************************/
-#ifdef CONFIG_NET_TCP
static inline void accept_tcpsender(FAR struct socket *psock,
FAR struct tcp_conn_s *conn,
FAR struct sockaddr *addr,
@@ -127,7 +126,6 @@ static inline void accept_tcpsender(FAR struc... |
Mention --select-usb and --select-tcpip in README
PR <https://github.com/Genymobile/scrcpy/pull/3005> | @@ -422,7 +422,7 @@ scrcpy -b2M -m800 # short version
#### Multi-devices
-If several devices are listed in `adb devices`, you must specify the _serial_:
+If several devices are listed in `adb devices`, you can specify the _serial_:
```bash
scrcpy --serial 0123456789abcdef
@@ -436,6 +436,19 @@ scrcpy --serial 192.168.0.... |
doccords: lib/deco remove informal comment | :> any line longer than 60 characters is probably too long.
:> uppercase or non-ascii letters are strongly discouraged.
:>
-:> informal comments (lines with {:>}) should be used only for
-:> meta-discussion *about* the code.
-:>
:> whenever possible, use formal decorations. {:>} decorates
:> the next expression; {:<} d... |
[CI] Revert dummy commit | @@ -46,3 +46,29 @@ jobs:
python3 scripts/install_dependencies.py
python3 scripts/build_os_toolchain.py
echo "Toolchain built successfully"
+
+ - name: Build Rust toolchain
+ shell: bash
+ run: |
+ # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
+ # rustup toolchain ins... |
OSSL_PARAM example code bug fix.
Technically not a bug since the code worked but the array index shouldn't have
been constant after searching for the field. | @@ -276,8 +276,8 @@ could fill in the parameters like this:
*(char **)params[i].data = "foo value";
*params[i].return_size = 10; /* size of "foo value" */
} else if (strcmp(params[i].key, "bar") == 0) {
- memcpy(params[1].data, "bar value", 10);
- *params[1].return_size = 10; /* size of "bar value" */
+ memcpy(params[i... |
Add "NIE Tests" comment | @@ -67,7 +67,7 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
// No mimic library.
#endif
-// --------
+// ---------------- NIE Tests
const char* //
test_wuffs_nie_decode_interface() {
|
build: prefer DRONE_TAG over DRONE_COMMIT | @@ -24,7 +24,9 @@ env.AddPostAction(
git_version = "unknown"
-if 'DRONE_COMMIT' in os.environ:
+if 'DRONE_TAG' in os.environ:
+ git_version = os.environ.get('DRONE_TAG')
+elif 'DRONE_COMMIT' in os.environ:
git_version = os.environ.get('DRONE_COMMIT')
else:
try:
|
schema compile REFACTOR remove redundant function
Its name was misleading and since parsed modules
cannot be revmoed for now, useless. | @@ -248,51 +248,6 @@ remove_nodelevel:
LOG_LOCSET(NULL, NULL, ctx->path, NULL);
}
-/**
- * @brief Compile information in the import statement - make sure there is the target module
- * @param[in] ctx Compile context.
- * @param[in] imp_p The parsed import statement structure to fill the module to.
- * @return LY_ERR va... |
Fix sof of copied bytes in resize. | @@ -963,11 +963,11 @@ void ts_internal_bspline_resize(const tsBSpline *spline, int n, int back,
const size_t num_knots = spline->pImpl->n_knots;
const size_t nnum_ctrlp = num_ctrlp + n; /**< New length of ctrlp. */
const size_t nnum_knots = num_knots + n; /**< New length of knots. */
- const size_t min_num_ctrlp = n < ... |
Fixed unnecessary typecasts | @@ -2059,8 +2059,7 @@ static ACVP_RESULT acvp_process_vsid(ACVP_CTX *ctx, char *vsid_url, int count) {
/*
* Wait and try again to retrieve the VectorSet
*/
- if (acvp_retry_handler(ctx, (unsigned int *)&retry_period, (unsigned int *)&time_waited_so_far, 1)
- != ACVP_KAT_DOWNLOAD_RETRY) {
+ if (acvp_retry_handler(ctx, &... |
Fix Kconfig PR variable | @@ -256,7 +256,7 @@ config USE_PRFLOW
default "TRUE" if ENABLE_PRFLOW
default "FALSE" if ! ENABLE_PRFLOW
-config ENABLE_CLOUD_BITFILE
+config ENABLE_CLOUD_BUILD_BITFILE
bool "Build bitstream file"
default y
depends on ENABLE_PRFLOW
|
Trying to update examples/RadHeat. The case of the letters seems to be causing problems. | @@ -37,5 +37,3 @@ bVarDt 1 # Use variable timestepping?
dEta 0.1 # Coefficient for variable timestepping
dStopTime 4.5e9 # Stop time for evolution
dOutputTime 1e7 # Output timesteps (assuming in body files)
-
-
|
examples/st_things: Modify Json file
By contract, you have decided to include only the file name in the file path of svrdb, provisioning, certificate, and privateKey in the json file, except for the parent path.
The parent path has been added to the logic to allow the previous commit to combine at runtime. | "frequency": 1
},
"filePath":{
- "svrdb": "/mnt/artikserversecured.dat",
- "provisioning": "/mnt/provisioning.dat",
- "certificate": "/rom/certificate",
- "privateKey": "/rom/privatekey"
+ "svrdb": "artikserversecured.dat",
+ "provisioning": "provisioning.dat",
+ "certificate": "certificate",
+ "privateKey": "privateke... |
socket: add macro for win32 build | #include <fluent-bit/flb_log.h>
#include <fluent-bit/flb_socket.h>
+#ifndef _WIN32
+
int flb_socket_error(int fd)
{
int ret;
@@ -40,3 +42,5 @@ int flb_socket_error(int fd)
return 0;
}
+
+#endif
|
Consistently use rtb->frc_objalloc and rtb->mem | @@ -449,7 +449,7 @@ static ngtcp2_ssize rtb_reclaim_frame(ngtcp2_rtb *rtb, ngtcp2_conn *conn,
rv = ngtcp2_strm_streamfrq_push(strm, nfrc);
if (rv != 0) {
- ngtcp2_frame_chain_objalloc_del(nfrc, &conn->frc_objalloc, conn->mem);
+ ngtcp2_frame_chain_objalloc_del(nfrc, rtb->frc_objalloc, rtb->mem);
return rv;
}
if (!ngtcp... |
ci: add job-level `timeout-minutes: 60` | @@ -32,6 +32,7 @@ jobs:
task: dtrace
container: h2oserver/h2o-ci:ubuntu2004
+ timeout-minutes: 60
steps:
- uses: actions/checkout@v2
with:
@@ -53,6 +54,7 @@ jobs:
# see above
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
+ timeout-minutes: 60
steps:
- name: Build ... |
Split long string in test_ns_extremely_long_prefix()
C99 compilers are only required to cope with 4095 character strings.
Split the parse text in two to keep it under that limit. | @@ -7615,7 +7615,11 @@ END_TEST
/* Exercises a particular string pool growth path */
START_TEST(test_ns_extremely_long_prefix)
{
- const char *text =
+ /* C99 compilers are only required to support 4095-character
+ * strings, so the following needs to be split in two to be safe
+ * for all compilers.
+ */
+ const char ... |
tsch_schedule_print: use LOG_PRINT instead of printf | @@ -452,16 +452,15 @@ tsch_schedule_print(void)
if(!tsch_is_locked()) {
struct tsch_slotframe *sf = list_head(slotframe_list);
- printf("Schedule: slotframe list\n");
+ LOG_PRINT("----- start slotframe list -----\n");
while(sf != NULL) {
struct tsch_link *l = list_head(sf->links_list);
- printf("[Slotframe] Handle %u, ... |
openmpi: include use of %{RMS_DELIM} in package name, make pmix build optional | #
#----------------------------------------------------------------------------eh-
-# OpenMPI stack that is dependent on compiler toolchain
+# OpenMPI stack that is dependent on compiler toolchain (and possibly RMS)
%define ohpc_compiler_dependent 1
%include %{_sourcedir}/OHPC_macros
+%{!?RMS_DELIM: %global RMS_DELIM %... |
opal-msg: Increase the max-async completion count by max chips possible
OPAL-OCC command-response framework will also use async requests.
So bump up the max-async completion requests to accommodate
maximum number of chips possible. | * ideally the value matches to the number of modules using async
* infrastructure, but not necessarily the same..
*/
-#define OPAL_MAX_ASYNC_COMP 8
+#define OPAL_MAX_ASYNC_COMP 16
int _opal_queue_msg(enum opal_msg_type msg_type, void *data,
void (*consumed)(void *data), size_t num_params,
|
Wrap SVE header with __has_include check | @@ -29,7 +29,17 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "common.h"
+// Some compilers will report feature support for SVE without the appropriate
+// header available
#ifdef HAVE_SVE
+#if defined __has_include
+#if __has_include(<arm_sve.h>) && __ARM_FEATURE_SVE
+#define USE... |
VERSION bump to version 2.2.28 | @@ -65,7 +65,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 27)
+set(SYSREPO_MICRO_VERSION 28)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
riscv64: Correcting inefficiency in spinlock related functions caused by the usage of rdcycles instruction | @@ -150,10 +150,26 @@ int hal_interruptsDeleteHandler(intr_handler_t *h)
return EOK;
}
+time_t jiffies;
__attribute__((aligned(4))) void handler(cpu_context_t *ctx)
{
- cycles_t c = hal_cpuGetCycles2();
+ cycles_t c, d;
+
+/*if (!jiffies)
+ jiffies = hal_cpuGetCycles2();
+else
+ jiffies += 100000;
+
+c = jiffies;
+// h... |
[sensor] fixed step name display abnormal. | @@ -30,7 +30,7 @@ static char *const sensor_name_str[] =
"hr_", /* Heart Rate */
"tvoc_", /* TVOC Level */
"noi_", /* Noise Loudness */
- "step_" /* Step sensor */
+ "step_", /* Step sensor */
"forc_" /* Force sensor */
};
|
Handle angle relative path | @@ -174,7 +174,8 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt)
if headerunit.type == ":quote" then
outputdir = path.join(cachedir, path.directory(path.relative(headerunit.path, projectdir)))
else
- outputdir = path.join(cachedir, path.directory(headerunit.path):sub(3))
+ -- if path is relat... |
linux-raspberrypi: update 4.9 recipe to current HEAD
Contains the following changes:
drm/vc4: Move IRQ enable to PM path
which fixes an unbalanced IRQ enable warning, which was rapported
in | @@ -2,7 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
LINUX_VERSION ?= "4.9.80"
-SRCREV = "ffd7bf4085b09447e5db96edd74e524f118ca3fe"
+SRCREV = "7f9c648dad6473469b4133898fa6bb8d818ecff9"
SRC_URI = " \
git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y \
file://0001-menuconfig-check-lxdiaglog.sh-Allow... |
Improve ProcessorBrandString query (experimental) | @@ -824,13 +824,23 @@ VOID PhSipGetCpuBrandString(
_Out_writes_(49) PWSTR BrandString
)
{
- ULONG brandString[4 * 3];
-
- __cpuid(&brandString[0], 0x80000002);
- __cpuid(&brandString[4], 0x80000003);
- __cpuid(&brandString[8], 0x80000004);
+ // dmex: The __cpuid instruction generates quite a few FPs by security softwar... |
devices: allow link state down with netlink
Type: fix
Use the up parameter in vnet_netlink_set_link_state(). It was
ignoring the parameter and always setting IFF_UP on an interface. | @@ -201,7 +201,7 @@ vnet_netlink_set_link_state (int ifindex, int up)
struct ifinfomsg ifmsg = { 0 };
clib_error_t *err = 0;
- ifmsg.ifi_flags = IFF_UP;
+ ifmsg.ifi_flags = ((up) ? IFF_UP : 0);
ifmsg.ifi_change = IFF_UP;
ifmsg.ifi_index = ifindex;
|
Add 4.0 change log | @@ -58,6 +58,9 @@ from 0.89 bits/pixel up to 8 bits/pixel.
Release build binaries for the `astcenc` stable releases are provided in the
[GitHub Releases page][3].
+**Latest 4.x stable release:** TBD
+* Change log: [4.x series](./Docs/ChangeLog-4x.md)
+
**Latest 3.x stable release:** 3.7
* Change log: [3.x series](./Doc... |
engine: on pipe shutdown, consume byte | @@ -267,6 +267,7 @@ static FLB_INLINE int flb_engine_handle_event(flb_pipefd_t fd, int mask,
return 0;
}
else if (config->shutdown_fd == fd) {
+ flb_utils_pipe_byte_consume(fd);
return FLB_ENGINE_SHUTDOWN;
}
#ifdef FLB_HAVE_STATS
@@ -423,6 +424,7 @@ int flb_engine_start(struct flb_config *config)
event->mask = MK_EVENT... |
Adding make -j4 and setting appveyor to only build master branch. | version: 1.0.{build}
image: Visual Studio 2015
+branches:
+ only:
+ - master
+
environment:
matrix:
- COMPILER: msys2
@@ -31,7 +35,7 @@ build_script:
bash -lc "cd $Env:WDIR && cp -rf ./windows/* ./"
bash -lc "cd $Env:WDIR && ./bootstrap.sh"
bash -lc "cd $Env:WDIR && ./configure --datadir=/c"
- bash -lc "cd $Env:WDIR &&... |
Mock: Add hard reset to PRL mock
Add the ability to detect hard reset send through the PRL mock. Note
that a hard reset is a transmit type, not a control or data message.
BRANCH=None
TEST=make -j buildall | @@ -54,7 +54,11 @@ void prl_end_ams(int port)
{}
void prl_execute_hard_reset(int port)
-{}
+{
+ mock_prl_port[port].last_ctrl_msg = 0;
+ mock_prl_port[port].last_data_msg = 0;
+ mock_prl_port[port].last_tx_type = TCPC_TX_HARD_RESET;
+}
enum pd_rev_type prl_get_rev(int port, enum tcpm_transmit_type partner)
{
|
show warning if limited (old) pcap format is detected | @@ -308,6 +308,7 @@ static int nmealen;
static bool ignoreieflag;
static bool donotcleanflag;
+static bool ancientdumpfileformat;
static const uint8_t fakenonce1[] =
{
@@ -808,6 +809,18 @@ if((eapolwrittencount +eapolncwrittencount +eapolwrittenhcpxcountdeprecated +eap
{
printf( "\nInformation: no hashes written to has... |
NewChannel: fix sig mismatch | @@ -110,7 +110,7 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
}
};
- const members = group ? Array.from(groups[group]?.members).map(s => `~${s}`) : undefined;
+ const members = group ? Array.from(groups[group]?.members) : undefined;
return (
<Col overflowY="auto" p={3} backgroundColor="... |
YAwn: Fix off-by-one error in error message | @@ -53,8 +53,9 @@ string ErrorListener::visualizeError (Location const & location, string const &
errorLine = prefix + errorLine + "\n" + prefix + string (location.begin.column - 1, ' ');
// We assume that an error does not span more than one line
start = location.begin.column;
- end = location.end.column;
- for (size_... |
bumped up yp_util revision
Note: mandatory check (NEED_CHECK) was skipped | },
"yp-util": {
"formula": {
- "sandbox_id": [495194990],
+ "sandbox_id": [496409038],
"match": "yp_util"
},
"executable": {
|
feat:build, push docker image | name: Test, Build and Push Docker Image
-# on:
-# # to enable manual triggering of this workflow.
-# workflow_dispatch:
+on:
+ # to enable manual triggering of this workflow.
+ workflow_dispatch:
-# # trigger for pushes to master
-# push:
-# branches: [master]
-
-# pull_request:
-# branches: [develop, master]
-on: [pus... |
lib: mbedtls: do not install static library | @@ -132,10 +132,6 @@ if(USE_STATIC_MBEDTLS_LIBRARY)
add_library(${mbedtls_static_target} STATIC ${src_tls})
set_target_properties(${mbedtls_static_target} PROPERTIES OUTPUT_NAME mbedtls)
target_link_libraries(${mbedtls_static_target} ${libs} ${mbedx509_static_target})
-
- install(TARGETS ${mbedtls_static_target} ${mbed... |
OcAppleKernelLib: macOS 12.0 support for AppleXcpmForceBoost
closes | @@ -448,6 +448,14 @@ mPerfCtrlFind2[] = {
0x0F, 0x30 ///< wrmsr
};
+STATIC
+UINT8
+mPerfCtrlFind3[] = {
+ 0xB9, 0x99, 0x01, 0x00, 0x00, ///< mov ecx, 199h
+ 0x4C, 0x89, 0xF0, ///< mov rax, r14
+ 0x0F, 0x30 ///< wrmsr
+};
+
STATIC
UINT8
mPerfCtrlMax[] = {
@@ -487,7 +495,8 @@ PatchAppleXcpmForceBoost (
&& Current[2] == m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.