message
stringlengths
6
474
diff
stringlengths
8
5.22k
further change to SPI to make more generic.
@@ -147,7 +147,9 @@ nfSPIConfig Library_win_dev_spi_native_Windows_Devices_Spi_SpiDevice::GetConfig( nfSPIConfig cfg = { { - TRUE, + #if (SPI_SUPPORTS_CIRCULAR == TRUE) + SPI_USE_CIRCULAR, + #endif NULL, GPIO_PORT(csPin), csPin % 16,
Fix jpm mendoza install on windows.
[src dest] (print "copying " src " to " dest "...") (if is-win - (shell "xcopy" src dest "/y" "/s" "/e") + (let [end (last (peg/match path-splitter src))] + (shell "xcopy" src (string dest "\\" end) "/y" "/s" "/e")) (shell "cp" "-rf" src dest))) #
fixing a few other places that reference build/scope
@@ -39,14 +39,14 @@ run/bundle.go: cd $(DIR) && $(GOPATH)/bin/go-bindata -o run/bundle.go -pkg run build scope: run/bundle.go - # GOOS=linux CGO_ENABLED=0 $(GO) build -a -tags netgo -ldflags="-s -w" -o build/scope + # GOOS=linux CGO_ENABLED=0 $(GO) build -a -tags netgo -ldflags="-s -w" -o ../bin/linux/scope cd $(DIR) &...
IDs -> ushort
@@ -25,8 +25,9 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI [FieldOffset(0x182)] public byte Flags; [FieldOffset(0x1BC)] public short X; [FieldOffset(0x1BE)] public short Y; - [FieldOffset(0x1CC)] public short ID; - [FieldOffset(0x1CE)] public short ParentID; + [FieldOffset(0x1CC)] public ushort ID; + [FieldOffs...
Subtract the size of the clusterTime
@@ -3411,6 +3411,12 @@ test_bulk_max_msg_size (void) mongoc_collection_drop (collection, NULL); + /* Cluster time document argument is injected sometimes */ + if (!bson_empty (&client->topology->description.cluster_time)) { + filler_string -= client->topology->description.cluster_time.len + + strlen ("$clusterTime") + ...
notifications: fix note click through Fixes urbit/landscape#937
@@ -97,13 +97,13 @@ export const GraphNodeContent = ({ post, mod, index, hidden, association }) => { const { contents } = post; const idx = index.slice(1).split('/'); const url = getNodeUrl(mod, hidden, association?.group, association?.resource, index); - if (mod === 'link' && idx.length === 1) { + if (mod === 'graph-v...
fix libsodium in rpm
@@ -9,7 +9,8 @@ URL: https://github.com/indigo-dc/oidc-agent Source0: oidc-agent.tar BuildRequires: libcurl-devel >= 7.29 -BuildRequires: libsodium-devel >= 1.0.11 +BuildRequires: libsodium-devel >= 1.0.14 +BuildRequires: libsodium-static >= 1.0.14 BuildRequires: libmicrohttpd-devel >= 0.9.33 BuildRequires: libseccomp-...
Remove unnecessary cmockery RUN lines from output.
@@ -1770,9 +1770,6 @@ int _run_test( #endif // !_WIN32 } - if (function_type == UNIT_TEST_FUNCTION_TYPE_TEST) { - print_message(COLOR_DEFAULT, "[ RUN ] %s\n", function_name); - } initialize_testing(function_name); global_running_test = 1; if (setjmp(global_run_test_env) == 0) {
fix git submodule update command with :p flag
@@ -555,7 +555,7 @@ int main(int argc, const char **argv) { (os/cd module-dir) (try (with-dyns [:rules @{}] - (os/execute ["git" "submodule" "update" "--init" "--recursive"]) + (os/execute ["git" "submodule" "update" "--init" "--recursive"] :p) (import-rules "./project.janet") (do-rule "install-deps") (do-rule "build")...
chat: add leading sig when copying patp Fixes
@@ -240,7 +240,7 @@ export class MessageWithSigil extends PureComponent<MessageProps> { className={`mw5 db truncate pointer`} ref={e => nameSpan = e} onClick={() => { - writeText(msg.author); + writeText(`~${msg.author}`); copyNotice(name); }} title={`~${msg.author}`}
Extra blocks: more fixes
@@ -371,7 +371,7 @@ static void check_new_main(void) } } - if (p && i > MAX_WAITING_MAIN && get_timestamp() >= p->time + 2 * 1024) { + if (p && (p->flags & BI_REF) && i > MAX_WAITING_MAIN && get_timestamp() >= p->time + 2 * 1024) { set_main(p); } } @@ -690,6 +690,8 @@ static int add_block_nolock(struct xdag_block *newB...
Removing #ifdef for LVGL version 6 on binary font parser.
@@ -495,10 +495,7 @@ static bool lvgl_load_font(lv_fs_file_t * fp, lv_font_t * font) font->line_height = font_header.ascent - font_header.descent; font->get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt; font->get_glyph_bitmap = lv_font_get_bitmap_fmt_txt; - -#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0) font->...
libhfuzz: use PLOG instead of LOG+strerror
@@ -58,7 +58,7 @@ __attribute__((constructor)) static void mapBB(void) { } if ((feedback = mmap(NULL, sizeof(feedback_t), PROT_READ | PROT_WRITE, MAP_SHARED, _HF_BITMAP_FD, 0)) == MAP_FAILED) { - LOG_F("mmap: %s\n", strerror(errno)); + PLOG_F("mmap"); } feedback->pidFeedbackPc[my_thread_no] = 0U; feedback->pidFeedbackE...
feat(coder) Implement stat.For
@@ -432,7 +432,53 @@ generate_stat = function(stat) return cstats elseif tag == ast.Stat.For then - error("not implemented yet") + local typ = stat.decl._type + local start_cstats, start_cvalue = generate_exp(stat.start) + local finish_cstats, finish_cvalue = generate_exp(stat.finish) + local inc_cstats, inc_cvalue = g...
Define S_ISREG to fix compile error on windows.
@@ -80,6 +80,9 @@ typedef void (ProcessDirectoryCallback)(void *, const std::string &, bool, #ifndef S_ISDIR #define S_ISDIR(m) (((m) &S_IFMT) == S_IFDIR) #endif + #ifndef S_ISREG + #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) + #endif #else #if SIZEOF_OFF64_T > 4 typedef struct stat64 VisItStat_t;
netlib_getarptab: fix codechecker high level issue 197: paysize = RTA_PAYLOAD(&resp->attr); 198: if (paysize > maxsize) 199: { 200: paysize = maxsize; 201: } 202: 203: memcpy(arptab, resp->data, paysize); Memory copy function accesses out-of-bound array element
@@ -99,7 +99,7 @@ ssize_t netlib_get_arptable(FAR struct arp_entry_s *arptab, /* Pre-allocate a buffer to hold the response */ - maxsize = CONFIG_NET_ARPTAB_SIZE * sizeof(struct arp_entry_s); + maxsize = nentries * sizeof(struct arp_entry_s); allocsize = SIZEOF_NETLIB_RECVFROM_RESPONSE_S(maxsize); resp = (FAR struct ne...
threads: Fixed utf time offset being uninitialized
@@ -1255,6 +1255,7 @@ int _threads_init(vm_map_t *kmap, vm_object_t *kernel) threads_common.jiffies = 0; threads_common.ghosts = NULL; threads_common.zombies = NULL; + threads_common.utcoffs = 0; proc_lockInit(&threads_common.lock); #ifndef CPU_STM32
update a tiny mistake for create role it occurred on all the versions.
<plentry> <pt>CREATEROLE</pt> <pt>NOCREATEROLE</pt> - <pd>If <codeph>CREATEDB</codeph> is specified, the role being defined will be + <pd>If <codeph>CREATEROLE</codeph> is specified, the role being defined will be allowed to create new roles, alter other roles, and drop other roles. <codeph>NOCREATEROLE</codeph> (the d...
Update index_board_CircuitPython[ESP32S2_MixGoCE].html
<script type="text/javascript" src="js/blockly_helper.js"></script> <!---profiles--> <script type="text/javascript" src="jquery-1.11.3.min.js"></script> - <script type="text/javascript" src="MicroPython[ESP32_S2]/myblock.js"></script> + <script type="text/javascript" src="CircuitPython[ESP32S2_MixGoCE]/myblock.js"></sc...
Fix crash in BUF_MEM_grow_clean.
@@ -62,9 +62,11 @@ static char *sec_alloc_realloc(BUF_MEM *str, size_t len) ret = OPENSSL_secure_malloc(len); if (str->data != NULL) { - if (ret != NULL) + if (ret != NULL) { memcpy(ret, str->data, str->length); OPENSSL_secure_free(str->data); + str->data = NULL; + } } return (ret); }
Fix mac build w.r.t. custom tags.
#include <stdlib.h> #include <string.h> #include <sys/stat.h> -#define __USE_GNU #include <unistd.h> #include "cfgutils.h" #include "format.h" @@ -128,6 +127,8 @@ processVerbosity(config_t* cfg) cfgOutVerbositySet(cfg, x); } +extern char** environ; + static void processTags(config_t* cfg) {
snapblock.c don't start request timer before action starts
@@ -825,8 +825,6 @@ static void req_start(struct cblk_req *req, struct cblk_dev *c) (long long)req->size, req->lba, req->tries); pthread_mutex_lock(&c->dev_lock); - gettimeofday(&req->stime, NULL); - gettimeofday(&req->h_stime, NULL); __cblk_write(c, ACTION_CONFIG, req->action); __cblk_write(c, ACTION_DEST_LOW, (uint32...
DTLS: EBUSY implemented
@@ -49,6 +49,7 @@ struct dill_dtls_sock { int64_t deadline; uint8_t *buf; size_t buflen; + unsigned int busy : 1; unsigned int indone : 1; unsigned int outdone: 1; unsigned int inerr : 1; @@ -116,6 +117,7 @@ int dill_dtls_attach_client_mem(int s, struct dill_dtls_storage *mem, self->deadline = -1; self->buf = NULL; sel...
Fix definition of TINYSPLINE_SHARED_IMPORT.
#ifdef _WIN32 #define TINYSPLINE_SHARED_EXPORT __declspec(dllexport) -#define TINYSPLINE_SHARED_IMPORT __declspec(dllexport) +#define TINYSPLINE_SHARED_IMPORT __declspec(dllimport) #else #define TINYSPLINE_SHARED_EXPORT #define TINYSPLINE_SHARED_IMPORT
[MEMPOOL] Change entry name for statistics
@@ -156,7 +156,7 @@ func (mp *MemPool) Receive(context actor.Context) { func (mp *MemPool) Statistics() *map[string]interface{} { return &map[string]interface{}{ - "cache_len": len(mp.cache), + "total": len(mp.cache), "orphan": mp.orphan, "dead": mp.deadtx, }
add default for Linux
import argparse import os +import platform import shutil from subprocess import check_call @@ -9,6 +10,9 @@ parser.add_argument('--PackagePath', default='') parser.add_argument('--PackageName', default='') parser.add_argument('--PackageVersion', default='') parser.add_argument('--AssetsPath', default='') +if platform.s...
build: disable Xerces plugin for ENABLE_ASAN
@@ -5,12 +5,8 @@ if (DEPENDENCY_PHASE) remove_plugin (xerces "XercesC library libxerces-c-dev not found") elseif (XercesC_VERSION VERSION_LESS 3.0.0) remove_plugin (xerces "XercesC library version 3.0.0 or higher required") - elseif (XercesC_VERSION VERSION_LESS 3.2) - if (ENABLE_ASAN AND CMAKE_COMPILER_IS_GNUCXX) - re...
Remove got by on unvalidated %unsubscribe action input
=/ channel-wire=path /channel/subscription/[channel-id]/(scot %ud subscription-id.i.requests) :: - =/ subscriptions - subscriptions:(~(got by session.channel-state.state) channel-id) + =/ usession (~(get by session.channel-state.state) channel-id) + ?~ usession + $(requests t.requests) + =/ subscriptions subscriptions:...
Dummy support of ARB_precision_hint_nicest option
@@ -3589,6 +3589,8 @@ void parseToken(sCurStatus* curStatusPtr, int vertex, char **error_msg, int *has case TOK_END_OF_INST: if (!strcmp(curStatusPtr->curValue.newOpt.optName, "ARB_precision_hint_fastest")) { // Nothing to do + } else if (!strcmp(curStatusPtr->curValue.newOpt.optName, "ARB_precision_hint_nicest")) { + ...
docket: set chad to %hung if glob hashes mismatch
`state =/ have=@uv (hash-glob glob) ?. =(want have) + =. charges (new-chad:cha hung+'glob hash mismatch') %. `state =/ url=@t (fall (slaw %t i.t.t.t.wire) '???') %- slog
config-tools: clean launch scripts before saving Clean all launch scripts before click "Save" button, the new launch scripts will be created after that. Add a blank line to the warning dialog box.
@@ -250,19 +250,14 @@ export default { msg = "Post-launched VMs require the Service VM. If you proceed, all post-launched VMs and their settings will also be deleted. Are you sure you want to proceed?" isserivevm = true } else { - msg = `Delete this virtual machine? VM${this.activeVMID}\nThe associated launch script wi...
npu2: Remove dead code from npu2_cfg_write_bar() We assign pci_cmd, but it never gets used. Remove it.
@@ -266,10 +266,8 @@ static int64_t npu2_cfg_write_bar(struct npu2_dev *dev, uint32_t offset, uint32_t size, uint32_t data) { - struct pci_virt_device *pvd = dev->nvlink.pvd; struct npu2_pcie_bar *bar = (struct npu2_pcie_bar *) pcrf->data; struct npu2_bar old_bar, *npu2_bar = &bar->npu2_bar; - uint32_t pci_cmd; if ((si...
Fix AppVeyor failure in eddsa.c
@@ -335,7 +335,7 @@ int ED448_verify(const uint8_t *message, size_t message_len, const uint8_t *context, size_t context_len) { return c448_ed448_verify(signature, public_key, message, message_len, 0, - context, context_len) == C448_SUCCESS; + context, (uint8_t)context_len) == C448_SUCCESS; } int ED448ph_sign(uint8_t *o...
imgtool: Fix ECDSA signatures Earlier refactoring created a call for get_public_bytes() that was added to the RSA class, but missed on the ECDSA class. Add this call so that ECDSA signatures will work again.
@@ -101,6 +101,10 @@ class ECDSA256P1(): with open(path, 'wb') as f: f.write(self.key.to_pem()) + def get_public_bytes(self): + vk = self.key.get_verifying_key() + return bytes(vk.to_der()) + def emit_c(self): vk = self.key.get_verifying_key() print(AUTOGEN_MESSAGE)
doc: write about CM add links use public link for release notes in text form
@@ -37,19 +37,25 @@ docker run -it elektra/elektra - Java plugins - 1.0 decisions -### Bug fixing in FLOSS course +### Bug Fixing in FLOSS Course As you will read in this release notes, a massive amount of bugs were fixed within this release. -Many of them were resolved from students participating in a course about FLO...
Clean up timer while freeing client callback
@@ -995,6 +995,13 @@ free_client_cb(oc_client_cb_t *cb) oc_memb_free(&client_cbs_s, cb); } +oc_event_callback_retval_t +oc_ri_remove_client_cb(void *data) +{ + free_client_cb(data); + return DONE; +} + void oc_ri_remove_client_cb_by_mid(uint16_t mid) { @@ -1004,15 +1011,10 @@ oc_ri_remove_client_cb_by_mid(uint16_t mid)...
fast-reboot: enable by default for POWER9 Acked-By: Michael Neuling
@@ -75,11 +75,6 @@ void fast_reboot(void) struct cpu_thread *cpu; static int fast_reboot_count = 0; - if (proc_gen == proc_gen_p9) { - if (!nvram_query_eq("experimental-fast-reset","feeling-lucky")) - return; - } - if (!chip_quirk(QUIRK_MAMBO_CALLOUTS) && (proc_gen != proc_gen_p8 && proc_gen != proc_gen_p9)) { prlog(PR...
libbitstream: enable fallthrough switch case Label the fall-through switch case with /* FALLTHROUGH */ so that we avoid what would otherwise be a warning.
@@ -177,17 +177,8 @@ STATIC void *opae_bitstream_parse_metadata(const char *metadata, // version to 640/650 respectively. // Allow 640/650 to serve as an alias for 1. case 650: - *version = 1; - parsed = opae_bitstream_parse_metadata_v1(root, - pr_interface_id); - break; - case 640: - *version = 1; - parsed = opae_bits...
Fixed a bug in gmake2 with clang and pch. Clang requires the pch file to be the first force-included item. This fix doesn't break pch usage in gcc.
function cpp.forceInclude(cfg, toolset) local includes = toolset.getforceincludes(cfg) if not cfg.flags.NoPCH and cfg.pchheader then - table.insert(includes, "-include $(PCH_PLACEHOLDER)") + table.insert(includes, 1, "-include $(PCH_PLACEHOLDER)") end p.outln('FORCE_INCLUDE +=' .. gmake2.list(includes)) end
virt: pci_bar_{read,write}##BYTES(): fix memory access When a PCI bar is accessed via memory space, the virtual address should_be used instead of the physical memory address.
@@ -64,8 +64,8 @@ void pci_cfgwrite(pci_dev dev, int reg, int bytes, u32 source) { \ pci_plat_debug("%s: bar %p, %s addr + offset 0x%lx: ", __func__, b, \ b->type == PCI_BAR_MEMORY ? "memory" : "ioport", \ - b->addr + offset); \ - u##BITS rv = b->type == PCI_BAR_MEMORY ? mmio_read_##BITS(b->addr + offset) : \ + (b->typ...
should be range.
@@ -37,7 +37,7 @@ uint16_t openrandom_getRandomizePeriod(uint16_t period, uint16_t range){ // randomly choose a new period from [period/2 ... period+period/2] new_period = period/2+openrandom_get16b()%period; } else { - new_period = period-range/2+openrandom_get16b()%period; + new_period = period-range/2+openrandom_get...
Key Names: Use fences for code blocks
@@ -17,10 +17,12 @@ Only the administrator can change system configuration. Examples of valid system key names: +``` system system/hosts/hostname system/sw/apache/httpd/#0/current/num_processes system/sw/apps/abc/#0/current/default-setting +``` user configuration is empty until the user changes some preferences. User c...
[Libc][dlib] Auto remove macro _DLIB_THREAD_SUPPORT when IAR version higher than 8.20.1
from building import * +from distutils.version import LooseVersion +from iar import IARVersion + Import('rtconfig') src = Glob('*.c') @@ -11,7 +14,10 @@ CPPDEFINES = ['RT_USING_DLIBC'] if rtconfig.PLATFORM == 'iar': if GetDepend('RT_USING_DFS'): - CPPDEFINES = CPPDEFINES + ['_DLIB_FILE_DESCRIPTOR', '_DLIB_THREAD_SUPPOR...
session CHANGE it seems travis machines are even slower than expected
@@ -246,7 +246,7 @@ struct nc_server_opts { * Timeout in msec for transport-related data to arrive (ssh_handle_key_exchange(), SSL_accept(), SSL_connect()). * It can be quite a lot on slow machines (waiting for TLS cert-to-name resolution, ...). */ -#define NC_TRANSPORT_TIMEOUT 5000 +#define NC_TRANSPORT_TIMEOUT 10000 ...
Fix: Add call to the routine introduce_skew in pluto-lp-dfp
@@ -1855,7 +1855,7 @@ int pluto_auto_transform(PlutoProg *prog) } /* t_start = rtclock (); */ - /* introduce_skew(prog); */ + introduce_skew(prog); /* prog->skew_time = rtclock()-t_start; */ free(colour);
doc: RPATH alternative
@@ -490,6 +490,10 @@ If you want Elektra to *not* use `RPATH`, you can add: Then all plugins are directly installed to the library directory and loaded like other libraries (in any of `ld.so` paths). +Alternatively, which gives you the advantage not to clutter the main library path, +is to add the plugin folder in `/et...
Validation: Add MSR test for tutorial We disable tests that do not work on macOS, since they require the `simpleini` plugin.
@@ -16,6 +16,7 @@ function (add_plugin_shell_test PLUGIN) endfunction () add_s_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md") +add_s_test (tutorial_validation "${CMAKE_SOURCE_DIR}/doc/tutorials/validation.md") add_s_test (kdb-complete "${CMAKE_SOURCE_DIR}/doc/help/kdb-complete.md") add_s_tes...
TCS34725 exposing address cfg for shell
@@ -37,6 +37,7 @@ static struct shell_cmd tcs34725_shell_cmd_struct = { static struct sensor_itf g_sensor_itf = { .si_type = MYNEWT_VAL(TCS34725_SHELL_ITF_TYPE), .si_num = MYNEWT_VAL(TCS34725_SHELL_ITF_NUM), + .si_addr = MYNEWT_VAL(TCS34725_SHELL_ITF_ADDR) }; static int
Changed argument pointer to correct data
@@ -143,7 +143,7 @@ static void wifi_sniffer_cb(void *recv_buf, wifi_promiscuous_pkt_type_t type) /* For now, the sniffer only dumps the length of the MISC type frame */ if (type != WIFI_PKT_MISC && !sniffer->rx_ctrl.rx_state) { packet_info.length -= SNIFFER_PAYLOAD_FCS_LEN; - queue_packet(recv_buf, &packet_info); + qu...
Actually use full screen image process, and fix it
@@ -177,7 +177,7 @@ namespace pimoroni { // Set bit in val if set in source data if (data[o] & bm) { - val |= 1 << cy; + val |= 0b10000000 >> cy; } } *ptr++ = val; @@ -187,8 +187,13 @@ namespace pimoroni { // Display an image smaller than the screen (sw*sh) at dx, dy void Badger2040::image(const uint8_t *data, int w, i...
Correct option type for UDP encapsulation port * Correct option type for UDP encapsulation port It seems to me that the type for SCTP_REMOTE_UDP_ENCAPS_PORT is checked as the struct, `sctp_udpencaps`, and not an `int` as described in the documentation. * Update Manual.md
@@ -364,7 +364,7 @@ SCTP_RECVRCVINFO | int | r/w SCTP_RECVNXTINFO | int | r/w SCTP_DEFAULT_SNDINFO | struct sctp_sndinfo | r/w SCTP_DEFAULT_PRINFO | struct sctp_default_prinfo | r/w -SCTP_REMOTE_UDP_ENCAPS_PORT | int | r/w +SCTP_REMOTE_UDP_ENCAPS_PORT | struct sctp_udpencaps | r/w SCTP_ENABLE_STREAM_RESET | struct sctp...
BugID:18654368:Enable smp on ble peripheral sample by default
@@ -7,7 +7,7 @@ $(NAME)_SUMMARY := bleperipheral $(NAME)_SOURCES := main.c ble = 1 -#en_bt_smp = 1 +en_bt_smp = 1 $(NAME)_COMPONENTS += bt_host yloop cli bt_profile GLOBAL_DEFINES += AOS_NO_WIFI
Jenkinsfile: clean workspace in shared jenkins library withDockerEnv
@@ -726,7 +726,6 @@ def buildTodo() { utils.archive(["sloccount.sc"]) deleteDir() } - cleanWs() } }] } @@ -740,7 +739,6 @@ def buildCheckReleaseNotes() { sh "scripts/build/run_check_release_notes" deleteDir() } - cleanWs() } }] } @@ -754,7 +752,6 @@ def buildIcheck() { sh "scripts/build/run_icheck" deleteDir() } - clea...
Fix detection of Apple M1 "Vortex"
*****************************************************************************/ #include <string.h> -#ifdef OS_DARWIN +#ifdef __APPLE__ #include <sys/sysctl.h> int32_t value; size_t length=sizeof(value); @@ -212,9 +212,9 @@ int detect(void) } #else -#ifdef DARWIN +#ifdef __APPLE__ sysctlbyname("hw.cpufamily",&value,&len...
Animate actors according to animation speed
@@ -62,7 +62,12 @@ void UpdateActors_b() { if (IS_FRAME_8 && (((actors[a].vel.x != 0 || actors[a].vel.y != 0) && actors[a].sprite_type != SPRITE_STATIC) || actors[a].animate)) { + if (actors[a].anim_speed == 4 || (actors[a].anim_speed == 3 && IS_FRAME_16) || + (actors[a].anim_speed == 2 && IS_FRAME_32) || + (actors[a]....
notification: fix for
#include <signal.h> // signal() #include <stdio.h> // printf() & co +ElektraIoTimerOperation * timer; +uv_async_t wakeup; + +#ifdef HAVE_LIBUV0 +static void wakeupCallback (uv_async_t * async ELEKTRA_UNUSED, int unknown ELEKTRA_UNUSED) +{ + // nothing to do; callback required for libuv 0.x +} +#endif + // from https://...
Add VariantInit
@@ -151,24 +151,32 @@ HRESULT PhpWmiProviderExecMethod( if (count == 0) break; + VariantInit(&variant); + if (SUCCEEDED(IWbemClassObject_Get(wbemClassObject, L"Namespace", 0, &variant, 0, 0))) { namespacePath = PhCreateString(variant.bstrVal); VariantClear(&variant); } + VariantInit(&variant); + if (SUCCEEDED(IWbemClas...
Fix rake tasks to work with mingw64 and ucrt builds.
@@ -21,7 +21,7 @@ Rake::ExtensionTask.new do |ext| ext.name = SO_NAME ext.ext_dir = "ext/libxml" ext.lib_dir = "lib/#{RUBY_VERSION.sub(/\.\d$/, '')}" - if RUBY_PLATFORM.match(/mswin32|mswin64|mingw32|ucrt/) + if RUBY_PLATFORM.match(/mswin|mingw/) ext.config_options << if (dir = ENV['WINDOWS_XML2_INCLUDE']) "--with-xml2...
Add requestCAfile option
@@ -547,7 +547,7 @@ typedef enum OPTION_choice { OPT_SERVERINFO, OPT_STARTTLS, OPT_SERVERNAME, OPT_USE_SRTP, OPT_KEYMATEXPORT, OPT_KEYMATEXPORTLEN, OPT_SMTPHOST, OPT_ASYNC, OPT_SPLIT_SEND_FRAG, OPT_MAX_PIPELINES, OPT_READ_BUF, - OPT_KEYLOG_FILE, OPT_EARLY_DATA, + OPT_KEYLOG_FILE, OPT_EARLY_DATA, OPT_REQCAFILE, OPT_V_EN...
[GB] Implement initial DMA controller
@@ -192,6 +192,82 @@ impl Addressable for EchoRam { fn write(&self, addr: u16, val: u8) { let offset = addr - self.start_addr; self.backing_ram.write(self.backing_ram.start_addr + offset, val) + +pub struct DmaController { + dma_transfer_start_address_factor: RefCell<u8>, + dma_in_progress: RefCell<bool>, + dma_cycle_c...
ci: use cirrus-ci arm containers
@@ -36,20 +36,18 @@ Alpine (gcc,i386)_task: setup_script: *alpine-deps <<: *pipeline -Alpine (gcc,arm)_task: - container: - image: snaipe/ci-meson:alpine-armhf - env: - CIRRUS_SHELL: /sbin/qemu-sh - setup_script: *alpine-deps +Alpine (gcc,arm32v6)_task: + arm_container: + image: arm32v6/alpine:3 + setup_script: &alpine...
sys/config: commit for each all fcbs only once
@@ -91,9 +91,6 @@ conf_load_one(char *name) conf_loading = true; SLIST_FOREACH(cs, &conf_load_srcs, cs_next) { cs->cs_itf->csi_load(cs, conf_load_cb, name); - if (SLIST_NEXT(cs, cs_next)) { - conf_commit(name); - } } conf_loading = false; conf_unlock();
use $AOMP/include rather than hard coded directory for isystem in FLAGS tests
-OFFLOAD_DEBUG=1 flags.c -isystem/home/estewart/rocm/aomp/include -O2 -target ${AOMP_CPUTARGET} -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=AOMP_GPU_or_auto_detect -flags.c -isystem/home/estewart/rocm/aomp/include -O2 -target ${AOMP_CPUTARGET} -fopenmp -fopenmp-targets=amdgcn-am...
Record compiler warnings for AC6 and GCC.
@@ -357,8 +357,10 @@ echo """Stage schedule: CONFIGURATION['devices'].each { unstash "CV_${it}" } } - recordIssues tools: [clang(id: 'AC6', name: 'Arm Compiler 6', pattern: 'CV_AC6_*.log'), - clang(id: 'AC6LTM', name: 'Arm Compiler 6 LTM', pattern: 'CV_AC6LTM_*.log')], + recordIssues tools: [armCc(id: 'AC5', name: 'Arm...
Only forward an error if the frontend connection isn't closing already
@@ -649,10 +649,12 @@ static void proceed_request(h2o_req_t *req, size_t written, h2o_send_state_t sen if (send_state == H2O_SEND_STATE_ERROR) { finish_body_streaming(stream); + if (conn->state < H2O_HTTP2_CONN_STATE_IS_CLOSING) { stream_send_error(conn, stream->stream_id, H2O_HTTP2_ERROR_STREAM_CLOSED); if (stream->st...
py/stream: Thinko fix in comment.
@@ -523,7 +523,7 @@ STATIC mp_obj_t stream_seek(size_t n_args, const mp_obj_t *args) { seek_s.whence = mp_obj_get_int(args[2]); } - // In POSIX, it's error to seek before end of stream, we enforce it here. + // In POSIX, it's error to seek before start of stream, we enforce it here. if (seek_s.whence == SEEK_SET && see...
6. implements edit at %10 (nock 4K)
@@ -526,7 +526,7 @@ _n_nock_on(u3_noun bus, u3_noun fol) #define SLIB 70 #define SLIS 71 #define SAVE 72 -// nock 12 +// nock 10 #define MUTH 73 #define KUTH 74 #define MUTT 75 @@ -1302,20 +1302,7 @@ _n_comp(u3_noun* ops, u3_noun fol, c3_o los_o, c3_o tel_o) } break; - case 11: - u3x_cell(arg, &hed, &tel); - tot_w += _...
mp2964: add definitions Adding register definitions for MP2964 PMIC BRANCH=none TEST=make BOARD=brya (Brya uses MP2964)
#define MP2964_PAGE 0x00 #define MP2964_STORE_USER_ALL 0x15 #define MP2964_RESTORE_USER_ALL 0x16 +#define MP2964_MFR_VOUT_TRIM 0x22 +#define MP2964_MFR_PHASE_NUM 0x29 +#define MP2964_MFR_IMON_SNS_OFFS 0x2c +#define MP2964_IOUT_CAL_GAIN_SET 0x38 +#define MP2964_MFR_TRANS_FAST 0x3d #define MP2964_MFR_ALT_SET 0x3f +#defin...
OpenCoreUefi: Support deduplicating BootOrder at boot
@@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <OpenCore.h> #include <Guid/OcVariables.h> +#include <Guid/GlobalVariable.h> #include <Library/BaseLib.h> #include <Library/DebugLib.h> @@ -36,6 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXP...
Fixes wrong expect on properties size
@@ -145,7 +145,7 @@ TEST_F(DependencyManagerTestSuite, CDmGetInfo) { auto *info = (celix_dm_component_info_t*)celix_arrayList_get(dmInfo->components, 0); EXPECT_EQ(1, celix_arrayList_size(info->interfaces)); auto *intInf = (dm_interface_info_t*)celix_arrayList_get(info->interfaces, 0); - EXPECT_EQ(1, celix_properties_s...
Check parsing is faulted once parser is FINISHED
@@ -1714,6 +1714,12 @@ external_entity_resetter(XML_Parser parser, fail("Parsing status is not FINISHED"); return XML_STATUS_ERROR; } + /* Check we can't parse here */ + if (XML_Parse(ext_parser, text, strlen(text), + XML_TRUE) != XML_STATUS_ERROR) + fail("Parsing when finished not faulted"); + if (XML_GetErrorCode(ext...
examples/wifi_manager_sample: Modify WIFI Manager cmd on input checking 1. For wm_test softap, check cmd input parameter's argument count, if wrong such as missing password, return directly. 2. In get_auth_type(), change strcpy() to strncpy() to avoid exiting the data lenth when string copying.
@@ -363,7 +363,7 @@ static void print_wifi_softap_profile(wifi_manager_softap_config_s *config, char static wifi_manager_ap_auth_type_e get_auth_type(const char *method) { char data[20]; - strcpy(data, method); + strncpy(data, method, 20); char *result[3]; char *next_ptr; @@ -962,6 +962,9 @@ static wm_test_e _wm_get_op...
fix iteration count display in stress test
@@ -209,7 +209,7 @@ int main(int argc, char** argv) { } mi_collect(false); #ifndef NDEBUG - if ((n + 1) % 10 == 0) { printf("- iterations left: %3d\n", ITER - n + 1); } + if ((n + 1) % 10 == 0) { printf("- iterations left: %3d\n", ITER - (n + 1)); } #endif }
fix UB problems
@@ -460,13 +460,15 @@ int ksDel (KeySet * ks) return -1; } - --ks->refs; - if (ks->refs > 0) + if (ks->refs > 1) { + --ks->refs; return 1; } + // exclusive reference, can delete ksClose (ks); + ks->refs = 0; #ifdef ELEKTRA_ENABLE_OPTIMIZATIONS if (ks->opmphm) @@ -531,8 +533,12 @@ int ksClear (KeySet * ks) * protect aga...
Allow SPI_2 for MCU_NRF52832, add SPI_3 for MCU_NRF52840.
@@ -147,7 +147,6 @@ syscfg.defs: value: 0 restrictions: - "!SPI_2_SLAVE" - - "MCU_NRF52840" SPI_2_MASTER_PIN_SCK: description: 'SCK pin for SPI_2_MASTER' value: '' @@ -163,7 +162,6 @@ syscfg.defs: value: 0 restrictions: - "!SPI_2_MASTER" - - "MCU_NRF52840" SPI_2_SLAVE_PIN_SCK: description: 'SCK pin for SPI_2_SLAVE' val...
Workaround for an OpenSSL bug about not closing /dev/*random. This is a workaround for an issue in OpenSSL 1.1.1, where the /dev/random and /dev/urandom files remain open after all listening sockets were removed:
#include <openssl/ssl.h> #include <openssl/conf.h> #include <openssl/err.h> +#include <openssl/rand.h> typedef struct { @@ -355,6 +356,11 @@ nxt_openssl_server_init(nxt_task_t *task, nxt_tls_conf_t *conf) SSL_CTX_free(ctx); +#if (OPENSSL_VERSION_NUMBER >= 0x1010100fL \ + && OPENSSL_VERSION_NUMBER < 0x1010101fL) + RAND_...
build: export monkey headers path
@@ -11,6 +11,7 @@ include_directories( ${FLB_PATH_ROOT_SOURCE}/${FLB_PATH_LIB_CHUNKIO}/include ${FLB_PATH_ROOT_SOURCE}/${FLB_PATH_LIB_LUAJIT}/src ${FLB_PATH_ROOT_SOURCE}/${FLB_PATH_LIB_MONKEY}/include + ${FLB_PATH_ROOT_SOURCE}/${FLB_PATH_LIB_MONKEY}/include/monkey ${FLB_PATH_ROOT_SOURCE}/${FLB_PATH_LIB_MBEDTLS}/include...
BugID:17646749:[mqtt] extend MQTT_CONNECT_REQUIRED_BUFLEN from 256 with 32B for clientID
#define MQTT_DYNBUF_RECV_MARGIN (8) -#define MQTT_CONNECT_REQUIRED_BUFLEN (256) +#define MQTT_CONNECT_REQUIRED_BUFLEN (256+32) /* MQTT send publish packet */
Add documentation in form of rudimentary docstrings
@@ -11,6 +11,18 @@ Stability : experimental Portability : portable Glue to hslua for aeson values. + +This provides a @StackValue@ instance for aeson's @Value@ type. The following +conventions are used: + +- @Null@ values are encoded as the special global @_NULL@. Using @Nil@ would + cause problems with null-containing...
adds better unicode support to herb
@@ -391,7 +391,7 @@ url = "http://localhost:%s" % PORT r = requests.post(url, data=json.dumps(payload)) if r.text[0] == '"': - print r.text[1:-1].decode('string_escape') + print r.text[1:-1].encode('utf-8').decode('string_escape') elif r.text[0] == '{': # print r.text json_data = json.loads(r.text)
Remove the check for arch type x86_64 in ELF parsing. Enables TLS test on ARM.
@@ -135,8 +135,7 @@ getElf(char *path) if((elf->e_ident[EI_MAG0] != 0x7f) || strncmp((char *)&elf->e_ident[EI_MAG1], "ELF", 3) || (elf->e_ident[EI_CLASS] != ELFCLASS64) || - (elf->e_ident[EI_DATA] != ELFDATA2LSB) || - (elf->e_machine != EM_X86_64)) { + (elf->e_ident[EI_DATA] != ELFDATA2LSB)) { scopeLog(CFG_LOG_ERROR, "...
bug fix F4 dshot - closer but still missing the 16th bit
@@ -293,8 +293,8 @@ void dshot_dma_portA() DMA2_Stream4->M0AR = (uint32_t)dshot_portA; DMA_ClearFlag(DMA2_Stream1, DMA_FLAG_TCIF1); - DMA_ClearFlag(DMA2_Stream4, DMA_FLAG_TCIF1); - DMA_ClearFlag(DMA2_Stream5, DMA_FLAG_TCIF1); + DMA_ClearFlag(DMA2_Stream4, DMA_FLAG_TCIF4); + DMA_ClearFlag(DMA2_Stream5, DMA_FLAG_TCIF5); ...
make valgrind happy.
@@ -251,7 +251,7 @@ osGetCmdline(pid_t pid, char *cmd, size_t cmdlen) } if (rc > cmdlen) { - memmove(cmd, &buf[rc - cmdlen], cmdlen - 1); + memmove(cmd, &buf[rc - cmdlen], cmdlen); } else { memmove(cmd, buf, rc); }
ci: Run target tests with custom OpenOCD distro
@@ -71,6 +71,14 @@ variables: fi if [[ "$SETUP_TOOLS" == "1" || "$CI_JOB_STAGE" != "target_test" ]]; then tools/idf_tools.py --non-interactive install && eval "$(tools/idf_tools.py --non-interactive export)" || exit 1 + if [[ ! -z "$OOCD_DISTRO_URL" ]]; then + echo "Using custom OpenOCD from ${OOCD_DISTRO_URL}" + wget ...
Added information about new ALIGN and UNGROUP functions
-ResComp 2.5 (january 2020) +ResComp 2.63 (january 2020) Copyright Stephane Dallongeville https://github.com/Stephane-D/SGDK @@ -22,7 +22,10 @@ Supported resource type: - WAV WAV sound type resource (.wav file), used to play sample sound data. - BIN any binary data file which do not need any specific conversion or proc...
Jenkinsfile: increase timeout to 30 minutes
@@ -1316,7 +1316,7 @@ def withDockerEnv(image, opts=[], cl) { } docker.withRegistry("https://${REGISTRY}", 'docker-hub-elektra-jenkins') { - timeout(activity: true, time: 15, unit: 'MINUTES') { + timeout(activity: true, time: 30, unit: 'MINUTES') { def cpu_count = cpuCount() withEnv(["MAKEFLAGS='-j${cpu_count+2} -l${cp...
Do not allow individual payment thresholds below pool threshold
@@ -87,6 +87,10 @@ namespace Miningcore.Api.Controllers // map settings var mapped = mapper.Map<Persistence.Model.MinerSettings>(settings); + + if(pool.PaymentProcessing != null) + mapped.PaymentThreshold = Math.Max(mapped.PaymentThreshold, pool.PaymentProcessing.MinimumPayment); + mapped.PoolId = pool.Id; mapped.Addre...
Add reference to ngboost paper for RMSEWithUncertainty
@@ -292,6 +292,9 @@ public: TVector<double>* der, THessianInfo* der2 ) const override { + // computes ngboost "natural gradient" + // should be regular gradient multiplied by Fisher information + // see https://arxiv.org/pdf/1910.03225v1.pdf const int dim = 2; Y_ASSERT(target.size() == 1); const double diff = (target[0...
[tag] 1.0.0.9.beta
Pod::Spec.new do |s| s.name = 'MLN' - s.version = '1.0.0.8.beta' + s.version = '1.0.0.9.beta' s.summary = 'A lib of Momo Lua Native.' # This description is used to generate tags and improve search results.
move the restore snapshot call
:: save our parent signature (only for moons) :: =. sig.own.sub sig.seed.tac + :: if we're given a snapshot, restore it + :: + =. +>.$ + ?~ snap.tac +>.$ + (restore-snap hen u.snap.tac |) :: our initial public key :: =. kyz.puk.sub :: set initial domains :: =. tuf.own.sub turf.tac - :: if we're given a snapshot, restor...
BadgerOS: Fix with-modules build.
@@ -100,19 +100,19 @@ jobs: shell: bash working-directory: micropython/ports/rp2 run: | - cmake -S . -B build-${{env.BOARD_TYPE}} -DBADGER2040_NO_MODULES=1 -DPICO_BUILD_DOCS=0 -DUSER_C_MODULES=../../../pimoroni-pico-${GITHUB_SHA}/micropython/modules/badger2040-micropython.cmake -DMICROPY_BOARD=${{env.BOARD_TYPE}} -DCMA...
Add some test coverage for PEM_read_bio_PrivateKey
@@ -74,7 +74,7 @@ my $n = (3 * scalar @noexist_files) + (4 * scalar @generated_files) + (scalar keys %generated_file_files) + (scalar @noexist_file_files) - + 3; + + 4; plan tests => $n; @@ -83,6 +83,10 @@ indir "store_$$" => sub { { skip "failed initialisation", $n unless init(); + # test PEM_read_bio_PrivateKey + ok(...
harness builds with gpio tied off
@@ -34,7 +34,7 @@ class WithBootROM extends Config((site, here, up) => { */ class WithGPIO extends Config((site, here, up) => { case PeripheryGPIOKey => List( - GPIOParams(address = 0x10012000, width = 4, includeIOF = true)) + GPIOParams(address = 0x10012000, width = 4, includeIOF = false)) }) // ----------------------...
io: keep u_conn->coro as NULL unless awaiting event
@@ -224,6 +224,11 @@ static FLB_INLINE int net_io_write_async(struct flb_coro *co, */ flb_coro_yield(co, FLB_FALSE); + /* We want this field to hold NULL at all times unless we are explicitly + * waiting to be resumed. + */ + u_conn->coro = NULL; + /* Save events mask since mk_event_del() will reset it */ mask = u_conn...
fixed segmentation fault, if more than 10000 cap files loaded
@@ -2720,6 +2720,7 @@ if(apstaessidcount < 1) { return; } + qsort(apstaessidliste, apstaessidcount, APSTAESSIDLIST_SIZE, sort_apstaessidlist_by_ap_sta); if((apstaessidlistecleaned = calloc((apstaessidcount), APSTAESSIDLIST_SIZE)) == NULL) @@ -4814,6 +4815,7 @@ char *pcapart; fcsflag = false; apstaessidliste = NULL; +ap...
Do not set blockreward until confirmed
@@ -361,7 +361,6 @@ namespace Miningcore.Blockchain.Bitcoin if (isBlockCandidate) { result.IsBlockCandidate = true; - result.BlockReward = rewardToPool.ToDecimal(MoneyUnit.BTC); Span<byte> blockHash = stackalloc byte[32]; blockHasher.Digest(headerBytes, blockHash, nTime);
interface: trim unnecessary logic in settings
@@ -122,13 +122,6 @@ export class SettingsScreen extends Component { location } = this.props; - const isInPopout = popout ? "popout/" : ""; - const title = - ( association && - ('metadata' in association) && - (association.metadata.title !== '') - ) ? association.metadata.title : station.substr(1); - return ( <div clas...
[mod_evhost] use local array to split values
@@ -20,10 +20,10 @@ typedef struct { typedef struct { PLUGIN_DATA; - buffer *tmp_buf; - plugin_config **config_storage; plugin_config conf; + buffer *tmp_buf; + array *split_vals; } plugin_data; INIT_FUNC(mod_evhost_init) { @@ -32,6 +32,7 @@ INIT_FUNC(mod_evhost_init) { p = calloc(1, sizeof(*p)); p->tmp_buf = buffer_in...
Add regression test for issue resume failure on empty input
@@ -5199,6 +5199,34 @@ START_TEST(test_suspend_epilog) } END_TEST +static void XMLCALL +suspending_end_handler(void *userData, + const XML_Char *UNUSED_P(s)) +{ + XML_StopParser((XML_Parser)userData, 1); +} + +START_TEST(test_suspend_in_sole_empty_tag) +{ + const char *text = "<doc/>"; + enum XML_Status rc; + + XML_Set...
Remove merge information in README.md
@@ -126,11 +126,7 @@ bool my_touchpad_read(lv_indev_t * indev, lv_indev_data_t * data) return false; /*Return `false` because we are not buffering and no more data to read*/ } ``` -<<<<<<< HEAD -6. Call `lv_task_handler()` periodically every few milliseconds in the main `while(1)` loop, in a Timer interrupt or in an Op...