message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
fix verbose print for idle-kicker
some platforms may have a 64bit useconds_t.. since the maximum value we can
possibly sleep is 100m (1m / (1 / 100)), it's easier to cast explicitly to int
for the print. Otherwise I have to change the format and then always upcast it
to 64bit. | @@ -326,7 +326,7 @@ static void *conn_timeout_thread(void *arg) {
if ((i % CONNS_PER_SLICE) == 0) {
if (settings.verbose > 2)
fprintf(stderr, "idle timeout thread sleeping for %ulus\n",
- timeslice);
+ (unsigned int)timeslice);
usleep(timeslice);
}
|
crypto/x86_64cpuid.pl: fix AVX512 capability masking.
Originally it was thought that it's possible to use AVX512VL+BW
instructions with XMM and YMM registers without kernel enabling
ZMM support, but it turned to be wrong assumption. | @@ -197,10 +197,11 @@ OPENSSL_ia32_cpuid:
and \$0xe6,%eax # isolate XMM, YMM and ZMM state support
cmp \$0xe6,%eax
je .Ldone
- andl \$0xfffeffff,8(%rdi) # clear AVX512F, ~(1<<16)
- # note that we don't touch other AVX512
- # extensions, because they can be used
- # with YMM (without opmasking though)
+ andl \$0x3fdefff... |
chip/mchp/system.c: Format with clang-format
BRANCH=none
TEST=none | @@ -59,7 +59,6 @@ static void vtr3_voltage_select(int use18v)
}
#endif
-
/*
* The current logic will set EC_RESET_FLAG_RESET_PIN flag
* even if the reset was caused by WDT. MEC170x/MEC152x HW RESET_SYS
@@ -76,8 +75,7 @@ static void check_reset_cause(void)
uint32_t status = MCHP_VBAT_STS;
uint32_t flags = 0;
uint32_t rs... |
interface: add new test for mention+link msgs | @@ -65,4 +65,12 @@ describe('tokenizeMessage', () => {
expect(url).toEqual('https://urbit.org');
expect(text3).toEqual(' a link is here!');
});
+ it('should tokenize both mentions and links', () => {
+ const example = '~haddef-sigwen have you looked at https://urbit.org lately?';
+ const [{ mention }, { text }, { url }... |
openxr indentation; | @@ -646,9 +646,7 @@ static bool getButtonState(Device device, DeviceButton button, bool* value, bool
default: return false;
}
- XrActionStateBoolean actionState = {
- .type = XR_TYPE_ACTION_STATE_BOOLEAN,
- };
+ XrActionStateBoolean actionState = { .type = XR_TYPE_ACTION_STATE_BOOLEAN };
XR(xrGetActionStateBoolean(stat... |
Fix a typo in the Makefile | @@ -529,7 +529,7 @@ uninstall_man:
uninstall_conf:
@$(rm) $(CONFIG_PATH)/oidc-agent/$(PROVIDERCONFIG)
@$(rm) $(CONFIG_PATH)/oidc-agent/$(PUBCLIENTSCONFIG)
- @$(rm) $(CONFIG_PATH)/oidc-agent/$(SERVICECONFIGE)
+ @$(rm) $(CONFIG_PATH)/oidc-agent/$(SERVICECONFIG)
@echo "Uninstalled config"
.PHONY: uninstall_priv
|
Build: try to use Long value of time | @@ -506,7 +506,7 @@ def xunitUpload() {
def imageId(image) {
def cs = checksum(image.file)
- def dateString = dateFormatter(env.timeInMillis)
+ def dateString = dateFormatter(Long.valueOf(env.timeInMillis))
return "${image.id}:${dateString}-${cs}"
}
|
scripts: wait until port is really available
see | @@ -43,13 +43,11 @@ echo
# then restart the backend
kdb stop-rest-backend
-netstat --listen --numeric-ports | grep 80
-
-# TODO: make proper check to avoid 'address already in use'
-# and too long sleeps
-sleep 5
-
-netstat --listen --numeric-ports | grep 80
+# avoid 'address already in use'
+while netstat --listen --n... |
Add sceKernelSetProcessId function | @@ -845,6 +845,15 @@ int ksceKernelSetPermission(int value);
*/
SceUID ksceKernelGetProcessId(void);
+/**
+ * @brief Set Process id
+ *
+ * @param[in] value - The new process id
+ *
+ * @return previous process id
+ */
+SceUID ksceKernelSetProcessId(SceUID pid);
+
/**
* @brief Runs a function with larger stack size
*
|
Update yfm for ya make to 2.12.3 | @@ -8,9 +8,9 @@ ENDIF()
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
YFM_TOOL
- sbr:1382871964 FOR WIN32
- sbr:1382871558 FOR DARWIN
- sbr:1382871140 FOR LINUX
+ sbr:1388699902 FOR WIN32
+ sbr:1388699770 FOR DARWIN
+ sbr:1388699577 FOR LINUX
)
END()
|
pujjo: config keyboard power btn ksi3.
Config keyboard power btn ksi3.
TEST=zmake build pujjo
BRANCH=none | @@ -20,6 +20,7 @@ CONFIG_PLATFORM_EC_ACCEL_BMA4XX=y
# Keyboard
CONFIG_CROS_KB_RAW_NPCX=y
CONFIG_PLATFORM_EC_KBLIGHT_ENABLE_PIN=y
+CONFIG_PLATFORM_EC_KEYBOARD_PWRBTN_ASSERTS_KSI3=y
# TCPC+PPC: both C0 and C1 (if present) are RAA489000
CONFIG_PLATFORM_EC_USB_PD_TCPM_RAA489000=y
|
Leaf: Split array parents in `get` direction | @@ -345,6 +345,7 @@ int LeafDelegate::convertToDirectories (CppKeySet & keys)
{
CppKeySet directoryLeaves;
CppKeySet nonDirectoryLeaves;
+ CppKeySet notArrayParents;
/**
* - Split array parents
@@ -354,7 +355,9 @@ int LeafDelegate::convertToDirectories (CppKeySet & keys)
* - Merge everything back together and convert d... |
SOVERSION bump to version 7.6.6 | @@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 6)
-set(SYSREPO_MICRO_SOVERSION 5)
+set(SYSREPO_MICRO_SO... |
Further improvements to ASYNC_WAIT_CTX_clear_fd
Remove call to cleanup function
Use only one loop to find previous element | @@ -138,11 +138,12 @@ int ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd,
int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key)
{
- struct fd_lookup_st *curr;
+ struct fd_lookup_st *curr, *prev;
curr = ctx->fds;
+ prev = NULL;
while (curr != NULL) {
- if (curr->del) {
+ if (curr->d... |
Update security policy file. | @@ -4,11 +4,6 @@ Security Policy
This file describes how security issues are reported and handled, and what the
expectations are for security issues reported to this project.
-> Note: As there are currently no stable releases of PAPPL, any security fixes
-> to the PAPPL software will be pushed to the Github repository ... |
add sponsorship info to readme | @@ -43,6 +43,7 @@ abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon
## Legacy BTC Address Parsing
```
+
:: yields the initial addresss
`@uc`(scan "17xg1BZLn63zCxdTxbsFLoWpQeSnD7zSHW" fim:ag)
@@ -244,3 +245,22 @@ https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki#P2SHP2WPKH
## m... |
util/ectool: Fix EC_CMD_SMART_DISCHARGE response
BRANCH=none
TEST='make BOARD=host utils-host' passes
Code-Coverage: Zoss | @@ -3011,7 +3011,7 @@ int cmd_smart_discharge(int argc, char *argv[])
}
rv = ec_command(EC_CMD_SMART_DISCHARGE, 0, p, sizeof(*p), r,
- ec_max_insize);
+ sizeof(*r));
if (rv < 0) {
perror("ERROR: EC_CMD_SMART_DISCHARGE failed");
return rv;
|
Add logging to device open/close APIs. | @@ -28,11 +28,15 @@ papplPrinterCloseDevice(
pthread_rwlock_wrlock(&printer->rwlock);
+ papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Closing device.");
+
papplDeviceClose(printer->device);
printer->device = NULL;
printer->device_in_use = false;
+ papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Device closed.");
+
pt... |
Add beast tribe functions | @@ -113,6 +113,9 @@ functions:
0x14053B640: Component::GUI::TextModuleInterface::GetTextLabelByID
0x14061ADD0: ConvertLogMessageIdToCharaLogKind
0x1406F66A0: ExecuteCommand
+ 0x14078A6f0: Client::Game::UI::UIState::PlayerState.GetBeastTribeRank
+ 0x14078A770: Client::Game::UI::UIState::PlayerState.GetBeastTribeCurrentR... |
Fix logic error where attack block penetration only tested if the target had a defense block attribute set. Fixes - Unblockable attacks eligible for blocking. | @@ -19665,7 +19665,7 @@ int check_blocking_eligible(entity *ent, entity *other, s_collision_attack *atta
}
// Attack block breaking exceeds block power?
- if (ent->defense[attack->attack_type].blockpower)
+ if (attack->no_block || ent->defense[attack->attack_type].blockpower)
{
if (attack->no_block >= ent->defense[atta... |
Fix detection of 'Dimmable light' type if ZLL device id is used for ZHA simple descriptor (IKEA) | @@ -444,6 +444,7 @@ const deCONZ::SimpleDescriptor &LightNode::haEndpoint() const
*/
void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint)
{
+ bool isInitialized = m_haEndpoint.isValid();
m_haEndpoint = endpoint;
// check if std otau cluster present in endpoint
@@ -464,7 +465,7 @@ void LightNode::setH... |
Remove unused no_window field | @@ -33,7 +33,6 @@ struct screen {
bool has_frame;
bool fullscreen;
bool maximized;
- bool no_window;
bool mipmaps;
};
@@ -66,7 +65,6 @@ struct screen {
.has_frame = false, \
.fullscreen = false, \
.maximized = false, \
- .no_window = false, \
.mipmaps = false, \
}
|
lib/graph: add +get-keys | ^- update-log:store
%+ scry-for update-log:store
/update-log-subset/(scot %p entity.res)/[name.res]/(scot %da start)/'~'
+::
+++ get-keys
+ ^- resources
+ =+ %+ scry-for ,=update:store
+ /keys
+ ?> ?=(%0 -.update)
+ ?> ?=(%keys -.q.update)
+ resources.q.update
--
|
server: Listen to both IPv6 and IPv4 sockets | @@ -1663,12 +1663,13 @@ fail:
} // namespace
namespace {
-int create_sock(const char *addr, const char *port) {
+int create_sock(const char *addr, const char *port, int family) {
addrinfo hints{};
addrinfo *res, *rp;
int rv;
+ int val = 1;
- hints.ai_family = AF_UNSPEC;
+ hints.ai_family = family;
hints.ai_socktype = S... |
Fix wrong package to install for Ubuntu/Debian
Without this package, meson fails:
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)
app/meson.build:88:8: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake
PR <https://github.com/Genymobile/scrcpy/pull/2790> | @@ -15,7 +15,7 @@ First, you need to install the required packages:
sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
gcc git pkg-config meson ninja-build libsdl2-dev \
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
- libusb-1.0-0 libusb-dev
+ libusb-1.0-0 libusb-1.0-0-dev
```
Then clone the repo and exe... |
esp32h2: enable blink example | @@ -2,10 +2,8 @@ menu "Example Configuration"
choice BLINK_LED
prompt "Blink LED type"
- default BLINK_LED_RMT if IDF_TARGET_ESP32C3
- default BLINK_LED_RMT if IDF_TARGET_ESP32S2
- default BLINK_LED_RMT if IDF_TARGET_ESP32S3
- default BLINK_LED_GPIO
+ default BLINK_LED_GPIO if IDF_TARGET_ESP32
+ default BLINK_LED_RMT
h... |
Fix opening home screen shortcuts on iOS 12 | @@ -329,6 +329,47 @@ import Intents
((window?.rootViewController?.presentedViewController as? UINavigationController)?.viewControllers.first as? EditorSplitViewController)?.editor.save()
}
+ public func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler... |
asn1/a_int.c: don't write result if returning error. | @@ -202,7 +202,6 @@ static int asn1_get_uint64(uint64_t *pr, const unsigned char *b, size_t blen)
ASN1err(ASN1_F_ASN1_GET_UINT64, ASN1_R_TOO_LARGE);
return 0;
}
- *pr = 0;
if (b == NULL)
return 0;
for (r = 0, i = 0; i < blen; i++) {
|
Style rule optimization | @@ -39,6 +39,32 @@ namespace carto { namespace mvt {
}
bool updated = false;
+
+ // Try to merge consecutive rules R1 and R2 with R1.maxZoom=R2.minZoom assuming everything else is equal
+ for (auto it = _rules.begin(); it + 1 != _rules.end(); ) {
+ std::shared_ptr<const Rule> rule1 = *(it + 0);
+ std::shared_ptr<const ... |
using _mm_alloc/fres instead of libxsmm as it performs better | @@ -100,13 +100,13 @@ double get_checksum(FTyp *buf, size_t sz)
inline void *my_malloc(size_t sz, size_t align)
{
- return libxsmm_aligned_malloc(sz, align);
+ return _mm_malloc(sz, align);
}
inline void my_free(void *p)
{
if(!p) return;
- libxsmm_free(p);
+ _mm_free(p);
}
#define DECL_VLA_PTR(type, name, dims, ptr) ty... |
Fix 'distribution_policy' issue on replicated table by gpcheckcat
'distribution_policy' test do constraints check on randomly-distributed
tables, however, attrnums = null in gp_distribution_policy is no longer
effective to identify a randomly distributed table after we involved new
replicated distributed policy, so add... | @@ -461,7 +461,7 @@ def checkDistribPolicy():
join pg_class rel on (pk.conrelid = rel.oid)
join pg_namespace n on (rel.relnamespace = n.oid)
join gp_distribution_policy d on (rel.oid = d.localoid)
- where pk.contype in('p', 'u') and d.attrnums is null
+ where pk.contype in('p', 'u') and d.policytype = 'p' and d.attrnum... |
interface: changed ProfileOverlay to functional component | -import React, { PureComponent } from 'react';
+import React, { PureComponent, useCallback, useEffect, useRef } from 'react';
import { Contact, Group } from '@urbit/api';
import { cite, useShowNickname } from '~/logic/lib/util';
import { Sigil } from '~/logic/lib/sigil';
@@ -14,8 +14,8 @@ import {
Icon
} from '@tlon/in... |
net/local: remove dead code | @@ -337,7 +337,6 @@ psock_dgram_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
nerr("ERROR: Failed to open FIFO for %s: %d\n",
conn->lc_path, ret);
goto errout_with_halfduplex;
- return ret;
}
/* Sync to the start of the next packet in the stream and get the size of
|
Improve libimg scaling | @@ -55,8 +55,14 @@ void image_free(image_bmp_t* image) {
}
void image_render_to_layer(image_bmp_t* image, ca_layer* dest, Rect frame) {
- float scale_x = image->size.width / (float)frame.size.width;
- float scale_y = image->size.height / (float)frame.size.height;
+ // TODO(PT): Update image rendering to update a gui_sc... |
Fix buf in suffix protocol | @@ -166,7 +166,7 @@ static ssize_t dill_suffix_mrecvl(struct dill_msock_vfs *mvfs,
it = *it.iol_next;
}
/* Move one character to the user's iolist. */
- if(it.iol_base) {
+ if(it.iol_base && it.iol_len > 0) {
((uint8_t*)it.iol_base)[0] = self->buf[0];
it.iol_base = ((uint8_t*)it.iol_base) + 1;
it.iol_len--;
|
wrong testlist return, correct intersect selection | n=0 # count amount of tests executed (exception for subsecond calls)
max_rc=0 # track the maximum RC to return at the end
loops=1;
- ln -s ../sw $ACTION_ROOT/hw/sw 2>/dev/null |echo # circumvention to deal with ACTION_ROOT pointing to hw subdirectory, ignore RC
+# ln -s ../sw $ACTION_ROOT/hw/sw 2>/dev/null |echo # circ... |
tools/tinytest-codegen: More excludes after enabling expected output match. | @@ -54,16 +54,31 @@ testgroup_member = (
# currently these tests are selected because they pass on qemu-arm
test_dirs = ('basics', 'micropython', 'float', 'extmod', 'inlineasm') # 'import', 'io', 'misc')
exclude_tests = (
+ # pattern matching in .exp
+ 'basics/bytes_compare3.py',
'extmod/ticks_diff.py',
'extmod/time_ms... |
Fix typo in readme
avaliable > available | @@ -23,7 +23,7 @@ The following implementations are available:
Tutorials
--------------
-* Tutorials are avaliable [here](https://github.com/catboost/catboost/tree/master/catboost/tutorials).
+* Tutorials are available [here](https://github.com/catboost/catboost/tree/master/catboost/tutorials).
Catboost models in produ... |
.travis.yml: with fast fuzz testing, there is no point avoiding it | @@ -29,8 +29,8 @@ compiler:
- gcc
env:
- - CONFIG_OPTS="" DESTDIR="_install" TESTS="-test_fuzz"
- - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2" TESTS="-test_fuzz"
+ - CONFIG_OPTS="" DESTDIR="_install"
+ - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared... |
added badges to website | <p class="list-group-item-text">{{ post.shortDesc}}</p>
</a>
</div>
+ <p><a href="https://github.com/ElektraInitiative/libelektra/releases/latest"><img src="https://img.shields.io/github/release/ElektraInitiative/libelektra.svg" alt="Release" /></a>
+ <a href="https://build.libelektra.org/jenkins/job/libelektra/job/mas... |
Add README.md section on Running the Tests. | @@ -33,7 +33,7 @@ possible, it is unlikely that a Puffs compiler would be worth writing in Puffs.
## What Does Puffs Code Look Like?
The [`std/gif/decode_lzw.puffs`](./std/gif/decode_lzw.puffs) file is a good
-example. See the "Your First Edit" section below for more guidance.
+example. See the "Poking Around" section ... |
Fix wrong error code returned by yr_re_fast_exec. | @@ -2099,6 +2099,18 @@ int yr_re_exec(
return ERROR_SUCCESS;
}
+//
+// yr_re_fast_exec
+//
+// This function replaces yr_re_exec for regular expressions marked with flag
+// RE_FLAGS_FAST_REGEXP. These are regular expression whose code contain only
+// the following operations: RE_OPCODE_LITERAL, RE_OPCODE_MASKED_LITER... |
tap_v2: coverity strikes, again!
fd is not close when IOCTL encounters an error which causes resource
leak. The fix is to initialize fd to -1. At return, close fd if
it has a valid value. | @@ -60,7 +60,7 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args)
virtio_main_t *vim = &virtio_main;
vnet_sw_interface_t *sw;
vnet_hw_interface_t *hw;
- int i, fd;
+ int i, fd = -1;
struct ifreq ifr;
size_t hdrsz;
struct vhost_memory *vhost_mem = 0;
@@ -205,7 +205,6 @@ tap_create_if (vlib_main_t * vm, tap... |
Renamed lighthouse param | // clang-format off
STRUCT_CONFIG_SECTION(SurviveKalmanLighthouse)
STRUCT_EXISTING_CONFIG_ITEM("report-covariance", t->report_covariance_cnt);
- STRUCT_CONFIG_ITEM("kalman-bsd-up-variance", "", -1, t->up_variance);
+ STRUCT_CONFIG_ITEM("kalman-lighthouse-up-variance", "", -1, t->up_variance);
STRUCT_CONFIG_ITEM("kalman... |
Cast to uint16_t | @@ -87,7 +87,7 @@ mqtt_timeout_cb(void* arg) {
if (mqtt_client_is_connected(client)) {
sprintf(tx_data, "R: %u, N: %u", (unsigned)retries, (unsigned)num);
- if ((res = mqtt_client_publish(client, "esp8266_mqtt_topic", tx_data, strlen(tx_data), MQTT_QOS_EXACTLY_ONCE, 0, (void *)num)) == espOK) {
+ if ((res = mqtt_client... |
N250SP: Fixing top level DMA interface for simulation | @@ -120,7 +120,7 @@ module top (
inout [0:9] hd1_cpl_utag_top,
inout [0:2] hd1_cpl_type_top,
inout [0:9] hd1_cpl_size_top,
- inout [0:9] hd1_cpl_laddr_top,
+ inout [0:6] hd1_cpl_laddr_top,
inout [0:9] hd1_cpl_byte_count_top,
inout [0:1023] hd1_cpl_data_top
);
@@ -178,7 +178,7 @@ module top (
reg [0:9] hd1_cpl_utag_top;... |
v2.0.34 landed | -ejdb2 (2.0.34) UNRELEASED; urgency=medium
+ejdb2 (2.0.34) testing; urgency=medium
* Reduced library size by 400K: stripped off unused utf8proc data
- -- Anton Adamansky <adamansky@gmail.com> Thu, 05 Dec 2019 11:48:18 +0700
+ -- Anton Adamansky <adamansky@gmail.com> Thu, 05 Dec 2019 12:01:59 +0700
ejdb2 (2.0.33) testin... |
CI/CD: add source /root/.bashrc in the compilation checks | @@ -37,7 +37,7 @@ jobs:
- name: Compile "rune shim-rune sgx-tools epm pal"
run:
- make -j${CPU_NUM} && make install -j${CPU_NUM};
+ source /root/.bashrc && make -j${CPU_NUM} && make install -j${CPU_NUM};
cd rune/libenclave/internal/runtime/pal/skeleton &&
make -j${CPU_NUM} && ls liberpal-skeleton-v*.so;
cd ../nitro_enc... |
groups: don't double sig the planet name on copy
The copy function copies ~~zod instead of ~zod to the clipboard. This
removes the extra sig from the copy routine via deSig() incase the ship
string has no leading sig.
Fixes
[urbit/landscape#1434](https://github.com/urbit/landscape/issues/1434). | @@ -3,7 +3,7 @@ import moment from 'moment';
import React, { ReactElement, ReactNode } from 'react';
import { Sigil } from '~/logic/lib/sigil';
import { useCopy } from '~/logic/lib/useCopy';
-import { cite, uxToHex } from '~/logic/lib/util';
+import { cite, deSig, uxToHex } from '~/logic/lib/util';
import { useContact ... |
Better ordering on resend | @@ -143,19 +143,6 @@ void ngtcp2_frame_chain_list_del(ngtcp2_frame_chain *frc,
}
}
-static void frame_chain_insert(ngtcp2_frame_chain **pfrc,
- ngtcp2_frame_chain *frc) {
- ngtcp2_frame_chain **plast;
-
- assert(frc);
-
- for (plast = &frc; *plast; plast = &(*plast)->next)
- ;
-
- *plast = *pfrc;
- *pfrc = frc;
-}
-
in... |
Examples: Unused variable | @@ -27,7 +27,7 @@ program bufr_read_tempf
integer :: iflag
integer :: status_id, status_ht, status_time = 0, status_p
integer :: status_airt, status_dewt
- integer :: status_rsno, status_rssoft, status_balloonwt, statid_missing
+ integer :: status_rsno, status_rssoft, status_balloonwt
integer(kind=4) :: sizews
integer(... |
Address code review comments from Hernan | @@ -294,8 +294,8 @@ the properties (i.e., `ta_props`).
Regarding the TA binary and TA headers, which are not specified by
GlobalPlatform, there is no specific call-out for backwards compatibility.
-However, Linaro's behavior so far indicates that they do not wish for TAs
-built for old versions of OP-TEE to break when ... |
remove a flag to config a logger
Flag at looger must be initaialized earlier than init() funcs.
However, in that case, flags at commands cannot be initialized.
So, the logger flag is removed,
and only allows to be configured using a file described
in an environment or a current path | @@ -6,7 +6,6 @@ import (
"sync"
"github.com/rs/zerolog"
- "github.com/spf13/pflag"
"github.com/spf13/viper"
)
@@ -27,12 +26,6 @@ func loadConfigFile() *viper.Viper {
// init viper
viperConf.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
viperConf.SetEnvPrefix(confEnvPrefix)
-
- // bind flag
- pflag.String(confFilePat... |
bugID:17132137:[whitescan][587482]:fix out-of-bounds access. | @@ -10554,8 +10554,11 @@ u32_t ll_enc_req_send(u16_t handle, u8_t *rand, u8_t *ediv, u8_t *ltk)
memcpy(enc_req->rand, rand, sizeof(enc_req->rand));
enc_req->ediv[0] = ediv[0];
enc_req->ediv[1] = ediv[1];
- bt_rand_c(enc_req->skdm, sizeof(enc_req->skdm));
- bt_rand_c(enc_req->ivm, sizeof(enc_req->ivm));
+
+ //whitescan-... |
Add QIP file support to rtl_src_config | @@ -28,16 +28,18 @@ quartus_tag_map = {
'.sdc': 'SDC_FILE',
'.qsys': 'QSYS_FILE',
'.ip': 'IP_FILE',
+ '.qip': 'QIP_FILE',
'.json': 'MISC_FILE',
'.tcl': 'MISC_FILE',
'.stp': 'SIGNALTAP_FILE',
'.hex': 'MIF_FILE',
- '.mif': 'MIF_FILE',
+ '.mif': 'MIF_FILE'
}
# QSYS-only tags.
qsys_tag_map = {
'.qsys': 'QSYS_FILE',
+ '.qip... |
Fix misra: addr can't be more than 29 bits anyway | @@ -11,8 +11,8 @@ static int elm327_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
//Check valid 29 bit send addresses for ISO 15765-4
//Check valid 11 bit send addresses for ISO 15765-4
- if ((addr != 0x18DB33F1) && ((addr & 0xFFFF00FF) != 0x18DA00F1) &&
- ((addr != 0x7DF) && ((addr & 0xFFFFFFF8) != 0x7E0))) {
+ if ((add... |
djgpp: Define WATT32_NO_OLDIES before including socket headers
If this macro is left undefined, will "helpfully" declare some
typedefs such as 'byte' and 'word' in the global namespace. This broke
compilation of apps/s_client.c.
CLA: trivial | # elif defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
# if defined(__DJGPP__)
+# define WATT32
+# define WATT32_NO_OLDIES
# include <sys/socket.h>
# include <sys/un.h>
# include <tcp.h>
@@ -150,8 +152,6 @@ struct servent *PASCAL getservbyname(const char *, const char *);
# define readsocket(s,b,n) recv((s),... |
version: pump number | @@ -55,7 +55,7 @@ set (REVERSE_DOMAIN org.libelektra)
set (KDB_VERSION_MAJOR 0)
set (KDB_VERSION_MINOR 8)
-set (KDB_VERSION_MICRO 21)
+set (KDB_VERSION_MICRO 22)
set (KDB_VERSION "${KDB_VERSION_MAJOR}.${KDB_VERSION_MINOR}.${KDB_VERSION_MICRO}")
message (STATUS "You are building Elektra ${KDB_VERSION}")
|
runtime: TCP - try harder to free buffers early | @@ -770,7 +770,6 @@ static int tcp_write_wait(tcpconn_t *c, size_t *winlen)
static void tcp_write_finish(tcpconn_t *c)
{
struct list_head q;
- thread_t *th;
assert(c->tx_exclusive == true);
list_head_init(&q);
@@ -782,11 +781,17 @@ static void tcp_write_finish(tcpconn_t *c)
c->ack_delayed = false;
else
c->ack_ts = micr... |
macos: Do not set IPv6 address if not found.
The default 0 address gets encoded to :: and therefore fails the empty
check, causing us to try and initalize IPv6 when its not available. | @@ -3870,14 +3870,16 @@ int UpnpGetIfInfo(const char *IfName)
&v4_netmask,
gIF_IPV4_NETMASK,
sizeof(gIF_IPV4_NETMASK));
+ gIF_INDEX = if_nametoindex(gIF_NAME);
+ if (!IN6_IS_ADDR_UNSPECIFIED(&v6_addr)) {
inet_ntop(AF_INET6, &v6_addr, gIF_IPV6, sizeof(gIF_IPV6));
gIF_IPV6_PREFIX_LENGTH = v6_prefix;
- gIF_INDEX = if_name... |
Add constant for PAD parameter and some cleanup. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 324615 2017-10-14 10:02:59Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 328478 2018-01-27 13:46:55Z tuexen $");
#endif
#ifndef _NETINET_SCTP_CONSTANTS_H_
@@ -408,7 +408,7 @@ extern void getwintimeofda... |
BugID:21860294:recovery to prev version | @@ -528,7 +528,7 @@ int ota_hal_mqtt_publish(char *topic, int qos, void *data, int len)
int ota_hal_mqtt_subscribe(char *topic, void *cb, void *ctx)
{
#if (OTA_SIGNAL_CHANNEL) == 1
- return IOT_MQTT_Subscribe(NULL, topic, 0, cb, ctx);
+ return IOT_MQTT_Subscribe_Sync(NULL, topic, 0, cb, ctx, 1000);
#else
return 0;
#end... |
Fix parameters names in ObjectiveChipmunk header documentation. | /**
Apply a force to a rigid body. An offset of cpvzero is equivalent to adding directly to the force property.
@param force A force in expressed in absolute (word) coordinates.
- @param offset An offset expressed in world coordinates. Note that it is still an offset, meaning that it's position is relative, but the rot... |
[CRYPTO] Allow CTR to work with any block size | @@ -29,54 +29,52 @@ crypto_do_ctr(struct crypto_dev *crypto, const void *key, uint16_t keylen,
void *nonce, const void *inbuf, void *outbuf, uint32_t len)
{
size_t remain;
+ uint32_t sz;
uint32_t i;
- uint32_t j;
- uint8_t tmp[AES_BLOCK_LEN];
uint8_t *outbuf8 = (uint8_t *)outbuf;
uint8_t *inbuf8 = (uint8_t *)inbuf;
- u... |
OcDataHubLib: Fix UUID regression | @@ -261,7 +261,7 @@ UpdateDataHub (
DataHubSetAppleMiscUnicode (DataHub, OC_SYSTEM_PRODUCT_NAME, Data->SystemProductName);
DataHubSetAppleMiscUnicode (DataHub, OC_SYSTEM_SERIAL_NUMBER, Data->SystemSerialNumber);
if (Data->SystemUUID != NULL) {
- DataHubSetAppleMiscData (DataHub, OC_SYSTEM_UUID, &Data->SystemUUID, sizeo... |
Copy strings in loader; | @@ -38,7 +38,10 @@ static int filesystemLoader(lua_State* L) {
const char* module = luaL_checkstring(L, -1);
char* dot;
- while ((dot = strchr(module, '.')) != NULL) {
+ char path[LOVR_PATH_MAX];
+ strncpy(path, module, LOVR_PATH_MAX);
+
+ while ((dot = strchr(path, '.')) != NULL) {
*dot = '/';
}
@@ -56,7 +59,7 @@ stat... |
board/taniks/pwm.c: Format with clang-format
BRANCH=none
TEST=none | #include "pwm_chip.h"
const struct pwm_t pwm_channels[] = {
- [PWM_CH_FAN] = {
- .channel = 5,
+ [PWM_CH_FAN] = { .channel = 5,
.flags = PWM_CONFIG_OPEN_DRAIN,
- .freq = 25000
- },
+ .freq = 25000 },
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
|
stopped jumping in to blank space in write_new_bucket | @@ -656,7 +656,7 @@ write_new_bucket(
bucket_loc = 0;
}
else {
- fseek(linear_hash->database, linear_hash->records_per_bucket * record_total_size, SEEK_END);
+ fseek(linear_hash->database, 0, SEEK_END);
bucket_loc = ftell(linear_hash->database);
}
@@ -694,18 +694,12 @@ linear_hash_get_bucket(
exit(-1);
}
- ion_fpos_t s... |
openwsman: ignore check for ipv6 on windows
Windows compilers always have IPV6 headers available.
In addition the check used Linux headers path so it
has always fallen on Windows.
We enable the check only on non Windows platforms. | @@ -440,6 +440,7 @@ ELSE(HAVE_SA_LEN)
ENDIF(HAVE_SA_LEN)
IF (ENABLE_IPV6)
+ IF(NOT WIN32)
# Check if struct sockaddr_in6 contains sin6
CHECK_STRUCT_HAS_MEMBER("struct sockaddr_in6" sin6_addr netinet/in.h HAVE_IPV6)
@@ -449,6 +450,7 @@ IF (ENABLE_IPV6)
MESSAGE( SEND_ERROR " IPv6 not supported by system, disabling" )
SET... |
Update bundles/pubsub/pubsub_spi/include/pubsub_protocol.h
Fix typo. | @@ -167,7 +167,7 @@ typedef struct pubsub_protocol_service {
celix_status_t (*encodeHeader)(void *handle, pubsub_protocol_message_t *message, void **bufferInOut, size_t *bufferLengthInOut);
/**
- * @brief Encode the payload using the supplied message.header. Note, this decode is for protocol specific tasks,
+ * @brief ... |
[platform][rosco-m68k] microoptimize the duart irq | @@ -161,7 +161,7 @@ enum handler_return duart_irq(void) {
if (isr & (1<<1)) { // RXRDY/FFULLA
uint8_t status = read_reg(DUART_REG_SRA_R);
if (status & (1<<0)) { // RXRDY
- if (status & (0b111 << 5)) { // any of break, framing, or parity error
+ if (unlikely(status & (0b111 << 5))) { // any of break, framing, or parity ... |
spi: mark port config volatile | @@ -46,7 +46,7 @@ typedef struct {
.hz = 0, \
},
-static spi_port_config_t spi_port_config[SPI_PORTS_MAX] = {{}, SPI_PORTS};
+static volatile spi_port_config_t spi_port_config[SPI_PORTS_MAX] = {{}, SPI_PORTS};
#undef SPI_PORT
@@ -243,7 +243,7 @@ uint8_t spi_dma_is_ready(spi_ports_t port) {
static void spi_reconfigure(s... |
Completions: Add function to check subcommand
The function `__fish_kdb_subcommand_includes` checks if the current
`kdb` command contains one of the given subcommands. | @@ -9,6 +9,14 @@ function __input_includes -d 'Check if the current command buffer contains one o
return 1
end
+function __fish_kdb_subcommand_includes -d 'Check if the current kdb subcommand is one of the given subcommands'
+ set -l subcommand (__fish_kdb_subcommand)
+ contains -- "$subcommand" $argv
+ and return 0
+
... |
ci: Update TF-M version
To fix a regression caused by
where an older TF-M version was used that didn't support the bootutil
cmake. | @@ -19,7 +19,7 @@ set -e
pushd .. &&\
git clone https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git &&\
pushd trusted-firmware-m &&\
- git checkout 8501b37db8e038ce39eb7f1039a514edea92c96e &&\
+ git checkout 7ad5c5f23f4619add4aa6c88f4b25fc6fd84ec6e &&\
popd
if test -z "$FIH_LEVEL"; then
|
Only stateless reset tokens associated to active DCID must be checked | @@ -5499,21 +5499,10 @@ static int conn_on_stateless_reset(ngtcp2_conn *conn, const uint8_t *payload,
}
}
- if (i == len) {
- len = ngtcp2_ringbuf_len(&conn->dcid.unused);
- for (i = 0; i < len; ++i) {
- dcid = ngtcp2_ringbuf_get(&conn->dcid.unused, i);
- if (ngtcp2_verify_stateless_retry_token(
- dcid->token, sr.state... |
vhost-user: restart vpp may cause vhost to crash
Fix a typo in vhost_user_rx_discard_packet which may cause
txvq->last_avail_idx to go wild. | @@ -200,7 +200,7 @@ vhost_user_rx_discard_packet (vlib_main_t * vm,
u16 last_used_idx = txvq->last_used_idx;
while (discarded_packets != discard_max)
{
- if (avail_idx == txvq->last_avail_idx)
+ if (avail_idx == last_avail_idx)
goto out;
u16 desc_chain_head = txvq->avail->ring[last_avail_idx & mask];
|
acrn-config: fix the issue no error message in launch setting
fix the issue that there is no error message displayed in launch setting of WebUI. | {% endif %}
</div>
{% else %}
- <div class="dropdown col-sm-9">
+ <div class="dropdown col-sm-6">
{% if 'readonly' in elem.attrib and elem.attrib['readonly'] == 'true' %}
<select class="selectpicker" data-width="auto" title="" disabled
id="{{'uos:id='+vm.attrib['id']+','+elem.tag}}">
</select>
</div>
{% endif %}
+ <p i... |
xerces: adapt tests to store current array index in metadata | @@ -71,6 +71,18 @@ static void test_simple_read (void)
output_keyset (ks);
+ succeed_if (current = ksLookupByName (ks, "/sw/elektra/tests/xerces/fizz", 0), "base key fizz not found");
+ if (current)
+ {
+ const Key * meta;
+ succeed_if (meta = keyGetMeta (current, "array"), "no metadata exists");
+ if (meta)
+ {
+ succ... |
VirtIO-FS: refactor FindDeviceInterface function | @@ -424,33 +424,26 @@ static DWORD VirtFsRegDevInterfaceNotification(VIRTFS *VirtFs)
static DWORD FindDeviceInterface(PHANDLE Device)
{
- WCHAR DevicePath[MAX_PATH];
HDEVINFO DevInfo;
SECURITY_ATTRIBUTES SecurityAttributes;
SP_DEVICE_INTERFACE_DATA DevIfaceData;
PSP_DEVICE_INTERFACE_DETAIL_DATA DevIfaceDetail = NULL;
U... |
fix-kdb-complete-heap-overflow: readd accidentially removed addition | @@ -359,7 +359,7 @@ bool CompleteCommand::filterCascading (string const & argument, pair<Key, pair<i
{
cascadationOffset = 0;
}
- return argument.size () <= test.size () - cascadationOffset && equal (argument.begin (), argument.end (), test.begin ());
+ return argument.size () <= test.size () - cascadationOffset && equ... |
runtimes/ocr: use local src tarball | @@ -28,7 +28,7 @@ Release: 1%{?dist}
License: BSD
Group: %{PROJ_NAME}/runtimes
URL: https://xstack.exascale-tech.com/wiki
-Source0: https://xstack.exascale-tech.com/git/public/snapshots/ocr-refs/tags/OCRv%{version}_ohpc.tbz2
+Source0: OCRv%{version}_ohpc.tbz2
%description
The Open Community Runtime project is creating ... |
mspi: add octal psram get_cs_io function | #define OCT_PSRAM_ADDR_BITLEN 32
#define OCT_PSRAM_RD_DUMMY_BITLEN (2*(10-1))
#define OCT_PSRAM_WR_DUMMY_BITLEN (2*(5-1))
-#define OCT_PSRAM_CS1_IO 26
+#define OCT_PSRAM_CS1_IO CONFIG_DEFAULT_PSRAM_CS_IO
#define OCT_PSRAM_CS_SETUP_TIME 3
#define OCT_PSRAM_CS_HOLD_TIME 3
@@ -102,6 +102,11 @@ static const char* TAG = "op... |
fix micropython breakout_roundlcd rendering of graphics primitives | @@ -474,10 +474,10 @@ mp_obj_t BreakoutRoundLCD_triangle(size_t n_args, const mp_obj_t *pos_args, mp_m
int x1 = args[ARG_x1].u_int;
int y1 = args[ARG_y1].u_int;
- int x2 = args[ARG_x1].u_int;
- int y2 = args[ARG_y1].u_int;
- int x3 = args[ARG_x1].u_int;
- int y3 = args[ARG_y1].u_int;
+ int x2 = args[ARG_x2].u_int;
+ in... |
Fix array bounds access in reset_deeper_qualifiers by passing in number of elements | @@ -1773,10 +1773,12 @@ static GRIB_INLINE int significanceQualifierIndex(int X,int Y)
}
static GRIB_INLINE void reset_deeper_qualifiers(
- grib_accessor* significanceQualifierGroup[], const int* const significanceQualifierDepth, int depth)
+ grib_accessor* significanceQualifierGroup[],
+ const int* const significanceQ... |
[tools][scons] Fix error notice when 'EXEC_PATH' is not exist. | @@ -130,9 +130,6 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
sys.path = sys.path + [os.path.join(Rtt_Root, 'tools')]
- if not os.path.exists(rtconfig.EXEC_PATH):
- print "Error: Toolchain path (%s) is not exist, please check 'EXEC_PATH' in path or rtconfig.py." % rtconfig.EXEC_PA... |
Split config print from other operations | @@ -1079,9 +1079,20 @@ static int edit_astcenc_config(
}
#endif
- if (operation & ASTCENC_STAGE_COMPRESS)
- {
- // print all encoding settings unless specifically told otherwise.
+ return 0;
+}
+
+/**
+ * @brief Print the config settings in a human readable form.
+ *
+ * @param[in] cli_config Command line config.
+ * @... |
docs/differences/syntax: Capture differences for ":=" operator. | Syntax
======
+Operators
+---------
+
+.. _cpydiff_syntax_assign_expr:
+
+MicroPython allows using := to assign to the variable of a comprehension, CPython raises a SyntaxError.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+**Cause:** MicroPython is optimise... |
[ArgoUI] 0.3.0 | Pod::Spec.new do |s|
s.name = 'ArgoUI'
- s.version = '0.2.9'
+ s.version = '0.3.0'
s.summary = 'A lib of Momo Lua UI.'
# This description is used to generate tags and improve search results.
|
ts: Simplify a line. | @@ -59,8 +59,7 @@ void lily_free_type_system(lily_type_system *ts)
static void grow_types(lily_type_system *ts)
{
ts->max *= 2;
- ts->types = lily_realloc(ts->types,
- sizeof(*ts->types) * ts->max);;
+ ts->types = lily_realloc(ts->types, sizeof(*ts->types) * ts->max);
}
/* This is similar to lily_ts_resolve except that... |
Base64: Simplify unescaping function | static int unescape (Key * key, Key * parent)
{
- const char escapedPrefix[] = ELEKTRA_PLUGIN_BASE64_ESCAPE ELEKTRA_PLUGIN_BASE64_ESCAPE;
const char * strVal = keyString (key);
- if (strlen (strVal) >= 2 && strncmp (strVal, escapedPrefix, 2) == 0)
- {
+ const char escapedPrefix[] = ELEKTRA_PLUGIN_BASE64_ESCAPE ELEKTRA_... |
Added missing LOG in uip-icmp6 | @@ -268,6 +268,9 @@ uip_icmp6_error_output(uint8_t type, uint8_t code, uint32_t param) {
void
uip_icmp6_send(const uip_ipaddr_t *dest, int type, int code, int payload_len)
{
+ LOG_INFO("Sending ICMPv6 packet to ");
+ LOG_INFO_6ADDR(&UIP_IP_BUF->destipaddr);
+ LOG_INFO_(", type %u, code %u, len %u\n", type, code, payloa... |
common CHANGE information about path on failed mkdir | @@ -2351,8 +2351,8 @@ cleanup:
sr_error_info_t *
sr_mkpath(char *path, mode_t mode)
{
- char *p;
sr_error_info_t *err_info = NULL;
+ char *p;
assert(path[0] == '/');
@@ -2360,8 +2360,8 @@ sr_mkpath(char *path, mode_t mode)
*p = '\0';
if (mkdir(path, mode) == -1) {
if (errno != EEXIST) {
+ sr_errinfo_new(&err_info, SR_E... |
Improve ContextSwitches column sorting | @@ -1875,13 +1875,13 @@ END_SORT_FUNCTION
BEGIN_SORT_FUNCTION(ContextSwitches)
{
- sortResult = uintcmp(processItem1->ContextSwitchesDelta.Value, processItem2->ContextSwitchesDelta.Value);
+ sortResult = uint64cmp(processItem1->ContextSwitchesDelta.Value, processItem2->ContextSwitchesDelta.Value);
}
END_SORT_FUNCTION
B... |
Update comment on crls_http_cb() as it does support non-blocking I/O since | @@ -1895,9 +1895,8 @@ static X509_CRL *load_crl_crldp(STACK_OF(DIST_POINT) *crldp)
}
/*
- * Example of downloading CRLs from CRLDP: not usable for real world as it
- * always downloads, doesn't support non-blocking I/O and doesn't cache
- * anything.
+ * Example of downloading CRLs from CRLDP:
+ * not usable for real w... |
fix build of openssl for 32bit targets | @@ -85,6 +85,12 @@ IF (OS_WINDOWS AND ARCH_X86_64)
)
ENDIF()
+IF (ARCH_TYPE_32)
+ CFLAGS(
+ -DOPENSSL_NO_EC_NISTP_64_GCC_128
+ )
+ENDIF()
+
IF (SANITIZER_TYPE STREQUAL memory OR WITH_VALGRIND)
CFLAGS(-DPURIFY)
ENDIF()
|
gmskdem: testing copy() method | @@ -141,3 +141,47 @@ void autotest_gmskmod_copy()
gmskmod_destroy(mod_copy);
}
+// test demodulator copy
+void autotest_gmskdem_copy()
+{
+ // options
+ unsigned int k = 5;
+ unsigned int m = 3;
+ float bt = 0.2345f;
+
+ // create modulator/demodulator pair
+ gmskdem dem_orig = gmskdem_create(k, m, bt);
+
+ unsigned in... |
I corrected a bug in my recent scalable rendering fixes where I was
multiplying the cell count by the cell count multiplier twice in one
situation. | @@ -2926,6 +2926,10 @@ ParallelMergeClonedWriterOutputs(avtDataObject_p dob,
// go into scalable rendering mode and immediately go back out and
// a blank image would get displayed.
//
+// Eric Brugger, Fri Mar 24 13:00:28 PDT 2017
+// I corrected a bug in the counting of cells where the cell count was
+// multiplied b... |
Add hexdump of job input | /*
- * Copyright 2016, International Business Machines
+ * Copyright 2017, International Business Machines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -309,6 +309,11 @@ int main(int argc, char *argv[])
gettimeofday(&stime, NUL... |
swaybar: fix tray item icon scaling, positioning | @@ -493,24 +493,36 @@ uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x,
cairo_destroy(cairo_icon);
}
- int padded_size = icon_size + 2*padding;
- *x -= padded_size;
- int y = floor((height - padded_size) / 2.0);
+ double descaled_padding = (double)padding / output->scale;
+ double descaled_i... |
Get assets to show | @@ -17,6 +17,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
+ sourceSets {
+ main {
+ assets.srcDirs = ['../assets']
+ }
+ }
}
dependencies {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.