message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
esp_eth: Fix w5500 to correctly read registers on -Os
Reading SPI data may come in 4-byte units and thus result in unwanted
overwrites if smaller size registers read, especially if multiple placed
one after another. Fixed by using direct reads to `trans` structure for
sizes smaller or equal to 4.
Closes | @@ -93,6 +93,7 @@ static esp_err_t w5500_read(emac_w5500_t *emac, uint32_t address, void *value, u
esp_err_t ret = ESP_OK;
spi_transaction_t trans = {
+ .flags = len <= 4 ? SPI_TRANS_USE_RXDATA : 0, // use direct reads for registers to prevent overwrites by 4-byte boundary writes
.cmd = (address >> W5500_ADDR_OFFSET),
... |
Convert GLKit to C++/WinRT
Convert GLKit to C++/WinRT | #import <GLKit/GLKitExport.h>
#import <GLKit/GLKView.h>
#import <GLKit/GLKViewController.h>
-
-#import <UWP/WindowsFoundation.h>
-#import <UWP/WindowsGlobalization.h>
+#import <chrono>
#import "CALayerInternal.h"
+#import "CppWinRTHelpers.h"
+
+#include "COMIncludes.h"
+#import <winrt/Windows.Foundation.h>
+#import <wi... |
Fix - Bad file marshal
We forgot a call to janet_marshal_abstract, which corrupted the output. | @@ -339,6 +339,7 @@ static int io_file_get(void *p, Janet key, Janet *out) {
static void io_file_marshal(void *p, JanetMarshalContext *ctx) {
JanetFile *iof = (JanetFile *)p;
if (ctx->flags & JANET_MARSHAL_UNSAFE) {
+ janet_marshal_abstract(ctx, p);
#ifdef JANET_WINDOWS
janet_marshal_int(ctx, _fileno(iof->file));
#else... |
Add SDK-specific include path for macOS Mojave | @@ -392,6 +392,10 @@ when arg_config('--clean')
do_clean
end
+if darwin?
+ ENV['CFLAGS'] = "#{ENV['CFLAGS']} -I /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2"
+end
+
if openbsd? && !using_system_libraries?
if `#{ENV['CC'] || '/usr/bin/cc'} -v 2>&1` !~ /clang/
ENV['CC'] ||= find_executable('egc... |
Add MiragePrismPrismBox addon | @@ -4116,6 +4116,10 @@ classes:
base: Component::GUI::AtkUnitBase
funcs:
0x140EF5900: ctor
+ Client::UI::AddonMiragePrismPrismBox:
+ vtbls:
+ - ea: 0x141880278
+ base: Component::GUI::AtkUnitBase
Client::UI::AddonGrandCompanySupplyReward:
vtbls:
- ea: 0x1418992E0
|
test: add test for key generation strength > RNG strength | @@ -24,17 +24,23 @@ use lib bldtop_dir('.');
my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
plan tests =>
- ($no_fips ? 0 : 1) # Extra FIPS related test
+ ($no_fips ? 0 : 2) # Extra FIPS related test
+ 14;
# We want to know that an absurdly small number of bits isn't support
is(run(app([ 'openssl', 'genpkey', ... |
Support MAIN keyword in PY_SRCS.
PY_SRCS(MAIN x/y.py)
in a/b/ya.make means
PY_MAIN(a.b.x.y)
PY_SRCS(x/y.py) | @@ -189,6 +189,10 @@ def onpy_srcs(unit, *args):
pass
# Sources.
else:
+ main_mod = arg == 'MAIN'
+ if main_mod:
+ arg = next(args)
+
if '=' in arg:
path, mod = arg.split('=', 1)
else:
@@ -200,6 +204,9 @@ def onpy_srcs(unit, *args):
ymake.report_configure_error('PY_SRCS item starts with "../": {!r}'.format(arg))
mod = ... |
xive: Move xive_provision_cpu() around
More logical organisation of the code. | @@ -2848,41 +2848,6 @@ static void xive_setup_hw_for_emu(struct xive_cpu_state *xs)
0, 8, &vp, false, true);
}
-static void xive_provision_cpu(struct xive_cpu_state *xs, struct cpu_thread *c)
-{
- struct xive *x;
- void *p;
-
- /* Physical VPs are pre-allocated */
- xs->vp_blk = PIR2VP_BLK(c->pir);
- xs->vp_idx = PIR2V... |
vppinfra: add dummy/noop f32/f64 endian swap fns
Makes life easier for binary API language bindings
Type: fix | @@ -210,6 +210,14 @@ _(i64);
#undef _
+/* Dummy endian swap functions for IEEE floating-point numbers */
+/* *INDENT-OFF* */
+always_inline f64 clib_net_to_host_f64 (f64 x) { return x; }
+always_inline f64 clib_host_to_net_f64 (f64 x) { return x; }
+always_inline f32 clib_net_to_host_f32 (f32 x) { return x; }
+always_i... |
apps/wireless/wapi: Remove dependency on CONFIG_EXPERIMENTAL from Kconfig | menuconfig WIRELESS_WAPI
bool "IEEE 802.11 Configuration Library"
default n
- depends on NET && DRIVERS_WIRELESS && EXPERIMENTAL
+ depends on NET && DRIVERS_WIRELESS
---help---
Wapi is a tool by Volkan YAZICI <volkan.yazici@gmail.com> that can
be used to manage 802.11 network.
|
added some more ESSID combinations | @@ -137,13 +137,15 @@ for(pi = 0; pi < essidlen; pi++)
if(((essid[pi] >= 'A') && (essid[pi] <= 'Z')) || ((essid[pi] >= 'a') && (essid[pi] <= 'z')))
{
essidtmp[po] = essid[pi];
- removeflag = true;
po++;
}
else
+ {
essidlentmp--;
+ removeflag = true;
+ }
}
-if(removeflag == true)
+if(removeflag == false)
{
writeessidadd... |
Bump Ubuntu version as we need python with SNI support | @@ -6432,8 +6432,6 @@ buildvariants:
distros: # Run on any of these variants, whichever will schedule us first
- ubuntu1604-build
- ubuntu1604-test
- - ubuntu1404-build
- - ubuntu1404-test
- "release-compile"
- "debug-compile"
- ".debug-compile .stdflags !.c89"
|
[tests] has_feature() helper func
has_feature() helper func so that tests
can be skipped if support is not present | @@ -444,4 +444,17 @@ sub endspawnfcgi {
return 0;
}
+sub has_feature {
+ # quick-n-dirty crude parse of "lighttpd -V"
+ # (XXX: should be run on demand and only once per instance, then cached)
+ my ($self, $feature) = @_;
+ my $FH;
+ open($FH, "-|",$self->{LIGHTTPD_PATH}, "-V") || return 0;
+ while (<$FH>) {
+ return (... |
Fixed formatting in main.c
Makes this more readable, and stops GCC from warning about if guarding the return. | @@ -226,15 +226,29 @@ int cheatcoin_do_xfer(void *outv, const char *amount, const char *address)
memset(&xfer, 0, sizeof(xfer));
xfer.remains = cheatcoins2amount(amount);
+
if (!xfer.remains) {
- if (out) fprintf(out, "Xfer: nothing to transfer.\n"); return 1;
+ if (out) {
+ fprintf(out, "Xfer: nothing to transfer.\n")... |
Fix ksceCtrlSetAnalogEmulation args | @@ -260,10 +260,10 @@ int ksceCtrlSetButtonEmulation(unsigned int port, unsigned char slot,
* @param lY New emulate value for the left joystick's Y-axis. Between 0 - 0xFF.
* @param rX New emulated value for the right joystick's X-axis. Between 0 - 0xFF.
* @param rY New emulate value for the right joystick's Y-axis. Bet... |
oauth2: use new jmsn wrapper header | #include <fluent-bit/flb_oauth2.h>
#include <fluent-bit/flb_upstream.h>
#include <fluent-bit/flb_http_client.h>
-
-#include <jsmn/jsmn.h>
+#include <fluent-bit/flb_jsmn.h>
#define free_temporary_buffers() \
if (prot) { \
|
rest-frontend: fix example | @@ -232,9 +232,9 @@ Example:
"path": "src/plugins/README.md",
"target_file": ["README.md", "README", "readme.md", "readme"],
"parsing": {
- "start_regex": "# Plugins #",
- "stop_regex": "####### UNUSED ######",
- "section_regex": "### ([^#]+) ###",
+ "start_regex": "# Plugins",
+ "stop_regex": "####### UNUSED",
+ "sect... |
get version from config.mk | pkgname=st-luke-git
_pkgname=st
-_pkgver=0.8.2
-pkgver=0.8.2.r1059.51ac1b9
+pkgver=0.8.2.r1062.2087ab9
pkgrel=1
epoch=1
pkgdesc="Luke's simple (suckless) terminal with vim-bindings, transparency, xresources, etc. "
@@ -22,7 +21,8 @@ conflicts=("${_pkgname}")
pkgver() {
cd "${_pkgname}"
- printf "%s.r%s.%s" "${_pkgver}"... |
VERSION bump to version 2.0.99 | @@ -62,7 +62,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 98)
+set(LIBYANG_MICRO_VERSION 99)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
... |
Fixed actor frame select preview if selecting frame 0 and initial frame was not 0 | @@ -48,7 +48,9 @@ class ActorSelect extends Component {
}
frame={
!rest.direction &&
- (rest.frame || actor.frame || 0) % totalFrames
+ (rest.frame !== undefined
+ ? rest.frame || 0
+ : actor.frame || 0) % totalFrames
}
/>
)}
|
add jacobian, forward and inverse | @@ -29,14 +29,23 @@ void setup()
manipulator.addComponent(COMP1, WORLD, COMP2, MATH::makeVector3(-0.100, 0.0, 0.0), IDENTITY_MATRIX, 1, Z_AXIS, 0.5, MATH::makeMatrix3(1, 1, 1, 1, 1, 1, 3, 1, 1));
manipulator.addComponent(COMP2, COMP1, COMP3, MATH::makeVector3(0.0, 0.0, 0.050), IDENTITY_MATRIX, 2, Y_AXIS, 1.5);
manipula... |
[libcpu/risc-v/virt64]: fix parameter for call handle_trap | @@ -114,8 +114,9 @@ trap_entry:
/* handle interrupt */
call rt_interrupt_enter
csrr a0, SRC_XCAUSE
- csrr a1, SRC_XEPC
- mv a2, s0
+ csrr a1, SRC_XTVAL
+ csrr a2, SRC_XEPC
+ mv a3, s0
call handle_trap
call rt_interrupt_leave
|
in_mem: filter plugin support | @@ -209,6 +209,9 @@ static int in_mem_collect(struct flb_input_instance *i_ins,
entries += 2;
}
+ /* Mark the start of a 'buffer write' operation */
+ flb_input_buf_write_start(i_ins);
+
msgpack_pack_array(&i_ins->mp_pck, 2);
msgpack_pack_uint64(&i_ins->mp_pck, time(NULL));
msgpack_pack_map(&i_ins->mp_pck, entries);
@@... |
oc_cred:minor cleanup of OSCORE cred handling | @@ -986,7 +986,7 @@ oc_sec_decode_cred(oc_rep_t *rep, oc_sec_cred_t **owner, bool from_storage,
size_t publicdata_size = 0;
#endif /* OC_PKI */
#ifdef OC_OSCORE
- oc_string_t *sid = NULL, *rid = NULL;
+ const char *sid = NULL, *rid = NULL;
uint64_t ssn = 0, rwin = 0;
#endif /* OC_OSCORE */
bool owner_cred = false;
@@ -... |
libtcmu: fix hw_max_sectors max_xfer_len use
Max sectors is the number of block_size sectors/blocks, so do not
convert between 512 bytes. | #include "libtcmu_priv.h"
#include "alua.h"
-#define SECTOR_SIZE 512
-
int tcmu_get_cdb_length(uint8_t *cdb)
{
uint8_t group_code = cdb[0] >> 5;
@@ -475,7 +473,6 @@ finish_page83:
{
char data[64];
int block_size;
- int max_sectors;
int max_xfer_length;
uint16_t val16;
uint32_t val32;
@@ -506,15 +503,12 @@ finish_page83... |
rest-frontend: fix regex
fixes
thanks to | "start_regex": "## Plugins",
"stop_regex": "####### UNUSED",
"section_regex": "### ([^#]+)",
- "entry_regex": "^\\- \\[(.+)\\]\\(([^\\)]+)\\)(.*)"
+ "entry_regex": "^- \\[([^\\]]+)\\]\\(([^)]+)\\)(.*)"
},
"name": {
"make_pretty": false
|
include/openssl/ts.h: clean away a misplaced EVP_MD stack definition | @@ -37,8 +37,6 @@ extern "C" {
# include <openssl/x509.h>
# include <openssl/x509v3.h>
-DEFINE_OR_DECLARE_STACK_OF(EVP_MD)
-
typedef struct TS_msg_imprint_st TS_MSG_IMPRINT;
typedef struct TS_req_st TS_REQ;
typedef struct TS_accuracy_st TS_ACCURACY;
|
api/trace: search for input ny alias. | @@ -42,6 +42,9 @@ struct flb_input_instance *find_input(struct flb_hs *hs, const char *name)
if (strcmp(name, in->name) == 0) {
return in;
}
+ if (strcmp(name, in->alias) == 0) {
+ return in;
+ }
}
return NULL;
}
|
fix f_mount when mount more fats | * 2014-01-26 Bernard Check the sector size before mount.
* 2017-02-13 Hichard Update Fatfs version to 0.12b, support exFAT.
* 2017-04-11 Bernard fix the st_blksize issue.
+ * 2017-05-26 Urey fix f_mount error when mount more fats
*/
#include <rtthread.h>
#include <dfs_fs.h>
#include <dfs_def.h>
-static rt_device_t disk... |
input: renamed ring buffer registration function | @@ -774,7 +774,7 @@ int flb_input_instance_init(struct flb_input_instance *ins,
}
/* register the ring buffer */
- ret = flb_ring_buffer_register(ins->rb, config->evl, FLB_INPUT_RING_BUFFER_WINDOW);
+ ret = flb_ring_buffer_add_event_loop(ins->rb, config->evl, FLB_INPUT_RING_BUFFER_WINDOW);
if (ret) {
flb_error("failed ... |
detailed knowledge of filter procedures is mandotory | @@ -110,6 +110,7 @@ Requirements
* detailed knowledge of 802.11 protocol
* detailed knowledge of key derivation functions
* detailed knowledge of Linux
+* detailed knowledge of filter procedures (Berkeley Packet Filter, capture filter, display filter)
* operatingsystem: Linux distribution, Kernel >= 5.15
* recommended:... |
Solve bugs in python loader exception. | @@ -1378,7 +1378,7 @@ value py_loader_impl_capi_to_value(loader_impl impl, PyObject *obj, type_id id)
{
PyObject *tb = PyException_GetTraceback(obj);
- v = py_loader_impl_error_value_from_exception(loader_impl_get(impl), (PyObject *)Py_TYPE(obj), obj, tb);
+ v = py_loader_impl_error_value_from_exception(loader_impl_get... |
added weak candidates based on wpa-sec anylysis | @@ -541,8 +541,6 @@ if(essidglen <= 12)
snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "%s%d", essid, c);
writepsk(fhout, essidstring);
}
- snprintf(essidstring, PSKSTRING_LEN_MAX +PSKSTRING_LEN_MAX , "*(%s)*", essid);
- writepsk(fhout, essidstring);
}
if(essidglen > 12)
@@ -594,8 +592,6 @@ for(c = 0; c <... |
Update: move parameters up | #define UNIFICATION_DEPTH 31
//Priority to correlate an outcome
#define CORRELATE_OUTCOME_PRIORITY 0.3
+//Maximum length of sequences
+#define MAX_SEQUENCE_LEN 3
+//Maximum time difference to form sequence between events
+#define MAX_SEQUENCE_TIMEDIFF EVENT_BELIEF_DISTANCE
/*------------------*/
/* Space parameters */
... |
Simplify Chocolatey documentation | @@ -80,12 +80,7 @@ It is also available in [Chocolatey]:
```bash
choco install scrcpy
-```
-
-You need `adb`, accessible from your `PATH`. If you don't have it yet:
-
-```bash
-choco install adb
+choco install adb # if you don't have it yet
```
You can also [build the app manually][BUILD].
|
[P2P] Fix wrong goAway message
Prev version send wrong format of goAway message | @@ -21,7 +21,6 @@ import (
lru "github.com/hashicorp/golang-lru"
"github.com/libp2p/go-libp2p-host"
inet "github.com/libp2p/go-libp2p-net"
- uuid "github.com/satori/go.uuid"
"github.com/aergoio/aergo-lib/log"
"github.com/aergoio/aergo/message"
@@ -394,15 +393,11 @@ func (pm *peerManager) addOutboundPeer(meta PeerMeta) ... |
Minor refactoring in function VmaBlockMetadata_Generic::CreateAllocationRequest. | @@ -7959,9 +7959,7 @@ bool VmaBlockMetadata_Generic::CreateAllocationRequest(
{
// Brute-force algorithm. TODO: Come up with something better.
- pAllocationRequest->sumFreeSize = VK_WHOLE_SIZE;
- pAllocationRequest->sumItemSize = VK_WHOLE_SIZE;
-
+ bool found = false;
VmaAllocationRequest tmpAllocRequest = {};
tmpAlloc... |
tests: internal: random: fix function name | #include "flb_tests_internal.h"
-void test_randombytes()
+void test_random_bytes()
{
int ret;
unsigned char buf1[64] = {0};
@@ -18,16 +18,16 @@ void test_randombytes()
* These tests are probabilistic by nature; If we assume an ideal random
* generator, they are expected to fail once in 2^192 (= 10^57) runs.
*/
- ret = ... |
lib: mbedtls: CMakeLists.txt: fix a typo for CFLAGS
CMAKE_C_CFLAGS -> CMAKE_C_FLAGS, this avoids C_FLAGS from environment
being overridden. | @@ -154,7 +154,7 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")
include(CheckCCompilerFlag)
-set(CMAKE_C_FLAGS "${CMAKE_C_CFLAGS} -std=c99")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
if(CMAKE_COMPILER_IS_GNU)
# some warnings we want are not available with old GCC versions
|
Fix freeing memory cycle
This patch fixes incorrect freeing memory in function h2o_evloop_destroy | @@ -559,7 +559,7 @@ void h2o_evloop_destroy(h2o_evloop_t *loop)
while((struct st_h2o_evloop_socket_t*)(sock=loop->_statechanged.head->_next_statechanged) != NULL){
free(loop->_statechanged.head);
- loop->_statechanged.head=loop->_statechanged.head->_next_statechanged;
+ loop->_statechanged.head=sock;
}
sock=loop->_stat... |
test non-default heap | @@ -42,6 +42,9 @@ int main() {
char* s = strdup("hello\n");
free(p2);
+ mi_heap_t* h = mi_heap_new();
+ mi_heap_set_default(h);
+
p2 = malloc(16);
p1 = realloc(p1, 32);
free(p1);
@@ -58,6 +61,7 @@ int main() {
//mi_stats_print(NULL);
// test_process_info();
+
return 0;
}
|
[ctr/lua] Remove unnecessary code | @@ -477,7 +477,6 @@ static int state_var(lua_State *L)
lua_pushstring(L, TYPE_NAME); /* T key value VT _type_ */
lua_pushstring(L, "value"); /* T key value VT _type_ "value" */
lua_rawset(L, -3); /* T key value VT{_type="value"} */
- goto found;
}
found:
|
Default config changed to Tinker10 | #include "gsl/gsl_spline.h"
#include "gsl/gsl_integration.h"
-const ccl_configuration default_config = {ccl_boltzmann_class, ccl_halofit, ccl_tinker};
+const ccl_configuration default_config = {ccl_boltzmann_class, ccl_halofit, ccl_tinker10};
/* ------- ROUTINE: ccl_cosmology_create ------
INPUTS: ccl_parameters params... |
Add check for testing. | @@ -24,6 +24,7 @@ Fixes #(issue_no)
- [ ] I have made corresponding changes to the documentation.
- [ ] My changes generate no new warnings.
- [ ] I have added tests/screenshots (if any) that prove my fix is effective or that my feature works.
+- [ ] I have tested the tests implicated (if any) by my own code and they p... |
Fix crash caused by parsing 'empty' Florida responses
Crash occures in certain cases when response part '\r\n\r\n' is splitted
into two messages and parser fails to detect the beginning of HTML content
or when returned en mpty seeds list. | @@ -179,6 +179,11 @@ florida_get_seeds(struct context * ctx, struct mbuf *seeds_buf) {
close(sock);
dn_free(remote);
+ if (mbuf_length(seeds_buf) == 0) {
+ log_error("No seeds were found in Florida response (htmlstart %u)", htmlstart);
+ return DN_ERROR;
+ }
+
uint32_t seeds_hash = hash_seeds(seeds_buf->pos, mbuf_lengt... |
fix issues: tb_http_close can't fully close socks, leave CLOSE_WAIT actually | @@ -747,6 +747,9 @@ tb_stream_ref_t tb_stream_init_sock()
{
// init sock type
stream_sock->type = TB_SOCKET_TYPE_TCP;
+
+ // mark as owner of socket
+ stream_sock->owner = 1;
}
// ok?
@@ -776,8 +779,7 @@ tb_stream_ref_t tb_stream_init_from_sock(tb_char_t const* host, tb_uint16_t port
tb_stream_sock_t* stream_sock = tb_... |
publish: do not timeout join flow | @@ -17,7 +17,7 @@ export function JoinScreen(props: JoinScreenProps & RouteComponentProps) {
const [error, setError] = useState(false);
const joining = useRef(false);
- const waiter = useWaitForProps(props, 10000);
+ const waiter = useWaitForProps(props);
const onJoin = useCallback(async () => {
joining.current = true;... |
Added PR-description to README | ## Introduction
-Copy this macaddr if you want to start a new
-plugin written in C.
+This plugin validates MAC-addresses. The following MAC-address-formats are allowed for now:
+
+ XX-XX-XX-XX-XX-XX
+ XX:XX:XX:XX:XX:XX
+ XXXXXX-XXXXXX
+
+If `set` is used, the value will be transformed to the format of the middle one.
+... |
uncommented some stuff that should be parsed | @@ -42,8 +42,8 @@ ATTR collection pwg-test-collection-type-one-set
MEMBER integer pwg-member-integer-set 69,42,99
}
-# ATTR dateTime pwg-test-dateTime-type 2016-03-07T13:55:30Z
-# ATTR dateTime pwg-test-dateTime-type-one-set 2016-03-07T13:55:30Z,2017-06-05T14:14:49-0800
+ATTR dateTime pwg-test-dateTime-type 2016-03-07T... |
full report with -f | @@ -16,6 +16,50 @@ if test "$1" = "fake"; then
echo "fake" > .done-`basename $2 .tdir`
exit 0
fi
+if test "$1" = "-f" && test "$2" = "report"; then
+ echo "Minitdir Long Report"
+ pass=0
+ fail=0
+ skip=0
+ echo " STATUS ELAPSED TESTNAME TESTDESCRIPTION"
+ for result in *.tdir; do
+ name=`basename $result .tdir`
+ time... |
Change the default value of TCP_MSS to 1440 and TCP_MSS Range : [536 1460] | @@ -295,7 +295,7 @@ menu "LWIP"
config TCP_MSS
int "Maximum Segment Size (MSS)"
default 1440
- range 576 1460
+ range 536 1460
help
Set maximum segment size for TCP transmission.
|
Wordsmithing of TI README.txt
Adds some details behind the subset of the TI SDK provided with Amazon
FreeRTOS, as well as a link to the 2.10.00.04 SDK. | -Amazon FreeRTOS currently only has a subset of the TI SimpleLink SDK which includes "headers and pre-compiled libraries" in order to keep the download small. No source code files are available for drivers. After initial evaluation, users are strongly encouraged to download and use the TI SDK so all documents and examp... |
launch: fix group notification display
Fixes urbit/landscape#720
Fixes urbit/landscape#656 | @@ -31,6 +31,6 @@ export function getNotificationCount(
): number {
const unread = unreads.graph?.[path] || {};
return Object.keys(unread)
- .map(index => unread[index]?.notifications || 0)
+ .map(index => unread[index]?.notifications?.length || 0)
.reduce(f.add, 0);
}
|
server session BUGFIX wrong variable | @@ -1139,7 +1139,7 @@ nc_accept_ssh_session(struct nc_session *session, int sock, int timeout)
return -1;
}
- if (session->opts.server.ssh_auth_attempts >= opts->auth_attempts) {
+ if (session->ssh_auth_attempts >= opts->auth_attempts) {
ERR("Too many failed authentication attempts of user \"%s\".", session->username);... |
Test output string | @@ -21,6 +21,11 @@ for f in `echo $files`; do
ps=`${tools_dir}/grib_get -wcount=1 -p projString $file`
# Check length of result is nonzero
[ -n "$ps" ]
+ # Check contents (basic)
+ case $ps in
+ *+proj=*) echo OK;;
+ *) echo "File: $file. Invalid proj string: |$ps|"; exit 1;;
+ esac
done
# Reminder
|
Default not allowed results in no request in aggregator
If the list of selected or default Datafari is completely not allowed by the allowed list,
no request is performed and an error is returned.
Fixes the previous behavior which was making the request on all active sites, weather allowed or not. | @@ -115,8 +115,12 @@ public class SearchAggregator extends HttpServlet {
final JSONArray jaExternalDatafaris = (JSONArray) parser.parse(jaExternalDatafarisStr);
// Filter out external sources that are not selected or disabled.
// If nothing is selected, we keep all sources
- jaExternalDatafaris
- .removeIf(jsonObject -... |
Remove link to reddit
fixes | @@ -19,7 +19,7 @@ Please refer to the [wiki](https://github.com/Airblader/i3/wiki/installation).
For bug reports or feature requests regarding i3-gaps specifically, open an issue on [GitHub](https://www.github.com/Airblader/i3). If your issue is with core i3 functionality, please report it [upstream](https://www.github... |
restrict use of MAPSMOBI_GLOB macro | @@ -5412,6 +5412,7 @@ module DLL_PROXY_LIBRARY: _PROXY_LIBRARY {
### @usage: MAPSMOBI_GLOB(varname dir regexp) # internal
macro MAPSMOBI_GLOB(VAR, DIR, REGEXP) {
_GLOB($VAR $DIR/$REGEXP)
+ RESTRICT_PATH(devtools/experimental/mapsmobi tools/idl MSG This macro is for use in mapsmobi projects)
}
GO_HOST_OS=unknown
|
Clean up some names and combine the 2 comment blocks into one | /* Choose your demo here. By design only one demo can be selected at a time. If
you choose more than one only the first choice will be run. If you require
more than one demo to run at the same time you should create a combined
- demo and run both the required demo tasks from your demo entry function */
+ demo and run b... |
Travis requires 'gnu++0x' | @@ -27,7 +27,8 @@ endif
ifeq ($(USE_RAND),1)
export CXXFLAGS = -DUSE_RAND
else
-export CXXFLAGS = -std=c++11
+# Although we really want c++11, g++ 4.6.3 (as used by Travis) uses 'gnu++0x'
+export CXXFLAGS = -std=gnu++0x
endif
export LIBS = -lz
|
server: http parser: fix index condition to avoid access invalid address | @@ -193,10 +193,8 @@ static inline int header_lookup(struct mk_http_parser *p, char *buffer)
struct row_entry *h;
len = (p->header_sep - p->header_key);
-
- for (i = p->header_min; i <= p->header_max; i++) {
+ for (i = p->header_min; i <= p->header_max && i >= 0; i++) {
h = &mk_headers_table[i];
-
/* Check string lengt... |
no-ec fix | @@ -12,6 +12,7 @@ use warnings;
use File::Spec::Functions qw/canonpath/;
use OpenSSL::Test qw/:DEFAULT srctop_file/;
+use OpenSSL::Test::Utils;
setup("test_verify");
@@ -341,6 +342,12 @@ ok(!verify("ee-pss-sha1-cert", "sslserver", ["root-cert"], ["ca-cert"], "-auth_l
ok(verify("ee-pss-sha256-cert", "sslserver", ["root-... |
pyapi MAINTENANCE code formating | @@ -34,17 +34,25 @@ clb_print(NC_VERB_LEVEL level, const char* msg)
switch (level) {
case NC_VERB_ERROR:
PyErr_SetString(libnetconf2Error, msg);
- if (syslogEnabled) {syslog(LOG_ERR, "%s", msg);}
+ if (syslogEnabled) {
+ syslog(LOG_ERR, "%s", msg);
+ }
break;
case NC_VERB_WARNING:
- if (syslogEnabled) {syslog(LOG_WARNI... |
YAML CPP: Require Boost
The current version of yaml-cpp (version 0.5) requires a working copy
of Boost. | if (DEPENDENCY_PHASE)
+ find_package(Boost QUIET)
+ if (NOT Boost_FOUND)
+ remove_plugin (yamlcpp "boost was not found")
+ endif (NOT Boost_FOUND)
+
find_package(yaml-cpp QUIET 0.5)
if (NOT YAML-CPP_FOUND)
remove_plugin (yamlcpp "yaml-cpp (version 0.5) was not found")
|
remove O3 flag | @@ -178,7 +178,7 @@ endif()
# Compiler flags
if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU")
- list(APPEND mi_cflags -Wall -Wextra -Wno-unknown-pragmas -fvisibility=hidden $<$<CONFIG:RELEASE>:-O3>)
+ list(APPEND mi_cflags -Wall -Wextra -Wno-unknown-pragmas -fvisibility=hidden)
if(NOT MI_USE_CXX)
list(APPEND mi_c... |
[hardware] Remove redundant logic from lookup code | @@ -175,16 +175,18 @@ module snitch_icache_lookup #(
.empty_o ( )
);
- // Buffer the metadata
+ // Buffer the metadata on a valid handshake. Stall on write (implicit in req_valid/ready)
`FFL(tag_req_q, tag_req_d, req_valid && req_ready, '0, clk_i, rst_ni)
- `FF(tag_valid, req_valid ? 1'b1 : (tag_ready && !tag_write) ? ... |
common/ec_features.c: Format with clang-format
BRANCH=none
TEST=none | @@ -113,7 +113,8 @@ uint32_t get_feature_flags0(void)
uint32_t get_feature_flags1(void)
{
- uint32_t result = EC_FEATURE_MASK_1(EC_FEATURE_UNIFIED_WAKE_MASKS)
+ uint32_t result =
+ EC_FEATURE_MASK_1(EC_FEATURE_UNIFIED_WAKE_MASKS)
#ifdef CONFIG_HOST_EVENT64
| EC_FEATURE_MASK_1(EC_FEATURE_HOST_EVENT64)
#endif
|
aomp14.0 will be developed with amd-stg-open | <project remote="roc" path="rocm-cmake" name="rocm-cmake" revision="master" groups="unlocked" />
<!-- AOMP -->
-<project remote="roctools" path="llvm-project" name="llvm-project" revision="aomp14-dev" groups="unlocked" />
+<project remote="roc" path="llvm-project" name="llvm-project" revision="amd-stg-open" groups="unl... |
evoker: Disable ISL9238C CMOUT latch
Disable ISL9238C CMOUT latch
BRANCH=none
TEST=check CMOUT latch function can disable | @@ -10,3 +10,7 @@ CONFIG_PLATFORM_EC_CONFIG_USB_PD_3A_PORTS=0
CONFIG_PLATFORM_EC_ACCEL_BMA255=n
CONFIG_PLATFORM_EC_ACCEL_BMA4XX=y
+
+# ISL9238C disable the CMOUT latch function.
+CONFIG_PLATFORM_EC_ISL9238C_DISABLE_CMOUT_LATCH=y
+CONFIG_PLATFORM_EC_CONSOLE_CMD_CHARGER_DUMP=y
\ No newline at end of file
|
engine: added storage backlog chunk segregation | @@ -495,6 +495,8 @@ static int flb_engine_log_start(struct flb_config *config)
return 0;
}
+extern int sb_segregate_chunks(struct flb_config *config);
+
int flb_engine_start(struct flb_config *config)
{
int ret;
@@ -679,6 +681,14 @@ int flb_engine_start(struct flb_config *config)
/* Signal that we have started */
flb_e... |
docker: install rust from rustup | @@ -70,7 +70,6 @@ RUN apt-get update && apt-get -y install \
reprepro \
ruby \
ruby-dev \
- rustc \
shellcheck \
swig4.0 \
systemd \
@@ -153,3 +152,6 @@ RUN virtualenv "${COVERALLS_VIRTUALENV_PATH}" \
&& pip3 install cpp-coveralls \
&& deactivate
ENV PATH="${PATH}:${COVERALLS_VIRTUALENV_PATH}/bin"
+
+# rust
+curl --pro... |
BugID:18683049:[dh5021a_evb] do not prebuild this platform since it`s ram so small | @@ -12,4 +12,4 @@ component.set_global_arch('ck802')
component.add_global_cflags('-std=gnu99')
aos_global_config.add_ld_files('gcc_csky.ld')
-linux_only_targets="coapapp helloworld linkkit_gateway linkkitapp mqttapp otaapp tls udevapp yts"
+linux_only_targets="helloworld tls yts"
|
add check that params is set in cv and train | @@ -1908,6 +1908,9 @@ def train(pool=None, params=None, dtrain=None, logging_level=None, verbose=None,
model : CatBoost class
"""
+ if params is None:
+ raise CatboostError("params should be set.")
+
if dtrain is not None:
if pool is None:
pool = dtrain
@@ -1997,6 +2000,9 @@ def cv(pool=None, params=None, dtrain=None, ... |
sse4.1: add NEON implementation of simde_mm_stream_load_si128
Fixes | @@ -1819,6 +1819,8 @@ simde__m128i
simde_mm_stream_load_si128 (const simde__m128i* mem_addr) {
#if defined(SIMDE_X86_SSE4_1_NATIVE)
return _mm_stream_load_si128(HEDLEY_CONST_CAST(simde__m128i*, mem_addr));
+#elif defined(SIMDE_ARM_NEON_A32V7_NATIVE)
+ return vreinterpretq_s64_s32(vld1q_s32(HEDLEY_REINTERPRET_CAST(int32... |
mmapstorage: fix mmap header for 32-bit systems | @@ -18,7 +18,7 @@ typedef struct _mmapHeader MmapHeader;
struct _mmapHeader
{
- size_t mmapMagicNumber; /**<Magic number for consistency check */
+ uint64_t mmapMagicNumber; /**<Magic number for consistency check */
size_t mmapSize; /**<Size of the complete mapping in bytes */
size_t numKeySets; /**<Number of KeySets i... |
dd:simplified cmd_dd code steps | @@ -69,7 +69,6 @@ struct dd_s
int infd; /* File descriptor of the input device */
int outfd; /* File descriptor of the output device */
uint32_t nsectors; /* Number of sectors to transfer */
- uint32_t sector; /* The current sector number */
uint32_t skip; /* The number of sectors skipped on input */
bool eof; /* true:... |
HW: Remove dependency to psl_fpga.prj from rule patch_build_date in hardware/Makefile | @@ -76,7 +76,7 @@ $(BUILD_DIR)/Sources/prj/psl_fpga.prj: $(BUILD_DIR)/psl_fpga.tcl
done
@if [ $(DDR3_USED) = "TRUE" ]; then echo "PATCH .vhd FILES for DDR3 usage" && cd $(BUILD_DIR) && patch -p0 < $(DONUT_HARDWARE_ROOT)/setup/vhdl.patch; fi
-patch_build_date: $(BUILD_DIR)/Sources/prj/psl_fpga.prj
+patch_build_date:
@ec... |
Add lib64 to RPATH.
Rpm based systems have a subset of libraries installed into lib64,
adjust RPATH to include lib64. | @@ -85,7 +85,7 @@ if [ $AOMP_STANDALONE_BUILD == 1 ] ; then
# Default is to build nvptx for STANDALONE build
AOMP_BUILD_CUDA=${AOMP_BUILD_CUDA:-1}
AOMP_BUILD_DEBUG=${AOMP_BUILD_DEBUG:-1}
- AOMP_ORIGIN_RPATH_NO_DTAGS="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=\$ORIGIN:\$ORIGIN/../lib:$AOMP_INSTALL_DIR... |
nicer pidfile | @@ -84,7 +84,7 @@ void unix_write_pidfile( int pid, const char* pidfile ) {
exit( 1 );
}
- if( fprintf( file, "%i", pid ) < 0 ) {
+ if( fprintf( file, "%i\n", pid ) < 0 ) {
log_err( "UNX: Failed to write PID file." );
exit( 1 );
}
|
Update fotran wrapper due to the change of spglib dataset | @@ -34,14 +34,15 @@ module spglib_f08
integer(c_int), allocatable :: wyckoffs(:)
character(len=7), allocatable :: site_symmetry_symbols(:)
integer(c_int), allocatable :: equivalent_atoms(:) !Beware mapping refers to positions starting at 0
+ integer(c_int), allocatable :: crystallographic_orbits(:) !Beware mapping refe... |
Add temp frame allocator; | #include <stdlib.h>
#include <string.h>
+#define MAX_FRAME_MEMORY (1 << 30)
+
struct Buffer {
uint32_t ref;
uint32_t size;
@@ -11,15 +13,23 @@ struct Buffer {
BufferInfo info;
};
+typedef struct {
+ char* memory;
+ uint32_t cursor;
+ uint32_t length;
+} Allocator;
+
static struct {
bool initialized;
gpu_device_info dev... |
update max socket number to 2 | * @brief The number of total sockets that can be opened at one time by a
* hardware port.
*/
-#define integrationtestportableMAX_NUM_UNSECURE_SOCKETS 4
+#define integrationtestportableMAX_NUM_UNSECURE_SOCKETS 2
/**
* @brief Indicates how much longer than the specified timeout is acceptable for
|
Fix handling of ifdef/ifndef | @@ -125,7 +125,7 @@ macro(ParseMakefileVars MAKEFILE_IN)
if (NOT "${line_match}" STREQUAL "")
#message(STATUS "${CMAKE_MATCH_1} first: ${CMAKE_MATCH_2}")
set (ElseSeen 0)
- if (DEFINED ${CMAKE_MATCH_2})
+ if (${CMAKE_MATCH_2})
if (${CMAKE_MATCH_1} STREQUAL "ifdef")
#message (STATUS "condition is true")
set (IfElse 1)
|
build: simply patch application lmdb nix overlay | @@ -28,11 +28,7 @@ in {
lmdb = prev.lmdb.overrideAttrs (attrs: {
patches =
- if builtins.currentSystem != "x86_64-darwin"
- then
- attrs.patches
- else
- optionalList attrs.patches ++ [
+ optionalList attrs.patches ++ prev.lib.optional prev.stdenv.isDarwin [
../pkgs/lmdb/darwin-fsync.patch
];
});
|
net/lwip: Fix bug of handling LWIP_IPV6
Since LWIP_IPV6 is always defined to differenciate IP version, ifdef is not allowed.
Fix a problem of missing #if LWIP_IPV6 before using IPADDR6_INIT macro. | @@ -409,7 +409,9 @@ int copy_socket(void *arg)
{
int i;
int num_copy = 0;
+#if LWIP_IPV6
const ip_addr_t ip6_addr_any = IPADDR6_INIT(0ul, 0ul, 0ul, 0ul);
+#endif
const ip_addr_t ip_addr_any = IPADDR4_INIT(IPADDR_ANY);
sq_queue_t *q_sock = (sq_queue_t *) arg;
SYS_ARCH_DECL_PROTECT(lev);
@@ -438,7 +440,7 @@ int copy_sock... |
fpgaotsu: add total time printout at the end | @@ -37,6 +37,7 @@ import filecmp
import errno
import signal
import threading
+from datetime import datetime
from opae.admin.fpga import fpga
from opae.admin.utils.mtd import mtd
from opae.admin.utils import process
@@ -526,6 +527,8 @@ def main():
json_cfg)
updaters.append(updater)
+ start = datetime.now()
+
if not args... |
Add: references to issues
JIRA | @@ -15,7 +15,7 @@ Notes
- It is not a real-time stack. One write operation might take much longer than another.
- For now, it does not detect or handle bad blocks.
- SPIFFS is able to reliably utilize only around 75% of assigned partition space.
- - When the filesystem is running out of space, the garbage collector is ... |
Adapt 15-test_out_option.t for more than just Unix | @@ -31,8 +31,8 @@ plan tests => 11;
test_illegal_path('/usr/');
test_illegal_path('/');
-test_illegal_path('.');
-test_illegal_path('..');
+test_illegal_path('./');
+test_illegal_path('../');
# Test for trying to create a file in a non-exist directory
my @chars = ("A".."Z", "a".."z", "0".."9");
@@ -44,7 +44,7 @@ test_l... |
Add 'lint' comments for MISRA checking | /**************************************************************************//**
* @file cmsis_armclang.h
* @brief CMSIS compiler ARMCLANG (ARM compiler V6) header file
- * @version V5.0.2
- * @date 13. February 2017
+ * @version V5.0.3
+ * @date 27. March 2017
***********************************************************... |
phb4: Change timeouts prints to error level
If the link doesn't have a electrical link or the link doesn't train
we should make that more obvious to the user.
This boosts these prints to error level. | @@ -2218,7 +2218,7 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
}
if (slot->retries-- == 0) {
- PHBDBG(p, "LINK: Timeout waiting for electrical link\n");
+ PHBERR(p, "LINK: Timeout waiting for electrical link\n");
PHBDBG(p, "LINK: DLP train control: 0x%016llx\n", reg);
rc = phb4_retry_state(slot);
if (rc >= ... |
[numerics] correct bug in scaled residuals | @@ -233,7 +233,7 @@ static void fc3d_admm_symmetric(FrictionContactProblem* restrict problem,
double rho_k=0.0, rho_ratio=0.0;
double e_k = INFINITY, e, alpha, r, s, residual, r_scaled, s_scaled;
- double norm_r=0.0, norm_z=0.0, norm_xi=0.0;
+ double norm_r=0.0, norm_z=0.0;
double tau , tau_k = 1.0;
int pos;
double nor... |
serf: fix bug on auto-reclaim on replay | @@ -447,7 +447,7 @@ _serf_sure_feck(u3_serf* sef_u, c3_w pre_w, u3_noun vir)
// - we don't make very effective use of our free lists
//
else {
- sef_u->rec_o = _(0 == (sef_u->dun_d % 1000ULL));
+ sef_u->rec_o = c3o(sef_u->rec_o, _(0 == (sef_u->dun_d % 1000ULL)));
}
// notify daemon of memory pressure via "fake" effect
|
Update the tests to use the new EVP_PKEY_new_private_key() function
Also to use the new EVP_PKEY_new_CMAC_key() | @@ -911,31 +911,17 @@ static int mac_test_run(EVP_TEST *t)
}
#endif
- if (!TEST_ptr(genctx = EVP_PKEY_CTX_new_id(expected->type, NULL))) {
- t->err = "MAC_PKEY_CTX_ERROR";
- goto err;
- }
-
- if (EVP_PKEY_keygen_init(genctx) <= 0) {
- t->err = "MAC_KEYGEN_INIT_ERROR";
- goto err;
- }
- if (expected->type == EVP_PKEY_CM... |
Eliminate mutable keyword clash | @@ -170,14 +170,14 @@ _ (ParseType_Memory (& io_module->memoryInfo, & i_bytes, i_end));
case c_externalKind_global:
{
i8 waType;
- u8 type, mutable;
+ u8 type, isMutable;
_ (ReadLEB_i7 (& waType, & i_bytes, i_end));
_ (NormalizeType (& type, waType));
-_ (ReadLEB_u7 (& mutable, & i_bytes, i_end)); m3log (parse, " globa... |
CMSIS/RTOSv2 Tick-less Low-Power Operation documentation.
Using __WFE (instead of __WFI) in the example.
Added link to application note about low power operations. | @@ -756,7 +756,7 @@ void osRtxIdleThread (void) {
tc = 0;
/* Enter the low power state */
MSP432_LP_Entry();
- __WFI();
+ __WFE();
}
/* Adjust the kernel ticks with the amount of ticks slept */
osKernelResume (tc);
@@ -765,8 +765,8 @@ void osRtxIdleThread (void) {
\endcode
\note
-\c __WFI() is not available in every AR... |
Update NOTE_END documentation | @@ -50,9 +50,30 @@ enum {
// NOTE_CHOKE is meant to choke the voice(s), like in a drum machine when a closed hihat
// chokes an open hihat.
//
- // NOTE_END is sent by the plugin to the host, when a voice terminates.
- // When using polyphonic modulations, the host has to start voices for its modulators.
- // This mess... |
Make undef'd counts zero by default.
Fixes | @@ -139,6 +139,7 @@ if ($checkexist) {
if ($dropped) {
print STDERR "${ordinals_file}: Dropped $dropped new symbols\n";
}
+ $stats{unassigned} = 0 unless defined $stats{unassigned};
$unassigned = $stats{unassigned} - $dropped;
if ($unassigned) {
my $symbol = $unassigned == 1 ? "symbol" : "symbols";
|
core_types.h: Organize magic class ids and fill the hole. | @@ -376,13 +376,13 @@ typedef struct lily_proto_ {
/* These are important ids in the interpreter. */
-#define LILY_LAST_ID 65528
+#define LILY_LAST_ID 65529
/* Instances of these are never made, so these ids will never be seen by vm. */
-#define LILY_ID_SELF 65529
-#define LILY_ID_QUESTION 65530
-#define LILY_ID_GENERI... |
Update Widget_ComputeMaxAvaliableWidth(). | @@ -1433,12 +1433,11 @@ float Widget_ComputeMaxAvaliableWidth( LCUI_Widget widget )
float width = 0, padding = 0;
for( w = widget->parent; w; w = w->parent ) {
s = &w->style->sheet[key_width];
- padding += w->box.border.width - w->box.content.width;
- if( Widget_CheckStyleType( w, key_width, px ) ||
- Widget_CheckStyle... |
fixed grammar issue w/ curly braces, removing bizarre print statement. | @@ -20,7 +20,6 @@ void ccl_cosmology_compute_hmfparams(ccl_cosmology * cosmo, int *status)
// declare parameter splines on case-by-case basis
switch(cosmo->config.mass_function_method){
case ccl_tinker10:{
- printf("");
double delta[9] = {200.0, 300.0, 400.0, 600.0, 800.0, 1200.0, 1600.0, 2400.0, 3200.0};
double lgdelt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.