message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Update Configurations-and-Platforms.md | @@ -76,7 +76,7 @@ filter { "platforms:Xbox360" }
Unlike build configurations, platforms are completely optional. If you don't need them, just don't call the platforms function at all and the toolset's default behavior will be used.
-Platforms are just another form of build configuration. You can use all of the same set... |
Added wget to tools/configenv.sh as a base package. | @@ -24,7 +24,7 @@ PROGNAME=$(basename $0)
sub_apt(){
cd $ROOT_DIR
echo "configure apt for C build"
- $SUDO_CMD apt-get -y install build-essential git cmake
+ $SUDO_CMD apt-get -y install build-essential git cmake wget
}
# Swig
|
added support for non-standard Multi-ESSID format | @@ -26,6 +26,14 @@ typedef struct cow_head cow_head_t;
/*===========================================================================*/
/* globale Konstante */
+uint8_t zeroessid[] =
+{
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... |
faster hg version
Pull-request for branch users/heretic/hgversion-hot-fix | @@ -143,14 +143,14 @@ def get_svn_scm_data(info):
return scm_data
-def get_hg_info_cmd(arc_root, revision=None, python_cmd=[sys.executable]):
+def get_hg_info_cmd(arc_root, branch=None, python_cmd=[sys.executable]):
ya_path = os.path.join(arc_root, 'ya')
hg_cmd = python_cmd + [ya_path, '-v', '--no-report', 'tool', 'hg'... |
Clean aux_out in PSA version of mbedtls_ct_hmac() | @@ -550,6 +550,7 @@ cleanup:
mbedtls_platform_zeroize( mac_key, MBEDTLS_MD_MAX_BLOCK_SIZE );
mbedtls_platform_zeroize( ikey, MBEDTLS_MD_MAX_BLOCK_SIZE );
mbedtls_platform_zeroize( okey, MBEDTLS_MD_MAX_BLOCK_SIZE );
+ mbedtls_platform_zeroize( aux_out, MBEDTLS_MD_MAX_SIZE );
psa_hash_abort( &operation );
psa_hash_abort(... |
Added Danfoss Ally to update sensor for Pi Heating Demand | @@ -290,7 +290,8 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
case 0x0008: // Pi Heating Demand
{
if (sensor->modelId().startsWith(QLatin1String("SPZB")) || // Eurotronic Spirit
- sensor->modelId() == QLatin1String("TRV001") || // Hive
+ sensor->modelId() == QLatin1String("eTRV010... |
Comment why allocation failure in getContext is believe impossible.
Also add comment tags so lcov can ignore unreachable code | @@ -6113,9 +6113,30 @@ getContext(XML_Parser parser)
len = dtd->defaultPrefix.binding->uriLen;
if (namespaceSeparator)
len--;
- for (i = 0; i < len; i++)
- if (!poolAppendChar(&tempPool, dtd->defaultPrefix.binding->uri[i]))
- return NULL;
+ for (i = 0; i < len; i++) {
+ if (!poolAppendChar(&tempPool, dtd->defaultPrefix... |
Docs - remove 6.x-specific limitation for index with op_class | for more information.</p>
</body>
</topic>
- <topic id="topic_issues">
- <title>Greenplum Database Limitations</title>
- <body>
- <p>The Pivotal Query Optimizer (GPORCA) does not support queries that access an
- index with <codeph>op_class</codeph>, such queries will fall back to the
- Postgres Planner</p>
- </body>
- ... |
Testing: Add test to detect missing version entry in 1.0.table | @@ -18,6 +18,7 @@ if [ ! -d "$ECCODES_DEFINITION_PATH" ]; then
fi
temp=temp.$label.grib2
+sample1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
sample2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
tables_dir="$ECCODES_DEFINITION_PATH/grib2/tables"
@@ -31,4 +32,13 @@ if [ "$latest" != "$highest_num" ]; then
exit 1
fi
+# Also grib1 to grib2 conv... |
android: changing functions | @@ -1144,7 +1144,6 @@ RHO_GLOBAL int close(int fd)
}
-
RHO_GLOBAL ssize_t pread(int fd, void *buf, size_t count, off_t offset)
{
RHO_LOG("pread: BEGIN fd %d: offset: %ld: count: %ld", fd, (long)offset, (long)count);
@@ -1937,6 +1936,7 @@ static int __sclose(void *cookie)
*/
RHO_GLOBAL FILE *fopen(const char *path, cons... |
Fix current data offset to use vlib_buffer_get_current in input/output ACL
vlib_buffer_get_current() should be used for current data offset in ACL.
This is required for output ACL where packets are decoded through a vxlan tunnel rx node. | @@ -197,7 +197,7 @@ l2_in_out_acl_node_fn (vlib_main_t * vm,
if (t0->current_data_flag == CLASSIFY_FLAG_USE_CURR_DATA)
h0 = (void *) vlib_buffer_get_current (b0) + t0->current_data_offset;
else
- h0 = b0->data;
+ h0 = (void *) vlib_buffer_get_current (b0);
vnet_buffer (b0)->l2_classify.hash =
vnet_classify_hash_packet ... |
Updated comment for ALPN, and added link to wiki section. | @@ -493,7 +493,7 @@ preference, with most preferred protocol first, and of length
included in the Client Hello message as the ALPN extension. As an
**S2N_SERVER**, the list is used to negotiate a mutual application protocol
with the client. After the negotiation for the connection has completed, the
-agreed upon protoc... |
Fix bug in fd_check | @@ -378,7 +378,7 @@ int dill_fd_check(int s, int type, int family1, int family2, int listening) {
/* Check whether the socket is in listening mode. */
rc = getsockopt(s, SOL_SOCKET, SO_ACCEPTCONN, &val, &valsz);
if(dill_slow(rc < 0 && errno != ENOPROTOOPT)) return -1;
- if(dill_slow(val != listening)) {errno = EINVAL; ... |
Disable sniff mode during (e)SCO connection. | @@ -229,9 +229,9 @@ tBTA_DM_PM_TYPE_QUALIFIER tBTA_DM_PM_SPEC bta_dm_pm_spec[BTA_DM_NUM_PM_SPEC] = {
{{BTA_DM_PM_NO_PREF, 0}, {BTA_DM_PM_NO_ACTION, 0}}, /* conn close */
{{BTA_DM_PM_NO_ACTION, 0}, {BTA_DM_PM_NO_ACTION, 0}}, /* app open */
{{BTA_DM_PM_NO_ACTION, 0}, {BTA_DM_PM_NO_ACTION, 0}}, /* app close */
- {{BTA_DM_... |
[BSP]stm32f107 fix usart3 | @@ -295,6 +295,7 @@ static void RCC_Configuration(void)
#if defined(RT_USING_UART3)
RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | RCC_APB2Periph_GPIOC, ENABLE);
+ RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3,ENABLE);
GPIO_PinRemapConfig(GPIO_PartialRemap_USART3, ENABLE);
#endif /* RT_USING_UART3 */
}
|
Fixed iphone static library build script. | @@ -11,23 +11,6 @@ def log(string)
open(BUILD_LOG_PATH, 'a'){|f| f.puts string}
end
-def latest_sdk()
- sdks = `xcodebuild -showsdks`.split("\n")
-
- versions = sdks.map do|elt|
- # Match only lines with "iphoneos" in them.
- m = elt.match(/iphoneos(\d\.\d)/)
- (m ? m.captures[0] : "0.0")
- end
-
- return versions.max
... |
test/usb_tcpmv2_td_pd_src3_e32.c: Format with clang-format
BRANCH=none
TEST=none | @@ -20,8 +20,7 @@ static void setup_chunk_msg(int chunk, char *data)
int i;
int base_msg_byte = chunk * PD_MAX_EXTENDED_MSG_CHUNK_LEN;
- *(uint16_t *)data = PD_EXT_HEADER(chunk, 0,
- PD_MAX_EXTENDED_MSG_LEN);
+ *(uint16_t *)data = PD_EXT_HEADER(chunk, 0, PD_MAX_EXTENDED_MSG_LEN);
for (i = 0; i < PD_MAX_EXTENDED_MSG_CHU... |
Update event to use dropdown using patrickmollohan's implementation | "FIELD_FADE_WHITE": "Fade to white",
"FIELD_FADE_BLACK": "Fade to black",
"FIELD_MUSIC_DISABLE_SPEED_CONVERSION": "Disable 50/60 hertz speed conversion",
+ "FIELD_HORIZONTAL": "Horizontal",
+ "FIELD_VERTICAL": "Vertical",
"// 7": "Asset Viewer ---------------------------------------------",
"ASSET_SEARCH": "Search...",... |
generate all random mac_ap with unicast bit 0 and global unique | @@ -4477,14 +4477,14 @@ if(mynicap == 0)
}
}
-myouiap &= 0xffffff;
+myouiap &= 0xfcffff;
mynicap &= 0xffffff;
mac_mybcap[5] = mynicap & 0xff;
mac_mybcap[4] = (mynicap >> 8) & 0xff;
mac_mybcap[3] = (mynicap >> 16) & 0xff;
mac_mybcap[2] = myouiap & 0xff;
mac_mybcap[1] = (myouiap >> 8) & 0xff;
-mac_mybcap[0] = (myouiap >>... |
More fixes for silly misedits | @@ -778,7 +778,10 @@ static int initialized = 0;
void gotoblas_affinity_init(void) {
int cpu, num_avail;
+#ifndef USE_OPENMP
cpu_set_t cpu_mask;
+#endif
+ int i;
if (initialized) return;
@@ -826,7 +829,6 @@ void gotoblas_affinity_init(void) {
cpu_set_t *cpusetp;
int nums;
int ret;
- int i;
#ifdef DEBUG
fprintf(stderr, ... |
and BUFR leak in clone | MEMBERS = grib_vdarray* numericValues
MEMBERS = grib_vsarray* stringValues
MEMBERS = grib_viarray* elementsDescriptorsIndex
+ MEMBERS = char* cname
END_CLASS_DEF
@@ -80,6 +81,7 @@ typedef struct grib_accessor_bufr_data_element {
grib_vdarray* numericValues;
grib_vsarray* stringValues;
grib_viarray* elementsDescriptorsI... |
deep copy in get_params | @@ -1083,7 +1083,11 @@ class CatBoost(_CatBoostBase):
result : dict
Dictionary of {param_key: param_value}.
"""
- return self._get_init_params()
+ params = self._get_init_params()
+ if deep:
+ return deepcopy(params)
+ else:
+ return params
def set_params(self, **params):
"""
|
Add release not for | @@ -10,6 +10,8 @@ Next
- [Fix a potential build issue where cJSON includes may be misconfigured](https://github.com/PJK/libcbor/pull/132)
- Breaking: [Add a limit on the size of the decoding context stack](https://github.com/PJK/libcbor/pull/138) (by [James-ZHANG](https://github.com/James-ZHANG))
- If your usecase requ... |
Set default partition info in partition_gen.sh
If CONFIG_ARTIK053_FLASH_PART_LIST or CONFIG_ARTIK053_FLASH_PART_NAME are unset, they will be set as default value | @@ -31,13 +31,16 @@ OS_DIR_PATH=${PWD}
BUILD_DIR_PATH=${OS_DIR_PATH}/../build
BOARD_DIR_PATH=${BUILD_DIR_PATH}/configs/${BOARD_NAME}
OPENOCD_DIR_PATH=${BOARD_DIR_PATH}/tools/openocd
+BOARD_KCONFIG=${OS_DIR_PATH}/arch/arm/src/${BOARD_NAME}/Kconfig
# FLASH BASE ADDRESS (Can it be made to read dynamically from .config?)
F... |
{AH} update ranges in count_coverage tests | @@ -1870,6 +1870,7 @@ class TestCountCoverage(unittest.TestCase):
bam, chrom, start, stop,
read_callback,
quality_threshold=15):
+ stop = min(stop, bam.get_reference_length(chrom))
l = stop - start
count_a = array.array('L', [0] * l)
count_c = array.array('L', [0] * l)
@@ -1932,7 +1933,7 @@ class TestCountCoverage(unit... |
libhfuzz/fetch: use ASAN to mark the input buffer to be of a specific size | @@ -30,6 +30,24 @@ __attribute__((constructor)) static void init(void) {
}
}
+/*
+ * Instruct ASAN to treat the input buffer to be of a specific size, treating all accesses
+ * beyond that as access violations
+ */
+void fetchAsanHelper(const uint8_t* buf, size_t len) {
+ __attribute__((weak)) extern void __asan_poison... |
No longer sends multiple %tales reports for the same change. | ::
|= {man/knot con/config}
^+ +>
- =+ :- neu=(~(has by stories) man)
- pur=(fall (~(get by stories) man) *story)
- =. +>.$ pa-abet:(~(pa-reform pa man pur) con)
- =. +>.$ (ra-inform %tales (strap man con))
- ?:(neu +>.$ ra-homes)
+ =+ pur=(fall (~(get by stories) man) *story)
+ pa-abet:(~(pa-reform pa man pur) con)
::... |
chat: sidebar switcher retains with on -m
Sidebar switcher was squishing and losing aspect ratio on medium viewport.
It now retains its proper size. | @@ -24,6 +24,9 @@ export class SidebarSwitcher extends Component {
}
height="16"
width="16"
+ style={{
+ maxWidth: 16
+ }}
/>
</a>
</div>
|
libhfuzz: inline _memcmp | @@ -126,7 +126,7 @@ __attribute__((constructor)) void hfuzzInstrumentInit(void) {
pthread_once(&localInitOnce, initializeInstrument);
}
-static int _memcmp(const uint8_t* m1, const uint8_t* m2, size_t n) {
+static inline int _memcmp(const uint8_t* m1, const uint8_t* m2, size_t n) {
for (size_t i = 0; i < n; i++) {
if (... |
Initalize the OSCOAP context just before sending the Join Request. | @@ -74,7 +74,6 @@ void cjoin_init() {
cjoin_vars.timerId = opentimers_create();
idmanager_setJoinKey((uint8_t *) masterSecret);
- cjoin_init_security_context();
cjoin_schedule();
}
@@ -192,6 +191,10 @@ void cjoin_task_cb() {
// cancel the startup timer but do not destroy it as we reuse it for retransmissions
opentimers... |
* Fixed some errors found by PVS studio | ejdb2 (2.0.45) UNRELEASED; urgency=medium
- * Fixed some errors founded by PVS studio
+ * Fixed some errors found by PVS studio
* Added two variants of `jbn_detach` (jbl.h)
* Added non standard JSON patch operation: `add_create` (jbl.h)
* Added `jbl_from_node` (jbl.h)
|
Correct kernel.sem value from 40960 to 4096 | @@ -168,7 +168,7 @@ vm.overcommit_memory = 2 # <b>See <xref href="#topic3/segment_host_memory" forma
vm.overcommit_ratio = 95 # <b>See <xref href="#topic3/segment_host_memory" format="dita">Segment Host Memory</xref></b>
net.ipv4.ip_local_port_range = 10000 65535 # <b>See <xref href="#topic3/port_settings" format="dita... |
zaius: Remove psi_set_external_irq_policy from platform init
This function is specific to how Skiboot's P8 PSIHB driver. For P9 the
PSIHB driver has been reworked completely and this doesn't do anything.
Acked-By: Michael Neuling | @@ -31,7 +31,6 @@ static bool zaius_probe(void)
/* Lot of common early inits here */
astbmc_early_init();
- psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_LINUX);
/* Setup UART for direct use by Linux */
uart_set_console_policy(UART_CONSOLE_OS);
|
Store splash screen settings between application restarts | /* eslint-disable jsx-a11y/label-has-for */
import React, { Component } from "react";
import { ipcRenderer, remote } from "electron";
+import settings from "electron-settings";
import cx from "classnames";
import Path from "path";
import { DotsIcon } from "../library/Icons";
@@ -14,7 +15,7 @@ import "../../lib/helpers/... |
imgtool: Pad file with 0xff
The bootloader assumes that parts of the flash that aren't written
still have 0xff in them. Fix the padding code so that the padding is
done this way. | @@ -126,16 +126,52 @@ func padImage(name string) error {
return errors.New("Image is too large for specified padding")
}
- _, err = f.WriteAt(bootMagic, padTo-trailerSize)
+ // Unwritten data in files is written as zero, but we need it
+ // to be unwritten in flash, so write as all FFs.
+ err = ffPadFile(f, padTo-trail... |
ames: count dropped packets (and print every 1k with -v) | c3_o fak_o; // fake keys
c3_s por_s; // public IPv4 port
c3_c* dns_c; // domain XX multiple/fallback
+ c3_d dop_d; // drop count (since last print)
c3_w imp_w[256]; // imperial IPs
time_t imp_t[256]; // imperial IP timestamps
c3_o imp_o[256]; // imperial print status
@@ -405,11 +406,18 @@ _ames_recv_cb(uv_udp_t* wax_u,... |
add options for e2l | @@ -52,4 +52,4 @@ PYOCD_TARGET =
# flash using rfp-cli
flash: $(BUILD)/$(PROJECT).mot
- rfp-cli -device rx65x -tool e2l -auto $^
+ rfp-cli -device rx65x -tool e2l -if fine -fo id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auto $^
|
WindowExplorer: Add filename for window instance handle | @@ -768,6 +768,17 @@ static VOID WepRefreshWindowGeneralInfo(
WINDOWINFO windowInfo = { sizeof(WINDOWINFO) };
WINDOWPLACEMENT windowPlacement = { sizeof(WINDOWPLACEMENT) };
MONITORINFO monitorInfo = { sizeof(MONITORINFO) };
+ HANDLE processHandle;
+ PPH_STRING fileName = NULL;
+ HMENU menuHandle;
+ PVOID instanceHandle... |
MP RR path scheduler: Don't select a cwin-blocked path when an alternative path is available | @@ -11,6 +11,7 @@ protoop_arg_t schedule_path_rr(picoquic_cnx_t *cnx) {
uint64_t now = picoquic_current_time();
int valid = 0;
uint64_t selected_sent_pkt = 0;
+ int selected_cwin_limited = 0;
char *path_reason = "";
for (int i = 0; i < bpfd->nb_sending_proposed; i++) {
@@ -49,6 +50,8 @@ protoop_arg_t schedule_path_rr(p... |
Fix issue with .contains() lists | @@ -123,11 +123,8 @@ static bool containsListItem(int argCount) {
Value search = pop();
ObjList *list = AS_LIST(pop());
- for (int i = 0; i < list->values.capacity; ++i) {
- if (!list->values.values[i])
- continue;
-
- if (list->values.values[i] == search) {
+ for (int i = 0; i < list->values.count; ++i) {
+ if (values... |
bfd: add missing cast
Add missing cast to time conversion function to to deal with arbitrary
clocks-per-second values.
Type: fix | @@ -60,7 +60,7 @@ bfd_usec_to_clocks (const bfd_main_t * bm, u64 us)
u32
bfd_clocks_to_usec (const bfd_main_t * bm, u64 clocks)
{
- return (clocks / bm->cpu_cps) * USEC_PER_SECOND;
+ return ((f64) clocks / bm->cpu_cps) * USEC_PER_SECOND;
}
static vlib_node_registration_t bfd_process_node;
|
Add terminal printers. | @@ -1495,3 +1495,57 @@ u3_term_io_loja(int x)
}
}
}
+
+/* u3_term_tape_to(): dump a tape to a file.
+*/
+void
+u3_term_tape_to(FILE *fil_f, u3_noun tep)
+{
+ u3_noun tap = tep;
+
+ while ( u3_nul != tap ) {
+ c3_c car_c;
+
+ if ( u3h(tap) >= 127 ) {
+ car_c = '?';
+ } else car_c = u3h(tap);
+
+ putc(car_c, fil_f);
+ ta... |
hv: change xsave init function name
change pcpu_xsave_init to init_pcpu_xsave.
Acked-by: Eddie Dong | @@ -40,7 +40,7 @@ static uint64_t startup_paddr = 0UL;
/* physical cpu active bitmap, support up to 64 cpus */
static volatile uint64_t pcpu_active_bitmap = 0UL;
-static void pcpu_xsave_init(void);
+static void init_pcpu_xsave(void);
static void set_current_pcpu_id(uint16_t pcpu_id);
static void print_hv_banner(void);
... |
fftfilt/benchmark: scaling trials more appropriately | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2021 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*/
#include <sys/resource.h>
+#include <math.h>
#include "liquid... |
python: turn on into_buffer in framer [7/8] | @@ -40,7 +40,7 @@ class Framer(six.Iterator):
write,
verbose=False,
dispatcher=dispatch,
- into_buffer=False,
+ into_buffer=True,
skip_metadata=False):
self._read = read
self._write = write
|
groups: fix link to DM from participants list | @@ -352,7 +352,7 @@ function Participant(props: {
</Link>
</Action>
<Action bg="transparent">
- <Link to={`/~landscape/dm/${contact.patp}`}>
+ <Link to={`/~landscape/messages/dm/~${contact.patp}`}>
<Text color="green">Send Message</Text>
</Link>
</Action>
|
arch/arm/src/armv8-m/up_svcall.c : Add missing TZ_LoadContext_S when restore context
Before restoring the tcb context, we should load the secure context of next running tcb. | @@ -265,6 +265,12 @@ int up_svcall(int irq, FAR void *context, FAR void *arg)
DEBUGASSERT(regs[REG_R1] != 0);
current_regs = (uint32_t *)regs[REG_R1];
+#ifdef CONFIG_ARMV8M_TRUSTZONE
+ if (rtcb->tz_context) {
+ TZ_LoadContext_S(rtcb->tz_context);
+ }
+#endif
+
/* Restore the MPU registers in case we are switching to an... |
sysdeps/managarm: convert sys_getpid to helix_ng | @@ -415,35 +415,24 @@ pid_t sys_gettid() {
pid_t sys_getpid() {
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
managarm::posix::GetPidRequest<MemoryAllocator> req(getSysdepsAllocator());
- frg::string<MemoryAllocator> ser(getSysdepsAllocator());
- req.SerializeToString(&ser);
- actions[0].type = kHel... |
Execute transmit process function each time user try to send | @@ -182,6 +182,7 @@ void Robus_ServicesClear(void)
******************************************************************************/
error_return_t Robus_SetTxTask(ll_service_t *ll_service, msg_t *msg)
{
+ error_return_t error = SUCCEED;
uint8_t ack = 0;
uint16_t data_size = 0;
uint16_t crc_val = 0xFFFF;
@@ -227,7 +228,7... |
Make test_alloc_parse_public_doctype_long_name() robust vs allocation | @@ -8893,20 +8893,9 @@ START_TEST(test_alloc_parse_public_doctype_long_name)
"'>\n"
"<doc></doc>";
int i;
-#define MAX_ALLOC_COUNT 10
- int repeat = 0;
+#define MAX_ALLOC_COUNT 25
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat some counts to defeat cached allocations */
- if (i == 4 && repeat == 6) {
- i -= 2;
- r... |
Fix assertion in `default_decrypt_cid`->`ptls_cipher_encrypt`
`ptls_cipher_encrypt` ends up calling `EVP_DecryptUpdate`, in `picotls/lib/openssl.c`. In 1.1.1a, `EVP_DecryptUpdate` checks that the output and the input are not overlapping:
crypto/evp/evp_enc.c
```
326 if (is_partially_overlapping(out + ctx->buf_len, ... | @@ -4305,13 +4305,14 @@ static size_t default_decrypt_cid(quicly_cid_encryptor_t *_self, quicly_cid_plai
/* decrypt */
if (len != 0 && len != cid_len) {
+ uint8_t ebuf[16];
/* normalize the input, so that we would get consistent routing */
if (len > cid_len)
len = cid_len;
- memcpy(buf, encrypted, cid_len);
+ memcpy(eb... |
Change handling of infinite PSNR in encmain
Changes encmain to print 999.99 as PSNR when SSE is zero. This behavior
is in line with HM. Previously SSE was set to 99 when it was zero. | @@ -83,11 +83,11 @@ static unsigned get_padding(unsigned width_or_height){
}
}
-#if KVZ_BIT_DEPTH == 8
-#define PSNRMAX (255.0 * 255.0)
-#else
- #define PSNRMAX ((double)PIXEL_MAX * (double)PIXEL_MAX)
-#endif
+/**
+ * \brief Value that is printed instead of PSNR when SSE is zero.
+ */
+static const double MAX_PSNR = 99... |
Added doxygen comments to most of the constants defined in constants.h | // These are in units of Mpc (no factor of h)
#define K_PIVOT 0.05
+/** @file */
+
#define K_MAX_SPLINE 50.
#define K_MAX 1e3
#define K_MIN_DEFAULT 5e-5
#define N_K 1000
-//Rho critical in units of M_sun/h / (Mpc/h)^3
+/**
+ * Rho critical in units of M_sun/h / (Mpc/h)^3
+ */
#define RHO_CRITICAL 2.7744948E11
-//Lights... |
Leaf: Add roundtrip test | @@ -63,6 +63,26 @@ void test_get (CppKeySet keys, CppKeySet expected, int const status = ELEKTRA_PL
CLOSE_PLUGIN ();
}
+void test_roundtrip (CppKeySet keys, int const status = ELEKTRA_PLUGIN_STATUS_SUCCESS)
+#ifdef __llvm__
+ __attribute__ ((annotate ("oclint:suppress[high ncss method]")))
+#endif
+{
+ CppKeySet input ... |
Do not allocate memory if num vblks is zero | @@ -2629,6 +2629,11 @@ kvset_iter_enable_mblock_read(struct kvset_iterator *iter)
* reader because vblocks will be consumed in order. Kvsets
* produced by kcompaction will need one reader for each vgroup.
*/
+ if (!iter->ks->ks_vgroups) {
+ iter->vreaders = NULL;
+ return 0;
+ }
+
iter->vreaders = calloc(iter->ks->ks_v... |
configure with opari for gnu7 | @@ -135,7 +135,9 @@ export CONFIG_ARCH=%{machine}
-pdt=$PDTOOLKIT_DIR \
-useropt="%optflags -I$MPI_INCLUDE_DIR -I$PWD/include -fno-strict-aliasing" \
-openmp \
+%if %{compiler_family} != intel
-opari \
+%endif
-extrashlibopts="-fPIC -L$MPI_LIB_DIR -lmpi -L/tmp/%{install_path}/lib -L/tmp/%{install_path}/%{machine}/lib"
... |
[DOC]Fix two broken links in INSTALL.md; Change name of zlib flag to the current one.
CLA: trivial | @@ -141,7 +141,7 @@ Quick Installation Guide
If you just want to get OpenSSL installed without bothering too much
about the details, here is the short version of how to build and install
OpenSSL. If any of the following steps fails, please consult the
-[Installation in Detail](#installation-in-detail) section below.
+[... |
Add Ruby to build_linux.sh. | @@ -156,3 +156,25 @@ BUILD_PYTHON 2.7
BUILD_PYTHON 3.5
BUILD_PYTHON 3.6
BUILD_PYTHON 3.7
+
+#################################### Ruby #####################################
+BUILD_RUBY() {
+ docker build -t ${IMAGE_NAME} -f - ${ROOT_DIR} <<-END
+ FROM ruby:${1}-stretch
+ ${SETUP_CMDS}
+ END
+ docker run --rm --name ${TA... |
CI: update build tasks for crypto plugins | @@ -702,8 +702,8 @@ def generateFullBuildStages() {
// Run memory analysis of the crypto plugins in separate environment as theses tests are quite unstable
tasks << buildAndTest(
- "debian-unstable-cryptoplugins",
- DOCKER_IMAGES.sid,
+ "debian-buster-cryptoplugins",
+ DOCKER_IMAGES.buster,
CMAKE_FLAGS_BUILD_ALL+
CMAKE... |
scope~ improve resize and change cursor | @@ -98,7 +98,7 @@ static void scope_draw_handle(t_scope *x, int state){
t_handle *sh = (t_handle *)x->x_handle;
if(state){
if(sh->h_selectedmode == 0){
- sys_vgui("canvas %s -width %d -height %d -bg %s -bd 0\n",
+ sys_vgui("canvas %s -width %d -height %d -bg %s -bd 0 -cursor bottom_right_corner\n",
sh->h_pathname, HAND... |
hslua-marshalling: remove redundant import of Data.Semigroup | @@ -37,9 +37,6 @@ import Control.Monad ((<$!>), (<=<))
import Data.ByteString (ByteString)
import Data.List (intercalate)
import HsLua.Core as Lua
-#if !MIN_VERSION_base(4,12,0)
-import Data.Semigroup (Semigroup ((<>)))
-#endif
#if !MIN_VERSION_base(4,13,0)
import Control.Monad.Fail (MonadFail (..))
#endif
|
Update location of the libfuzzer repository
GH: | @@ -27,7 +27,7 @@ https://github.com/llvm-mirror/llvm/tree/master/lib/Fuzzer if you prefer):
$ sudo apt-get install subversion
$ mkdir svn-work
$ cd svn-work
- $ svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer
+ $ svn co https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/fuzzer Fuzzer
$ cd Fuzzer
$ c... |
libdemandpaging: fix wrong cnode size | @@ -482,7 +482,8 @@ errval_t demand_paging_region_create(size_t bytes, size_t pagesize, size_t numfr
/* allocate the frames */
struct capref frame;
- err = frame_alloc(&frame, numframes * pagesize, NULL);
+ size_t allocated_size;
+ err = frame_alloc(&frame, numframes * pagesize, &allocated_size);
if (err_is_fail(err)) ... |
Sensor OIC notif - remove int clearing
interrupt clearing is not needed as a duration is set. | @@ -1288,15 +1288,7 @@ lis2dh12_enable_int1(struct sensor_itf *itf, uint8_t *reg)
static void
lis2dh12_low_int1_irq_handler(void *arg)
{
- struct sensor_itf *itf;
- struct sensor_read_ev_ctx *srec;
-
- srec = arg;
-
sensor_mgr_put_read_evt(arg);
- itf = SENSOR_GET_ITF(srec->srec_sensor);
- lis2dh12_clear_int1(itf);
-
}... |
update docs to include necessary packages | @@ -44,7 +44,9 @@ reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\S
- To decode the `quic.etl` file, run **TODO**
## Building on Linux (or [WSL](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install))
-
+- Install tooling (WSL2 or Ubuntu)
+ - `sudo apt-get install cmake`
+ - `sudo apt... |
docs/glossary: interned string: Typo fix. | @@ -106,7 +106,7 @@ Glossary
time (proportional to the number of existing interned strings,
i.e. becoming slower and slower over time) and that the space
used for interned strings is not reclaimable. String interning
- is done automatically by MicroPython compiler and runtimer when
+ is done automatically by MicroPytho... |
libhfuzz/performance: split the main function into smaller ones | #include "libhfcommon/util.h"
#define HF_USEC_PER_SEC 1000000
-#define HF_CHECK_INTERVAL (HF_USEC_PER_SEC * 20) /* Peform check every 20 sec. */
+#define HF_CHECK_INTERVAL_USECS (HF_USEC_PER_SEC * 20) /* Peform check every 20 sec. */
static uint64_t iterCnt = 0;
static time_t firstInputUSecs = 0;
-static uint64_t first... |
Add classifier for Python 3.6. | @@ -570,6 +570,7 @@ setup(name = 'mod_wsgi',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'
],
|
Removed testing tag from catboost/pytest/cuda_tests/yt_spec.json
issue:DEVTOOLS-5374 | {
"operation_spec": {
- "scheduling_tag_filter": "porto & testing",
+ "scheduling_tag_filter": "porto",
"pool_trees": [
"gpu_geforce_1080ti"
]
|
Fix CID Use After Free | @@ -3517,6 +3517,7 @@ QuicConnRecvPayload(
TRUE,
&IsLastCid);
if (SourceCid != NULL) {
+ BOOLEAN CidAlreadyRetired = SourceCid->CID.Retired;
QuicBindingRemoveSourceConnectionID(
Connection->Paths[0].Binding, SourceCid);
QuicTraceEvent(ConnSourceCidRemoved,
@@ -3529,7 +3530,7 @@ QuicConnRecvPayload(
QUIC_CLOSE_INTERNAL_... |
firfilt: recreate() method now uses internal dotprod recreate() | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2018 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -229,9 +229,8 @@ FIRFILT() FIRFILT(_recreate)(FIRFILT() _q,
f... |
doc: Add missing markup in CREATE EVENT TRIGGER page
Reported-by: rir
Discussion:
Backpatch-through: 9.6 | @@ -23,7 +23,7 @@ PostgreSQL documentation
<synopsis>
CREATE EVENT TRIGGER <replaceable class="parameter">name</replaceable>
ON <replaceable class="parameter">event</replaceable>
- [ WHEN <replaceable class="parameter">filter_variable</replaceable> IN (filter_value [, ... ]) [ AND ... ] ]
+ [ WHEN <replaceable class="p... |
Solve python call benchmark bug. | class metacall_py_call_bench : public benchmark::Fixture
{
public:
- void SetUp(benchmark::State &state)
- {
- metacall_print_info();
-
- metacall_log_null();
-
- if (metacall_initialize() != 0)
- {
- state.SkipWithError("Error initializing MetaCall");
- }
-
-/* Python */
-#if defined(OPTION_BUILD_LOADERS_PY)
- {
- sta... |
cmake: add examples link to elektra_kdb_gen | @@ -66,6 +66,7 @@ set (Elektra_STATIC @BUILD_STATIC@)
# If <output_dir> is not set explicitly, it defaults to `CMAKE_CURRENT_BINARY_DIR`.
# `<params>...` and `<options>...` are omitted from the `kdb gen` call, if they aren't defined.
#
+# Full examples can be found online: https://github.com/ElektraInitiative/libelektr... |
Prevent uint32_t overflow | @@ -61,7 +61,8 @@ static inline uint32_t ocf_part_get_min_size(ocf_cache_t cache,
{
uint64_t ioclass_size;
- ioclass_size = part->config->min_size * cache->conf_meta->cachelines;
+ ioclass_size = (uint64_t)part->config->min_size *
+ (uint64_t)cache->conf_meta->cachelines;
ioclass_size /= 100;
|
test: pake: minor enhancement for opaque keys | @@ -6247,6 +6247,9 @@ void ssl_ecjpake_set_password( int use_opaque_arg )
ECJPAKE_TEST_SET_PASSWORD( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
+ /* check that the opaque key is still valid after failure */
+ TEST_ASSERT( ! mbedtls_svc_key_id_is_null( pwd_slot ) );
+
psa_destroy_key( pwd_slot );
/* Then set the correct usage *... |
Set stkmon_started=FALSE in error case
pthread_cancel kills the thread and stkmon logging will be stopped immediately.
hence set the variable stkmon_started to FALSE so that user can re-attempt
command "stkmon" from tash | @@ -272,6 +272,8 @@ int kdbg_stackmonitor(int argc, char **args)
if (ret != OK) {
printf(STKMON_PREFIX "ERROR: Failed to detach the stack monitor: %d\n", errno);
pthread_cancel(stkmon);
+ stkmon_started = FALSE;
+ return ERROR;
}
} else {
printf(STKMON_PREFIX "already started\n");
|
suppress documentation warnings | * @param[in] v1 second vertex of triangle
* @param[in] v2 third vertex of triangle
* @param[in, out] d distance to intersection
- * @param[out] intersection whether there is intersection
+ * @return whether there is intersection
*/
CGLM_INLINE
@@ -46,29 +46,25 @@ glm_ray_triangle(vec3 origin,
glm_vec3_sub(v1, v0, edge1... |
core/pci: use !platform.bmc hack over fsp_present() | #include <pci-quirk.h>
#include <timebase.h>
#include <device.h>
-#include <fsp.h>
#define MAX_PHB_ID 256
static struct phb *phbs[MAX_PHB_ID];
@@ -1461,7 +1460,7 @@ static void pci_add_loc_code(struct dt_node *np, struct pci_device *pd)
/* XXX Don't do that on openpower for now, we will need to sort things
* out later,... |
Fix compilation: use 9.4 version of SyncRepGetStandbyPriority | @@ -856,8 +856,10 @@ SyncRepGetSyncStandbys(bool *am_sync)
static int
SyncRepGetStandbyPriority(void)
{
- const char *standby_name;
- int priority;
+ char *rawstring;
+ List *elemlist;
+ ListCell *l;
+ int priority = 0;
bool found = false;
/*
@@ -867,29 +869,37 @@ SyncRepGetStandbyPriority(void)
if (am_cascading_walsen... |
Fix GitHub Issue@2682 - Islandwood News AV on accessing nullptr when launching. | @@ -363,15 +363,18 @@ static void _initUIWebView(UIWebView* self) {
[color getRed:&r green:&g blue:&b alpha:&a];
// XAML WebView transparency is not used unless it's set to the transparent system color.
+ if (_xamlWebControl) {
if (a != 1.0f) {
_xamlWebControl.DefaultBackgroundColor(winrt::Windows::UI::Colors::Transpar... |
docs/TroubleShooting: add a solution of Kconfig-frontend issues
This commit shows how to resolve a problem on mconf usage. | > [Board-Specific](#board-specific)
## Common
-### Trouble on using our toolchain
-When 64 bit machine tries to use 32 bit package like GDB, you can meet below:
+### Issues on GNU toolchain
+When 64 bit machine tries to use 32 bit package like GDB, someone meets below:
```
'Launching XXX' has envountered a problem.
Cou... |
index.md: fix readme-espressif.md link | @@ -44,7 +44,7 @@ The MCUboot documentation is composed of the following pages:
- [Apache NuttX](readme-nuttx.md)
- [RIOT](readme-riot.md)
- [Mbed OS](readme-mbed.md)
- - [Espressif](docs/readme-espressif.md)
+ - [Espressif](readme-espressif.md)
- [Cypress/Infineon](../boot/cypress/readme.md)
- [Simulator](../sim/READM... |
[MQTT5] Handle disconnect WIP | @@ -1154,6 +1154,15 @@ parse_publish_vhdr(struct mqtt_connection *conn,
}
}
/*---------------------------------------------------------------------------*/
+#if MQTT_PROTOCOL_VERSION >= MQTT_PROTOCOL_VERSION_5
+static void
+handle_disconnect(struct mqtt_connection *conn)
+{
+ DBG("MQTT - (handle_disconnect) Got DISCONN... |
collections now sends invites to whitelist | :: /app/collection/hoon
-::
/- hall, *collections
/+ hall, rekey, colls
/= cols /: /===/web/collections /collections/
:: update config in hall.
=/ nam (circle-for col)
%- ta-hall-actions :~
-:: ?: =(desc.new desc.u.old) ~
[%depict nam desc.new]
- ::
-:: ?: =(visi.new visi.u.old) ~
[%public visi.new our.bol nam]
::
:: (... |
[RAFT] prevent segmentation fault
acquire lock to access raftserver.node, which is set after creating consensus object | @@ -151,15 +151,16 @@ func newRaftServer(id uint64, listenUrl string, peers []string, join bool, waldi
}
func (rs *raftServer) SetPromotable(val bool) {
+ defer rs.lock.Unlock()
rs.lock.Lock()
rs.promotable = val
- rs.lock.Unlock()
}
func (rs *raftServer) GetPromotable() bool {
+ defer rs.lock.RUnlock()
+
rs.lock.RLock... |
tools/mpy-tool.py: Fix linking qstrs in native code, and multiple files.
Fixes errors in the tool when 1) linking qstrs in native ARM-M code; 2)
freezing multiple files some of which use native code and some which don't.
Fixes issue | #
# The MIT License (MIT)
#
-# Copyright (c) 2016 Damien P. George
+# Copyright (c) 2016-2019 Damien P. George
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -479,18 +479,23 @@ class RawCodeNative(RawCod... |
Enable runtime testing of no-deprecated builds in Travis | @@ -46,7 +46,7 @@ matrix:
- os: linux
dist: trusty
compiler: clang
- env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
+ env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated"
- os: linux
dist: bionic
compiler: clang
|
Unbreak EXEC_BACKEND build
Per buildfarm | #include "utils/memutils.h"
#include "utils/pidfile.h"
#include "utils/ps_status.h"
+#include "utils/queryjumble.h"
#include "utils/timeout.h"
#include "utils/timestamp.h"
#include "utils/varlena.h"
@@ -521,7 +522,7 @@ typedef struct
pg_time_t first_syslogger_file_time;
bool redirection_done;
bool IsBinaryUpgrade;
- bo... |
landscape: Style chage on shipSearch tag | @@ -190,9 +190,9 @@ export function ShipSearch(props: InviteSearchProps) {
alignItems="center"
py={1}
px={2}
- border={1}
- borderColor="washedGrey"
color="black"
+ borderRadius='2'
+ bg='washedGray'
fontSize={0}
mt={2}
mr={2}
|
sdl/pixels: add RGB332Model | @@ -353,6 +353,7 @@ func (c RGB444) RGBA() (r, g, b, a uint32) {
var (
RGB444Model color.Model = color.ModelFunc(rgb444Model)
+ RGB332Model color.Model = color.ModelFunc(rgb332Model)
)
func rgb444Model(c color.Color) color.Color {
@@ -362,3 +363,22 @@ func rgb444Model(c color.Color) color.Color {
r, g, b, _ := c.RGBA()... |
Fix: test case sent in invalid packet content | @@ -31,7 +31,7 @@ fake_cmd_t t4p4s_testcase_ipv4[][RTE_MAX_LCORE] = {
fake_cmd_t t4p4s_testcase_arp[][RTE_MAX_LCORE] = {
{
FSLEEP(200),
- {FAKE_PKT, 0, 1, ARP(ETH01, ETH1A), 0, NO_OUTPUT},
+ {FAKE_PKT, 0, 1, ARP(ETH01, ETH1A, "0000000000000000"), 0, NO_OUTPUT},
FEND,
},
{
|
ta: fix crash on uninitialized field | @@ -108,6 +108,7 @@ lv_obj_t * lv_ta_create(lv_obj_t * par, const lv_obj_t * copy)
ext->cursor.valid_x = 0;
ext->one_line = 0;
ext->label = NULL;
+ ext->placeholder = NULL;
lv_obj_set_signal_func(new_ta, lv_ta_signal);
lv_obj_set_signal_func(lv_page_get_scrl(new_ta), lv_ta_scrollable_signal);
|
fix sandbox_utils.cprint no color reset eol
add '\x1b[0m' on eol | @@ -100,7 +100,7 @@ end
function sandbox_utils.cprint(format, ...)
-- done
- utils._iowrite(colors(vformat(format, ...) .. "\n"))
+ utils._iowrite(colors(vformat(format, ...)) .. "\n")
end
-- print format string, the builtin variables and colors without newline
|
VERSION bump to version 2.0.180 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 179)
+set(LIBYANG_MICRO_VERSION 180)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
fpgasupdate: add timeout loop to WRITE_BLK phase | @@ -400,13 +400,16 @@ def update_fw(fd_dev, infile):
"""
block_size = 4096
offset = 0
+ max_retries = 65
orig_pos = infile.tell()
infile.seek(0, os.SEEK_END)
payload_size = infile.tell() - orig_pos
infile.seek(orig_pos, os.SEEK_SET)
+
LOG.info('updating from file %s with size %d',
infile.name, payload_size)
+
progress_... |
add ui for prop delay | @@ -61,14 +61,14 @@ struct queue_t {
int64_t arrival;
} * elements;
} ring;
- int64_t delay_usec; /* TODO: add propagation delay */
- int64_t interval_usec;
+ int64_t delay_usec; /* propagation delay */
+ int64_t interval_usec; /* serialization delay */
int64_t congested_until; /* in usec */
uint64_t num_forwarded;
uin... |
Print both compiled and linked versions of libs
On --version, print both the version scrcpy had been compiled against,
and the version linked at runtime. | void
scrcpy_print_version(void) {
- printf("\ndependencies:\n");
- printf(" - SDL %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION,
- SDL_PATCHLEVEL);
- printf(" - libavcodec %d.%d.%d\n", LIBAVCODEC_VERSION_MAJOR,
+ printf("\nDependencies (compiled / linked):\n");
+
+ SDL_version sdl;
+ SDL_GetVersion(&sdl);
+ printf(... |
Changes name of iv_check to iv_len_validity
Commit changes name of check_iv to
iv_len_validity as this seems to better describe
its functionality. | @@ -1148,7 +1148,7 @@ void check_padding( int pad_mode, data_t * input, int ret, int dlen_check
/* END_CASE */
/* BEGIN_CASE */
-void check_iv( int cipher_id, char * cipher_string,
+void iv_len_validity( int cipher_id, char * cipher_string,
int iv_len_val, int ret )
{
size_t iv_len = iv_len_val;
|
Still trying to fix py.test. | @@ -9,7 +9,7 @@ if ! command -v conda > /dev/null; then
conda create --yes -n test python=$PYTHON_VERSION
conda activate test
conda install tectonic;
- conda install -c conda-forge numpy=$NUMPY_VERSION scipy matplotlib setuptools python-pytest pytest-cov pip;
+ conda install -c conda-forge numpy=$NUMPY_VERSION scipy ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.