message
stringlengths
6
474
diff
stringlengths
8
5.22k
gif loader: check LZW code size (Issue
@@ -58,6 +58,10 @@ typedef struct unsigned char suffix; } gif_lzw; +enum { + gif_lzw_max_code_size = 12 +}; + typedef struct { int w, h; @@ -65,7 +69,7 @@ typedef struct int flags, bgindex, ratio, transparent, eflags; unsigned char pal[256][3]; unsigned char lpal[256][3]; - gif_lzw codes[4096]; + gif_lzw codes[1 << gif...
Allow landscape controlls on mobile phones jsEmu Works great on ultrawide phones, pretty well on normal wide. Less confusion when itch.io says please rotate, but you can't due to missconfig
@@ -277,7 +277,7 @@ body { } } -@media only screen and (max-device-width: 812px) and (orientation: landscape) { +@media only screen and (max-device-width: 300px) and (orientation: landscape) { html, body { height: 100%;
Fix key log file open.
@@ -1353,8 +1353,6 @@ void picoquic_set_key_log_file(picoquic_quic_t *quic, char const * keylog_filena log_event->super.cb = picoquic_log_event_call_back; ctx->log_event = (ptls_log_event_t *)log_event; } - - picoquic_file_close(F_keylog); } }
emitter: Tidy up the check for assign being optimizable.
@@ -1888,53 +1888,34 @@ static lily_type *determine_left_type(lily_emit_state *emit, lily_ast *ast) return result_type; } -/* Does an assignment -really- have to be written, or can the last tree's result - be rewritten to target the left side? Given a tree (the whole assign), this - figures that out. - Note: Only valid...
Add more log message in OTA over HTTP
@@ -400,6 +400,7 @@ static void _httpReadReadyCallback( void * pPrivateData, /* Check if the server returns a response with connection field set to "close". */ if( strncmp( "close", connectionValueStr, sizeof( "close" ) ) == 0 ) { + IotLogInfo( "Connection has been closed by the HTTP server, reconnecting to the server....
Update comment to match reality.
-/* Table of instructions. Each instruction +/* + Table of instructions. Each instruction is defined by the following macro: - Insn(enumval, fmt, attr) + + Insn(enumval, gasfmt, p9fmt, uses, defs) The format string 'fmt' has the following expansions: + %r - int reg %f - xmm reg %m - mem %[1-9]*t - Mode of an operand. T...
Fix util/perl/OpenSSL/Test.pm input variable overwrite
@@ -905,9 +905,9 @@ sub __test_file { my $e = pop || ""; my $f = pop; - $f = catfile($directories{BLDTEST},@_,$f . $e); - $f = catfile($directories{SRCTEST},@_,$f) unless -f $f; - return $f; + my $out = catfile($directories{BLDTEST},@_,$f . $e); + $out = catfile($directories{SRCTEST},@_,$f) unless -f $out; + return $ou...
[core] cygwin helper func for getcwd
#include <limits.h> #include <glob.h> +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif #if defined(HAVE_MYSQL) || (defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER)) static void config_warn_authn_module (server *srv, const char *module, size_t len) { @@ -1372,39 +1375,28 @@ ...
CMSIS-DSP: Correction for float16 support with MVE.
@@ -363,12 +363,12 @@ inline float16x8_t vtanhq_f16(float16x8_t val) return tanh; } -inline float16x8_t vtaylor_polyq_f16(float16x8_t x, const std::array<float16x8_t, 8> &coeffs) +inline float16x8_t vtaylor_polyq_f16(float16x8_t x, const float16_t *coeffs) { - const float16x8_t A = vaddq_f16(coeffs[0], vmulq_f16(coeffs...
jenkins: issues -> problems
@@ -457,7 +457,7 @@ def generateFullBuildStages() { */ // Generate tests for different release types - // Detects issues with debug modules enabled or disabled + // Detects problems with debug modules enabled or disabled for(plugins in ['ALL', 'NODEP']) { for(buildType in ['Debug', 'Release', 'RelWithDebInfo']) { if (p...
Added clone syscall check for uid/gid mapping. Now it's possible to pass -DNXT_HAVE_CLONE=0 for debugging.
@@ -207,7 +207,7 @@ nxt_process_create(nxt_task_t *task, nxt_process_t *process) goto fail; } -#if (NXT_HAVE_CLONE_NEWUSER) +#if (NXT_HAVE_CLONE && NXT_HAVE_CLONE_NEWUSER) if ((init->isolation.clone.flags & CLONE_NEWUSER) == CLONE_NEWUSER) { ret = nxt_clone_proc_map(task, pid, &init->isolation.clone); if (nxt_slow_path...
Enhance search of libstdc++-6.dll
@@ -807,6 +807,15 @@ if(TINYSPLINE_RUNTIME_LIBRARIES STREQUAL "") include(InstallRequiredSystemLibraries) elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") get_filename_component(basedir ${CMAKE_CXX_COMPILER} DIRECTORY) + if(NOT EXISTS "${basedir}/libstdc++-6.dll") + set(basedir "${CMAKE_INSTALL_PREFIX}/bin") + if(NOT EXISTS...
HW: Do not automatically detach action on <STOP> when interrupt is enabled
@@ -95,6 +95,7 @@ ARCHITECTURE job_manager OF job_manager IS SIGNAL detach_action_q : std_ulogic_vector(NUM_OF_ACTION_TYPES-1 DOWNTO 0); SIGNAL check_for_idle_q : std_ulogic_vector(ACTION_BITS-1 DOWNTO 0); SIGNAL enable_check_for_idle_q : ACTION_ID_ARRAY(NUM_OF_ACTION_TYPES-1 DOWNTO 0); + SIGNAL job_queue_mode_q : std_...
plugin-template: add state
@@ -25,9 +25,10 @@ static const clap_plugin_descriptor_t s_my_plug_desc = { typedef struct { clap_plugin_t plugin; const clap_host_t *host; - const clap_host_latency_t *hostLatency; - const clap_host_log_t *hostLog; - const clap_host_thread_check_t *hostThreadCheck; + const clap_host_latency_t *host_latency; + const cl...
nat: pnat only use save_rewrite_length on output path Don't expect save_rewrite_length to be set correctly on RX path. Type: fix
@@ -132,7 +132,8 @@ static_always_inline uword pnat_node_inline(vlib_main_t *vm, u32 sw_if_index0 = vnet_buffer(b[0])->sw_if_index[dir]; u16 sport0 = vnet_buffer(b[0])->ip.reass.l4_src_port; u16 dport0 = vnet_buffer(b[0])->ip.reass.l4_dst_port; - u32 iph_offset = vnet_buffer(b[0])->ip.reass.save_rewrite_length; + u32 i...
[core] handle fds pending close after poll timeout (fixes handle fds pending close whether or not new events are triggered (thx davidm) x-ref: "POST to mod_cgi sometimes hangs"
@@ -2085,13 +2085,14 @@ static int server_main (server * const srv, int argc, char **argv) { (*handler)(srv, context, revents); } } while (--n > 0); - fdevent_sched_run(srv, srv->ev); } else if (n < 0 && errno != EINTR) { log_error_write(srv, __FILE__, __LINE__, "ss", "fdevent_poll failed:", strerror(errno)); } + if (n...
release-tests: fix kdb set call
@@ -16,7 +16,7 @@ log_strace() { strace -o $BASE_DIR/$VERSION/$CONTEXT/mount.strace kdb mount file.ecf user:/release_test strace -o $BASE_DIR/$VERSION/$CONTEXT/file.strace kdb file user:/release_test/b - strace -o $BASE_DIR/$VERSION/$CONTEXT/set.strace kdb set user:/release_test/b + strace -o $BASE_DIR/$VERSION/$CONTEX...
Bring the U2F timeout back to the original value
@@ -133,7 +133,7 @@ class U2FHid(TransportLayer): raise ValueError("Endpoint/U2F command is out of range '0 < endpoint <= 0xFF'") if cid < 0 or cid > 0xFFFFFFFF: raise ValueError("Channel id is out of range '0 < cid <= 0xFFFFFFFF'") - timeout_ms = 5000 + timeout_ms = 5000000 buf = self._device.read(USB_REPORT_SIZE, tim...
rune: Fix static compilation error `make static` should depend on *.pb.go files.
@@ -47,7 +47,7 @@ skeleton: libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.so libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.so: make -C libenclave/internal/runtime/pal/skeleton -static: +static: $(PROTOS) $(GO_BUILD_STATIC) -o rune . $(GO_BUILD_STATIC) -o contrib/cmd/recvtty/recvtty ./contrib/c...
Base 666: Remove useless whitespace
@@ -23,9 +23,7 @@ static inline KeySet * base666Contract (void) keyNew ("system/elektra/modules/base666/exports/get", KEY_FUNC, elektraBase666Get, KEY_END), keyNew ("system/elektra/modules/base666/exports/set", KEY_FUNC, elektraBase666Set, KEY_END), #include ELEKTRA_README (base666) - keyNew ("system/elektra/modules/ba...
Fix iotivity bug in usage of mutex
@@ -1164,9 +1164,6 @@ const CASecureEndpoint_t *GetCASecureEndpointData(const CAEndpoint_t* peer) { OIC_LOG_V(DEBUG, NET_SSL_TAG, "In %s", __func__); - // TODO: Added as workaround, need to debug - oc_mutex_unlock(g_sslContextMutex); - oc_mutex_lock(g_sslContextMutex); if (NULL == g_caSslContext) { @@ -2657,9 +2654,6 @...
detection of freeRADIUS authentication (Ethernet II header)
@@ -2739,6 +2739,7 @@ if(caplen < (uint32_t)IPV4_SIZE_MIN) return; } ipv4 = (ipv4_t*)packet; + if((ipv4->ver_hlen & 0xf0) != 0x40) { return; @@ -2749,6 +2750,7 @@ if(caplen < (uint32_t)ipv4len) return; } packet_ptr = packet +ipv4len; + if(ipv4->nextprotocol == NEXTHDR_ICMP4) { processicmp4packet(); @@ -2971,6 +2973,8 @...
sim: Make BootGoResult into an enum Now that this result is abstracted, take the special case for a sim stop and make it its own field. This hides the magic number we use to indicate this to be entirely within mcuboot-sys.
@@ -13,30 +13,41 @@ use crate::api; /// The result of an invocation of `boot_go`. This is intentionally opaque so that we can provide /// accessors for everything we need from this. #[derive(Debug)] -pub struct BootGoResult { +pub enum BootGoResult { + /// This run was stopped by the flash simulation mechanism. + Stopp...
Fixed bug in xstar[0] input
@@ -1108,11 +1108,12 @@ static void ccl_cosmology_compute_power_emu(ccl_cosmology * cosmo, int * status) return; } + //For each redshift: for (int j = 0; j < na; j++){ //Turn cosmology into xstar: - xstar[0] = cosmo->params.Omega_c*cosmo->params.h*cosmo->params.h; + xstar[0] = (cosmo->params.Omega_c+cosmo->params.Omega...
hv: vtd: check bus number when assign/unassign device Input parameter "bus" of assign_iommu_device/unassign_iommu_device may be from hypercall. And the conext tables are static allocated according to CONFIG_IOMMU_BUS_NUM. Need to check the bus value to avoid access invalid memory address with invalid value. Acked-by: A...
@@ -1155,6 +1155,9 @@ static int32_t remove_iommu_device(const struct iommu_domain *domain, uint16_t s if (dmar_unit == NULL) { pr_err("no dmar unit found for device: %x:%x.%x", bus, pci_slot(devfun), pci_func(devfun)); ret = -EINVAL; + } else if (dmar_unit->drhd->ignore) { + dev_dbg(ACRN_DBG_IOMMU, "device is ignored ...
Docs - adding note/example about not specifying GPDB ports that conflict with OS.
connections are created during operations such as query execution. Transient connections for query execution processes, data movement, and statistics collection use available ports in the range 1025 to 65535 with both TCP and UDP protocols. </p> + <note>To avoid port conflicts between Greenplum Database and other appli...
lpeg: fix acceptable version range for lua Allow lua-2.1.* and lua-2.2.*.
`lpeg` uses [PVP Versioning][]. +## lpeg-1.0.3 + +Released 2022-01-29. + +- Allow lua-2.2.*. + ## lpeg-1.0.2 -Released 29-01-2022. +Released 2022-01-29. -- Allow lua-2.1.0. +- Allow lua-2.1.*. ## lpeg-1.0.1
yolint with updated printf check
@@ -3,14 +3,14 @@ RESOURCES_LIBRARY() IF (HOST_OS_LINUX) - DECLARE_EXTERNAL_RESOURCE(YOLINT sbr:1223392710) - DECLARE_EXTERNAL_RESOURCE(YOLINT_NEXT sbr:1223392710) + DECLARE_EXTERNAL_RESOURCE(YOLINT sbr:1255096669) + DECLARE_EXTERNAL_RESOURCE(YOLINT_NEXT sbr:1255096669) ELSEIF (HOST_OS_DARWIN) - DECLARE_EXTERNAL_RESOUR...
overridable $ver & $branch
@@ -44,7 +44,7 @@ try{ writeErrorTip 'Please set environment var "TMP" to another path' myExit 1 } -$ver='v2.1.3' +if($ver -eq $null){ $ver='v2.1.3' } Write-Host 'Start downloading... Hope amazon S3 is not broken again' try{ Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFi...
Proper checks
@@ -293,12 +293,12 @@ def _fix_user_data(orig_cmd, shell, user_input, user_output, strategy): continue cmd.append(arg) - for srcs, dst in [ - (user_input, input_data), - (user_output, output_data), + for srcs, dst, local_path_iter in [ + (user_input, input_data, lambda x: x.values()), + (user_output, output_data, lambd...
feat(calendar) improve MicroPython example Small improvements: Remove cast from get_pressed_date Check return value of get_pressed_date Call set_today_date on clicked date Compact highlighted_days Added a switch to show different header type
@@ -4,8 +4,8 @@ def event_handler(evt): if code == lv.EVENT.VALUE_CHANGED: source = evt.get_target() date = lv.calendar_date_t() - lv.calendar.get_pressed_date(source,date) - if date: + if source.get_pressed_date(date) == lv.RES.OK: + calendar.set_today_date(date.year, date.month, date.day) print("Clicked date: %02d.%0...
Broke 2 long lines
@@ -705,7 +705,8 @@ int mbedtls_ecp_point_write_binary( const mbedtls_ecp_group *grp, { int ret = MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE; size_t plen; - if( format != MBEDTLS_ECP_PF_UNCOMPRESSED && format != MBEDTLS_ECP_PF_COMPRESSED ) + if( format != MBEDTLS_ECP_PF_UNCOMPRESSED && + format != MBEDTLS_ECP_PF_COMPRESSED ) ...
SOVERSION bump to version 7.11.0
@@ -71,8 +71,8 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # Major version is changed with every backward non-compatible API/ABI change, minor version changes # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJ...
remove distro lapack/blas
@@ -69,13 +69,13 @@ License: BSD-3-Clause Group: %{PROJ_NAME}/dev-tools Url: http://www.scipy.org Source0: https://github.com/scipy/scipy/archive/v%{version}.tar.gz#$/%{pname}-%{version}.tar.gz -BuildRequires: blas-devel +#BuildRequires: blas-devel Source1: OHPC_macros %if 0%{?sles_version} || 0%{?suse_version} BuildRe...
[kernel] fix unused variable warning
@@ -218,7 +218,7 @@ void Topology::__removeInteractionFromIndexSet(SP::Interaction inter) void Topology::insertDynamicalSystem(SP::DynamicalSystem ds) { - DynamicalSystemsGraph::VDescriptor dsgv = _DSG[0]->add_vertex(ds); + _DSG[0]->add_vertex(ds); } void Topology::setName(SP::DynamicalSystem ds, const std::string& nam...
proc/stack cannary: No need to check if process != NULL We need to set t->ustack anyway JIRA:
@@ -819,13 +819,10 @@ int proc_threadCreate(process_t *process, void (*start)(void *), unsigned int *i /* Prepare initial stack */ hal_cpuCreateContext(&t->context, start, t->kstack, t->kstacksz, stack + stacksz, arg); - if (process != NULL) { + if (process != NULL) hal_cpuSetCtxGot(t->context, process->got); + threads...
added GensKmod debug log info when using wrong animation or frame index with the sprite engine (useful for debugging)
@@ -943,7 +943,24 @@ void SPR_setAnimAndFrame(Sprite* sprite, s16 anim, s16 frame) if ((sprite->animInd != anim) || (sprite->seqInd != frame)) { +#if (LIB_DEBUG != 0) + if (anim >= sprite->definition->numAnimation) + { + KLog_U2("SPR_setAnimAndFrame: error - trying to use non existing animation #", anim, " - num animat...
Add url link to releases page to readme
@@ -24,11 +24,8 @@ found in this repository. 1.1 Windows ~~~~~~~~~~~ -Windows builds are available in the releases page on GitHub: - -:: - - https://github.com/rednex/rgbds/releases +Windows builds are available in the releases page on GitHub +`here <https://github.com/rednex/rgbds/releases>`__. Extract the zip and the...
wrap directory variables in quotes see
@@ -616,7 +616,7 @@ install-all: all $(PYTHONMOD_INSTALL) $(PYUNBOUND_INSTALL) $(UNBOUND_EVENT_INSTA $(INSTALL) -c -m 644 doc/unbound.conf.5 $(DESTDIR)$(mandir)/man5 $(INSTALL) -c -m 644 doc/unbound-host.1 $(DESTDIR)$(mandir)/man1 $(INSTALL) -c -m 755 unbound-control-setup $(DESTDIR)$(sbindir)/unbound-control-setup - i...
Fix bug when calling xsavec instruction There is an existing patch for the xsave instruction, but I came across an executable that fails with an xsavec instruction. This fixes that.
@@ -193,9 +193,9 @@ static inline void mmap_close(MMAPFILE fd) { close(fd); } static void *mmap_map(MMAPFILE fd, size_t size, size_t offset = 0) { - USIZE thesize=0; - OS_FileSizeFD(fd,&thesize); - if(static_cast<size_t>(thesize) < offset+size) + struct stat st; + fstat(fd, &st); + if(static_cast<size_t>(st.st_size) < ...
[DeviceDrivers] export pwm_enable/set to shell.
@@ -148,16 +148,67 @@ rt_err_t rt_pwm_enable(int channel) rt_err_t rt_pwm_set(int channel, rt_uint32_t period, rt_uint32_t pulse) { rt_err_t result = RT_EOK; - struct rt_device *pwm = rt_device_find("pwm"); + struct rt_device *device = rt_device_find("pwm"); + struct rt_pwm_configuration configuration = {0}; - if(!pwm)...
filter: remove metrics context if initialization fails
@@ -247,7 +247,6 @@ void flb_filter_exit(struct flb_config *config) flb_metrics_destroy(ins->metrics); } #endif - if (ins->alias) { flb_free(ins->alias); } @@ -358,10 +357,17 @@ void flb_filter_initialize_all(struct flb_config *config) /* Create the metrics context */ in->metrics = flb_metrics_create(name); - if (in->m...
trivial: mmap runtime test was missing from runtime-tests rule
@@ -78,7 +78,7 @@ test test-noaccel: mkfs boot stage3 $(Q) $(MAKE) -C test test $(Q) $(MAKE) runtime-tests$(subst test,,$@) -RUNTIME_TESTS= creat fst getdents getrandom hw hws mkdir pipe signal vsyscall write +RUNTIME_TESTS= creat fst getdents getrandom hw hws mkdir mmap pipe signal vsyscall write .PHONY: runtime-tests...
sched/assert: modify assert message
@@ -444,20 +444,20 @@ void _assert(FAR const char *filename, int linenum) #ifdef CONFIG_SMP # if CONFIG_TASK_NAME_SIZE > 0 - _alert("Assertion failed CPU%d at file:%s line: %d task: %s %p\n", + _alert("Assertion failed CPU%d at file: %s:%d task: %s %p\n", up_cpu_index(), filename, linenum, running_task()->name, running...
test: fix VppNeighbor.query_vpp_config
@@ -38,13 +38,14 @@ class VppNeighbor(VppObject): self.af = af self.is_static = is_static self.is_no_fib_entry = is_no_fib_entry - self.nbr_addr = inet_pton(af, nbr_addr) + self.nbr_addr = nbr_addr + self.nbr_addr_n = inet_pton(af, nbr_addr) def add_vpp_config(self): self._test.vapi.ip_neighbor_add_del( self.sw_if_inde...
libcupsfilters: Fixed typo
@@ -78,7 +78,7 @@ typedef int (*filter_function_t)(int inputfd, int outputfd, int inputseekable, typedef enum filter_out_format_e { /* Possible output formats for rastertopdf() filter function */ OUTPUT_FORMAT_PDF, /* PDF */ - OUTPUT_FORMAT_PCLM /* PCLM */ + OUTPUT_FORMAT_PCLM, /* PCLM */ OUTPUT_FORMAT_RASTER, /* CUPS/...
Finish client after CONNECTION_CLOSE is sent
@@ -239,6 +239,10 @@ void Client::disconnect() { ev_io_stop(loop_, &rev_); ev_io_stop(loop_, &wev_); + // Call ev_break to stop event loop. This is strange, but it is OK + // because we have 1 client only. + ev_break(loop_, EVBREAK_ALL); + if (conn_) { ngtcp2_conn_del(conn_); conn_ = nullptr;
Update at_client.c correct a spelling mistake
@@ -870,7 +870,7 @@ int at_client_init(const char *dev_name, rt_size_t recv_bufsz) if (idx >= AT_CLIENT_NUM_MAX) { - LOG_E("AT client initialize filed! Check the maximum number(%d) of AT client.", AT_CLIENT_NUM_MAX); + LOG_E("AT client initialize failed! Check the maximum number(%d) of AT client.", AT_CLIENT_NUM_MAX); ...
add new line && id_length pointer check
@@ -1038,7 +1038,7 @@ bool secure_session_is_established(const secure_session_t *session_ctx) } themis_status_t secure_session_get_remote_id(const secure_session_t* session_ctx, uint8_t* id, size_t* id_length){ - if(!session_ctx){ + if(!session_ctx || !id_length){ return THEMIS_INVALID_PARAMETER; } if(!id || (*id_lengt...
[config] blank server.tag if whitespace-only
@@ -877,6 +877,9 @@ static int config_insert(server *srv) { t[1] = ' '; buffer_commit(b, 1); } + char *t = b->ptr; /*(make empty if tag is whitespace-only)*/ + while (*t==' ' || *t=='\t' || *t=='\r' || *t=='\n') ++t; + if (*t == '\0') buffer_string_set_length(b, 0); } break; case 3: /* server.max-request-size */
add bc to dependency list replace $(echo "..." | bc) by `echo ... | bc` as they do not seem to behave the same way.
@@ -61,7 +61,7 @@ DEB_DEPENDS = curl build-essential autoconf automake bison libssl-dev ccache DEB_DEPENDS += debhelper dkms git libtool libapr1-dev dh-systemd DEB_DEPENDS += libconfuse-dev git-review exuberant-ctags cscope pkg-config DEB_DEPENDS += lcov chrpath autoconf nasm indent libnuma-dev -DEB_DEPENDS += python-a...
wuffs gen -version=0.3.0-alpha.13
@@ -65,15 +65,15 @@ extern "C" { // each major.minor branch, the commit count should increase monotonically. // // WUFFS_VERSION was overridden by "wuffs gen -version" based on revision -// a06a89c080e46db183fb65268e5cbef247c2b85a committed on 2020-08-30. +// 57d47c633ce692dff24a804382935f46f7074ebf committed on 2020-0...
Fix Truncate function
double d = stack.Arg0().NumericByRefConst().r8; double res = 0.0; - double retVal = System::Math::Truncate(d, res); + modf(d, &res); - stack.SetResult_R8( retVal ); + stack.SetResult_R8( res ); NANOCLR_NOCLEANUP_NOLABEL();
reset version to 1
@@ -6,7 +6,7 @@ import rtconfig import shutil # version -MODULE_VER_NUM = 6 +MODULE_VER_NUM = 1 cproject_temp = """<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
Added SIMD macros to arm_math.h again. CMSIS NN uses this macros.
@@ -400,6 +400,34 @@ extern "C" typedef double float64_t; +/** + @brief definition to read/write two 16 bit values (Depricated). + */ +#if defined ( __CC_ARM ) + #define __SIMD32_TYPE int32_t __packed +#elif defined ( __ARMCC_VERSION ) && ( __ARMCC_VERSION >= 6010050 ) + #define __SIMD32_TYPE int32_t +#elif defined ( _...
improves curl cleanup
@@ -95,14 +95,15 @@ char* httpsGET(const char* url) { CURLErrorHandling(res, curl); curl_easy_cleanup(curl); + curl_global_cleanup(); syslog(LOG_AUTHPRIV|LOG_DEBUG, "Response: %s\n",s.ptr); + return s.ptr; } else { + curl_global_cleanup(); syslog(LOG_AUTHPRIV|LOG_EMERG, "Couldn't init curl for Https GET. %s\n", curl_ea...
RTX5: Dynamic memory functions made weak
@@ -48,7 +48,7 @@ typedef struct mem_block_s { /// \param[in] mem pointer to memory pool. /// \param[in] size size of a memory pool in bytes. /// \return 1 - success, 0 - failure. -uint32_t osRtxMemoryInit (void *mem, uint32_t size) { +__WEAK uint32_t osRtxMemoryInit (void *mem, uint32_t size) { mem_head_t *head; mem_b...
Add a debug build to testing
@@ -11,7 +11,12 @@ jobs: fail-fast: false matrix: compiler: [gcc, clang] - flags: ["", "-m32"] + #flags: ["", "-m32"] # TODO + + include: + - compiler: gcc + flags: "" + build_type: -DCMAKE_BUILD_TYPE="Debug" steps: - uses: actions/checkout@v1 @@ -25,7 +30,7 @@ jobs: run: | mkdir build cd build - cmake .. + cmake ${{ m...
remove GUC_NEW_DISP for statement_timeout and gp_vmem_idle_resource_timeout
@@ -5269,7 +5269,7 @@ static struct config_int ConfigureNamesInt[] = {"statement_timeout", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Sets the maximum allowed duration (in milliseconds) of any statement."), gettext_noop("A value of 0 turns off the timeout."), - GUC_UNIT_MS | GUC_GPDB_ADDOPT | GUC_NEW_DISP + GUC_...
king: Factored all terminal rendering logic into its own module.
@@ -28,7 +28,6 @@ import Urbit.Vere.Http.Server (serv) import Urbit.Vere.Log (EventLog) import Urbit.Vere.Serf (Serf, SerfState(..), doJob, sStderr) -import qualified System.Console.Terminal.Size as TSize import qualified System.Entropy as Ent import qualified Urbit.King.API as King import qualified Urbit.Time as Time ...
io: Readd flag assignment
@@ -418,6 +418,7 @@ int elektraIoFdSetFlags (ElektraIoFdOperation * fdOp, int flags) return -1; } // since custom flags are allowed by `fcntl.h`, no further checks are required + fdOp->flags = flags; return 1; }
Add reference link for Random definition
@@ -1071,7 +1071,8 @@ static int ssl_tls13_parse_server_hello( mbedtls_ssl_context *ssl, } p += 2; - /* ... + /* From RFC8446, page 27. + * ... * Random random; * ... * with Random defined as:
Dockerfile: remove pc_ble_driver workaround This is not required with Python 3.8.
@@ -100,16 +100,17 @@ RUN wget -nv https://www.nordicsemi.com/-/media/Software-and-other-downloads/Des # Sphinx is required for building the readthedocs API documentation. # Matplotlib is required for result visualization. -# After that, install nrfutil, work around broken pc_ble_driver_py dependency, -# and remove the...
Use PSA_ALG_TRUNCATED_MAC() to limit to COOKIE_HMAC_LEN in mbedtls_ssl_cookie_setup()
@@ -121,10 +121,11 @@ int mbedtls_ssl_cookie_setup( mbedtls_ssl_cookie_ctx *ctx, if( alg == 0 ) return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA ); - ctx->psa_hmac_alg = PSA_ALG_HMAC( alg ); + ctx->psa_hmac_alg = PSA_ALG_TRUNCATED_MAC( PSA_ALG_HMAC( alg ), + COOKIE_HMAC_LEN ); psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_...
[Rust] Mouse moved/exited properly translates coordinate system
@@ -114,11 +114,18 @@ impl UIElement for View { printf!("Mouse exited view!\n"); *self.currently_contains_mouse_int.borrow_mut() = false; + let inner_content_origin = (*self.current_inner_content_frame.borrow()).origin; + let mut elems_containing_mouse = &mut *self.sub_elements_containing_mouse.borrow_mut(); for elem i...
test: account for pypy in traceback tests
@@ -54,7 +54,7 @@ class TestExcepthookDefault(ExcepthookTestCase): self.setup_idle(RuntimeError("Bad")) self.loop.run() self.assertOutput("(?s)^Unhandled exception in callback\n" - "Traceback.*\nRuntimeError: Bad\n$") + "(Traceback.*\n)?RuntimeError: Bad\n$") self.assertNotIn('AttributeError', sys.stderr.getvalue()) @@...
Paramaterize ccp tag filter in pipeline
@@ -221,7 +221,7 @@ resources: branch: {{ccp-git-branch}} private_key: {{ccp-git-key}} uri: {{ccp-git-remote}} - tag_filter: 1.4.4 + tag_filter: {{ccp-tag-filter}} - name: terraform type: terraform
test: ignore some clang warnings from -Weverything
#include "../simde/simde-common.h" SIMDE_DIAGNOSTIC_DISABLE_VLA_ +HEDLEY_DIAGNOSTIC_PUSH +#if HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus) +# pragma clang diagnostic ignored "-Wc++98-compat-pedantic" +#endif +#if HEDLEY_HAS_WARNING("-Wpadded") +# pragma clang diagnostic ignored "-Wpadded" +#end...
Replace field access with getter (h).
@@ -778,7 +778,7 @@ void ts_internal_bspline_eval(const tsBSpline *spline, tsReal u, ridx = dim; tidx = N*dim; /* N >= 1 implies tidx > 0 */ r = 1; - for (;r <= _deBoorNet_->pImpl->h; r++) { + for (;r <= ts_deboornet_num_insertions(_deBoorNet_); r++) { i = fst + r; for (; i <= lst; i++) { ui = spline->pImpl->knots[i]; ...
Docs: Sync changelog about Fusion Drive REF:
@@ -4,6 +4,7 @@ OpenCore Changelog #### v0.6.0 - Fixed sound corruption with AudioDxe - Fixed icon choice for Apple FW update in OpenCanopy +- Fixed APFS driver loading on Fusion Drive #### v0.5.9 - Added full HiDPI support in OpenCanopy
nimble/ll: Fix assert on connection event end This was missing in i.e. since we now close connection event in that case, we should also allow to move to next conn event gracefully.
@@ -2817,20 +2817,6 @@ ble_ll_conn_event_end(struct ble_npl_event *ev) /* Better be a connection state machine! */ connsm = (struct ble_ll_conn_sm *)ble_npl_event_get_arg(ev); BLE_LL_ASSERT(connsm); - if (connsm->conn_state == BLE_LL_CONN_STATE_IDLE) { - /* That should not happen. If it does it means connection - * is ...
decision: fix styling
@@ -53,6 +53,7 @@ The library `libelektra-core` must be kept minimal. - It is possible to do change tracking with reasonable memory and computation overhead - It is possible to design a single change tracking API that is useful for all existing and future plugins - False positivies are okay + - this may happend when so...
Fix bug that Short packet is sent from client before handshake completes
@@ -903,13 +903,6 @@ int Client::on_write(bool retransmit) { assert(sendbuf_.left() >= max_pktlen_); - if (!retransmit && ngtcp2_conn_get_handshake_completed(conn_)) { - auto rv = write_streams(); - if (rv != 0) { - return rv; - } - } - for (;;) { ssize_t n; if (ngtcp2_conn_bytes_in_flight(conn_) < MAX_BYTES_IN_FLIGHT)...
CI: Fix port for test app of IDF Monitor IDE integration
@@ -73,6 +73,7 @@ def test_monitor_ide_integration(env, extra_data): with WebSocketServer(), ttfw_idf.CustomProcess(' '.join([monitor_path, elf_path, + '--port', str(dut.port), '--ws', 'ws://{}:{}'.format(WebSocketServer.HOST, WebSocketServer.PORT)]), logfile='monitor_{}.log'.format(name)) as p:
py/objgenerator: Add missing #if guard for PY_GENERATOR_PEND_THROW. Without it, gen_instance_pend_throw_obj is defined but not used when MICROPY_PY_GENERATOR_PEND_THROW is set to 0.
@@ -297,6 +297,7 @@ STATIC mp_obj_t gen_instance_close(mp_obj_t self_in) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(gen_instance_close_obj, gen_instance_close); +#if MICROPY_PY_GENERATOR_PEND_THROW STATIC mp_obj_t gen_instance_pend_throw(mp_obj_t self_in, mp_obj_t exc_in) { mp_obj_gen_instance_t *self = MP_OBJ_TO_PTR(self_in...
parser: json: use new flb_pack_json() prototype
@@ -34,6 +34,7 @@ int flb_parser_json_do(struct flb_parser *parser, int skip; int ret; int slen; + int root_type; double tmfrac = 0; char *mp_buf = NULL; char *time_key; @@ -55,7 +56,7 @@ int flb_parser_json_do(struct flb_parser *parser, struct flb_time *t; /* Convert incoming in_buf JSON message to message pack format...
Fix error message Fix error message ([arc::pullid] b6d8e0bb-9e25d7f0-12431b42-9e5e0c32) Note: mandatory check (NEED_CHECK) was skipped
@@ -140,7 +140,7 @@ int main(int argc, char** argv) { } if (entry_point == NULL) { - fprintf(stderr, "No entry point, did you forget PY3_MAIN?\n"); + fprintf(stderr, "No entry point, did you forget PY_MAIN?\n"); goto error; }
section with relevant links
@@ -35,7 +35,7 @@ Introduction IoTivity-Lite is an open-source, reference implementation of the `Open Connectivity Foundation <https://openconnectivity.org/>`_ (OCF) standards for the Internet of Things (IoT). Specifically, the stack realizes all the functionalities of the `OCF Core Framework <https://iotivity.org/docu...
dpdk: fix QSFP+ module info
@@ -512,7 +512,8 @@ format_dpdk_device_module_info (u8 * s, va_list * args) if (rte_eth_dev_get_module_eeprom (xd->port_id, &ei) == 0) { - s = format (s, "%U", format_sfp_eeprom, ei.data); + s = format (s, "%U", format_sfp_eeprom, ei.data + + (mi.type == RTE_ETH_MODULE_SFF_8436 ? 0x80 : 0)); } else s = format (s, "eepr...
Remove unneeded script_action_complete updates
@@ -1522,8 +1522,6 @@ void Script_ScenePopAllState_b() { return; } - - script_action_complete = TRUE; } /* @@ -1544,8 +1542,6 @@ void Script_SetInputScript_b() { input_script_ptrs[index].bank = script_cmd_args[1]; input_script_ptrs[index].offset = (script_cmd_args[2] * 256) + script_cmd_args[3]; - - script_action_compl...
fix cmake warnings when building openmp by removing unused cmake vars
@@ -63,7 +63,6 @@ export LLVM_DIR=$AOMP_INSTALL_DIR GFXSEMICOLONS=`echo $GFXLIST | tr ' ' ';' ` ALTAOMP=${ALTAOMP:-$AOMP} COMMON_CMAKE_OPTS="-DOPENMP_ENABLE_LIBOMPTARGET=1 --DOPENMP_ENABLE_LIBOMPTARGET_HSA=1 -DCMAKE_INSTALL_PREFIX=$INSTALL_OPENMP -DOPENMP_TEST_C_COMPILER=$AOMP/bin/clang -DOPENMP_TEST_CXX_COMPILER=$AOMP...
Disable entry export entry loop, Fixup macro usage
@@ -6034,9 +6034,9 @@ NTSTATUS PhAccessResource( PVOID baseAddress; if (LDR_IS_DATAFILE(DllBase)) - baseAddress = (PVOID)((ULONG_PTR)DllBase & ~1); + baseAddress = LDR_DATAFILE_TO_MAPPEDVIEW(DllBase); else if (LDR_IS_IMAGEMAPPING(DllBase)) - baseAddress = (PVOID)((ULONG_PTR)DllBase & ~2); + baseAddress = LDR_IMAGEMAPPI...
Fix typo in code style script
@@ -68,7 +68,7 @@ def get_uncrustify_version() -> str: def check_style_is_correct(src_file_list: List[str]) -> bool: """ - Check the code style and output a diff foir each file whose style is + Check the code style and output a diff for each file whose style is incorrect. """ style_correct = True
Fix heap overflow in ELF module.
@@ -97,6 +97,7 @@ static const char* str_table_entry(const char* str_table_base, } len = strnlen(str_entry, str_table_limit - str_entry); + if (str_entry + len == str_table_limit) { /* Entry is clamped by extent of string table, not null-terminated. */ @@ -318,20 +319,30 @@ void parse_elf_header_##bits##_##bo( \ \ for ...
Update mbedTLS sha256 usage to avoid deprecation mbedTLS made sha256 functions that do not return errors deprecated. This updates to use the new functions avoiding the extra functions calls, and breakage when the deprecated calls are effectively removed.
@@ -61,20 +61,20 @@ typedef mbedtls_sha256_context bootutil_sha256_context; static inline void bootutil_sha256_init(bootutil_sha256_context *ctx) { mbedtls_sha256_init(ctx); - mbedtls_sha256_starts(ctx, 0); + (void)mbedtls_sha256_starts_ret(ctx, 0); } static inline void bootutil_sha256_update(bootutil_sha256_context *c...
Update for Develco sensor battery reporting
@@ -5788,8 +5788,13 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) if (i->modelId().startsWith(QLatin1String("tagv4")) || // SmartThings Arrival sensor i->modelId() == QLatin1String("Remote switch") || // Legrand switch i->modelId() == QLatin1String("Zen-01") || // Zen thermostat - i->mod...
crmf: updates for the new additional MAC_init arguments
@@ -140,7 +140,7 @@ int OSSL_CRMF_pbm_new(OSSL_LIB_CTX *libctx, const char *propq, int ok = 0; EVP_MAC *mac = NULL; EVP_MAC_CTX *mctx = NULL; - OSSL_PARAM macparams[3] = {OSSL_PARAM_END, OSSL_PARAM_END, OSSL_PARAM_END}; + OSSL_PARAM macparams[2] = { OSSL_PARAM_END, OSSL_PARAM_END }; if (out == NULL || pbmp == NULL || p...
check kernel >= 4.20, no channel test on passive mode, cosmetics
#include <signal.h> #include <unistd.h> #include <inttypes.h> +#include <linux/version.h> #include <linux/ethtool.h> #include <linux/sockios.h> #include <linux/if_packet.h> @@ -7239,7 +7240,7 @@ while(1) return; } /*===========================================================================*/ -static inline bool openso...
revert scale change
@@ -218,8 +218,8 @@ typedef float scs_float; #define AA_MAX_WEIGHT_NORM (1e10) /* (Dual) Scale updating parameters */ -#define MAX_SCALE_VALUE (1e3) -#define MIN_SCALE_VALUE (1e-3) +#define MAX_SCALE_VALUE (1e6) +#define MIN_SCALE_VALUE (1e-6) #define SCALE_NORM NORM /* what norm to use when computing the scale factor ...
Add MacPorts documentation PR <https://github.com/Genymobile/scrcpy/pull/2299>
@@ -130,6 +130,15 @@ You need `adb`, accessible from your `PATH`. If you don't have it yet: brew install android-platform-tools ``` +It's also available in [MacPorts], which sets up adb for you: + +```bash +sudo port install scrcpy +``` + +[MacPorts]: https://www.macports.org/ + + You can also [build the app manually][...
Update mmcsd_card.h
@@ -135,6 +135,8 @@ struct rt_sdio_function { rt_uint32_t enable_timeout_val; /* max enable timeout in msec */ struct rt_sdio_function_tuple *tuples; + + void *priv; }; #define SDIO_MAX_FUNCTIONS 7
Fix output of tinysplinecxx_tests in target tests.
@@ -95,7 +95,8 @@ add_subdirectory(cxx) ############################################################################### add_custom_target(tests DEPENDS tinyspline_tests tinysplinecxx_tests - COMMAND tinyspline_tests tinysplinecxx_tests + COMMAND tinyspline_tests + COMMAND tinysplinecxx_tests ) add_custom_target(coverag...
board/quackingstick/usbc_config.c: Format with clang-format BRANCH=none TEST=none
@@ -64,7 +64,8 @@ int charger_profile_override(struct charge_state_data *curr) if (current_level >= NUM_TEMP_CHG_LEVELS) current_level = NUM_TEMP_CHG_LEVELS - 1; - curr->requested_current = MIN(curr->requested_current, + curr->requested_current = + MIN(curr->requested_current, temp_chg_table[current_level].current); }
mmapstorage: fix sprintf format error
@@ -699,7 +699,7 @@ static void test_mmap_unlink_dirty_plugindata (const char * tmpFile) { keySetMeta (found, "some erroneous key", "which should not exist here"); char tooLarge[1024]; - sprintf (tooLarge, "%ju", UINTMAX_MAX); + sprintf (tooLarge, "%llu", ULLONG_MAX); tooLarge[1023] = '\0'; keySetMeta (found, tooLarge,...
userland: Check for ~ in TOCK_USERLAND_BASE_DIR Errors if someone tries to use ~ instead of $(HOME). Fixes
# userland master makefile. Included by application makefiles +# Check for a ~/ at the beginning of a path variable (TOCK_USERLAND_BASE_DIR). +# Make will not properly expand this. +ifdef TOCK_USERLAND_BASE_DIR + ifneq (,$(findstring BEGINNINGOFVARIABLE~/,BEGINNINGOFVARIABLE$(TOCK_USERLAND_BASE_DIR))) + $(error Hi! Usi...
Disable broken aligned_alloc on new versions of macOS and revert to old behaviour.
@@ -4182,18 +4182,21 @@ static void* vma_aligned_alloc(size_t alignment, size_t size) static void* vma_aligned_alloc(size_t alignment, size_t size) { -#if defined(__APPLE__) && (defined(MAC_OS_X_VERSION_10_16) || defined(__IPHONE_14_0)) -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_16 || __IPHONE_OS_VERSION_...
msvcbuild.bat: Update default to 2019, add support for 2022
@echo off Setlocal EnableDelayedExpansion -if not defined VS set VS=15 +if not defined VS set VS=16 +if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2022" (set VS=17) if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (set VS=16) if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set VS=15) if "%APPVEYO...
bytecode interpreter passes memory checker
*/ #include "all.h" -#define TREE_NOCK - static u3_noun _n_nock_on(u3_noun bus, u3_noun fol); static u3_noun _n_burn_on(u3_noun bus, u3_noun fol); @@ -1868,7 +1866,7 @@ _n_burn_on(u3_noun bus, u3_noun fol) c3_y* pog = _n_find(fol); c3_ys mov, off; - //u3z(fol); + u3z(fol); if ( c3y == u3a_is_north(u3R) ) { mov = -1; of...
sysrepoctl BUGFIX typo Fixes
@@ -59,7 +59,7 @@ static void version_print(void) { printf( - "sysrepocfg - sysrepo YANG schema manipulation tool, compiled with libsysrepo v%s (SO v%s)\n" + "sysrepoctl - sysrepo YANG schema manipulation tool, compiled with libsysrepo v%s (SO v%s)\n" "\n", SR_VERSION, SR_SOVERSION );
Fixing call to determine latest git tag
@@ -50,19 +50,21 @@ else TEST_HOME=$5; fi +echo INFO: Staging files for regression testing + + SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" BUILD_HOME="$(dirname "$SCRIPT_HOME")" SUT_PATH=(`find $BUILD_HOME -name "bin" -type d`) - # TODO: determine platform # determine latest tag from GitHub API LATE...