message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
options/linux: Implement getrandom | #include <bits/ensure.h>
#include <mlibc/debug.hpp>
+#include <mlibc/posix-sysdeps.hpp>
+
+#include <errno.h>
ssize_t getrandom(void *buffer, size_t max_size, unsigned int flags) {
- mlibc::infoLogger() << "\e[31mmlibc: getrandom() is a no-op\e[39m" << frg::endlog;
+ if(flags & ~(GRND_RANDOM | GRND_NONBLOCK)) {
+ errno... |
Add ContentsNote | @@ -22,6 +22,7 @@ public unsafe partial struct UIState
[FieldOffset(0x2A98)] public RelicNote RelicNote;
[FieldOffset(0x2AF8)] public AreaInstance AreaInstance;
+ [FieldOffset(0x29F0)] public ContentsNote ContentsNote;
[FieldOffset(0x3C60)] public RecipeNote RecipeNote;
[FieldOffset(0xA7C8)] public Director* ActiveDire... |
Only the fips module dependencies are relevant for fips.module.sources
Fixes | @@ -1196,12 +1196,12 @@ providers/fips.module.sources.new: configdata.pm
cd sources-tmp \
&& $$srcdir/Configure --banner=Configured enable-fips -O0 \
&& ./configdata.pm --query 'get_sources("providers/fips")' > sources1 \
- && $(MAKE) -sj 4 \
+ && $(MAKE) -sj 4 build_generated providers/fips.so \
&& find . -name '*.d' ... |
Memory leak in BUFR key splitting | @@ -368,8 +368,11 @@ static void search_from_accessors_list(grib_accessors_list* al, grib_accessors_l
{
char attribute_name[200] = {0,};
grib_accessor* accessor_result = 0;
+ grib_context* c = al->accessor->context;
+ int doFree = 1;
- char* accessor_name = grib_split_name_attribute(al->accessor->context, name, attribu... |
Improved readability in ccl_kNL function. | @@ -828,6 +828,6 @@ double ccl_kNL(ccl_cosmology *cosmo,double a,int *status) {
}
}
gsl_integration_cquad_workspace_free(workspace);
-
- return pow(sqrt(PL_integral/(6*M_PI*M_PI))*ccl_growth_factor(cosmo, a, status), -1);
+ double sigma_eta = sqrt(PL_integral/(6*M_PI*M_PI))*ccl_growth_factor(cosmo, a, status);
+ return... |
Fix DirectorModule.ctor address | @@ -2649,7 +2649,7 @@ classes:
- ea: 0x14179ABF8
base: Client::Game::Event::ModuleBase
funcs:
- 0x140A78F00: ctor
+ 0x140A3EA80: ctor
Client::Game::Event::LeveDirector:
vtbls:
- ea: 0x14179CD68
|
Make the crash when coroutine tries to cancel itself more readable | @@ -392,6 +392,10 @@ static void dill_cr_close(struct dill_hvfs *vfs) {
should get control back pretty quickly. */
cr->closer = ctx->r;
int rc = dill_wait();
+ /* This assertion triggers when coroutine tries to close a bundle that
+ it is part of. There's no sane way to handle that so let's just
+ crash the process. */... |
Test picotls script update | @@ -8,8 +8,8 @@ cd ..
git clone --branch master --single-branch --shallow-submodules --recurse-submodules --no-tags https://github.com/h2o/picotls
cd picotls
git checkout "$COMMIT_ID"
-#git submodule init
-#git submodule update
+git submodule init
+git submodule update
cmake $CMAKE_OPTS .
make -j$(nproc) all
cd ..
|
Update cpudist.py
When calculating the ONCPU time, prev has left the CPU already. It is not necessary to judge whether the process state is TASK_RUNNING or not. | @@ -100,11 +100,6 @@ int sched_switch(struct pt_regs *ctx, struct task_struct *prev)
u64 pid_tgid = bpf_get_current_pid_tgid();
u32 tgid = pid_tgid >> 32, pid = pid_tgid;
-#ifdef ONCPU
- if (prev->state == TASK_RUNNING) {
-#else
- if (1) {
-#endif
u32 prev_pid = prev->pid;
u32 prev_tgid = prev->tgid;
#ifdef ONCPU
@@ -1... |
tests/posix: test ETIMEDOUT for pthread_cond_timedwait | @@ -35,6 +35,38 @@ static void test_broadcast_wakes_all() {
pthread_join(t2, NULL);
}
+static void test_timedwait_timedout() {
+ struct timespec before_now;
+ assert(!clock_gettime(CLOCK_REALTIME, &before_now));
+ before_now.tv_nsec -= 10000;
+
+ pthread_mutex_lock(&mtx);
+ int e = pthread_cond_timedwait(&cond, &mtx, &... |
ADDING FEC - ensure a symbol to have the correct size in malloc_repair_symbol_with_data | @@ -228,7 +228,7 @@ static inline repair_symbol_t *malloc_repair_symbol_with_data(picoquic_cnx_t *cn
repair_symbol_t *s = malloc_repair_symbol(cnx, repair_fpid, size);
if (!s)
return NULL;
-
+ s->data_length = size;
my_memcpy(s->data, data, size);
return s;
}
|
fix: string equality check | @@ -41,11 +41,11 @@ reddit_search(
return;
}
if (!IS_EMPTY_STRING(params->sort)
- && (!STREQ(params->sort, "relevance")
- || !STREQ(params->sort, "hot")
- || !STREQ(params->sort, "top")
- || !STREQ(params->sort, "new")
- || !STREQ(params->sort, "comments")))
+ && !(STREQ(params->sort, "relevance")
+ || STREQ(params->so... |
Short circuit Avahi-induced aborts. | @@ -650,7 +650,13 @@ _papplPrinterRegisterDNSSDNoLock(
if (printer->dns_sd_ref)
avahi_entry_group_free(printer->dns_sd_ref);
- printer->dns_sd_ref = avahi_entry_group_new(master, (AvahiEntryGroupCallback)dns_sd_printer_callback, printer);
+ if ((printer->dns_sd_ref = avahi_entry_group_new(master, (AvahiEntryGroupCallba... |
Improve Win10 application icons | @@ -677,6 +677,8 @@ VOID PhGetStockApplicationIcon(
// fails the other threads.
if (PhBeginInitOnce(&initOnce))
+ {
+ if (WindowsVersion < WINDOWS_10)
{
PPH_STRING systemDirectory;
PPH_STRING dllFileName;
@@ -689,17 +691,8 @@ VOID PhGetStockApplicationIcon(
PH_STRINGREF dllBaseName;
ULONG index;
- // TODO: Find a bette... |
Add Bayer support in OV7725 driver. | @@ -181,17 +181,24 @@ static int set_pixformat(sensor_t *sensor, pixformat_t pixformat)
switch (pixformat) {
case PIXFORMAT_RGB565:
reg = COM7_SET_FMT(reg, COM7_FMT_RGB);
+ ret = SCCB_Write(sensor->slv_addr, DSP_CTRL4, 0);
break;
case PIXFORMAT_YUV422:
case PIXFORMAT_GRAYSCALE:
reg = COM7_SET_FMT(reg, COM7_FMT_YUV);
+ ... |
sdl: filesystem: add warning message to SDL_GetBasePath() and SDL_GetPrefPath() if used on older SDL2 versions | @@ -3,22 +3,19 @@ package sdl
/*
#include "sdl_wrapper.h"
-static inline char* _SDL_GetBasePath() {
-#if (SDL_VERSION_ATLEAST(2,0,1))
- return SDL_GetBasePath();
-#else
+#if !(SDL_VERSION_ATLEAST(2,0,1))
+#pragma message("SDL_GetBasePath is not supported before SDL 2.0.1")
+static inline char* SDL_GetBasePath()
+{
retu... |
tools/opensnoop: Use bpf_probe_read_user explicitly | @@ -215,8 +215,11 @@ KRETFUNC_PROBE(FNNAME, struct pt_regs *regs, int ret)
{
int dfd = PT_REGS_PARM1(regs);
const char __user *filename = (char *)PT_REGS_PARM2(regs);
- struct open_how __user *how = (struct open_how *)PT_REGS_PARM3(regs);
- int flags = how->flags;
+ struct open_how __user how;
+ int flags;
+
+ bpf_prob... |
Simplify unnecessarily verbose checks in ++dedicate. | aud
%- ~(run in aud.gam.det)
|= c/circle
- ?. &(=(hos.c our.bol) =(nom.c nom)) c
+ ?. =(c [our.bol nom]) c
[who nom]
==
::
$config
- ?. &(=(hos.cir.det our.bol) =(nom.cir.det nom))
+ ?. =(cir.det [our.bol nom])
det
det(cir [who nom])
::
$status
- ?. &(=(hos.cir.det our.bol) =(nom.cir.det nom))
+ ?. =(cir.det [our.bol n... |
docs - remove beta designation from parallel retrieve cursor | ---
-title: Retrieving Query Results with a Parallel Retrieve Cursor (Beta)</title>
+title: Retrieving Query Results with a Parallel Retrieve Cursor</title>
---
A *parallel retrieve cursor* is an enhanced cursor implementation that you can use to create a special kind of cursor on the Greenplum Database coordinator nod... |
use memcpy rather than structure assignment, since this might not be supported by all compilers | @@ -81,7 +81,7 @@ void lv_theme_set_current(lv_theme_t * th)
}
/*Copy group style modification callback functions*/
- current_theme.group = th->group;
+ memcpy(¤t_theme.group, &th->group, sizeof(th->group));
/*Let the object know their style might change*/
lv_obj_report_style_mod(NULL);
|
High-Level API: Add missing command to snippet | @@ -11,6 +11,7 @@ was provided.
```sh
sudo kdb mount spec.ini spec/sw/example/highlevel/#0/current ni
+kdb import spec/sw/example/highlevel/#0/current ni < spec.ini
sudo kdb spec-mount '/sw/example/highlevel/#0/current'
```
|
actually check that version is greater than 4.7 | @@ -74,8 +74,10 @@ ifndef NO_AVX2
ifeq ($(C_COMPILER), GCC)
# AVX2 support was added in 4.7.0
GCCVERSIONGTEQ4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 4)
+GCCVERSIONGTEQ5 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 5)
GCCMINORVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 7... |
add "now-id" URL coherence hack | ta-done:(ta-update:ta (fall old *@da))
[mow ..prep(upd now.bol)]
::
+++ now-id
+ :: HACK "sanitized" now for id use, can't get mistaken for file with extension in url
+ `@da`(sub now.bol (div (mod now.bol ~s1) 2))
+::
++ poke-noun
|= a=$@(?(~ @da) [p=@da q=@da])
^- (quip move _+>)
(ta-create:ta ['a description' publ=& ... |
Added some crawlers
Hi, I have some crawlers found in my log-files. I don't know what PxBroker really is, but Seekport is an old search engine (currently disabled) but their bots seems to be active...
Greetings,
Alex | @@ -279,6 +279,8 @@ static const char *browsers[][2] = {
{"Nmap Scripting Engine", "Crawlers"},
{"sqlmap", "Crawlers"},
{"Jorgee", "Crawlers"},
+ {"PxBroker", "Crawlers"},
+ {"Seekport", "Crawlers"},
/* Podcast fetchers */
{"Downcast", "Podcasts"},
|
enable pmix with slurm build | %include %{_sourcedir}/OHPC_macros
%global _with_mysql 1
+%global slurm_with_pmix %{OHPC_LIBS}/pmix
%define pname slurm
@@ -117,6 +118,8 @@ BuildRequires: klogd sysconfig
%endif
Requires: %{pname}-plugins%{PROJ_DELIM}
+BuildRequires: pmix%{PROJ_DELIM}
+Requires: pmix%{PROJ_DELIM}
#!BuildIgnore: post-build-checks
%ifos ... |
docs : update filesystem usage guide
This patch adds the smartfs filesystem usage guide on
new board. | @@ -18,7 +18,7 @@ Don't call architecture codes from application directly. When protected build en
3. [How to add static library](HowToAddStaticLibrary.md)
## File System
-Will be updated
+1. [How to use SmartFS](HowToUseSmartFS.md)
## Network
1. How to use LWIP (will be updated)
|
Update keypoints.py script. | @@ -10,7 +10,8 @@ sensor.reset()
# Sensor settings
sensor.set_contrast(1)
sensor.set_gainceiling(16)
-sensor.set_framesize(sensor.QCIF)
+sensor.set_framesize(sensor.VGA)
+sensor.set_windowing((240, 240))
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_auto_gain(False, value=100)
@@ -32,14 +33,16 @@ clock = time.clock... |
Make h2o_buffer_append's return an int since it's used as a boolean | @@ -245,7 +245,7 @@ h2o_iovec_t h2o_buffer_reserve(h2o_buffer_t **inbuf, size_t min_guarantee);
* copies @len bytes from @src to @dst, calling h2o_buffer_reserve
* @return 0 if the allocation failed, 1 otherwise
*/
-static ssize_t h2o_buffer_append(h2o_buffer_t **dst, void *src, size_t len);
+static int h2o_buffer_appe... |
Save & load the SPKI disk cache using secure coding. | @@ -194,7 +194,13 @@ static unsigned int getAsn1HeaderSize(NSString *publicKeyType, NSNumber *publicK
// Update the cache on the filesystem
if (self.spkiCacheFilename.length > 0) {
- NSData *serializedSpkiCache = [NSKeyedArchiver archivedDataWithRootObject:_spkiCache];
+ NSData *serializedSpkiCache = nil;
+ if (@availa... |
Have jsonfindptrs factor out escape_needed
On a mid-range x86_64 laptop, processing the 181 MiB citylots.json file
from github.com/zemirco/sf-city-lots-json:
$ time gen/bin/example-jsonfindptrs < citylots.json > /dev/null
Before this commit:
real 0m7.550s
After:
real 0m7.333s
Ratio: 1.03x | @@ -313,19 +313,21 @@ class JsonThing {
// ----
-std::string //
-escape(std::string s) {
- for (char& c : s) {
+bool //
+escape_needed(const std::string& s) {
+ for (const char& c : s) {
if ((c == '~') || (c == '/') || (c == '\n') || (c == '\r')) {
- goto escape_needed;
+ return true;
+ }
}
+ return false;
}
- return s... |
TestKextInject: Add SetApfsTimeout to testing code | @@ -381,6 +381,14 @@ ApplyKextPatches (
} else {
DEBUG ((DEBUG_WARN, "[OK] Success KernelQuirkForceSecureBootScheme\n"));
}
+
+ Status = PrelinkedContextApplyQuirk (Context, KernelQuirkSetApfsTrimTimeout, KernelVersion);
+ if (EFI_ERROR (Status)) {
+ DEBUG ((DEBUG_WARN, "[FAIL] Failed to apply KernelQuirkSetApfsTrimTim... |
Add recursive init in readme (just in case). | @@ -534,7 +534,7 @@ Usually the developer is the same who does the fork, but it may be possible that
Follow these steps to build and install **METACALL** manually.
``` sh
-git clone https://github.com/metacall/core.git
+git clone --recursive https://github.com/metacall/core.git
mkdir core/build && cd core/build
cmake .... |
Fixed error on rd=3 | @@ -863,5 +863,5 @@ void kvz_search_cu_intra(encoder_state_t * const state,
uint8_t best_mode_i = select_best_mode_index(modes, costs, number_of_modes);
*mode_out = modes[best_mode_i];
- *cost_out = best_rough_cost;
+ *cost_out = skip_rough_search ? costs[best_mode_i]:best_rough_cost;
}
|
fixup attach_edns check for streamtcp (in case of future enhancements and smaller buffer sizes). | @@ -143,6 +143,8 @@ write_q(int fd, int udp, SSL* ssl, sldns_buffer* buf, uint16_t id,
edns.edns_present = 1;
edns.bits = EDNS_DO;
edns.udp_size = 4096;
+ if(sldns_buffer_capacity(buf) >=
+ sldns_buffer_limit(buf)+calc_edns_field_size(&edns))
attach_edns_record(buf, &edns);
}
|
kdb: remove null key setting in header file | @@ -28,7 +28,7 @@ public:
virtual std::string getSynopsis () override
{
- return "<name> [<value>]";
+ return "<name> <value>";
}
virtual std::string getShortHelpText () override
@@ -38,8 +38,7 @@ public:
virtual std::string getLongHelpText () override
{
- return "If no value is given, it will be set to a null-value\n"... |
Test invalid character reference with a decimal value
Previous limit test used hexed, which has a difference parse path. | @@ -5340,6 +5340,20 @@ START_TEST(test_invalid_character_entity_3)
}
END_TEST
+START_TEST(test_invalid_character_entity_4)
+{
+ const char *text =
+ "<!DOCTYPE doc [\n"
+ " <!ENTITY entity '�'>\n" /* = � */
+ "]>\n"
+ "<doc>&entity;</doc>";
+
+ expect_failure(text, XML_ERROR_BAD_CHAR_REF,
+ "Out of ran... |
xpath BUGFIX bad LY_CHECK macro | @@ -7260,7 +7260,7 @@ moveto:
/* Predicate* */
while (!lyxp_check_token(NULL, exp, *tok_idx, LYXP_TOKEN_BRACK1)) {
rc = eval_predicate(exp, tok_idx, set, options, 1);
- LY_CHECK_RET(rc);
+ LY_CHECK_GOTO(rc, cleanup);
}
cleanup:
|
docs/library: Fix docs for machine.WDT to specify millisecond timeout. | @@ -15,16 +15,18 @@ Example usage::
wdt = WDT(timeout=2000) # enable it with a timeout of 2s
wdt.feed()
-Availability of this class: pyboard, WiPy.
+Availability of this class: pyboard, WiPy, esp8266, esp32.
Constructors
------------
.. class:: WDT(id=0, timeout=5000)
- Create a WDT object and start it. The timeout mus... |
Limit the size of the new heap after GC.
This change set limits the size of the heap after a GC event, so that the allocations for the heap and stack do not grow without bound, after a GC. | @@ -49,12 +49,23 @@ HOT_FUNC term *memory_heap_alloc(Context *c, uint32_t size)
enum MemoryGCResult memory_ensure_free(Context *c, uint32_t size)
{
- if (context_avail_free_memory(c) < size + MIN_FREE_SPACE_SIZE) {
- if (UNLIKELY(memory_gc(c, MAX(context_memory_size(c) * 2, context_memory_size(c) + size)) != MEMORY_GC_... |
runtimes/singularity: fix sysconfdir | @@ -99,7 +99,7 @@ cd $GOPATH/%{singgopath}/builddir
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
make DESTDIR=$RPM_BUILD_ROOT install man
-chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/singularity/actions/*
+chmod 644 $RPM_BUILD_ROOT%{install_path}/etc/singularity/actions/*
# NO_BRP_CHECK_RPATH has no effect on CentOS 7
export NO... |
fix uninitialized memory in verification | @@ -196,6 +196,7 @@ NTSTATUS KphVerifyFile(
NT_ASSERT(KphpTrustedPublicKeyHandle);
signatureFileHandle = NULL;
+ RtlZeroMemory(&signatureFileName, sizeof(signatureFileName));
if ((FileName->Length <= KphpSigExtension.Length) ||
(FileName->Buffer[0] != L'\\'))
|
hv: assign: clean up HV_DEBUG usage related to vuart pin
replace HV_DEBUG with CONFIG_COM_IRQ which is more reasonable
Acked-by: Eddie Dong | @@ -52,7 +52,7 @@ ptdev_lookup_entry_by_vpin(struct acrn_vm *vm, uint8_t virt_pin, bool pic_pin)
return entry;
}
-#ifdef HV_DEBUG
+#ifdef CONFIG_COM_IRQ
static bool ptdev_hv_owned_intx(const struct acrn_vm *vm, const union source_id *virt_sid)
{
/* vm0 vuart pin is owned by hypervisor under debug version */
@@ -62,7 +6... |
framework/task_manager: Move wrong #endif condition
Move wrong #endif for pthread | @@ -990,6 +990,7 @@ static int taskmgr_register_pthread(tm_pthread_info_t *pthread_info, int permiss
return handle;
}
+#endif
static int taskmgr_set_termination_cb(int type, void *data, int pid)
{
@@ -1029,7 +1030,6 @@ int task_manager_run_exit_cb(int pid)
}
return OK;
}
-#endif
static int taskmgr_dealloc_broadcast_msg... |
Update main.bib
Replace the 2017arXiv170103592C reference by published version 2017A&A...602A..72C (JEC) | @@ -1054,16 +1054,20 @@ archivePrefix = "arXiv",
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
-@ARTICLE{2017arXiv170103592C,
+@ARTICLE{2017A&A...602A..72C,
author = {{Campagne}, J.-E. and {Neveu}, J. and {Plaszczynski}, S.},
title = "{Angpow: a software for the fast computation of accurate tomographi... |
btc: fix safari bitcoin address copy to clipboard
Using navigator.clipboard instead of document.execCommand('copy') works
in safari as well. | @@ -28,15 +28,7 @@ export default class Balance extends Component {
copyAddress(arg) {
let address = this.props.state.address;
- function listener(e) {
- e.clipboardData.setData('text/plain', address);
- e.preventDefault();
- }
-
- document.addEventListener('copy', listener);
- document.execCommand('copy');
- document.... |
Update pkg/npm/http-api/src/Urbit.ts | @@ -144,7 +144,7 @@ export class Urbit {
code,
verbose = false,
}: AuthenticationInterface) {
- const airlock = new Urbit(url.startsWith('http') ? url : `http://${url}, code);
+ const airlock = new Urbit(url.startsWith('http') ? url : `http://${url}`, code);
airlock.verbose = verbose;
airlock.ship = ship;
await airlock... |
[ci] remove gcc-4.6-base:i386 from ci env. | @@ -7,7 +7,7 @@ before_script:
# travis has changed to 64-bit and we require 32-bit compatibility libraries
- sudo apt-get update
# clang
- - "sudo apt-get -qq install gcc-multilib libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 libsdl-dev scons || true"
+ - "sudo apt-get -qq install gcc-multi... |
Fixes for BLE host connections w/ split support. | @@ -130,12 +130,12 @@ static struct bt_conn_auth_cb zmk_ble_auth_cb_display = {
static const struct bt_data zmk_ble_ad[] = {
BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
BT_DATA_BYTES(BT_DATA_UUID16_SOME,
-#if !IS_ENABLED(CONFIG_ZMK_SPLIT_BLE)
+#if !IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHER... |
docket: better hash mismatch output
Could be useful to know both hashes when a mismatch happens. | ::
[%glob @ @ ~]
=* base i.t.path
- =* hash (slav %uv i.t.t.path)
+ =/ hash (slav %uv i.t.t.path)
=/ desk ~|(path/path (~(got by by-base) i.t.path))
=/ =charge ~|(desk/desk (~(got by charges) desk))
?> ?=(%glob -.chad.charge)
- ?> =(hash (hash-glob:cc glob.chad.charge))
+ =/ have (hash-glob:cc glob.chad.charge)
+ ~| [%... |
can send one UDP packet; repeated tx fails ENOMEM b/c we're taking out of a TakeCell for the kbuf in the driver | @@ -25,29 +25,22 @@ int main(void) {
int temp, lux;
char packet[64];
- /* { IEEE802.15.4 configuration... temporary until we have full IP
+ /*
ieee802154_set_address(0x1540);
ieee802154_set_pan(0xABCD);
ieee802154_config_commit();
ieee802154_up();
- } IEEE802.15.4 configuration */
+ */
ipv6_addr_t ifaces[10];
udp_list_... |
doc: simplify documentation for function keyNew | *
* To just get a key object, simple do:
*
- * @snippet keyNew.c Simple
+ * @snippet keyNew.c With Name
*
* keyNew() allocates memory for a key object and keyDel() cleans
* everything up.
*
- * We can also give an empty key name and a KEY_END tag with the same
- * effect as before:
- *
- * @snippet keyNew.c Alternative... |
SetupTool: Update solution to VS2019 | <PropertyGroup Label="Globals">
<ProjectGuid>{5C00734F-F50A-49FC-9D2A-F6EE51ECB00F}</ProjectGuid>
<RootNamespace>CustomSetupTool</RootNamespace>
- <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>CustomSetupTool</P... |
Simplify tracing.
Less noise, less code. | @@ -203,6 +203,9 @@ const run = {re, str, idx, wholestr
;;
while re.nthr > 0
while re.runq != Zthr
+ if re.trace
+ std.put("switch\n")
+ ;;
/* set up the next thread */
thr = re.runq
re.runq = thr.next
@@ -423,35 +426,20 @@ const within = {re, str
const itrace = {re, thr, inst
match inst
- | `Ibyte b: trace(re, thr, "\... |
nimble/ll: Fix not clearing scan rsp on scan duration timeout
If timeout fired when we were waiting for scan response,
scan_rsp_pending would be left set and this would trigger assert
when starting next scan. | @@ -1269,6 +1269,12 @@ ble_ll_scan_sm_stop(int chk_disable)
scansm->ext_scanning = 0;
}
#endif
+
+ /* Update backoff if we failed to receive scan response */
+ if (scansm->scan_rsp_pending) {
+ scansm->scan_rsp_pending = 0;
+ ble_ll_scan_req_backoff(scansm, 0);
+ }
OS_EXIT_CRITICAL(sr);
/* Count # of times stopped */
|
fix pep again :) | @@ -1934,7 +1934,9 @@ def train(pool=None, params=None, dtrain=None, logging_level=None, verbose=None,
return model
-def cv(pool=None, params=None, dtrain=None, iterations=None, num_boost_round=None, fold_count=3, nfold=None, inverted=False, partition_random_seed=0, seed=None, shuffle=True, logging_level=None, stratifi... |
Make Pool ShareMultiplier optional | @@ -377,7 +377,7 @@ Pool Fee: {(poolConfig.RewardRecipients?.Any() == true ? poolConfi
}
public abstract double HashrateFromShares(double shares, double interval);
- public abstract double ShareMultiplier { get; }
+ public virtual double ShareMultiplier => 1;
public virtual async Task RunAsync(CancellationToken ct)
{
|
acvp_test: Do not expect exact number of self tests
There might be more because internal instances of the DRBG
might be initialized for the first time and thus
self-tested as well. | @@ -127,7 +127,7 @@ static int ecdsa_keygen_test(int id)
|| !TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0)
|| !TEST_true(EVP_PKEY_CTX_set_group_name(ctx, tst->curve_name))
|| !TEST_int_gt(EVP_PKEY_keygen(ctx, &pkey), 0)
- || !TEST_int_eq(self_test_args.called, 3)
+ || !TEST_int_ge(self_test_args.called, 3)
|| !TEST_true(pk... |
efi: makefile: install the EFI configuration file
The EFI configuration example file is not installed.
This patch adds a rule to install the configuration example file
at /usr/share/acrn | @@ -76,10 +76,12 @@ LDFLAGS=-T $(LDSCRIPT) -Bsymbolic -shared -nostdlib -znocombreloc \
EFIBIN=$(HV_OBJDIR)/$(HV_FILE).efi
BOOT=$(EFI_OBJDIR)/boot.efi
+CONF_FILE=$(CURDIR)/../clearlinux/acrn.conf
+
all: $(EFIBIN)
$(OBJCOPY) --add-section .hv="$(HV_OBJDIR)/$(HV_FILE).bin" --change-section-vma .hv=0x6e000 --set-section-f... |
refine apicv capability check
deinfe rule like below:
must support TPR shadow and apicv access
based on above, check apicv register support
based on above, check virtual interrupt delivery and post
interrupt support
Changes to be committed:
modified: arch/x86/cpu_caps.c | @@ -218,27 +218,32 @@ static void detect_ept_cap(void)
static void detect_apicv_cap(void)
{
- uint8_t features;
+ uint8_t features = 0U;
uint64_t msr_val;
msr_val = msr_read(MSR_IA32_VMX_PROCBASED_CTLS);
- if (!is_ctrl_setting_allowed(msr_val, VMX_PROCBASED_CTLS_TPR_SHADOW)) {
+ if (is_ctrl_setting_allowed(msr_val, VMX... |
Address
Also improve docs for dofile and related functions. | (def buf (buffer "(" name))
(while (< index arglen)
(buffer/push-string buf " ")
- (buffer/format buf "%p" (in args index))
+ (buffer/format buf "%j" (in args index))
(set index (+ index 1)))
(array/push modifiers (string buf ")\n\n" docstr))
# Build return value
(defn run-context
"Run a context. This evaluates express... |
Fix the JSON stringify context abort in case of error
This patch fixes and fixes as well.
Also add a shortcut to access the length of the array in `ecma_builtin_json_array`.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik | @@ -1654,14 +1654,8 @@ ecma_builtin_json_object (ecma_object_t *obj_p, /**< the object*/
ecma_free_values_collection (property_keys_p, 0);
}
- if (!ecma_is_value_empty (ret_value))
+ if (ecma_is_value_empty (ret_value))
{
- ecma_free_values_collection (partial_p, 0);
- ecma_deref_ecma_string (stepback_p);
- ecma_deref_... |
Fixed bz2's stream unwrapping | @@ -142,9 +142,9 @@ typedef struct {
A->bzalloc = find_alloc_Fct(A->bzalloc); \
A->bzfree = find_free_Fct(A->bzfree);
-#define UNWRAP_BZ(A) if(A->bzalloc || A->bzfree) \
- A->bzalloc = reverse_alloc_Fct(A->bzalloc); \
- A->bzfree = reverse_free_Fct(A->bzfree);
+#define UNWRAP_BZ(A) \
+ if(A->bzalloc) A->bzalloc = rever... |
Spores almost iced. | |- ^- hoon
?~ t.p.mod ^$(mod i.p.mod)
$(i.p.mod i.t.p.mod, t.p.mod t.t.p.mod)
- {$funk *} :: build trivial gate
+ {$funk *} :: see under %weed
::
- :+ %tsgr
- [$(mod p.mod) $(mod q.mod)]
- [%ktbr [%brcl [~ ~] [%$ 2] [%$ 15]]]
+ [%rock %n 0]
{$herb *} :: borrow sample
::
[%tsgl [%$ 6] p.mod]
?. clean -
[%tsgr [%rock %n ... |
Modified build_visit to check for non blank checksums before using. | @@ -276,11 +276,21 @@ function uncompress_untar
# *************************************************************************** #
# Function: verify_checksum #
# #
-# Purpose: Verify the checksum of given file #
+# Purpose: Verify the checksum of the given file #
# #
# verify_md5_checksum: checks md5 #
# verify_sha_check... |
APPS: Fix 'openssl dhparam'
'dhparam' can't be completely rewritten in terms of EVP_PKEY functions
yet, because we lack X9.42 support. However, we do when generating,
but forgot to extract a DH pointer with EVP_PKEY_get0_DH(). | @@ -84,7 +84,7 @@ const OPTIONS dhparam_options[] = {
int dhparam_main(int argc, char **argv)
{
BIO *in = NULL, *out = NULL;
- DH *dh = NULL;
+ DH *dh = NULL, *alloc_dh = NULL;
EVP_PKEY *pkey = NULL;
EVP_PKEY_CTX *ctx = NULL;
char *infile = NULL, *outfile = NULL, *prog;
@@ -216,7 +216,7 @@ int dhparam_main(int argc, ch... |
[update] remove extra code. | #define LIST_FIND_OBJ_NR 8
-long hello(void)
-{
- rt_kprintf("Hello RT-Thread!\n");
-
- return 0;
-}
-MSH_CMD_EXPORT(hello, say hello world);
-
static long clear(void)
{
rt_kprintf("\x1b[2J\x1b[H");
@@ -886,28 +878,4 @@ long list_device(void)
MSH_CMD_EXPORT(list_device, list device in system);
#endif
-long list(void)
-... |
Add glReadBuffer OGL_EXT | @@ -178,6 +178,9 @@ OGL_EXT(glBlitFramebuffer, void, (GLint srcX0, GLint srcY0, GLint srcX1, GLint s
OGL_EXT(glRenderbufferStorageMultisample,void,(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) );
OGL_EXT(glDrawArraysInstanced,void,(GLenum mode, GLint first, GLsizei count, GLsize... |
doc: update security advisory for 3.0.1 release
Update security advisory for release_3.0.1 | Security Advisory
#################
-Addressed in ACRN v2.7
+Addressed in ACRN v3.0.1
************************
+We recommend that all developers upgrade to this v3.0.1 release (or later), which
+addresses the following security issue discovered in previous releases:
+
+-----
+- Disable RRSBA on platforms using retpolin... |
v2.0.12 landed | +ejdb2 (2.0.12) testing; urgency=medium
+
+ * Upgraded to iowow_1.3.16 with critical fixes
+
+ -- Anton Adamansky <adamansky@gmail.com> Fri, 03 May 2019 11:59:56 +0700
+
ejdb2 (2.0.11) testing; urgency=medium
* Upgraded to iowow_1.3.15 with critical fixes
|
esp_wifi: fix esp32c2 tx crash issue | @@ -2119,7 +2119,6 @@ ieee80211_amsdu_encap_check = 0x400020e8;
ieee80211_amsdu_length_check = 0x400020ec;
ieee80211_encap_amsdu = 0x400020f0;
ieee80211_output_raw_process = 0x400020f4;
-esp_wifi_80211_tx = 0x400020f8;
ieee80211_raw_frame_sanity_check = 0x400020fc;
ieee80211_crypto_aes_128_cmac_encrypt = 0x40002100;
ie... |
[ctr/lua] bug fix at checking contract code | @@ -318,7 +318,7 @@ func Call(contractState *state.ContractState, code, contractAddress, txHash []by
func Create(contractState *state.ContractState, code, contractAddress, txHash []byte, bcCtx *LBlockchainCtx, dbTx db.Transaction) error {
ctrLog.Debug().Str("contractAddress", types.EncodeAddress(contractAddress)).Msg("... |
query fw versions example - use extended diagnostic session | #!/usr/bin/env python3
from tqdm import tqdm
from panda import Panda
-from panda.python.uds import UdsClient, MessageTimeoutError, NegativeResponseError, DATA_IDENTIFIER_TYPE
+from panda.python.uds import UdsClient, MessageTimeoutError, NegativeResponseError, SESSION_TYPE, DATA_IDENTIFIER_TYPE
if __name__ == "__main__"... |
mac: try (maybe) to make it compilable under MacOS 10.12 | @@ -87,7 +87,7 @@ else ifeq ($(OS),Darwin)
ifneq (,$(findstring 10.13,$(OS_VERSION)))
CRASH_REPORT := $(CRASHWRANGLER)/CrashReport_Sierra.o
else ifneq (,$(findstring 10.12,$(OS_VERSION)))
- CRASH_REPORT := $(CRASHWRANGLER)/CrashReport_Yosemite.o
+ CRASH_REPORT := $(CRASHWRANGLER)/CrashReport_Sierra.o
else ifneq (,$(fin... |
stm32/modmachine: Disable IRQs before entering bootloader.
To make sure that the code that enters the bootloader is not interrupted. | @@ -257,6 +257,8 @@ STATIC NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args)
storage_flush();
#endif
+ __disable_irq();
+
#if MICROPY_HW_USES_BOOTLOADER
if (n_args == 0 || !mp_obj_is_true(args[0])) {
// By default, with no args given, we enter the custom bootloader (mboot)
|
doc: tweak kata tutorial pre-requisites | @@ -20,12 +20,13 @@ Prerequisites
#. For a default prebuilt ACRN binary in the E2E package, you must have 4
CPU cores or enable "CPU Hyper-Threading" in order to have 4 CPU threads for 2 CPU cores.
#. Follow :ref:`these instructions <Ubuntu Service OS>` to set up the ACRN Service VM
- based on Ubuntu, this article is v... |
removing arastorage_data_t definition | @@ -56,8 +56,6 @@ struct arastorage_data_type_s {
double double_value;
};
-typedef struct arastorage_data_type_s arastorage_data_t;
-
const static struct arastorage_data_type_s g_arastorage_data_set[DATA_SET_NUM] = {
{20160101, "apple" , 1.0 },
{20160102, "banana" , 2.0 },
|
[viostor] Fix for Bug Windows guest physical block size change to 512 after installation with the size 4096 | @@ -1554,20 +1554,30 @@ RhelScsiGetCapacity(
{
UCHAR SrbStatus = SRB_STATUS_SUCCESS;
PREAD_CAPACITY_DATA readCap;
+#if (NTDDI_VERSION >= NTDDI_WIN7)
+ PREAD_CAPACITY16_DATA readCapEx;
+#else
PREAD_CAPACITY_DATA_EX readCapEx;
+#endif
u64 lastLBA;
EIGHT_BYTE lba;
u64 blocksize;
PADAPTER_EXTENSION adaptExt= (PADAPTER_EXTE... |
data tree MAINTENANCE improve error on inner node creation
Because list must be created with another
function. | @@ -764,7 +764,7 @@ lyd_new_inner(struct lyd_node *parent, const struct lys_module *module, const ch
}
schema = lys_find_child(parent ? parent->schema : NULL, module, name, 0, LYS_CONTAINER | LYS_NOTIF | LYS_RPC | LYS_ACTION, 0);
- LY_CHECK_ERR_RET(!schema, LOGERR(ctx, LY_EINVAL, "Inner node \"%s\" not found.", name), ... |
dm: virtio-net: add variable name in function declaration
We should keep variable name in function declaration. It makes
things clearer and easier to be understood.
Acked-by: Yu Wang | @@ -152,12 +152,11 @@ struct virtio_net {
int iovcnt, int len);
};
-static void virtio_net_reset(void *);
-static void virtio_net_tx_stop(struct virtio_net *);
-/* static void virtio_net_notify(void *, struct virtio_vq_info *); */
-static int virtio_net_cfgread(void *, int, int, uint32_t *);
-static int virtio_net_cfgw... |
Update cpp-start-android.md
Add sub section that mentions how to run the tests | @@ -15,7 +15,7 @@ On Android, there are two database implementations to choose from. By default (t
The Room database implementation adds one additional initialization requirement, since it needs a pointer to the JVM and an object reference to the application context. See below (4.5) for the required call to either ```c... |
Remove namespace/LockState restrictions from issuing secure erase with master/user passphrase | @@ -2484,7 +2484,7 @@ Finish:
@param[in] pDimmIds Pointer to an array of DIMM IDs - if NULL, execute operation on all dimms
@param[in] DimmIdsCount Number of items in array of DIMM IDs
@param[in] SecurityOperation Security Operation code
- @param[in] pPassphrase a pointer to string with current passphrase
+ @param[in] ... |
[numerics] fix bug in extracting 5x5 diagonal block | @@ -1232,7 +1232,11 @@ void NM_extract_diag_block5(NumericsMatrix* M, int block_row_nb, double ** Block
{
case NM_DENSE:
{
- double* Mptr = M->matrix0 + (M->size0 + 1)*(block_row_nb + block_row_nb + block_row_nb);
+ double* Mptr = M->matrix0 + (M->size0 + 1)*(block_row_nb
+ + block_row_nb
+ + block_row_nb
+ + block_row... |
Eliminated line-specific behavior in kelp. | fetch-wing(axe (peg axe 2))
:: if so, use this form
::
- :- [%rock p.p.one q.p.one]
- relative:clear(mod q.one, top &, axe (peg axe 3))
+ relative:clear(mod tup, top [& &])
:: continue in the loop
::
fin
|
Adjuct PKG_CONFIG_PATH for MSYS builds | @@ -176,11 +176,13 @@ ifdef MINGW32
LIB_PATH ?=$(PREFIX)/mingw32/lib
LIBDEV_PATH ?=$(PREFIX)/mingw32/lib
INCLUDE_PATH ?=$(PREFIX)/mingw32/include
+PKG_CONFIG_PATH =$PKG_CONFIG_PATH:/mingw64/lib/pkgconfig
else
ifdef MSYS
LIB_PATH ?=$(PREFIX)/usr/lib
LIBDEV_PATH ?=$(PREFIX)/usr/lib
INCLUDE_PATH ?=$(PREFIX)/usr/include
+P... |
OnlineChecks: Move sendto menu on the modules tab | @@ -258,6 +258,7 @@ VOID NTAPI MainMenuInitializingCallback(
}
PPH_EMENU_ITEM CreateSendToMenu(
+ _In_ BOOLEAN ProcessesMenu,
_In_ PPH_EMENU_ITEM Parent,
_In_ PPH_STRING FileName
)
@@ -270,7 +271,7 @@ PPH_EMENU_ITEM CreateSendToMenu(
PhInsertEMenuItem(sendToMenu, PhPluginCreateEMenuItem(PluginInstance, 0, MENUITEM_VIRU... |
show N/A if we have no GPS | @@ -4556,11 +4556,8 @@ static inline bool globalinit()
{
static int c;
static int gpiobasemem = 0;
-
-static char weakcandidatedefault[] =
-{
-"12345678"
-};
+static const char notavailable[] = { "N/A" };
+static const char weakcandidatedefault[] = { "12345678" };
fd_socket_mccli = 0;
fd_socket_mcsrv = 0;
@@ -4669,6 +4... |
test: increase test gpio time timeout | @@ -18,4 +18,4 @@ from pytest_embedded import Dut
def test_gpio(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
- dut.expect_unity_test_output()
+ dut.expect_unity_test_output(timeout=300)
|
Change useragent | * for both ravend and raven-qt, to make it harder for attackers to
* target servers or GUI users specifically.
*/
-const std::string CLIENT_NAME("Satoshi");
+const std::string CLIENT_NAME("Ravencoin");
/**
* Client version number
|
dh: fix coverity argument cannot be negative | @@ -463,10 +463,11 @@ static int pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
if (*keylen != dctx->kdf_outlen)
return 0;
ret = 0;
- Zlen = DH_size(dh);
- Z = OPENSSL_malloc(Zlen);
- if (Z == NULL) {
- goto err;
+ if ((Zlen = DH_size(dh)) <= 0)
+ return 0;
+ if ((Z = OPENSSL_malloc(Zlen)) == NULL) {
+ ERR_raise... |
mactime: fix undefined symbol in mactime_test
undefined symbol format_macaddress
Type: fix | #include <vpp-api/client/stat_client.h>
/* Declare message IDs */
+#include <vnet/format_fns.h>
#include <mactime/mactime.api_enum.h>
#include <mactime/mactime.api_types.h>
@@ -202,7 +203,7 @@ format_device (u8 * s, va_list * args)
current_status = 4;
print:
- macstring = format (0, "%U", format_mac_address, dp->mac_ad... |
Waddledee: Remove CONFIG_FPU
FPU no longer needed with charger using integer math to convert Vbus
into a voltage.
BRANCH=None
TEST=make -j buildall | /* Charger */
#define CONFIG_CHARGER_SM5803 /* C0 and C1: Charger */
-#define CONFIG_FPU /* For charger calculations */
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
#define CONFIG_USB_PD_5V_CHARGER_CTRL
#define CONFIG_CHARGER_OTG
|
Fix an issue with _yr_re_prine_node().
When printing certain RE ASTs I noticed that some nodes were not handled
properly. This patch adds in the missing nodes. | @@ -2459,6 +2459,30 @@ static void _yr_re_print_node(RE_NODE* re_node, uint32_t indent)
printf(")");
break;
+ case RE_NODE_EMPTY:
+ printf("Empty");
+ break;
+
+ case RE_NODE_ANCHOR_START:
+ printf("AnchorStart");
+ break;
+
+ case RE_NODE_ANCHOR_END:
+ printf("AnchorEnd");
+ break;
+
+ case RE_NODE_WORD_BOUNDARY:
+ pr... |
change registry keys to UUIDs | @@ -1320,10 +1320,11 @@ local libopen = [[
#define TITAN_PATH_VAR "TITAN_PATH"
#define TITAN_PATH_SEP "/"
#define TITAN_PATH_DEFAULT "/usr/local/lib/titan/" TITAN_VER ";."
- #define TITAN_LIBS_VAR "TITAN_LIBS"
+ #define TITAN_PATH_KEY "ec10e486-d8fd-11e7-87f4-e7e9581a929c"
+ #define TITAN_LIBS_KEY "ecfc9174-d8fd-11e7-8... |
host/mesh: comp pointer check
comp data pointer check before using
This is port of | @@ -328,7 +328,7 @@ int bt_mesh_comp_register(const struct bt_mesh_comp *comp)
int err;
/* There must be at least one element */
- if (!comp->elem_count) {
+ if (!comp || !comp->elem_count) {
return -EINVAL;
}
|
Add documentation for CLI to README | @@ -43,10 +43,65 @@ Download a release for your operating system from the [GB Studio Downloads](http
Or to run from source, clone this repo then:
+- Install latest stable [NodeJS](https://nodejs.org/)
+- Install [Yarn](https://yarnpkg.com/)
+
```bash
-$ yarn
-$ npm start
+> cd gb-studio
+
+> yarn
+
+> npm start
+```
+
... |
build tests: fail test run if we can't patch scapy
Type: fix | @@ -145,7 +145,7 @@ $(PIP_PATCH_DONE): $(PIP_INSTALL_DONE)
echo Applying patch: $$(basename $$f) ; \
patch --forward -p1 -d $(SCAPY_SOURCE) < $$f ; \
retCode=$$?; \
- [ $$retCode -gt 1 ] && exit $$retCode; \
+ [ $$retCode -gt 0 ] && exit $$retCode; \
done; \
touch $@
|
out_kafka: librdkafka: build library statically | @@ -76,7 +76,7 @@ if(NOT HAVE_REGEX)
list(APPEND sources regexp.c)
endif()
-add_library(rdkafka SHARED ${sources})
+add_library(rdkafka STATIC ${sources})
# Support '#include <rdkafka.h>'
target_include_directories(rdkafka PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>")
|
Removing writes to read-only PLIC interrupt pending registers. | @@ -141,10 +141,6 @@ struct metal_interrupt *pxInterruptController;
/* Set all interrupt enable bits to 0. */
mainPLIC_ENABLE_0 = 0UL;
mainPLIC_ENABLE_1 = 0UL;
-
- /* Clear all pending interrupts. */
- mainPLIC_PENDING_0 = 0UL;
- mainPLIC_PENDING_1 = 0UL;
}
/*-----------------------------------------------------------*... |
generate_cookie_callback: free temporary memory on an error path | @@ -786,6 +786,7 @@ int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
/* Create buffer with peer's address and port */
if (!BIO_ADDR_rawaddress(peer, NULL, &length)) {
BIO_printf(bio_err, "Failed getting peer address\n");
+ BIO_ADDR_free(lpeer);
return 0;
}
OPENSSL_assert(length != 0);
|
sdl/render: Add GetMetalLayer() and GetMetalCommandEncoder() for SDL2 2.0.8 | @@ -9,6 +9,22 @@ static inline int SDL_UpdateYUVTexture(SDL_Texture* texture, const SDL_Rect* rec
{
return -1;
}
+#endif
+
+#if !(SDL_VERSION_ATLEAST(2,0,8))
+
+#pragma message("SDL_RenderGetMetalLayer is not supported before SDL 2.0.8")
+static inline void * SDL_RenderGetMetalLayer(SDL_Renderer *renderer)
+{
+ return ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.