message
stringlengths
6
474
diff
stringlengths
8
5.22k
interface: fix reactivity in SidebarList Fixes urbit/landscape#1262
import React, { ReactElement, useCallback } from 'react'; -import { Associations, Graph } from '@urbit/api'; +import { Associations, Graph, Unreads } from '@urbit/api'; import { patp, patp2dec } from 'urbit-ob'; import _ from 'lodash'; @@ -13,9 +13,8 @@ import useMetadataState from '~/logic/state/metadata'; import { us...
Fix 0RTT and HRR
@@ -6223,7 +6223,13 @@ int ngtcp2_conn_submit_crypto_data(ngtcp2_conn *conn, const uint8_t *data, pkt_type = 0; /* Short packet */ } else if (hs_pktns->tx_ckm) { pkt_type = NGTCP2_PKT_HANDSHAKE; - } else if (!conn->server && conn->early_ckm) { + } else if (!conn->server && conn->early_ckm && datalen == 4) { + /* TODO d...
Add the auto generated der files to .gitignore
# Auto generated doc files doc/man1/openssl-*.pod +# Auto generated der files +providers/common/der/der_dsa.c +providers/common/der/der_ec.c +providers/common/der/der_rsa.c +providers/common/include/prov/der_dsa.h +providers/common/include/prov/der_ec.h +providers/common/include/prov/der_rsa.h + # error code files /cry...
Update header guards icmpv6echo.h
-#ifndef __ICMPv6ECHO_H -#define __ICMPv6ECHO_H +#ifndef OPENWSN_ICMPv6ECHO_H +#define OPENWSN_ICMPv6ECHO_H /** \addtogroup IPv6 @@ -37,4 +37,4 @@ void icmpv6echo_setIsReplyEnabled(bool isEnabled); \} */ -#endif +#endif /* OPENWSN_ICMPV6ECHO_H */
Add system-config-changed event to unit tests.
@@ -1207,7 +1207,7 @@ run_tests(_pappl_testdata_t *testdata) // I - Testing data // papplSystemSetEventCallback testBegin("api: papplSystemSetEventCallback"); - if (event_count > 0 && event_mask == (PAPPL_EVENT_PRINTER_CREATED | PAPPL_EVENT_PRINTER_DELETED | PAPPL_EVENT_PRINTER_STATE_CHANGED | PAPPL_EVENT_JOB_COMPLETED...
nimble/ll: Make sure to ACK Terminate IND with empty packet
@@ -839,7 +839,7 @@ ble_ll_conn_tx_data_pdu(struct ble_ll_conn_sm *connsm) uint32_t ticks; struct os_mbuf *m; struct ble_mbuf_hdr *ble_hdr; - struct os_mbuf_pkthdr *pkthdr; + struct os_mbuf_pkthdr *pkthdr = NULL; struct os_mbuf_pkthdr *nextpkthdr; struct ble_ll_empty_pdu empty_pdu; ble_phy_tx_end_func txend_func; @@ -8...
Send Transforms to Shaders;
#include "lovr/types/shader.h" +#include "math/transform.h" const luaL_Reg lovrShader[] = { { "send", l_lovrShaderSend }, @@ -141,12 +142,17 @@ int l_lovrShaderSend(lua_State* L) { break; case GL_FLOAT_MAT4: + if (lua_isuserdata(L, 3)) { + Transform* transform = luax_checktype(L, 3, Transform); + memcpy(data, transform...
Streamlining Kconfig
# ############################################################################### -menu "SNAP Paths" - config SNAP_ROOT_ENV - string - option env="SNAP_ROOT" - prompt "SNAP ROOT" - - config ACTION_ROOT_ENV - string - option env="ACTION_ROOT" - prompt "ACTION ROOT" - - config PSL_DCP_ENV - string - option env="PSL_DCP" ...
driver: kionix: Add check for either KXCJ9 or KX022 For the accel_kionix.c module to work, either the KXCJ9 or KX022 configs must be defined. BRANCH=none TEST=make buildall
/* Number of times to attempt to enable sensor before giving up. */ #define SENSOR_ENABLE_ATTEMPTS 3 +#if !defined(CONFIG_ACCEL_KXCJ9) && !defined(CONFIG_ACCEL_KX022) +#error "Must use either KXCJ9 or KX022" +#endif + #if defined(CONFIG_ACCEL_KXCJ9) && !defined(CONFIG_ACCEL_KX022) #define V(s_) 1 #elif defined(CONFIG_A...
Add Conan secret. This should now work for uploading Conan packages.
@@ -26,6 +26,7 @@ jobs: python -m pip install conan_package_tools - name: Build and test Conan package env: + CONAN_PASSWORD: ${{secrets.CONAN_PASSWORD}} CONAN_ARCHS: ${{matrix.CONAN_ARCHS}} CONAN_BUILD_TYPES: ${{matrix.CONAN_BUILD_TYPES}} CONAN_GCC_VERSIONS: ${{matrix.CONAN_GCC_VERSIONS}} @@ -67,6 +68,7 @@ jobs: echo ...
Fix issue with corrupted UI when drawing frame outside of mode 0 or 1
@@ -134,32 +134,29 @@ void UIUpdate_b() { } void UIDrawFrame_b(UBYTE x, UBYTE y, UBYTE width, UBYTE height) { + UINT16 id = 0; UBYTE i, j; UBYTE k = 1; - WaitForMode0Or1(); - - LOG("UIDrawFrame_b\n"); + id = 0x9C00; // Window VRAM - set_win_tiles(x, y, 1, 1, ui_frame_tl_tiles); - set_win_tiles(x, height + 1, 1, 1, ui_f...
Fix process memory iteration in Windows. PR wasn't correct. VirtualQueryEx doesn't update the last error code on success, so GetLastError can return arbitrary and unrelated error codes. This commit is a simplified variant of PR
@@ -153,7 +153,9 @@ YR_API YR_MEMORY_BLOCK* yr_process_get_next_memory_block( while (address < proc_info->si.lpMaximumApplicationAddress && VirtualQueryEx(proc_info->hProcess, address, &mbi, sizeof(mbi)) != 0) { - if (GetLastError() != ERROR_SUCCESS) + // mbi.RegionSize can overflow address while scanning a 64-bit proc...
Control plane recompiles upon change to code
@@ -9,16 +9,16 @@ endif all: dpdk_portfwd_controller dpdk_l2fwd_controller dpdk_l3fwd_controller dpdk_smgw_controller -dpdk_portfwd_controller: +dpdk_portfwd_controller: handlers.c controller.c messages.c sock_helpers.c threadpool.c fifo.c dpdk_portfwd_controller.c $(CC) $(CFLAGS) $(LIB) handlers.c controller.c message...
Fix not following cleared RD flags potentially enables amplification DDoS attacks, reported by Xiang Li and Wei Xu from NISL Lab, Tsinghua University. The fix stops query loops, by refusing to send RD=0 queries to a forwarder, they still get answered from cache.
@@ -1451,6 +1451,19 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq, errinf(qstate, "malloc failure for forward zone"); return error_response(qstate, id, LDNS_RCODE_SERVFAIL); } + if((qstate->query_flags&BIT_RD)==0) { + /* If the server accepts RD=0 queries and forwards + * with RD=1, then if...
sys/config: Remove obsolete setting CONFIG_NEWTMGR This setting is no longer used. It was replaced by CONFIG_MGMT a while back.
@@ -41,10 +41,6 @@ syscfg.defs: description: 'SMP access to config' value: 0 - CONFIG_NEWTMGR: - description: 'Newtmgr access to config' - value: 0 - CONFIG_CLI: description: 'CLI commands for accessing config' value: 0
VERSION bump to version 2.0.265
@@ -61,7 +61,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 264) +set(LIBYANG_MICRO_VERSION 265) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
zuse: fix comment parsing in de-xml:html
(ifix [gal ban] ;~(plug name attr)) :: :: ++many:de-xml:html ++ many :: contents - (more (star comt) ;~(pose apex chrd cdat)) + ;~(pfix (star comt) (star ;~(sfix ;~(pose apex chrd cdat) (star comt)))) :: :: ++name:de-xml:html ++ name :: tag name =+ ^= chx
Hide `which` warning when `fd` isn't installed On some systems, if `fd` isn't installed, this call to `which` will result in a message like "which: no fd in <your PATH printed here>". This hides that warning message.
@@ -65,7 +65,7 @@ include $(base_dir)/tools/torture.mk ######################################################################################### # Returns a list of files in directory $1 with file extension $2. # If available, use 'fd' to find the list of files, which is faster than 'find'. -ifeq ($(shell which fd),) +...
Updated kexts list
@@ -30,6 +30,7 @@ KEXT_PRECEDENCE mKextPrecedence[] = { { "AirportBrcmFixup.kext", "Lilu.kext" }, { "BrightnessKeys.kext", "Lilu.kext" }, { "CpuTscSync.kext", "Lilu.kext" }, + { "CpuTopologySync.kext", "Lilu.kext" }, { "CPUFriend.kext", "Lilu.kext" }, { "CPUFriendDataProvider.kext", "CPUFriend.kext" }, { "DebugEnhancer...
Fix: Remove redundant cut with hybrid fusion
@@ -1852,7 +1852,7 @@ bool colour_scc_cluster (int scc_id, int *colour, bool hybrid_cut = options->hybridcut && sccs[scc_id].has_parallel_hyperplane; /* If the SCC has a parallel hyperplane and the fusion strategy is hybrid, * then look max_fuse instead of greedy typed fuse heuristic */ - if ((options->fuse == TYPED_FU...
Remove xmake dephash (redundancy)
@@ -105,14 +105,3 @@ option("installpath") set_default("installpath") set_showmenu(true) set_description("Set the path to install cyber_engine_tweaks.asi to.", "e.g.", format("\t-xmake f --installpath=%s", [["C:\Program Files (x86)\Steam\steamapps\common\Cyberpunk 2077\bin\x64\plugins"]])) - -task("dephash") - on_run(f...
doc: tutorials by fix manually merged this quite old PR
@@ -160,7 +160,7 @@ sudo kdb mount /.git/config dir/git ini multiline=0 As git uses the `ini` format for its configuration we use the [ini plugin](/src/plugins/ini/README.md). You can pass parameters to plugins during the mount process. This is what -we did with `multiline=0`. Git intends the entries in its configurati...
Add install instructions for Debian
* [Kernel Configuration](#kernel-configuration) * [Packages](#packages) + - [Debian](#debian--binary) - [Ubuntu](#ubuntu---binary) - [Fedora](#fedora---binary) - [Arch](#arch---binary) @@ -58,6 +59,10 @@ Kernel compile flags can usually be checked by looking at `/proc/config.gz` or # Packages +## Debian - Binary + +`bc...
Adds numpy as dependency
@@ -8,7 +8,7 @@ compiler: # Installs system level dependencies before_install: - sudo apt-get update -qq - - sudo apt-get install -qq fftw3 fftw3-dev pkg-config cmake libgsl0-dev swig + - sudo apt-get install -qq fftw3 fftw3-dev pkg-config cmake libgsl0-dev swig python-numpy install: true
fix(Makefile): only consider outdated files when generating the lib file
@@ -108,14 +108,16 @@ reddit: $(LIBREDDIT) slack: $(LIBSLACK) # API libraries compilation -$(LIBDISCORD): $(DISCORD_OBJS) $(OBJS) | $(LIBDIR) - $(AR) -cqsv $@ $? $(CEEUTILS_OBJS) $(DISCORD_SPECS) -$(LIBGITHUB): $(GITHUB_OBJS) $(OBJS) | $(LIBDIR) - $(AR) -cqsv $@ $? $(CEEUTILS_OBJS) $(GITHUB_SPECS) -$(LIBREDDIT): $(REDD...
stm32/sdcard: Only define IRQ handler if using SDMMC1 peripheral. So that the IRQ can be used by other peripheral drivers if needed.
@@ -227,11 +227,13 @@ uint64_t sdcard_get_capacity_in_bytes(void) { return (uint64_t)cardinfo.LogBlockNbr * (uint64_t)cardinfo.LogBlockSize; } +#if !defined(MICROPY_HW_SDMMC2_CK) void SDIO_IRQHandler(void) { IRQ_ENTER(SDIO_IRQn); HAL_SD_IRQHandler(&sd_handle); IRQ_EXIT(SDIO_IRQn); } +#endif #if defined(MCU_SERIES_F7) v...
ikev2: add retry logic for session initiation Type: improvement
@@ -3742,6 +3742,31 @@ ikev2_mngr_process_ipsec_sa (ipsec_sa_t * ipsec_sa) } } +static void +ikev2_process_pending_sa_init (ikev2_main_t * km) +{ + u32 sai; + u64 ispi; + ikev2_sa_t *sa; + + /* *INDENT-OFF* */ + hash_foreach (ispi, sai, km->sa_by_ispi, + ({ + sa = pool_elt_at_index (km->sais, sai); + u32 bi0; + if (vli...
docs: add application example for esp-now
@@ -81,6 +81,13 @@ Receiving ESP-NOW Data Call ``esp_now_register_recv_cb`` to register receiving callback function. Call the receiving callback function when receiving ESP-NOW. The receiving callback function also runs from the Wi-Fi task. So, do not do lengthy operations in the callback function. Instead, post the ne...
Split combined triplet_count into two distinct flags
@@ -3496,7 +3496,8 @@ namespace_teardown(void) provided as the userData argument; the first is the expected element name, and the second is the expected attribute name. */ -static int triplet_count = 0; +static int triplet_start_flag = XML_FALSE; +static int triplet_end_flag = XML_FALSE; static void XMLCALL triplet_sta...
mangoapp: don't use fsr if msg doesn't contain fsr
@@ -33,8 +33,8 @@ bool mangoapp_paused = false; std::mutex mangoapp_m; std::condition_variable mangoapp_cv; static uint8_t raw_msg[1024] = {0}; -uint8_t g_fsrUpscale; -uint8_t g_fsrSharpness; +uint8_t g_fsrUpscale = 0; +uint8_t g_fsrSharpness = 0; void ctrl_thread(){ while (1){ @@ -89,8 +89,10 @@ void msg_read_thread()...
Fix default font bug;
@@ -241,9 +241,12 @@ void lovrGraphicsSetDepthTest(CompareMode depthTest) { } Font* lovrGraphicsGetFont() { - if (!state.font && !state.defaultFont) { + if (!state.font) { + if (!state.defaultFont) { FontData* fontData = lovrFontDataCreate(NULL, 32); state.defaultFont = lovrFontCreate(fontData); + } + lovrGraphicsSetFo...
doc: correct 'gvtg' parameters for acrn-dm Correct the GVT-g parameters description in the 'ACRN Device Model parameters' document. The order was the wrong way around.
@@ -55,13 +55,13 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters: - ACRN implements GVT-g for graphics virtualization (aka AcrnGT). This option allows you to set some of its parameters. - GVT_args format: ``gvt_high_gm_sz gvt_low_gm_sz gvt_fence_sz`` + GVT_args format: ``low_gm_sz high_gm...
sim_jtag: don't shift in new instruction if it hasn't changed This is something a JTAG host might do, so this adds coverage of a common use case. It specifically checks: There are no dependencies on side effects of UPDATE_IR state Shifting data values is non-destructive to the current instruction.
@@ -55,8 +55,10 @@ module sim_jtag localparam CLOCK_DIVISOR = 7; int control_port_open; + bit[31:0] next_instruction_length; bit[31:0] instruction_length; bit[MAX_INSTRUCTION_LEN - 1:0] instruction; + bit[MAX_INSTRUCTION_LEN - 1:0] next_instruction; bit[31:0] data_length; bit[MAX_DATA_LEN - 1:0] data; bit[MAX_INSTRUCTI...
Refactor get scene membership indication
@@ -6824,17 +6824,14 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC lightNode->setSceneCapacity(capacity); groupInfo->setSceneCount(count); - QVector<quint8> responseScenes; + std::vector<quint8> scenes; for (uint i = 0; i < count; i++) { if (!stream.atEnd()) { uint8_t sceneId; stre...
udp: fix typo in udp connectinon flags Type: fix Fixes:
@@ -38,7 +38,7 @@ typedef enum { UDP_CONN_F_CONNECTED = 1 << 0, /**< connected mode */ UDP_CONN_F_OWNS_PORT = 1 << 1, /**< port belong to conn (UDPC) */ - UDP_CONN_F_CLOSING = 2 << 2, /**< conn closed with data */ + UDP_CONN_F_CLOSING = 1 << 2, /**< conn closed with data */ } udp_conn_flags_t; typedef struct
Add SNI headers
@@ -169,7 +169,6 @@ struct flb_tls_session *flb_tls_session_new(struct flb_tls_context *ctx) mbedtls_ssl_init(&session->ssl); mbedtls_ssl_config_init(&session->conf); - ret = mbedtls_ssl_config_defaults(&session->conf, MBEDTLS_SSL_IS_CLIENT, MBEDTLS_SSL_TRANSPORT_STREAM, @@ -247,6 +246,7 @@ int net_io_tls_handshake(voi...
lwip: fix tcp_pcb_purge assert Remove the assert in tcp_pcb_purge()
@@ -1751,8 +1751,19 @@ tcp_pcb_purge(struct tcp_pcb *pcb) if (pcb->state == SYN_RCVD) { /* Need to find the corresponding listen_pcb and decrease its accepts_pending */ struct tcp_pcb_listen *lpcb; - LWIP_ASSERT("tcp_pcb_purge: pcb->state == SYN_RCVD but tcp_listen_pcbs is NULL", - tcp_listen_pcbs.listen_pcbs != NULL);...
Set SUFFIX in tempfile commands, fix bad architecture option for PGI compiler in avx512 test
@@ -188,13 +188,13 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) { if ($@){ warn "could not load PERL module File::Temp, so could not check MSA capatibility"; } else { - $tmpf = new File::Temp( UNLINK => 1 ); + $tmpf = new File::Temp( SUFFIX => '.c' , UNLINK => 1 ); $code = '"addvi.b $w0, $w1, 1"'; $...
Added anonymize-ip option to the man page.
@@ -516,6 +516,11 @@ Store accumulated processing time from parsing day-by-day logs. Only if configured with --enable-tcb=btree .TP +\fB\-\-anonymize-ip +Anonymize the client IP address. The IP anonymization option sets the last +octet of IPv4 user IP addresses and the last 80 bits of IPv6 addresses to +zeros. e.g., 19...
ames.c now works; fixed multiple bugs with help from
@@ -88,7 +88,6 @@ _ames_send(u3_pact* pac_u) add_u.sin_port = htons(pac_u->por_s); uv_buf_t buf_u = uv_buf_init((c3_c*)pac_u->hun_y, pac_u->len_w); - c3_i sas_i; if ( 0 != (sas_i = uv_udp_send(&pac_u->snd_u, @@ -197,6 +196,8 @@ u3_ames_decode_lane(u3_atom lan) { u3_lane lan_u; lan_u.pip_w = u3r_word(0, pip); + c3_asser...
chat-store: responded to comments, cleaned up
|% +$ card card:agent:gall +$ versioned-state - $% state-zero - state-one - state-two - state-three + $% state-0 + state-1 + state-2 == :: -+$ state-zero [%0 =inbox:store] -+$ state-one [%1 =inbox:store] -+$ state-two [%2 =inbox:store] -+$ state-three [%3 =inbox:store] ++$ state-0 [%0 =inbox:store] ++$ state-1 [%1 =inb...
Fixed negative option for dTidalTau to be 1./YEARSEC.
@@ -731,7 +731,7 @@ void InitializeOptionsEqtide(OPTIONS *options,fnReadOption fnRead[]){ options[OPT_TIDALTAU].dDefault = 1; options[OPT_TIDALTAU].iType = 2; options[OPT_TIDALTAU].iMultiFile = 1; - options[OPT_TIDALTAU].dNeg = 1; + options[OPT_TIDALTAU].dNeg = 1./YEARSEC; sprintf(options[OPT_TIDALTAU].cNeg,"Seconds");...
travis CHANGE print test output
@@ -26,11 +26,11 @@ before_install: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash .travis-deps-osx.sh; fi script: - - cd $TRAVIS_BUILD_DIR && mkdir build_none && cd build_none ; cmake -DENABLE_TLS=OFF -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && make test - - cd $TRAVIS_BUILD_DIR && mkdir build_tls && cd buil...
Interim with partial reform.
++ tec (just '`') ++ tis (just '=') ++ toc (just '"') +++ yel (just '"') ++ wut (just '?') ++ zap (just '!') :: {$bcmc p/hoon} :: $;, manual {$bcpd p/spec q/hoon} :: $&, repair {$bcsg p/hoon q/spec} :: $~, default - {$bctc p/spec q/(map term spec)} :: $/, read-only core + {$bctc p/spec q/(map term spec)} :: $`, read-on...
hdat/vpd: Don't warn and don't create a dummy "model-name" If the model property doesn't contain a known model number that we can translate into a name, assume it's already a name, stop warning and don't create an extraneous property.
@@ -529,9 +529,6 @@ def_model: mi = machine_info_lookup(model->prop); if (mi) { model_name = mi->name; - } else { - model_name = "Unknown"; - prlog(PR_WARNING, "VPD: Model name %s not known\n", model->prop); } }
Add autoremove in clear command after build.
@@ -11,12 +11,12 @@ ROOT_DIR=$(pwd) RUN_AS_ROOT=0 SUDO_CMD=sudo -CLEAR_APT=0 CLEAR_RAPIDJSON=0 CLEAR_PYTHON=0 CLEAR_RUBY=0 CLEAR_NETCORE=0 CLEAR_V8=0 +CLEAR_APT=0 SHOW_HELP=0 PROGNAME=$(basename $0) @@ -24,6 +24,8 @@ PROGNAME=$(basename $0) sub_apt(){ echo "clean apt of C build" $SUDO_CMD apt-get -y remove --purge buil...
packaging: do not hardcode swig executable
@@ -45,8 +45,7 @@ CMAKE_ARGS_BASE="-DTARGET_PLUGIN_FOLDER='elektra5' \ if case $DIST_NAME in "Fedora"*) true ;; "openSUSE"*) true ;; "CentOS"*) true ;; *) false ;; esac then CMAKE_ARGS_SPECIFIC="-DTARGET_LUA_CMOD_FOLDER=lib$LUA_LIB_SUFFIX/lua/$LUA_VERSION \ - -DTARGET_LUA_LMOD_FOLDER=share/lua/$LUA_VERSION \ - -DSWIG_E...
ugui.c: Fix linter error
@@ -678,11 +678,10 @@ void UG_WrapTitleString(const char* str, char* str_out, UG_S16 width) { str_out += 1; str += 1; break; - } else { + } *str_out = *str; str_out += 1; str += 1; - } while (!_is_whitespace(*str)) { *str_out = *str; if (*str >= font->start_char){
Another comment goes away
@@ -32,8 +32,6 @@ BuildRoot: %{_tmppath}/%{name} #cp /home/build/oidc-agent/rpm/oidc-agent.spec rpm && rpmbuild --define "_topdir /tmp/build/oidc-agent/rpm/rpmbuild" -bb rpm/oidc-agent.spec %files %defattr(-,root,root,-) -#%doc /usr/share/doc/README.md -#%doc /usr/share/doc/oidc-agent-4.1.1/README.md %doc %{_defaultdoc...
[build] Set /utf-8 flag for MSVC compiler. Issue:IGNIETFERRO-503.
@@ -1875,7 +1875,7 @@ class MSVCCompiler(MSVC, Compiler): MSVC_INLINE_FLAG=/Zc:inline- }''') - flags = ['/nologo', '/Zm500', '/GR', '/bigobj', '/FC', '/EHs', '/errorReport:prompt', '$MSVC_INLINE_FLAG'] + flags = ['/nologo', '/Zm500', '/GR', '/bigobj', '/FC', '/EHs', '/errorReport:prompt', '$MSVC_INLINE_FLAG', '/utf-8']...
Improve mini info window popup location calculation (experimental)
#include <miniinfo.h> #include <miniinfop.h> -#include <emenu.h> +#include <shellapi.h> #include <uxtheme.h> #include <windowsx.h> #include <phplug.h> #include <procprv.h> #include <proctree.h> + +#include <emenu.h> #include <settings.h> static HWND PhMipContainerWindow = NULL; @@ -699,38 +701,43 @@ VOID PhMipCalculate...
Shellchecked script and eliminated redirect
# before-test.sh and gen-config.sh are located together in the same folder. -if [ -z $1 ]; then +if [ -z "$1" ]; then unset PLATFORM; else PLATFORM=$1; fi -if [ -z $2 ]; then +if [ -z "$2" ]; then echo "ERROR: REF_BUILD_ID must be defined"; exit 1; else REF_BUILD_ID=$2; fi -if [ -z $3 ]; then +if [ -z "$3" ]; then SUT_...
On x86-64, make MB/WMB compiler barriers Whie on x86(64) one does not normally need full memory barriers, it's good practice to at least use compiler barriers for places where on other architectures memory barriers are used; this prevents the compiler from over-optimizing.
#endif */ +#ifdef __GNUC__ +#define MB __asm__ __volatile__("": : :"memory") +#define WMB __asm__ __volatile__("": : :"memory") +#else #define MB #define WMB +#endif static void __inline blas_lock(volatile BLASULONG *address){
mpi-families/mpich: update build to default to libfabric
@@ -25,12 +25,18 @@ BuildRequires: pmix%{PROJ_DELIM} BuildRequires: libevent-devel %endif -%{!?with_ucx: %define with_ucx 1} +%{!?with_ucx: %define with_ucx 0} %if 0%{with_ucx} BuildRequires: ucx%{PROJ_DELIM} Requires: ucx%{PROJ_DELIM} %endif +%{!?with_ofi: %define with_ofi 1} +%if 0%{with_ofi} +BuildRequires: libfabri...
shapito: fix is_null check in shapito_be_write_data_row_add()
@@ -216,7 +216,7 @@ SHAPITO_API static inline int shapito_be_write_data_row_add(shapito_stream_t *stream, int start, char *data, int32_t len) { int is_null = len == -1; - int size = sizeof(uint32_t) + (is_null) ? 0 : len; + int size = sizeof(uint32_t) + (is_null ? 0 : len); int rc = shapito_stream_ensure(stream, size);...
Updated README for STLink-v1 setup on macOS
-### # Installation instructions for STLINK/v1 driver -### When connecting to the STLINK/v1 on macOS via USB, the system claims the programmer as a SCSI device. Thus libusb is not able to initialise and establish a connection to it. To solve this issue Marco Cassinerio (marco.cassinerio@gmail.com) has created a so call...
Make update-isl work with latest isl versions Latest isl versions require clang to build a 'dist' package. Make sure we actually ask for it. While being there, also make sure we build isl on all cores.
@@ -18,8 +18,9 @@ if [ -n "$1" ]; then fi (cd $GITDIR && ./autogen.sh) mkdir -p $BUILDDIR -(cd $BUILDDIR && $GITDIR/configure --with-int=imath-32) -(cd $BUILDDIR && make dist) +(cd $BUILDDIR && $GITDIR/configure --with-int=imath-32 --with-clang=system) +touch $GITDIR/gitversion.h +(cd $BUILDDIR && make -j dist) for DIS...
Remove extraneous commented define.
#define SYSTEMD_DIR "/etc/systemd" #define INITD_DIR "/etc/init.d" #define PROFILE_SCRIPT "#! /bin/bash\nlib_found=0\nfilter_found=0\nif test -f /usr/lib/appscope/*/libscope.so; then\n lib_found=1\nfi\nif test -f /usr/lib/appscope/scope_filter; then\n filter_found=1\nelif test -f /tmp/appscope/scope_filter; then\n filt...
Implement UPDATE_MARK_CHECK_MOVE.
@@ -22058,7 +22058,7 @@ void check_move(entity *e) float x, z; entity *plat, *tempself; - if((e->update_mark & 4)) + if((e->update_mark & UPDATE_MARK_CHECK_MOVE)) { return; } @@ -22072,7 +22072,7 @@ void check_move(entity *e) if((plat = self->landed_on_platform) ) // on the platform? { //update platform first to get ac...
Make CMAKE_OSX_DEPLOYMENT_TARGET configurable
@@ -48,7 +48,7 @@ if(Git_FOUND) endif() if(APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version" FORCE) + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version") endif()
[SFUD] Update the flash chip information table.
@@ -124,7 +124,8 @@ typedef struct { {"AT45DB161E", SFUD_MF_ID_ATMEL, 0x26, 0x00, 2L*1024L*1024L, SFUD_WM_BYTE|SFUD_WM_DUAL_BUFFER, 512, 0x81}, \ {"W25Q40BV", SFUD_MF_ID_WINBOND, 0x40, 0x13, 512L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \ {"W25Q16BV", SFUD_MF_ID_WINBOND, 0x40, 0x15, 2L*1024L*1024L, SFUD_WM_PAGE_256B, 409...
fix parser bug which skipped bytes in long uris
+#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <ctype.h> @@ -1234,6 +1235,10 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len) break; } + if (evhtp_unlikely(i + 1 >= len)) { + break; + } + ch = data[++i]; } while (i < len);
sdl/hints: add SDL_HINT_RENDER_LINE_METHOD introduced in SDL2 2.0.20
@@ -4,6 +4,10 @@ package sdl #include "sdl_wrapper.h" #include "hints.h" +#if !(SDL_VERSION_ATLEAST(2,0,20)) +#define SDL_HINT_RENDER_LINE_METHOD "" +#endif + #if !(SDL_VERSION_ATLEAST(2,0,18)) #define SDL_HINT_APP_NAME "" #endif @@ -232,6 +236,7 @@ const ( HINT_LINUX_JOYSTICK_CLASSIC = C.SDL_HINT_LINUX_JOYSTICK_CLASSI...
fabs -> fabsl
@@ -14,7 +14,7 @@ void NAME(FLOAT *DA, FLOAT *DB, FLOAT *C, FLOAT *S){ long double db_i = *(DB + 1); long double r; - long double ada = fabs(da_r) + fabs(da_i); + long double ada = fabsl(da_r) + fabsl(da_i); PRINT_DEBUG_NAME;
Utilize horizontal SAD functions for SSE4.1 as well
@@ -87,22 +87,21 @@ static uint32_t hor_sad_sse41(const kvz_pixel *pic_data, const kvz_pixel *ref_da int32_t width, int32_t height, uint32_t pic_stride, uint32_t ref_stride, uint32_t left, uint32_t right) { - /* if (width == 4) - return hor_sad_left_sse41_w4(pic_data, ref_data, width, height, - pic_stride, ref_stride, ...
iokernel: DPDK only take a subset of hugepages, fix some indentation/spacing issues
@@ -60,8 +60,7 @@ static const struct rte_eth_conf port_conf_default = { * Initializes a given port using global settings and with the RX buffers * coming from the mbuf_pool passed as a parameter. */ -static inline int -port_init(uint8_t port, struct rte_mempool *mbuf_pool) +static inline int port_init(uint8_t port, st...
observe-hook: remove debugging code
++ warm-cache-all ?: warm-cache ~|('cannot warm up cache that is already warm' !!) - :::_ this(warm-cache %.y) - :_ this + :_ this(warm-cache %.y) =/ =mood:clay [%t da+now.bowl /mar] [%pass /warm-cache %arvo %c %warp our.bowl %home `[%sing mood]]~ :: =* mark t.wire ?~ riot ~|('mark build failed for {<mark>}' !!) - ~& m...
remove useless libs
<artifactId>commons-digester</artifactId> <version>2.1</version> </dependency> - <!-- Needed fo facet config --> - <dependency> - <groupId>org.mozilla</groupId> - <artifactId>rhino</artifactId> - <version>1.7.7</version> - </dependency> - <dependency> - <groupId>org.jsoup</groupId> - <artifactId>jsoup</artifactId> - <v...
Allow overriding colors in the 256 color space
@@ -785,7 +785,7 @@ xloadcolor(int i, const char *name, Color *ncolor) XRenderColor color = { .alpha = 0xffff }; if (!name) { - if (BETWEEN(i, 16, 255)) { /* 256 color */ + if (BETWEEN(i, 16, 255) && !colorname[i]) { /* 256 color */ if (i < 6*6*6+16) { /* same colors as xterm */ color.red = sixd_to_16bit( ((i-16)/36)%6...
conffile: support integer-like instance names Make something like 127.0.0.1:2003=1 possible.
@@ -287,6 +287,15 @@ cluster_host: crSTRING[ip] cluster_opt_instance[inst] cluster_opt_proto[prot] ; cluster_opt_instance: { $$ = NULL; } | '=' crSTRING[inst] { $$ = $inst; } + | '=' crINTVAL[inst] + { + $$ = ra_malloc(palloc, sizeof(char) * 12); + if ($$ == NULL) { + logerr("out of memory\n"); + YYABORT; + } + snprint...
viofs-pci: add space for nul char to volume tag
@@ -185,11 +185,13 @@ static VOID HandleGetVolumeName(IN PDEVICE_CONTEXT Context, IN size_t OutputBufferLength) { NTSTATUS status; - WCHAR WideTag[MAX_FILE_SYSTEM_NAME]; + WCHAR WideTag[MAX_FILE_SYSTEM_NAME + 1]; BYTE *out_buf; char tag[MAX_FILE_SYSTEM_NAME]; size_t size; + RtlZeroMemory(WideTag, sizeof(WideTag)); + Vi...
AppVeyor: Enable lua.
@@ -67,6 +67,8 @@ if ($Env:COMPILER -eq "msvc") { if ($Env:PLATFORM -eq "Win64") { $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_PYTHON=True" } +} else { + $CMAKE_FLAGS = "$CMAKE_FLAGS -DTINYSPLINE_ENABLE_LUA=True" }
Work CI-CD Add zh-cn readme to list of exclusion for build. ***NO_CI***
@@ -2,7 +2,7 @@ trigger: branches: include: ["main", "main", "develop*", "release-*", "refs/tags/*" ] paths: - exclude: [ "doc", "*.md", ".gitignore", "README.md" ] + exclude: [ "doc", "*.md", ".gitignore", "README.md", "README.zh-cn.md" ] pr: autoCancel: true
use tempfile?
+require 'tempfile' RSpec.describe 'Transfer-Encoding: chunked', with_app: :echo do let(:body_size) { 6 } let(:body_string) { SecureRandom.hex(body_size).to_s[0...body_size] } let(:io) do # ensures theres no size sneaking in - reader, writer = IO.pipe - writer.write(body_string) - writer.close - reader + f = Tempfile.n...
test eapol_size >= 95
@@ -891,7 +891,7 @@ memcpy(neweapdbdata->mac_ap.addr, mac_ap, 6); memcpy(neweapdbdata->mac_sta.addr, mac_sta, 6); neweapdbdata->eapol_len = htobe16(eap->len) +4; -if(neweapdbdata->eapol_len > 256 -4) +if((neweapdbdata->eapol_len < 95) || (neweapdbdata->eapol_len > 256 -4)) return false; memcpy(neweapdbdata->eapol, eap,...
Remove auto register to Cloud on POST CloudConf
@@ -100,23 +100,6 @@ cloud_close_endpoint(oc_endpoint_t *cloud_ep) } } -static void -cloud_register_internal_cb(oc_cloud_context_t *ctx, oc_cloud_status_t status, - void *data) -{ - (void)ctx; - (void)status; - (void)data; -} - -static oc_event_callback_retval_t -cloud_register_internal(void *user_data) -{ - oc_cloud_c...
Suggest workaround for error 0xfffffc0e When the hardware encoder is not able to encode at the given definition, it fails with an error 0xfffffc0e. It is documented in the FAQ: <https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#i-get-an-error-could-not-open-video-stream> But it is better to directly suggest the w...
package com.genymobile.scrcpy; import android.graphics.Rect; +import android.media.MediaCodec; +import android.os.Build; import java.io.File; import java.io.IOException; @@ -133,11 +135,25 @@ public final class Server { } } + private static void suggestFix(Throwable e) { + if (Build.VERSION.SDK_INT >= Build.VERSION_COD...
Get informed about undefined behavior
@@ -46,8 +46,8 @@ ifdef DEBUG $(info * Detected DEBUG environment flag, enforcing debug mode compilation) FLAGS:=$(FLAGS) DEBUG # # comment the following line if you want to use a different address sanitizer or a profiling tool. - OPTIMIZATION:=-O0 -march=native -fsanitize=address -fno-omit-frame-pointer - # possibly u...
file-server: fix incorrect path matching
=* headers header-list.req =/ req-line (parse-request-line url.req) ?. =(method.req %'GET') not-found:gen + =. site.req-line + %+ murn site.req-line + |= =cord + ^- (unit ^cord) + ?:(=(cord '') ~ `cord) =? req-line ?=(~ ext.req-line) - [[[~ %html] ~['index']] args.req-line] - ?> ?=(^ ext.req-line) + [[[~ %html] (snoc s...
esp_local_ctrl: Fix some memory leak issues by coverity static analyzer.
@@ -166,6 +166,7 @@ static esp_err_t cmd_set_prop_vals_handler(LocalCtrlMessage *req, ESP_LOGE(TAG, "Failed to allocate memory for setting values"); free(idxs); free(vals); + free(resp_payload); return ESP_ERR_NO_MEM; } for (size_t i = 0; i < req->cmd_set_prop_vals->n_props; i++) {
openjdk 12 vanilla
# JDK 12 -SET(JDK12_DARWIN sbr:1024709691) -SET(JDK12_LINUX sbr:1024708480) -SET(JDK12_WINDOWS sbr:1024706391) +SET(JDK12_DARWIN sbr:1128561457) +SET(JDK12_LINUX sbr:1128737735) +SET(JDK12_WINDOWS sbr:1128743394) # JDK 11 SET(JDK11_DARWIN sbr:1033682443) SET(JDK11_LINUX sbr:1033690755)
[tools] add function of auto-update rtconfig.h
@@ -12,41 +12,54 @@ if len(sys.argv) != 2: usage() sys.exit(0) -# get command options -command = '' -if sys.argv[1] == 'all': - command = ' ' -elif sys.argv[1] == 'clean': - command = ' -c' -elif sys.argv[1] == 'project': - - projects = os.listdir(BSP_ROOT) - for item in projects: - project_dir = os.path.join(BSP_ROOT,...
[modify][components][utilities]Modify the gcc section definition of a Var Export component
@@ -47,7 +47,7 @@ typedef struct ve_iterator ve_iterator_t; const char _vexp_##identi##_module[] RT_SECTION(".rodata.vexp") = #module; \ const char _vexp_##identi##_identi[] RT_SECTION(".rodata.vexp") = #identi; \ RT_USED const struct ve_exporter _vexp_##module##identi \ - RT_SECTION("VarExpTab") = \ + RT_SECTION(#modu...
Add default buffer length for token information
@@ -2402,23 +2402,35 @@ NTSTATUS PhpQueryTokenVariableSize( { NTSTATUS status; PVOID buffer; - ULONG returnLength = 0; + ULONG bufferSize; + ULONG returnLength; + + returnLength = 0; + bufferSize = 0x40; + buffer = PhAllocate(bufferSize); - NtQueryInformationToken( + status = NtQueryInformationToken( TokenHandle, Token...
apps/cmp.c: Correct -keyform option range w.r.t engine
@@ -1068,7 +1068,7 @@ static int transform_opts(void) return 0; } -#ifdef OPENSSL_NO_ENGINE +#ifndef OPENSSL_NO_ENGINE # define FORMAT_OPTIONS (OPT_FMT_PEMDER | OPT_FMT_PKCS12 | OPT_FMT_ENGINE) #else # define FORMAT_OPTIONS (OPT_FMT_PEMDER | OPT_FMT_PKCS12)
Add FLT_PORT_CONTEXT_MAX
@@ -53,6 +53,8 @@ typedef struct _FILTER_PORT_EA BYTE ConnectionContext[ANYSIZE_ARRAY]; } FILTER_PORT_EA, *PFILTER_PORT_EA; +#define FLT_PORT_CONTEXT_MAX 0xFFE8 + // FILE_FULL_EA_INFORMATION (symbols) typedef struct _FILTER_PORT_FULL_EA { @@ -429,12 +431,15 @@ NTSTATUS KphpFilterConnectCommunicationPort( *Port = NULL; ...
[CI] Run mkinitrd in build_kernel.py This will also build mkinitrd if necessary, ensuring it's available in CI
@@ -106,6 +106,9 @@ def build_initrd2() -> None: if not mkinitrd_path.exists(): raise RuntimeError(f"mkinitrd directory missing, expected at {mkinitrd_path}") + # This will also build mkinitrd, if necessary + run_and_check(['cargo', 'run', '--release'], cwd=mkinitrd_path) + generated_initrd = mkinitrd_path / "output.im...
contributing: update OPAE mailing list link
We track OPAE design and development issues, bugs, and feature requests in the [GitHub issue tracker](https://github.com/OPAE/opae-sdk/issues). For usage, installation, or other requests for help, please use the [OPAE mailing -list](https://lists.01.org/mailman/listinfo/opae) instead. +list](https://lists.01.org/postor...
Pretty-print peer and poke nacks as hall messages.
|= des/(list delta) %_(+> deltas (welp (flop des) deltas)) :: - ++ ta-note - :> sends {msg} as an %app message to the user's inbox. + ++ ta-speak + :> sends {sep} as an %app message to the user's inbox. :: - |= msg/tape + |= sep/speech %+ ta-action %phrase :- [[our.bol %inbox] ~ ~] - [%app dap.bol %lin | (crip msg)]~ +...
doc: update link to book
@@ -69,7 +69,7 @@ without you we would not have been able to collect all the information that led to the requirements for Elektra. The LaTeX sources are available [here](https://book.libelektra.org) -and the compiled book can be downloaded from [here](https://book.libelektra.org/raw/master/book/book.pdf). +and the comp...
fix UBSAN warning "applying non-zero offset 2044 to null pointer" Fixes chromium bug
@@ -732,7 +732,7 @@ static int AllocateMemory(VP8Decoder* const dec) { mem += f_info_size; dec->thread_ctx_.id_ = 0; dec->thread_ctx_.f_info_ = dec->f_info_; - if (dec->mt_method_ > 0) { + if (dec->filter_type_ > 0 && dec->mt_method_ > 0) { // secondary cache line. The deblocking process need to make use of the // filt...
interface: fully support pagination
@@ -25,7 +25,8 @@ export function GroupFeed(props) { const shouldRenderFeed = graphId in graphs; useEffect(() => { - api.graph.getGraph(graphResource.ship, graphResource.name); + // TODO: VirtualScroller should support lower starting values than 100 + props.api.graph.getNewest(graphResource.ship, graphResource.name, 10...
permalinks: fix tsc error
@@ -154,7 +154,7 @@ function GraphPermalink( navigate(e); }} > - {loading && association && Placeholder(association.metadata.config.graph)} + {loading && association && Placeholder((association.metadata.config as GraphConfig).graph)} {showTransclusion && index && !loading && ( <TranscludedNode api={api}
downstream: honor flags when it comes to the listener sockets mode
@@ -115,10 +115,8 @@ int flb_downstream_setup(struct flb_downstream *stream, return -1; } - stream->flags = flags; - stream->flags |= FLB_IO_ASYNC; - stream->thread_safe = FLB_FALSE; + stream->flags = flags; stream->tls = tls; /* Create TCP server */ @@ -134,7 +132,9 @@ int flb_downstream_setup(struct flb_downstream *s...
fix proress bar process 0
@@ -11,6 +11,10 @@ from .FrameWriter import write_frame import os +def update_progress(framecount, deltatime, videotime): + pass + + def create_frame(settings, beatmap, replay_info, resultinfo, videotime, showranking): logging.debug('entering preparedframes') @@ -92,12 +96,14 @@ def create_frame(settings, beatmap, repl...
[components][ulog] Fix the log length error when using multiple non-color backends.
/* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2019, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -403,15 +403,15 @@ void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bool_t is else { /* recalculate the log start address and log size whe...
driver/bc12/pi3usb9201.h: Format with clang-format BRANCH=none TEST=none
/* Control_1 regiter bit definitions */ #define PI3USB9201_REG_CTRL_1_INT_MASK BIT(0) #define PI3USB9201_REG_CTRL_1_MODE_SHIFT 1 -#define PI3USB9201_REG_CTRL_1_MODE_MASK (0x7 << \ - PI3USB9201_REG_CTRL_1_MODE_SHIFT) +#define PI3USB9201_REG_CTRL_1_MODE_MASK \ + (0x7 << PI3USB9201_REG_CTRL_1_MODE_SHIFT) /* Control_2 regi...
BugID:17132096: [WhiteScan] Fix negative returns error for atsamd5x _i2c_m_async_set_baudrate
@@ -1125,14 +1125,19 @@ int32_t _i2c_m_async_disable(struct _i2c_m_async_device *const i2c_dev) int32_t _i2c_m_async_set_baudrate(struct _i2c_m_async_device *const i2c_dev, uint32_t clkrate, uint32_t baudrate) { uint32_t tmp; + int8_t idx = 0; void * hw = i2c_dev->hw; if (hri_sercomi2cm_get_CTRLA_ENABLE_bit(hw)) { retu...
upload test artifact for the windows pipeline build
@@ -40,8 +40,8 @@ jobs: cd $(BuildType) ctest --verbose --timeout 120 displayName: CTest -# - upload: $(Build.SourcesDirectory)/$(BuildType) -# artifact: mimalloc-windows-$(BuildType) + - upload: $(Build.SourcesDirectory)/$(BuildType) + artifact: mimalloc-windows-$(BuildType) - job: displayName: Linux
return set float value
@@ -103,7 +103,7 @@ FLT config_read_float(config_group *cg, const char *tag, const FLT def) { if (cv != NULL) return cv->numeric.f; - config_set_float(cg, tag, def); + return config_set_float(cg, tag, def); } config_entry* next_unused_entry(config_group *cg) {