message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
PACSign: add SDM hash to payload for content types
In addition to PR, add the SDM hash to the RKH payload for content
types SR, SR_TEST and PR_TEST. | @@ -912,7 +912,10 @@ class RHP_reader(_READER_BASE):
while payload.size() < 48:
payload.append_byte(0)
- if self.bitstream_type == database.CONTENT_PR:
+ needs_hash = [database.CONTENT_SR, database.CONTENT_PR,
+ database.CONTENT_SR_TEST, database.CONTENT_PR_TEST]
+
+ if self.bitstream_type in needs_hash:
# Add hash to ... |
Minimize pre-allocation for outgoing buffer
Current implementation would pre-initialize a whole memory page for the
response buffer, which is wasteful for short AJAX requests. | @@ -99,7 +99,7 @@ static int write_header(FIOBJ o, void *w_) {
return 0;
}
-static FIOBJ headers2str(http_s *h) {
+static FIOBJ headers2str(http_s *h, uintptr_t padding) {
if (!h->method && !!h->status_str)
return FIOBJ_INVALID;
@@ -108,7 +108,11 @@ static FIOBJ headers2str(http_s *h) {
connection_hash = fio_siphash("c... |
zephyr: drivers: displight: Use 'period' from PWM spec inplace of 'frequency'
Update driver to use 'period' from PWM spec inplace of 'frequency'
BRANCH=none
TEST=zmake testall | @@ -21,7 +21,7 @@ BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) == 1,
#define DISPLIGHT_PWM_NODE DT_INST_PWMS_CTLR(0)
#define DISPLIGHT_PWM_CHANNEL DT_INST_PWMS_CHANNEL(0)
#define DISPLIGHT_PWM_FLAGS DT_INST_PWMS_FLAGS(0)
-#define DISPLIGHT_PWM_PERIOD_NS (NSEC_PER_SEC / DT_INST_PROP(0, frequency))
+#define DISPLI... |
Specification: Fix minor spelling mistakes | @@ -120,7 +120,7 @@ severity:warning
ingroup:kdb
number:19
-description:names of Plugins must start have the position number as second char
+description:names of Plugins must start with the position number as second char
severity:warning
ingroup:kdb
|
Fix coverity CID - Wrong sizeof() arg in rsa_freectx() | @@ -839,7 +839,7 @@ static void rsa_freectx(void *vprsactx)
OPENSSL_free(prsactx->propq);
free_tbuf(prsactx);
- OPENSSL_clear_free(prsactx, sizeof(prsactx));
+ OPENSSL_clear_free(prsactx, sizeof(*prsactx));
}
static void *rsa_dupctx(void *vprsactx)
|
Utilities: Added -x M335 to gen_pack to supress false positives on CMSIS-Drivers. | @@ -189,7 +189,7 @@ POPD
:: Checking
-Win32\PackChk.exe %RELEASE_PATH%\ARM.CMSIS.pdsc -n %RELEASE_PATH%\PackName.txt -x M353 -x M364
+Win32\PackChk.exe %RELEASE_PATH%\ARM.CMSIS.pdsc -n %RELEASE_PATH%\PackName.txt -x M353 -x M364 -x M335
:: --Check if PackChk.exe has completed successfully
IF %errorlevel% neq 0 GOTO Err... |
TinyEXR: Fix leak in ParseEXRVersionFromFile() | @@ -13289,6 +13289,7 @@ int ParseEXRVersionFromFile(EXRVersion *version, const char *filename) {
fseek(fp, 0, SEEK_SET);
if (file_size < tinyexr::kEXRVersionSize) {
+ fclose(fp);
return TINYEXR_ERROR_INVALID_FILE;
}
|
Fixed renaming issue with apache-mynewt-core. | @@ -558,7 +558,7 @@ log_fcb_walk_sector(struct log *log, log_walk_func_t walk_func,
* last entry), add a bookmark pointing to this walk's start location.
*/
if (log_offset->lo_ts >= 0) {
- fcb_log_add_bmark(fcb_log, &loc, log_offset->lo_index);
+ log_fcb_add_bmark(fcb_log, &loc, log_offset->lo_index);
}
#endif
do {
|
Tweak attribute list to improve test coverage | @@ -5082,7 +5082,10 @@ START_TEST(test_alloc_realloc_many_attributes)
" l='12'"
" m='13'"
" n='14'"
- " p='15'>"
+ " p='15'"
+ " q='16'"
+ " r='17'"
+ " s='18'>"
"</doc>";
int i;
#define MAX_REALLOC_COUNT 10
|
Lost fixes to nodemcu-partition.py | @@ -126,7 +126,7 @@ def load_PT(data, args):
"""
PTrec,recs = unpack_RCR(data)
- flash_size = fs.args if args.fs is not None else DEFAULT_FLASH_SIZE
+ flash_size = args.fs if args.fs is not None else DEFAULT_FLASH_SIZE
# The partition table format is a set of 3*uint32 fields (type, addr, size),
# with the optional last... |
Enable fp-contract=fast for all NO_INVARIANCE builds | @@ -167,6 +167,10 @@ macro(astcenc_set_properties NAME)
target_compile_definitions(${NAME}
PRIVATE
ASTCENC_NO_INVARIANCE=1)
+
+ target_compile_options(${NAME}
+ PRIVATE
+ $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-ffp-contract=fast>)
endif()
if(${CLI})
@@ -273,8 +277,7 @@ macro(astcenc_set_properties NAME)
if(${NO_INVARIANCE})
... |
config_format: add new optional head for linked list | @@ -102,6 +102,10 @@ struct flb_cf {
/* set the last error found */
char *error_str;
+
+
+ /* a list head entry in case the caller want's to link contexts */
+ struct mk_list _head;
};
|
Fix for when building against LibreSSL | @@ -638,7 +638,7 @@ static EVP_CIPHER * aes_256_ctr_cipher = NULL;
void _libssh2_openssl_crypto_init(void)
{
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBSSH2_LIBRESSL))
#ifndef OPENSSL_NO_ENGINE
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();
|
Reduce namespace length further | @@ -203,7 +203,7 @@ extern "C" {
#define MAX_NUM_HASH_ARRAY 2000
#define GRIB_NAMESPACE 10
-#define MAX_NAMESPACE_LEN 128
+#define MAX_NAMESPACE_LEN 64
#define GRIB_MY_BUFFER 0
#define GRIB_USER_BUFFER 1
|
sds: add new flb_sds_casecmp() api | @@ -87,6 +87,15 @@ static inline int flb_sds_cmp(flb_sds_t s, const char *str, int len)
return strncmp(s, str, len);
}
+static inline int flb_sds_casecmp(flb_sds_t s, const char *str, int len)
+{
+ if (flb_sds_len(s) != len) {
+ return -1;
+ }
+
+ return strncasecmp(s, str, len);
+}
+
flb_sds_t flb_sds_create(const cha... |
Fix type of img file in guide | The following procedure describes how to register mobile apps under your account settings. While the number of mobile apps is unlimited, application quota consumption rules are enforced based on your account plan. [Contact us](mailto:sales@carto.com) if you have questions about your mobile account options.
1. Access yo... |
adding records syntax to EBNF | @@ -140,15 +140,21 @@ have the same name. The body is a sequence of statements.
Here is the complete syntax of Titan in extended BNF. As usual in extended BNF, {A} means 0 or more As, and \[A\] means an optional A.
- program ::= {tlfunc | tlvar}
+ program ::= {tlfunc | tlvar | tlrecord}
tlfunc ::= [local] function Name... |
gtkui protocol combo (change): set default_protocol
menu Remote -> Open Location does not attempt a connection
using the selected protocol.. if you select another protocol
in the toolbar protocol combo
this commit fixes the issue | @@ -40,7 +40,8 @@ pthread_mutex_t log_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_t main_thread_id;
GList * viewedit_processes = NULL;
-gboolean on_key_press_combo_toolbar(GtkWidget *widget, GdkEventKey *event, gpointer data);
+static gboolean on_key_press_combo_toolbar(GtkWidget *widget, GdkEventKey *event, gpointer da... |
Include complex rather than complex.h in C++ contexts
to avoid name clashes e.g. with boost headers that use I as a generic placeholder.
Fixes as suggested by aprokop in that issue ticket. | @@ -86,7 +86,11 @@ lapack_complex_float lapack_make_complex_float( float re, float im );
/* Complex type (double precision) */
#ifndef lapack_complex_double
+#ifndef __cplusplus
#include <complex.h>
+#else
+#include <complex>
+#endif
#define lapack_complex_double double _Complex
#endif
|
Conan build-time optimization. | @@ -27,6 +27,13 @@ jobs:
CC: ${{ matrix.compiler[0] }}
CXX: ${{ matrix.compiler[1] }}
run: |
+ # build profile
+ conan profile new release --detect
+ conan profile update settings.build_type=Release release
+ #Note no backwards compatiblity for gcc5 needed, setting libcxx to c++11.
+ conan profile update settings.compi... |
stm32l4/timer: Improved getting timer value
Previous method always did two addtional reads on timer fetch fail
JIRA: | @@ -60,13 +60,16 @@ static u32 timer_getCnt(void)
{
u32 cnt[2];
- do {
/* From documentation: "It should be noted that for a reliable LPTIM_CNT
* register read access, two consecutive read accesses must be performed and compared.
* A read access can be considered reliable when the
* values of the two consecutive read a... |
hosts: fixes in README.md | -- infos = Information about HOSTS plugin is in keys below
+- infos = Information about hosts plugin is in keys below
- infos/author = Markus Raab <elektra@libelektra.org>
- infos/licence = BSD
- infos/provides = storage/hosts
@@ -18,34 +18,30 @@ with hostnames, one line per IP address. The format is described in `host... |
Add comment to HTML test file. | <!DOCTYPE html>
<html lang="en">
<head>
+ <!-- This file is used for prototyping and testing CSS and HTML changes -->
<title>Test Page for PAPPL Stylesheet</title>
<link rel="shortcut icon" href="favicon.png" type="image/png">
<link rel="stylesheet" href="style.css">
|
run_tests.pl: Improve diagnostics on the use of HARNESS_JOBS | @@ -47,6 +47,7 @@ my %tapargs =
);
$tapargs{jobs} = $jobs if $jobs > 1;
+print "Using HARNESS_JOBS=$jobs\n" if $jobs > 1;
# Additional OpenSSL special TAP arguments. Because we can't pass them via
# TAP::Harness->new(), they will be accessed directly, see the
@@ -57,7 +58,7 @@ $openssl_args{'failure_verbosity'} = $ENV{... |
Fix batching edge case; | @@ -524,6 +524,13 @@ void lovrGraphicsBatch(BatchRequest* req) {
*(req->indices) = lovrGraphicsMapBuffer(STREAM_INDEX, req->indexCount);
*(req->baseVertex) = state.cursors[STREAM_VERTEX];
}
+
+ // The buffer mapping here could have triggered a flush, so if we were hoping to batch with
+ // something but the batch count... |
matekf411rx: readd brushed. | "defines": {
"BRUSHLESS_TARGET": ""
}
+ },
+ {
+ "name": "brushed",
+ "defines": {
+ "BRUSHED_TARGET": ""
+ }
}
]
},
|
Added all dipdap boards in BOARD_ID_SUPPORTING_PAGE_ERASE for tests | @@ -233,6 +233,11 @@ BOARD_ID_SUPPORTING_PAGE_ERASE = set([
0x0311, # K66F
0x1101, # Nordic-nRF52-DK
0x1102, # Nordic-nRF52840-DK
+ 0x3104, # dipdap_sdt52832b
+ 0x3108, # dipdap_sdt32429b
+ 0x3110, # dipdap_sdt32439b
+ 0x3105, # dipdap_sdt64b
+ 0x3103, # dipdap_sdt51822b
0x5500, # GR-PEACH
0x5501, # GR-LYCHEE
])
|
mavlink_opticalflow: add green flashing LED | @@ -17,6 +17,19 @@ MAV_OPTICAL_FLOW_confidence_threshold = 0.1 # Below 0.1 or so (YMMV) and the re
##############################################################################
+# LED control
+led = pyb.LED(2) # Red LED = 1, Green LED = 2, Blue LED = 3, IR LEDs = 4.
+led_state = 0
+
+def update_led():
+ global led_sta... |
Always add DYLD_LIBRARY_PATH and LD_LIBRARY_PATH into env. | @@ -225,11 +225,8 @@ class Platform(object):
return vs
@property
- def library_path_variable(self):
- if self.is_linux:
- return 'LD_LIBRARY_PATH'
- if self.is_macos:
- return 'DYLD_LIBRARY_PATH'
+ def library_path_variables(self):
+ return ['LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH']
def find_in_dict(self, dict_, default=... |
groups: sidebar, additional check for safety
When accepting an invite, the sidebar would crash the application
because we were accessing 'metadata' of undefined -- accessing
too many nested property levels without enough safety.
This commit just adds a check for the intermediate property. | @@ -62,6 +62,7 @@ export class GroupSidebar extends Component {
let groupChannel = `${path}/contacts${path}`
if (
props.associations[path] &&
+ props.associations[path][groupChannel] &&
props.associations[path][groupChannel].metadata
) {
name =
|
keyset: undo changes | @@ -2554,26 +2554,16 @@ int ksClose (KeySet * ks)
Key * k;
ksRewind (ks);
- int keysNotFreed = 0;
while ((k = ksNext (ks)) != 0)
{
- int refs = keyDecRef (k);
-
- if (refs > 0)
- {
- keysNotFreed++;
- }
-
+ keyDecRef (k);
keyDel (k);
}
- printf ("ksClose did NOT free %d keys\n", keysNotFreed);
-
if (ks->array && !test_... |
Allow any subpackage of plgo project to use contribs | ALLOW market/sre/tools/config-primer/src/internal/blogic -> contrib/go/patched/hugo
# CONTRIB-1581. responsible: grihabor@, g:strm-admin
-ALLOW strm/plgo/pkg/cdn -> contrib/go/patched/hashring
+ALLOW strm/plgo -> contrib/go/patched/hashring
# STRM-1124. responsible: grihabor@, g:strm-admin
-ALLOW strm/plgo/pkg/playlist... |
Check Uncrustify returncode in code_style.py | @@ -106,8 +106,12 @@ def check_style_is_correct(src_file_list: List[str]) -> bool:
style_correct = True
for src_file in src_file_list:
uncrustify_cmd = [UNCRUSTIFY_EXE] + UNCRUSTIFY_ARGS + [src_file]
- subprocess.run(uncrustify_cmd, stdout=subprocess.PIPE, \
+ result = subprocess.run(uncrustify_cmd, stdout=subprocess.P... |
Add st official checksum for binary file | @@ -1380,6 +1380,16 @@ static void md5_calculate(mapped_file_t *mf, const char *path) {
printf("\n");
}
+static void stlink_checksum(mapped_file_t *mp, const char* path) {
+ /* checksum that backward compatible with official ST tools */
+ uint32_t sum = 0;
+ uint8_t *mp_byte = (uint8_t *)mp->base;
+ for (size_t i = 0; ... |
xfconf: Add file workaround | #include <kdbhelper.h>
#include <kdblogger.h>
+#include <libgen.h>
#include <xfconf/xfconf.h>
int elektraXfconfOpen (Plugin * handle ELEKTRA_UNUSED, Key * errorKey ELEKTRA_UNUSED)
{
+ ELEKTRA_LOG ("try to initialize xfconf\n");
GError * err = NULL;
if (xfconf_init (&err))
{
+ ELEKTRA_LOG_DEBUG ("succeed initielize xfco... |
Change to use better error message for >1 file arg | @@ -29,6 +29,9 @@ int main(int argc, char** argv) {
if (optind == argc - 1) {
input_file = argv[optind];
+ } else if (optind < argc - 1) {
+ fprintf(stderr, "Expected only 1 file argument");
+ return 1;
}
if (input_file == NULL) {
|
Fix Pass:translate; | @@ -135,8 +135,8 @@ static int l_lovrPassOrigin(lua_State* L) {
static int l_lovrPassTranslate(lua_State* L) {
float translation[4];
- Pass* pass = luax_checktype(L, 2, Pass);
- luax_readvec3(L, 1, translation, NULL);
+ Pass* pass = luax_checktype(L, 1, Pass);
+ luax_readvec3(L, 2, translation, NULL);
lovrPassTranslate... |
Improve USB device open log
For consistency with "List USB devices", log "Open USB device". | @@ -195,7 +195,7 @@ sc_usb_connect(struct sc_usb *usb, libusb_device *device,
const struct sc_usb_callbacks *cbs, void *cbs_userdata) {
int result = libusb_open(device, &usb->handle);
if (result < 0) {
- LOGE("Open device: libusb error: %s", libusb_strerror(result));
+ LOGE("Open USB device: libusb error: %s", libusb_s... |
Remove inject error from UEFI spec Clarify FW Update will continue on error | @@ -113,19 +113,19 @@ Load FW on DIMM (DimmID): (Valid|Invalid|Downgrade) [(with
confirmation or the force option)]
If the firmware is being downgraded and the force option is not provided, the user will
-be prompted to confirm the downgrade for each DCPMM.
-
+be prompted to confirm the downgrade for each DCPMM. Otherw... |
reclaim memory on restart | @@ -1235,6 +1235,12 @@ u3_sist_boot(void)
}
if ( c3n == u3_Host.ops_u.nuu ) {
+ // reclaim memory from persistent caches
+ //
+ u3m_reclaim();
+
+ // restore from event log, replaying if necessary
+ //
_sist_rest();
if ( c3y == u3A->fak ) {
|
fix module objectfile handling | @@ -79,7 +79,7 @@ function _add_objectfile_to_link_arguments(target, objectfile)
if table.contains(cache, objectfile) then
return
end
- table.insert(cache, path.translate(objectfile))
+ table.insert(cache, objectfile)
common.localcache():set(cachekey, cache)
common.localcache():save(cachekey)
end
@@ -519,7 +519,7 @@ fu... |
Add gcc10/arm64 DYNAMIC_ARCH build | @@ -190,3 +190,25 @@ steps:
- make -C ctest $COMMON_FLAGS
- make -C utest $COMMON_FLAGS
- make -C cpp_thread_test dgemm_tester
+---
+kind: pipeline
+name: arm64_gcc10
+
+platform:
+ os: linux
+ arch: arm64
+
+steps:
+- name: Build and Test
+ image: ubuntu:20.04
+ environment:
+ CC: gcc-10
+ COMMON_FLAGS: 'TARGET=ARMV8 ... |
Avoid invalid read of linked list when closing a client inside a foreach. | @@ -2509,20 +2509,17 @@ clear_fifo_packet (WSPipeIn * pipein) {
/* Broadcast to all connected clients the given message. */
static int
-ws_broadcast_fifo (void *value, void *user_data) {
- WSClient *client = value;
- WSServer *server = user_data;
+ws_broadcast_fifo (WSClient * client, WSServer * server) {
WSPacket *pac... |
Move from jcenter() to mavenCentral()
Refs <https://developer.android.com/studio/build/jcenter-migration>
Refs <https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/> | @@ -4,7 +4,7 @@ buildscript {
repositories {
google()
- jcenter()
+ mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
@@ -17,7 +17,7 @@ buildscript {
allprojects {
repositories {
google()
- jcenter()
+ mavenCentral()
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecat... |
iter/thresh.h: change bool to _Bool | struct operator_p_s;
extern const struct operator_p_s* prox_thresh_create(unsigned int D, const long dim[__VLA(D)], const float lambda, const unsigned long flags, _Bool gpu);
-extern const struct operator_p_s* prox_niht_thresh_create(unsigned int D, const long dim[D], const unsigned int k, const unsigned long flags, bo... |
Undo build.yaml changles | @@ -16,6 +16,10 @@ jobs:
- kyria_right
- lily58_left
- lily58_right
+<<<<<<< HEAD
+
+=======
+>>>>>>> parent of c3164f4... Updated build.yaml
include:
- board: proton_c
shield: clueboard_california
|
Point to correct path of riscv-tools directory | @@ -26,7 +26,7 @@ the following steps are necessary.
export RISCV=/path/to/install/dir
export PATH=$RISCV/bin:$PATH
- cd riscv-tools
+ cd rocket-chip/riscv-tools
./build.sh
### Compiling and running the Verilator simulation
|
ikev2: use remote proposals when installing tunnel
Type: fix | @@ -1723,7 +1723,7 @@ ikev2_create_tunnel_interface (vlib_main_t * vm,
{
ip46_address_set_ip4 (&a.local_ip, &sa->iaddr);
ip46_address_set_ip4 (&a.remote_ip, &sa->raddr);
- proposals = child->i_proposals;
+ proposals = child->r_proposals;
a.local_spi = child->r_proposals[0].spi;
a.remote_spi = child->i_proposals[0].spi;... |
test: add platone test case test_001CreateWallet_0006CreateOneTimeWalletFailureShortSize
fix the issue aitos-io#1176
teambition task id: | @@ -199,6 +199,24 @@ START_TEST(test_001CreateWallet_0005CreateLoadWalletFailureNoExist)
}
END_TEST
+START_TEST(test_001CreateWallet_0006CreateOneTimeWalletFailureShortSize)
+{
+ BSINT32 rtnVal;
+ BoatPlatoneWalletConfig wallet = get_platone_wallet_settings();
+ extern BoatIotSdkContext g_boat_iot_sdk_context;
+
+ /* 1... |
linux-raspberrypi: Replace /lib with ${nonarch_base_libdir}
Use standard /lib variable name and avoid
QA errors when usermerge DISTRO_FEATURE is enabled. | @@ -162,7 +162,7 @@ do_compile_append_raspberrypi3-64() {
}
do_install_prepend() {
- install -d ${D}/lib/firmware
+ install -d ${D}${nonarch_base_libdir}/firmware
}
do_deploy_append() {
|
BUMP pymongocrypt 1.1.1 | # See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = '1.1.1.dev0'
+__version__ = '1.1.1'
_MIN_LIBMONGOCRYPT_VERSION = '1.2.0'
|
u3: optimizes +stir jet, reducing incremental allocations in fold | u3_noun tub)
{
// lef: list of successful [fel] parse results
- // wag: initial accumulator
+ // wag: initial accumulator (deconstructed)
//
- u3_noun wag, lef = u3_nul;
+ u3_noun lef = u3_nul;
+ u3_noun p_wag, puq_wag, quq_wag;
{
u3_noun vex, p_vex, q_vex;
u3x_cell(vex, &p_vex, &q_vex);
}
- wag = u3nq(u3k(p_vex), u3_n... |
Badge bugfix | @@ -88,6 +88,7 @@ def draw_badge():
# Replace with drawing an image
display.pen(15)
+ display.thickness(1)
display.rectangle(WIDTH - IMAGE_WIDTH, 0, IMAGE_WIDTH, HEIGHT)
# Draw a border around the image
|
Update usage docs for client authentication | @@ -314,7 +314,7 @@ supported status request type is OCSP, **S2N_STATUS_REQUEST_OCSP**.
```c
-typedef enum { S2N_CERT_AUTH_NONE, S2N_CERT_AUTH_REQUIRED } s2n_cert_auth_type;
+typedef enum { S2N_CERT_AUTH_NONE, S2N_CERT_AUTH_REQUIRED, S2N_CERT_AUTH_OPTIONAL } s2n_cert_auth_type;
```
**s2n_cert_auth_type** is used to dec... |
Remove some logically dead code
Found by coverity. This is an artifact left over from the original
decaf import which generated the source code for different curves. For
curve 448 this is dead. | @@ -253,7 +253,6 @@ c448_error_t c448_ed448_verify(
curve448_point_decode_like_eddsa_and_mul_by_ratio(pk_point, pubkey);
curve448_scalar_t challenge_scalar;
curve448_scalar_t response_scalar;
- unsigned int c;
if (C448_SUCCESS != error)
return error;
@@ -291,9 +290,6 @@ c448_error_t c448_ed448_verify(
&signature[EDDSA_... |
debian changelog for v0.10.0 tag | +bcc (0.10.0-1) unstable; urgency=low
+
+ * Support for kernel up to 5.1
+ * corresponding libbpf submodule release is v0.0.3
+ * support for reading kernel headers from /proc
+ * libbpf.{a,so} renamed to libcc_bpf.{a,so}
+ * new common options for some tools
+ * new tool: drsnoop
+ * s390 USDT support
+
+ -- Brenden B... |
Rename SceJsonError to SceJsonErrorCode
Necessary change to conform to the rest of the SDK. | /**
* Enumerator of different errors in this library.
*/
-typedef enum SceJsonError
+typedef enum SceJsonErrorCode
{
/**
* The module has not been initialised.
@@ -42,7 +42,7 @@ typedef enum SceJsonError
* Invalid character in the parsed data.
*/
SCE_JSON_PARSER_ERROR_INVALID_TOKEN = 0x80920101,
-} SceJsonError;
+} Sce... |
Added a number of explicit casts to avoid compiler warnings | @@ -467,9 +467,9 @@ int http_SendMessage(SOCKINFO *info, int *TimeOut, const char *fmt, ...)
if (Instr->ReadSendSize >= 0)
amount_to_be_read = Instr->ReadSendSize;
else
- amount_to_be_read = Data_Buf_Size;
- if (amount_to_be_read < WEB_SERVER_BUF_SIZE)
- Data_Buf_Size = amount_to_be_read;
+ amount_to_be_read = (off_t)D... |
netutils/cjson: fix unpackage error when local gerrit does not exist | @@ -55,6 +55,7 @@ $(CJSON_TARBALL):
$(CJSON_UNPACKNAME): $(CJSON_TARBALL)
@echo "Unpacking: $(CJSON_TARBALL) -> $(CJSON_UNPACKNAME)"
$(Q) $(UNPACK) $(CJSON_TARBALL)
+ $(Q) mv cJSON-$(CJSON_VERSION) $(CJSON_UNPACKNAME)
$(Q) touch $(CJSON_UNPACKNAME)
endif
|
feat(venachain):just for local debug | #CC := $(CURDIR)/../../../build/usr/bin/arm-linux-gcc
#AR := $(CURDIR)/../../../build/usr/bin/arm-linux-ar
+CC := gcc
+AR := ar
+
# Commands
BOAT_RM := rm -rf
BOAT_MKDIR := mkdir
|
chat: removed console.log | @@ -188,7 +188,6 @@ export class ChatInput extends Component {
}
render() {
- console.log('hi');
const { props, state } = this;
const color = props.ownerContact
|
Fix os.outputof for lua 5.3.4 | local pipe = io.popen(cmd .. " 2>&1")
local result = pipe:read('*a')
- local b, exitcode = pipe:close()
- if not b then
- exitcode = -1
- end
-
+ local success, what, code = pipe:close()
+ if success then
-- chomp trailing newlines
if result then
result = string.gsub(result, "[\r\n]+$", "")
end
- return result, exitcod... |
Only output metric watch types if enabled. | @@ -2279,6 +2279,7 @@ createMetricWatchArrayJson(config_t* cfg)
metric_watch_t category;
for(category = CFG_MTC_FS; category <= CFG_MTC_STATSD; ++category) {
cJSON* item;
+ if (!cfgMtcWatchEnable(cfg, category)) continue;
if (!(item = createMetricWatchObjectJson(cfg, mtcWatchTypeMap[category].str))) goto err;
cJSON_Add... |
Removed unused LOG_DEBUG from parser.c. | @@ -2489,8 +2489,6 @@ process_log (GLogItem * logitem) {
if (logitem->ignorelevel != IGNORE_LEVEL_REQ) {
count_valid (logitem->numdate);
}
- LOG_DEBUG (("\n\n"));
-
}
/* Process a line from the log and store it accordingly taking into
|
Updated Readme Appveyor Badge [default dev branch] | @@ -2,7 +2,7 @@ EPANET {#epanet-readme}
======
## Build Status
-[](https://ci.appveyor.com/project/OpenWaterAnalytics/epanet/branch/dev)
+[ to see if your ap or the client is vulnerable
-by using common wordlists. Convert the cap to hccapx and/or to WPA*-PMKID-PBKDF2 hashlin... |
DOCS: gpcrondump creates table list when table and schema filters are specified. From 4.3.x | status file for SQL execution errors and displays a warning if an error is found. The
default location of the backup status files are in the
<codeph>db_dumps/<varname>date</varname>/</codeph> directory.</p>
+ <p>If you specify an option that includes or excludes tables or schemas, such as
+ <codeph>-t</codeph>, <codeph... |
interface: fix show_or_clear_hw_interfaces
Type: fix
Fixes: | @@ -77,7 +77,7 @@ show_or_clear_hw_interfaces (vlib_main_t * vm,
int i, verbose = -1, show_bond = 0;
if (!unformat_user (input, unformat_line_input, line_input))
- return 0;
+ goto skip_unformat;
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
@@ -117,6 +117,7 @@ show_or_clear_hw_interfaces (vlib_m... |
Change to debug log for http disconnect in OTA | @@ -1201,7 +1201,7 @@ OTA_Err_t _AwsIotOTA_CleanupData_HTTP( OTA_AgentContext_t * pAgentCtx )
if( IOT_HTTPS_OK != httpsStatus )
{
- IotLogError( "Failed to disconnect from S3 server. Error code: %d.", httpsStatus );
+ IotLogDebug( "Failed to disconnect from S3 server. Error code: %d.", httpsStatus );
}
_httpDownloader.... |
hv: bug fix on synchronizing with APs
Using eax will truncate the high 32bit part of 64bit virtual address.
And the type of sync is unsigned long, so using rbx instead of ebx. | @@ -732,11 +732,11 @@ static void print_hv_banner(void)
static void pcpu_sync_sleep(unsigned long *sync, int mask_bit)
{
- int wake_sync = (1 << mask_bit);
+ uint64_t wake_sync = (1UL << mask_bit);
if (get_monitor_cap()) {
/* Wait for the event to be set using monitor/mwait */
- asm volatile ("1: cmpl %%ebx,(%%eax)\n"
... |
BugID:23881073: sync httpdns bug fix from genie | @@ -59,6 +59,10 @@ static inline void httpdns_resolv_unlock(void)
static inline void httpnds_resolv_lock_init(void)
{
+ if (resolv_lock.initted == PTHREAD_INITIALIZED_OBJ) {
+ return;
+ }
+
pthread_mutex_init(&resolv_lock, NULL);
}
@@ -433,7 +437,7 @@ struct addrinfo* httpdns_build_addrinfo(dns_cache_t *cache, int port... |
Update default WAL segment size comment. | @@ -22,7 +22,8 @@ Page size can only be changed at compile time and is not known to be well-tested
/***********************************************************************************************************************************
Define default wal segment size
-Page size can only be changed at compile time and and i... |
DEV: Refactor APS indication | @@ -974,8 +974,11 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat
{
ResourceItem *item = r->itemForIndex(i);
DBG_Assert(item);
- if (item && item->ddfItemHandle() != DeviceDescription::Item::InvalidItemHandle)
+ if (!item)
{
+ continue;
+ }
+
ParseFunction_t parseFunction = item->par... |
Fix LEDs for configured modifier states | @@ -401,6 +401,14 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
}
if (locked_mods) {
wlr_keyboard_notify_modifiers(wlr_device->keyboard, 0, 0, locked_mods, 0);
+ uint32_t leds = 0;
+ for (uint32_t i = 0; i < WLR_LED_COUNT; ++i) {
+ if (xkb_state_led_index_is_active(wlr_device->keyboard->xkb_state,
+... |
Add a doxygen ci check | @@ -48,6 +48,11 @@ jobs:
echo "Excerpt of the diff follows"
git diff | head -n 20
fi
+ - run: >
+ if doxygen Doxyfile | grep 'warning: '; then
+ echo "Doxygen warning (see above) -- misformatted docs?"
+ exit 1
+ fi
- run: >
cd doc &&
pip3 install -r source/requirements.txt &&
|
rpz-triggers, spelling fix in comment. | @@ -1954,7 +1954,7 @@ rpz_apply_nsip_trigger(struct module_qstate* ms, struct rpz* r,
break;
case RPZ_TCP_ONLY_ACTION:
/* basically a passthru here but the tcp-only will be
- * honored before the query gets send */
+ * honored before the query gets sent. */
ms->respip_action_info->action = respip_truncate;
ret = NULL;
... |
build: exclude target dependencies | @@ -181,7 +181,7 @@ option(MSGPACK_ENABLE_CXX OFF)
option(MSGPACK_ENABLE_SHARED OFF)
option(MSGPACK_BUILD_TESTS OFF)
option(MSGPACK_BUILD_EXAMPLES OFF)
-add_subdirectory(lib/msgpack-c-0b7cabd)
+add_subdirectory(lib/msgpack-c-0b7cabd EXCLUDE_FROM_ALL)
# Lib: build the core libraries used by Fluent-Bit
FLB_DEFINITION(JSM... |
docs: adjust the list | ### Blockchain Official Websites
+ [Ethereum](https://ethereum.org/)
+ [Ganache: an Ethereum Simulator](https://www.trufflesuite.com/truffle/)
++ [PlatON](https://www.platon.network/)
+ [PlatON Enterprise](https://github.com/PlatONEnterprise/)
-+ [Hyperledger Fabric](https://www.hyperledger.org/use/fabric)
-+ [Hyperled... |
Bump CMake project version to 3.1.0 | @@ -24,7 +24,7 @@ if(MSVC)
add_compile_options("/wd4324") # Disable structure was padded due to alignment specifier
endif()
-project(astcencoder VERSION 3.0.0)
+project(astcencoder VERSION 3.1.0)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
upadted cmake | @@ -7,7 +7,7 @@ python:
addons:
apt:
sources:
- - george-edison55-precise-backports
+ - george-edison55/cmake-3.x
packages:
- fftw3
- fftw3-dev
@@ -16,12 +16,12 @@ addons:
- swig
- python-numpy
- python3-numpy
- - cmake-data
- cmake
install: true
script:
+ - cmake --version
- python setup.py build
- python setup.py tes... |
changes: fix woring that mentions SHA* one shot functions are deprecated | @@ -690,8 +690,8 @@ breaking changes, and mappings for the large list of deprecated functions.
*Paul Dale*
- * The low-level MD2, MD4, MD5, MDC2, RIPEMD160, SHA1, SHA224, SHA256,
- SHA384, SHA512 and Whirlpool digest functions have been deprecated.
+ * The low-level MD2, MD4, MD5, MDC2, RIPEMD160 and Whirlpool digest
+... |
Add PhGetThreadPriorityBoost | @@ -806,6 +806,51 @@ PhSetThreadPagePriority(
);
}
+FORCEINLINE
+NTSTATUS
+PhGetThreadPriorityBoost(
+ _In_ HANDLE ThreadHandle,
+ _Out_ PBOOLEAN PriorityBoost
+ )
+{
+ NTSTATUS status;
+ ULONG priorityBoost;
+
+ status = NtQueryInformationThread(
+ ThreadHandle,
+ ThreadPriorityBoost,
+ &priorityBoost,
+ sizeof(ULONG)... |
add function to remap kernel image to another address | @@ -212,6 +212,22 @@ static void map_heap_pages(page_directory_t* dir) {
}
}
+static void vmm_remap_kernel(page_directory_t* dir, uint32_t dest_virt_addr) {
+ boot_info_t* info = boot_info_get();
+ uint32_t kernel_base = info->kernel_image_start;
+ uint32_t kernel_size = info->kernel_image_size;
+
+ for (int i = 0; i <... |
Update snapcraft builds. | name: ipp
-base: core18
+base: core20
version: 1.0b1
summary: IPP Sample Implementation
description: |
@@ -11,42 +11,42 @@ grade: stable
confinement: strict
icon: server/printer.png
+architectures:
+ - build-on: [ arm64, armhf, amd64 ]
+ run-on: [ arm64, armhf, amd64 ]
+
apps:
- server:
- command: sbin/server
+ ipp3dpr... |
fix: fix test_002InitWallet_0003SetChainIdSuccess
issue | @@ -628,6 +628,7 @@ START_TEST(test_002InitWallet_0003SetChainIdSuccess)
BoatEthWallet *wallet_ptr = BoatMalloc(sizeof(BoatEthWallet));
BoatEthWalletConfig wallet = get_ethereum_wallet_settings();
+ ck_assert_ptr_ne(wallet_ptr, NULL);
/* 1. execute unit test */
rtnVal = BoatEthWalletSetChainId(wallet_ptr, wallet.chain_... |
Detect `main.py` as entrypoint for modules | @@ -31,6 +31,8 @@ def main():
return
module_path = spec.origin
+ __main__path = os.path.dirname(module_path)+"/main.py"
+ if not os.path.isfile(__main__path):
__main__path = os.path.dirname(module_path)+"/__main__.py"
if os.path.isfile(__main__path) and os.path.basename(module_path) == "__init__.py":
module_path = __ma... |
ports/stm32: Fix HAL MSP deinit functions. | @@ -462,6 +462,16 @@ void HAL_DCMI_MspDeInit(DCMI_HandleTypeDef* hdcmi)
for (int i=0; i<NUM_DCMI_PINS; i++) {
HAL_GPIO_DeInit(dcmi_pins[i].port, dcmi_pins[i].pin);
}
+
+ #if defined(DCMI_RESET_PIN)
+ HAL_GPIO_DeInit(DCMI_RESET_PORT, DCMI_RESET_PIN);
+ #endif
+ #if defined(DCMI_FSYNC_PIN)
+ HAL_GPIO_DeInit(DCMI_FSYNC_PO... |
Update Visual Studio project file | <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>libxml2.lib;libpng16.lib;jpeg.lib;freetype271.lib;zlib.lib;kernel32.lib;user32.lib;gdi32.lib;</AdditionalDependencies>
<AdditionalLibraryDirectories>$(SolutionDir)..\..\vendor\lib</AdditionalLibraryDirectories>
- <IgnoreSpecificDefaultLib... |
Avoid integer overflow when starting HB timer | @@ -2383,14 +2383,19 @@ sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb,
}
rndval = sctp_select_initial_TSN(&inp->sctp_ep);
jitter = rndval % to_ticks;
- if (jitter >= (to_ticks >> 1)) {
- to_ticks = to_ticks + (jitter - (to_ticks >> 1));
+ to_ticks >>= 1;
+ if (jitter < (UINT32_MAX - to_tick... |
adc: fix common calls | @@ -47,10 +47,12 @@ void adc_init(void) {
LL_ADC_CommonInitTypeDef adc_common_init;
adc_common_init.CommonClock = LL_ADC_CLOCK_SYNC_PCLK_DIV2;
- LL_ADC_CommonInit(ADC1, &adc_common_init);
+ LL_ADC_CommonInit(ADC1_COMMON, &adc_common_init);
LL_ADC_REG_InitTypeDef adc_reg_init;
adc_reg_init.TriggerSource = LL_ADC_REG_TRI... |
chat-fe: correct light mode autocomplete styling | @@ -10,8 +10,12 @@ import { uuid, uxToHex } from '/lib/util';
const DEFAULT_INPUT_HEIGHT = 28;
+
function getAdvance(a, b) {
let res = '';
+ if(!a) {
+ return b;
+ }
for (let i = 0; i < Math.min(a.length, b.length); i++) {
if (a[i] !== b[i]) {
return res;
@@ -29,26 +33,23 @@ function ChatInputSuggestions({ suggestions,... |
Rename args --> opts
To avoid confusion with the similarly-named "arg" | @@ -19,7 +19,7 @@ local pallenec = {}
local compiler_name = arg[0]
-- Command-line options
-local args
+local opts
do
local p = argparse("pallenec", "Pallene compiler")
p:argument("source_file", "File to compile")
@@ -39,20 +39,20 @@ do
p:option("-o --output", "Output file path")
- args = p:parse()
+ opts = p:parse()
e... |
Fix pyyaml windows build
Local fork at gpMgmt/bin/ext/yaml was removed by Unpack
it from gpMgmt/bin/pythonSrc/ext just like pygresql. | @@ -11,7 +11,8 @@ type nul > %GPDB_INSTALL_PATH%\bin\gppylib\__init__.py
copy ..\..\..\..\..\gpMgmt\bin\gppylib\gpversion.py %GPDB_INSTALL_PATH%\bin\gppylib\
perl -pi.bak -e "s,\$Revision\$,%VERSION%," %GPDB_INSTALL_PATH%\bin\gpload.py
copy ..\..\..\..\..\gpMgmt\bin\gpload.bat %GPDB_INSTALL_PATH%\bin
-copy ..\..\..\..\... |
fix(draw): fix set_px_cb memory write overflow crash. | @@ -420,8 +420,6 @@ static void map_set_px(lv_color_t * dest_buf, lv_coord_t dest_stride, const lv_a
int32_t src_stride = lv_area_get_width(src_area);
- dest_buf += dest_stride * clip_area->y1 + clip_area->x1;
-
src_buf += src_stride * (clip_area->y1 - src_area->y1);
src_buf += (clip_area->x1 - src_area->x1);
@@ -430,7... |
fix(demo): fix Wformat warning | @@ -902,7 +902,7 @@ void lv_demo_benchmark_run_scene(int_fast16_t scene_no)
scene_act = scene_no >> 1;
if(scenes[scene_act].create_cb) {
- lv_label_set_text_fmt(title, "%"LV_PRId32"/%d: %s%s", scene_act * 2 + (opa_mode ? 1 : 0), (dimof(scenes) * 2) - 2,
+ lv_label_set_text_fmt(title, "%"LV_PRId32"/%d: %s%s", scene_act ... |
CMSIS-DSP: Corrected wrong table in fft.cmake | @@ -224,7 +224,7 @@ if (CONFIGTABLE AND RFFT_F32_32)
endif()
if (CONFIGTABLE AND RFFT_F32_64)
- target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
+ target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
# For cfft_radix4_init
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV... |
external/dhcpd_lwip: Fix pthread_create return check in dhcps | @@ -343,7 +343,7 @@ int dhcp_server_start(char *intf, dhcp_sta_joined_cb dhcp_join_cb)
return ERROR;
}
ret = pthread_create(&g_dhcpd_tid, &attr, _dhcpd_join_handler, (void *)data);
- if (ret < 0) {
+ if (ret != OK) {
free(data->intf);
free(data);
ndbg("dhcps create dhcp handler fail(%d) errno %d\n", ret, errno);
|
external/grpc: fix grpc thread name
fix grpc thread naming issue | @@ -117,7 +117,7 @@ int gpr_thd_new(gpr_thd_id* t, const char* thd_name,
free(a);
dec_thd_count();
} else {
- pthread_setname_np(thread_started, a->name);
+ pthread_setname_np(p, a->name);
}
*t = (gpr_thd_id)p;
return thread_started;
|
Fix TLSv1.3 alert handling
In TLSv1.3 we should ignore the severity level of an alert according to
the spec. | @@ -1497,6 +1497,7 @@ int ssl3_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
if (SSL3_RECORD_get_type(rr) == SSL3_RT_ALERT) {
unsigned int alert_level, alert_descr;
+ int tls13_user_cancelled;
unsigned char *alert_bytes = SSL3_RECORD_get_data(rr)
+ SSL3_RECORD_get_off(rr);
PACKET alert;
@@ -1524,7 +... |
grib_index_release/grib_index_delete does not close the file | @@ -280,7 +280,7 @@ const char* grib_get_package_name()
return "ecCodes";
}
-#define DEFAULT_FILE_POOL_MAX_OPENED_FILES 200
+#define DEFAULT_FILE_POOL_MAX_OPENED_FILES 0
static grib_context default_grib_context = {
0, /* inited */
@@ -538,13 +538,10 @@ grib_context* grib_context_get_default()
default_grib_context.grib_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.