message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix 64bit propertysheet style bug
@@ -906,7 +906,7 @@ BOOLEAN PhModalPropertySheet( oldFocus = GetFocus(); topLevelOwner = Header->hwndParent; - while (topLevelOwner && (GetWindowLong(topLevelOwner, GWL_STYLE) & WS_CHILD)) + while (topLevelOwner && (GetWindowLongPtr(topLevelOwner, GWL_STYLE) & WS_CHILD)) topLevelOwner = GetParent(topLevelOwner); if (to...
[verilator] Remove compilation warnings from the memutil DPI functions
@@ -273,7 +273,6 @@ static void WriteSegment(const MemArea &m, uint32_t offset, memset(minibuf, 0, sizeof minibuf); assert(m.width_byte <= sizeof minibuf); - uint32_t all_words = (data.size() + m.width_byte - 1) / m.width_byte; uint32_t full_data_words = data.size() / m.width_byte; uint32_t part_data_word_len = data.si...
make sure PEER_CERTIFICATE_RECEIVED has certificate chain even if Quic does not do validation
@@ -286,6 +286,17 @@ CxPlatTlsCertificateVerifyCallback( (int)CxPlatTlsMapOpenSSLErrorToQuicStatus(X509_STORE_CTX_get_error(x509_ctx)); } } + } else if ((TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_INDICATE_CERTIFICATE_RECEIVED) && + (TlsContext->SecConfig->Flags & QUIC_CREDENTIAL_FLAG_USE_PORTABLE_CERTIFICATES...
tests: update clay tests to account for It had changed the shape of some data structures, but hadn't updated the tests to reflect that.
=/ src "." %+ expect-eq !> ^- pile:fusion - :* ~ ~ ~ ~ ~ ~ + :* ~ ~ ~ ~ ~ ~ ~ tssg+[%dbug [/sur/foo/hoon [[1 1] [1 2]]] [%cnts ~[[%.y 1]] ~]]~ == !> (parse-pile:(ford):fusion /sur/foo/hoon src) =/ src "/% moo %mime\0a." %+ expect-eq !> ^- pile:fusion - :* sur=~ lib=~ raw=~ + :* sur=~ lib=~ raw=~ raz=~ maz=[face=%moo ma...
xive: Fix opal_xive_dump_tm() to access W2 properly The HW only supported limited access sizes.
@@ -4733,7 +4733,13 @@ static int64_t opal_xive_dump_tm(uint32_t offset, const char *n, uint32_t pir) xive_regr(x, PC_TCTXT_INDIR0); v0 = in_be64(ind_tm_base + offset); - v1 = in_be64(ind_tm_base + offset + 8); + if (offset == TM_QW3_HV_PHYS) { + v1 = in_8(ind_tm_base + offset + 8); + v1 <<= 56; + } else { + v1 = in_be...
Add custom_header to legacy_elements, make sure custom_header is always shown first
@@ -504,7 +504,7 @@ void HudElements::custom_header(){ std::string text = HUDElements.params->custom_header; center_text(text); ImGui::TextColored(HUDElements.colors.text, "%s",text.c_str()); - ImGui::Text("\n"); + //ImGui::Text("\n"); ImGui::PopFont(); } @@ -632,6 +632,9 @@ void HudElements::sort_elements(std::pair<st...
C++ Binding: Add explicit default copy constructor This update fixes issue
@@ -432,6 +432,8 @@ public: typedef PolicySelector<PolicySetter1, PolicySetter2, PolicySetter3, PolicySetter4, PolicySetter5, PolicySetter6> Policies; + Value (const Value &) = default; + // not to be constructed yourself Value<T, PolicySetter1, PolicySetter2, PolicySetter3, PolicySetter4, PolicySetter5, PolicySetter6>...
Change [NSUserDefaults synchronize] to actually be synchronous * Change [NSUserDefaults synchronize] to actually be synchronous Fixes * undo unintended formatting change
@@ -882,11 +882,7 @@ static Boolean synchronizeApplicationDomain(CFTypeRef context, void *domain) { CFDataRef data = CFPropertyListCreateData(__CFPreferencesAllocator(), (CFPropertyListRef)domain, kCFPropertyListXMLFormat_v1_0, 0, NULL); Boolean success = false; if (data) { -#if DEPLOYMENT_TARGET_WINDOWS - success = _C...
Update LICENSE file, and create AUTHORS file
MIT License -Copyright (c) 2019, The Pallene Developers +Copyright (c) 2019-2020, The Pallene Developers Copyright (c) 2018, The Titan Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy
readme: turn XED mention into a link XED => [XED](https://github.com/intelxed/xed) This kind of reference is more fair.
@@ -113,7 +113,7 @@ make ![ZydisInfo](https://raw.githubusercontent.com/zyantific/zydis/master/assets/screenshots/ZydisInfo.png) ## Credits -- Intel (for open-sourcing XED, allowing for automatic comparision of our tables against theirs, improving both) +- Intel (for open-sourcing [XED](https://github.com/intelxed/xed)...
SOVERSION bump to version 7.4.3
@@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 7) set(SYSREPO_MINOR_SOVERSION 4) -set(SYSREPO_MICRO_SOVERSION 2) +set(SYSREPO_MICRO_SO...
better to add cast here
@@ -74,12 +74,12 @@ extern const fix16 sqrttab16[0x10000]; * \brief * Convert integer to fix32. */ -#define intToFix32(value) ((value) << FIX32_FRAC_BITS) +#define intToFix32(value) ((fix32) ((value) << FIX32_FRAC_BITS)) /** * \brief * Convert fix32 to integer. */ -#define fix32ToInt(value) ((value) >> FIX32_FRAC_BITS)...
build_hipvdi.sh - add sed command to fix bitcode library path so that it resolves to ROCM_PATH/amdgcn/bitcode to match the new bitcode layout.
@@ -173,7 +173,8 @@ if [ "$1" == "install" ] ; then $SUDO sed -i -e "s/\$HIP_CLANG_PATH=\$ENV{'HIP_CLANG_PATH'}/\$HIP_CLANG_PATH=$SED_INSTALL_DIR \. \'\/bin\'/" $INSTALL_HIP/bin/hipcc $SUDO sed -i -e "s/ -D_OPENMP //" $INSTALL_HIP/bin/hipcc $SUDO sed -i -e "s/\"\/opt\/rocm\"\/llvm/$SED_INSTALL_DIR/" $INSTALL_HIP/bin/hi...
reduce retire size
@@ -393,7 +393,7 @@ void _mi_page_retire(mi_page_t* page) { // is the only page left with free blocks. It is not clear // how to check this efficiently though... for now we just check // if its neighbours are almost fully used. - if (mi_likely(page->block_size <= MI_SMALL_SIZE_MAX)) { + if (mi_likely(page->block_size <...
metadata-store: hide instead of drop dm associations
app-indices (rebuild-app-indices associations.old) == ?: ?=(%10 -.old) - $(-.old %11, associations.old (strip-dm-assoc associations.old)) + $(-.old %11, associations.old (hide-dm-assoc associations.old)) ?: ?=(%9 -.old) =/ groups (fall (~(get by (rebuild-app-indices associations.old)) %groups) ~) :: pre-breach, can saf...
fixed copy and paste error, again
@@ -27,8 +27,8 @@ Detailed description Get source -------------- ``` -git clone https://github.com/ZerBea/hcxtools.git -cd hcxtools +git clone https://github.com/ZerBea/hcxdumptool.git +cd hcxdumptool ``` Solve dependencies (Debian based distributions: KALI, UBUNTU, ...)
Assign LPVOID pointer with NULL before it's being used This fixes
@@ -107,7 +107,7 @@ filemap(const TCHAR *name, static void win32perror(const TCHAR *s) { - LPVOID buf; + LPVOID buf = NULL; if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0,
Poll manager: skip remaining items for a node on failed confirm
@@ -156,6 +156,20 @@ void PollManager::apsdeDataConfirm(const deCONZ::ApsDataConfirm &conf) DBG_Printf(DBG_INFO_L2, "Poll APS confirm %u status: 0x%02X\n", conf.id(), conf.status()); + if (!items.empty() && conf.status() != deCONZ::ApsSuccessStatus) + { + PollItem &pitem = items.front(); + + for (auto &i : pitem.items)...
SOVERSION bump to version 4.3.4
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 3) -set(SYSREPO_MICRO_SOVERSION 3) +set(SYSREPO_MICRO_SO...
fixed stack smashing in process pppchap packet
@@ -4601,10 +4601,20 @@ if(caplen < (uint32_t)CHAP_SIZE) chap = (chap_t*)packet; chaplen = ntohs(chap->len); authlen = chap->data[0]; + if(caplen < chaplen) { return; } +if(chaplen < 16) + { + return; + } +if((authlen < 16) || (authlen > (chaplen -CHAP_SIZE))) + { + return; + } + if((chap->code == CHAP_CODE_REQ) || (ch...
[Linker] Support .word
@@ -27,6 +27,7 @@ pub enum AssemblyStatement { SetCurrentSection(String), Label(String), Ascii(String), + LiteralWord(u32), Equ(String, Expression), // Instructions MoveImmediateIntoRegister(usize, Register), @@ -219,6 +220,9 @@ impl AssemblyParser { } }; } + AssemblyStatement::LiteralWord(immediate) => { + println!("[...
arvo: rename +en-case to +de-case, prime the cache in +settle
?. ?=([@ @ @ *] p) ~ ?~ who=(slaw %p i.p) ~ ?~ des=?~(i.t.p (some %$) (slaw %tas i.t.p)) ~ :: XX +sym ;~(pose low (easy %$)) - ?~ ved=(en-case i.t.t.p) ~ + ?~ ved=(de-case i.t.t.p) ~ `(unit beam)`[~ [`ship`u.who `desk`u.des `case`u.ved] t.t.t.p] :: -++ en-case +++ de-case ~/ %en-case |= =knot ^- (unit case) ++ settle |...
WIP: Fix select2 input alignment
@@ -240,6 +240,7 @@ textarea { .FormField .ReactSelect__control { height: 30px; min-height: 30px; + align-content: center; border: 1px solid var(--input-border-color); background-color: var(--input-bg-color); }
fix spin sound delay
@@ -102,7 +102,7 @@ class HitsoundManager: if prevspin is None or prevspin.progress != my_info[index].more.progress: spinsound = int(min(1, my_info[index].more.progress) * (len(Hitsound.spinnerspin)-1)) overlay(my_info[index].time, song, Hitsound.spinnerspin[spinsound]) - self.spincooldown = my_info[index].time + len(H...
nvhw/pgraph_chipset: Nailed down NV10 bypass fog mode 3.
@@ -462,7 +462,6 @@ void pgraph_celsius_xf_bypass(struct pgraph_celsius_xf_res *res, struct pgraph_s int fog_mode = extr(mode_a, 16, 2); switch (fog_mode) { case 0: - case 3: res->fog[0] = vab[2*4+3]; break; case 1: @@ -471,6 +470,13 @@ void pgraph_celsius_xf_bypass(struct pgraph_celsius_xf_res *res, struct pgraph_s ca...
Adjust tag_len documentation for the mbedtls_ccm_finish().
@@ -477,9 +477,8 @@ int mbedtls_ccm_update( mbedtls_ccm_context *ctx, * \param tag The buffer for holding the tag. If \p tag_len is greater * than zero, this must be a writable buffer of at least \p * tag_len Bytes. - * \param tag_len The length of the tag to generate in Bytes: - * 4, 6, 8, 10, 12, 14 or 16. - * For CC...
bugfix - we need space to demod all soft bits
@@ -639,9 +639,10 @@ void ofdmflexframesync_decode_header(ofdmflexframesync _q) // re-compute payload encoded message length if (_q->payload_soft) { - _q->payload_enc_len = 8*packetizer_get_enc_msg_len(_q->p_payload); - div_t d = div(_q->payload_enc_len, _q->bps_payload); + int packetizer_msg_len = packetizer_get_enc_m...
doc: add missing link directive in X942 KDF
@@ -17,7 +17,7 @@ can be used with the EVP_KDF_fetch() function. This is an alias for "X963KDF". -See <EVP_KDF-X963(7)> for a list of supported parameters and examples. +See L<EVP_KDF-X963(7)> for a list of supported parameters and examples. =head1 HISTORY
tools: fix reg expression memory leak
@@ -553,11 +553,13 @@ fpga_result fpga_boot_info(fpga_token token) if (reg_res) { regerror(reg_res, &re, err, sizeof(err)); OPAE_MSG("Error executing regex: %s", err); + regfree(&re); return FPGA_EXCEPTION; } strncpy(page, boot + matches[0].rm_so+1, matches[0].rm_eo - (matches[0].rm_so+1)); printf("%-32s : %s\n", "Boot...
build: autoselect build env EWDK is used to build drivers when run build scripts from the EWDK environment or if EWDK_DIR var is set. Otherwise, drivers are built with Visual Studio.
@echo off +set __VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017 if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd -if not "%EnterpriseWDK%"=="" goto ready -if "%EWDK11_DIR%"=="" set EWDK11_DIR=c:\ewdk11 -:: call :add_path "%EWDK11_DIR%\Program Files\Micros...
avx: don't require aligned date for _mm256_broadcast_{ps,pd}
@@ -1447,8 +1447,9 @@ simde_mm256_broadcast_pd (simde__m128d const * mem_addr) { #else simde__m256d_private r_; - r_.m128d_private[0] = *HEDLEY_REINTERPRET_CAST(simde__m128d_private const*, mem_addr); - r_.m128d_private[1] = *HEDLEY_REINTERPRET_CAST(simde__m128d_private const*, mem_addr); + simde__m128d tmp = simde_mm_...
udp: make udp encap pool cacheline aligned This fixes issue with unaligned vector access on gcc-7. As udp_encap_t is declared as cacheline aligned, alloc also need to be.
@@ -81,7 +81,7 @@ udp_encap_add_and_lock (u32 id, { u8 pfx_len = 0; - pool_get (udp_encap_pool, ue); + pool_get_aligned (udp_encap_pool, ue, CLIB_CACHE_LINE_BYTES); uei = ue - udp_encap_pool; vlib_validate_combined_counter (&(udp_encap_counters), uei);
Address Scripts run from the command line will automatically call a main function if it exists.
(do (set *no-file* false) (def env (make-env)) - (put env :args (array/slice args i)) + (def subargs (array/slice args i)) + (put env :args subargs) (dofile arg :prefix "" :exit *exit-on-error* :evaluator evaluator :env env) + (if-let [main (get (in env 'main) :value)] + (let [thunk (compile [main ;(tuple/slice args i)...
NetKVM: Fixed wrong LinkSpeed multiplication result
@@ -580,7 +580,7 @@ InitializeLinkPropertiesConfig(PPARANDIS_ADAPTER pContext) } else { - pContext->LinkProperties.Speed = speed * 1000000; + pContext->LinkProperties.Speed = ((ULONGLONG)speed) * 1000000; } if (duplexState == VIRTIO_NET_DUPLEX_HALF)
merged origin branch, updated API file with lastest doc structure changes
@@ -9,7 +9,6 @@ This file is for reference purposes only. It is intended for tracking the Mobile * [Loading Map Data](loading_data.md) * [Developer Guide to SDK Features](developer_guide.md) * [Mobile Routing](routing.md) -* [Offline Maps](offline_maps.md) * [API References](api_reference.md) New files: @Aare- where do...
DOCS: Adjust recommended number of concurrent client connections
@@ -1870,7 +1870,7 @@ Increasing the limit allocates more shared memory on the master host at server s ## <a id="max_connections"></a>max\_connections -The maximum number of concurrent connections to the database server. In a Greenplum Database system, user client connections go through the Greenplum master instance on...
pyro: Defer sensor switching rate in S3 BRANCH=reef TEST=Put the device in S5 and observed no I2C errors printed on the EC console. Commit-Ready: Keith Tzeng
#define CONFIG_WLAN_POWER_ACTIVE_LOW #define WIRELESS_GPIO_WLAN_POWER GPIO_WIRELESS_GPIO_WLAN_POWER +/* + *During shutdown sequence TPS65094x PMIC turns off the sensor rails + *asynchronously to the EC. If we access the sensors when the sensor power + *rails are off we get I2C errors. To avoid this issue, defer switchi...
docs: pl/container - add compatible w/ 5.2, not tested w 5.1, 5.0
</ul> <note type="warning">PL/Container is an experimental feature and is not intended for use in a production environment. Experimental features are subject to change without notice in future - releases.</note> + releases. <p>PL/Container is compatible with Greenplum Database 5.2.0. PL/Container has not + been tested ...
Add condition variable for recovery resume. Replace a sleep loop with a CV, to get a fast reaction time when recovery is resumed or the postmaster exits via standard infrastructure. Unfortunately we still need to wake up every second to perform extra polling during the recovery pause loop. Discussion:
@@ -724,6 +724,7 @@ typedef struct XLogCtlData TimestampTz currentChunkStartTime; /* Recovery pause state */ RecoveryPauseState recoveryPauseState; + ConditionVariable recoveryNotPausedCV; /* * lastFpwDisableRecPtr points to the start of the last replayed @@ -5228,6 +5229,7 @@ XLOGShmemInit(void) SpinLockInit(&XLogCtl-...
One byte fix to fix OSS Fuzz AFL support "x$LIB_FUZZING_ENGINE" is not the correct filename to test for - remove the x!
@@ -147,7 +147,7 @@ AM_CONDITIONAL([USE_OSSFUZZERS], [test "x$have_ossfuzzers" = "xyes"]) AC_SUBST([LIB_FUZZING_ENGINE]) AM_CONDITIONAL([USE_OSSFUZZ_FLAG], [test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"]) -AM_CONDITIONAL([USE_OSSFUZZ_STATIC], [test -f "x$LIB_FUZZING_ENGINE"]) +AM_CONDITIONAL([USE_OSSFUZZ_STATIC], ...
Change screenshot in full screen
@@ -46,8 +46,8 @@ BlitGameMetadata selected_game_metadata; SpriteSheet *spritesheet; Surface *screenshot; -AutoRepeat ar_button_up; -AutoRepeat ar_button_down; +AutoRepeat ar_button_up(250, 600); +AutoRepeat ar_button_down(250, 600); AutoRepeat ar_button_left(0, 0); AutoRepeat ar_button_right(0, 0); @@ -494,14 +494,6 @...
Document operand order in decoder struct
@@ -932,6 +932,10 @@ typedef struct ZydisDecodedInstruction_ ZyanU8 operand_count; /** * @brief Detailed info for all instruction operands. + * + * Explicit operands are guaranteed to be in the front and ordered as they are printed + * by the formatter in Intel mode. No assumptions can be made about the order of hidden...
luci-app-ssr-plus: fix restart/reload when use luci-nginx
@@ -28,5 +28,10 @@ if [ ! -s "/etc/config/shadowsocksr" ]; then fi sed -i "s/option type 'vmess'"/"option type 'v2ray'\n\toption v2ray_protocol 'vmess'/g" /etc/config/shadowsocksr sed -i "s/option type 'vless'"/"option type 'v2ray'\n\toption v2ray_protocol 'vless'/g" /etc/config/shadowsocksr +if [ -s "/etc/uwsgi/vassal...
Fix motion vector constraints Fixes integer motion vectors being constrained more than what was necessary when using --mv-constraint or --wpp.
@@ -87,12 +87,24 @@ static INLINE bool fracmv_within_tile(const inter_search_info_t *info, int x, in { const encoder_control_t *ctrl = info->state->encoder_control; + const bool is_frac_luma = x % 4 != 0 || y % 4 != 0; + const bool is_frac_chroma = x % 8 != 0 || y % 8 != 0; + if (ctrl->cfg.owf && ctrl->cfg.wpp) { // Ch...
OcMachoLib: Fix MachoGetNextSegment64() to return NULL when the LC is too small.
@@ -426,14 +426,16 @@ MachoGetNextSegment64 ( (CONST MACH_LOAD_COMMAND *)Segment ) ); - if ((NextSegment != NULL) - && (NextSegment->CommandSize >= sizeof (*NextSegment))) { + if ((NextSegment == NULL) + || (NextSegment->CommandSize < sizeof (*NextSegment))) { + return NULL; + } + TopOfSections = (UINTN)&NextSegment[Ne...
Fixed -Werror=strict-prototypes failure on s2n_error_location
@@ -58,7 +58,7 @@ extern __thread int s2n_errno; * in runtimes where thread-local variables may not be easily accessible. */ S2N_API -extern int *s2n_errno_location(); +extern int *s2n_errno_location(void); typedef enum { S2N_ERR_T_OK=0,
fix uninit after malloc for on_tcp_waiting_list.
@@ -1717,6 +1717,7 @@ pending_tcp_query(struct serviced_query* sq, sldns_buffer* packet, memcpy(&w->addr, &sq->addr, sq->addrlen); w->addrlen = sq->addrlen; w->outnet = sq->outnet; + w->on_tcp_waiting_list = 0; w->cb = callback; w->cb_arg = callback_arg; w->ssl_upstream = sq->ssl_upstream;
[dpos] support single block verification
@@ -103,17 +103,19 @@ func New(cfg *config.Config, hub *component.ComponentHub, cdb consensus.ChainDB, return nil, err } + vprInitBlockNo := func(blockNo types.BlockNo) types.BlockNo { + if blockNo == 0 { + return blockNo + } + return blockNo - 1 + } + // Initialize the voting power ranking. - if !cfg.Blockchain.Verify...
feat(venachain):delete Set txtype in Transfer
@@ -469,7 +469,7 @@ BOAT_RESULT BoatVenachainTransfer(BoatVenachainTx *tx_ptr, BCHAR *value_hex_str) { BoatFieldMax32B value; BoatFieldVariable data; - BUINT64 tx_type_big; +// BUINT64 tx_type_big; BOAT_RESULT result; if (tx_ptr == NULL || tx_ptr->wallet_ptr == NULL || value_hex_str == NULL) @@ -495,15 +495,15 @@ BOAT_...
add comment for cJSON_Minify function
@@ -250,7 +250,9 @@ The item->next and ->prev pointers are always zero on return from Duplicate. */ * case_sensitive determines if object keys are treated case sensitive (1) or case insensitive (0) */ CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive); ...
Improved packet blocker.
|% ++ apse ^+ +>.$ - ?: =(%dead kay) - ~& [%dead-ack source+her packet+`@p`(mug dam)] - cock =+ oub=bust:puz =+ neg==(~ yed.caq.dur.diz) =. +>.$ east ++ deer :: deer:la:ho:um:am |= {cha/path num/@ud dut/(unit)} :: interpret message ^+ +> + :: + :: these patches are both hacks and result in + :: unnecessary transmission...
stm32/Makefile: Rebuild all qstrs when any board configuration changes.
@@ -14,6 +14,7 @@ include boards/$(BOARD)/mpconfigboard.mk # qstr definitions (must come before including py.mk) QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h $(BUILD)/modstm_qstr.h +QSTR_GLOBAL_DEPENDENCIES = mpconfigboard_common.h boards/$(BOARD)/mpconfigboard.h # directory containing scripts to be frozen as byteco...
[io] remove useless verbose
@@ -1576,10 +1576,9 @@ class VView(object): points.InsertNextPoint(vertice[0], vertice[1], vertice[2]) convex.GetPointIds().SetId(id_, id_) elif self.io.dimension() == 2: - print('self.io.shapes()[shape_name][:]', self.io.shapes()[shape_name][:]) number_of_vertices = data.shape[0] convex.GetPointIds().SetNumberOfIds(da...
HV: simplified the logic of iommu_read/write64 hv: vtd: simplified the logic of iommu_read/write64 Acked-by: Eddie Dong
@@ -237,13 +237,7 @@ static uint32_t iommu_read32(const struct dmar_drhd_rt *dmar_unit, uint32_t offs static uint64_t iommu_read64(const struct dmar_drhd_rt *dmar_unit, uint32_t offset) { - uint64_t value; - - value = mmio_read32(hpa2hva(dmar_unit->drhd->reg_base_addr + offset + 4U)); - value = value << 32U; - value = ...
core/minute-ia: Add missing #ifdef CONFIG_FPU Fix compilation error generated with CONFIG_FPU disabled. BRANCH=none TEST=Disable CONFIG_FPU and verify code compiles fine. Reported-by: Sadashiva Rao Pv
@@ -597,9 +597,11 @@ void task_pre_init(void) int i, cs; uint32_t *stack_next = (uint32_t *)task_stacks; +#ifdef CONFIG_FPU uint8_t default_fp_ctx[] = { /*Initial FP state */ 0x7f, 0x03, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; +#endif __asm__ __volatile__ ("movl %%cs, %0":"=r" (cs));
fix platform selection for go tools
RESOURCES_LIBRARY() -IF (OS_LINUX) +IF (HOST_OS_LINUX) DECLARE_EXTERNAL_RESOURCE(GO_TOOLS sbr:701958445) -ELSEIF (OS_DARWIN) +ELSEIF (HOST_OS_DARWIN) DECLARE_EXTERNAL_RESOURCE(GO_TOOLS sbr:701961386) -ELSEIF (OS_WINDOWS) +ELSEIF (HOST_OS_WINDOWS) DECLARE_EXTERNAL_RESOURCE(GO_TOOLS sbr:701967456) ELSE() MESSAGE(FATAL_ER...
grib_util_set_spec: packing keyword has no effect (packing type=5)
@@ -1281,9 +1281,13 @@ grib_handle* grib_util_set_spec2(grib_handle* h, break; } } - if (!strcmp(input_packing_type,"grid_simple_matrix")) { + if (strcmp(input_packing_type,"grid_simple_matrix")==0) { long numberOfDirections,numberOfFrequencies; - if (h->context->keep_matrix) { + int keep_matrix = h->context->keep_matr...
Tinyalsa pcm_stop fix pcm_stop shall not wait until all msgs are received, instead if any msg currently available or not.
@@ -1119,8 +1119,10 @@ int pcm_stop(struct pcm *pcm) struct audio_msg_s msg; unsigned int size; int prio; - while (pcm->buf_ptr > 0) { - size = mq_receive(pcm->mq, (FAR char *)&msg, sizeof(msg), &prio); + struct timespec st_time; + while (1) { + clock_gettime(CLOCK_REALTIME, &st_time); + size = mq_timedreceive(pcm->mq,...
tools/mpy-tool.py: Support qstr linking when freezing Xtensa native mpy.
@@ -428,9 +428,11 @@ class RawCodeNative(RawCode): else: self.fun_data_attributes = '__attribute__((section(".text,\\"ax\\",%progbits @ ")))' - # Allow single-byte alignment by default for x86/x64/xtensa, but on ARM we need halfword- or word- alignment. - if config.native_arch == MP_NATIVE_ARCH_ARMV6: - # ARMV6 -- four...
Illegal Character Causing Build Errors in MSVC
@@ -399,7 +399,7 @@ namespace PAL_NS_BEGIN { #if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wformat-truncation" // error: T directive output may be truncated writing 1 byte into a region of size between 0 and 16 [-Werror=format-truncation=] +#pragma GCC diagno...
add clracing_f4 crsf to default builds
"BRUSHLESS_TARGET": "", "RX_UNIFIED_SERIAL": "" } + }, + { + "name": "brushless.crsf", + "defines": { + "BRUSHLESS_TARGET": "", + "RX_CRSF": "" + } } ] },
Add a notnull_check in s2n_kem_generate_keypair()
@@ -166,6 +166,7 @@ const struct s2n_iana_to_kem kem_mapping[1] = { int s2n_kem_generate_keypair(struct s2n_kem_params *kem_params) { notnull_check(kem_params); + notnull_check(kem_params->kem); const struct s2n_kem *kem = kem_params->kem; notnull_check(kem->generate_keypair);
Fix EN_getElseaction and EN_setelseaction
@@ -5373,7 +5373,7 @@ int DLLEXPORT EN_getelseaction(EN_Project p, int ruleIndex, int actionIndex, if (ruleIndex < 1 || ruleIndex > p->network.Nrules) return 257; - actions = p->network.Rule[ruleIndex].ThenActions; + actions = p->network.Rule[ruleIndex].ElseActions; action = getaction(actions, actionIndex); if (action ...
ext/params: simplify the names
@@ -14,7 +14,7 @@ enum { CLAP_PARAM_INT = 2, // uses value.i CLAP_PARAM_ENUM = 3, // uses value.i }; -typedef int32_t clap_param_type; +typedef uint32_t clap_param_type; /* This describes the parameter and provides the current value */ typedef struct clap_param_info { @@ -40,26 +40,27 @@ typedef struct clap_param_info ...
pack: use new CFL sds api
@@ -479,7 +479,7 @@ void flb_pack_print_metrics(const char *data, size_t bytes) { int ret; size_t off = 0; - cmt_sds_t text; + cfl_sds_t text; struct cmt *cmt = NULL; /* get cmetrics context */ @@ -499,7 +499,6 @@ void flb_pack_print_metrics(const char *data, size_t bytes) fflush(stdout); cmt_encode_text_destroy(text);...
try to work around gcc update problems
@@ -44,6 +44,11 @@ jobs: if: github.event_name != 'pull_request' run: brew update || true + - name: unlink installed gcc to allow updating + run: | + brew unlink gcc@8 + brew unlink gcc@9 + - name: Install prerequisites run: brew install --fetch-HEAD --HEAD --only-dependencies --keep-tmp openblas
GPGME: Find library quietly
@@ -2,7 +2,7 @@ include (LibAddPlugin) if (DEPENDENCY_PHASE) - find_package (LibGpgme) + find_package (LibGpgme QUIET) if (NOT LIBGPGME_FOUND) remove_plugin ("gpgme" "GPGME development files not found") endif ()
Attempting to fix CI build issue due to goimports violation.
package config_test import ( - . "github.com/projectcalico/felix/config" "regexp" + . "github.com/projectcalico/felix/config" + "net" "reflect" "time" @@ -30,7 +31,7 @@ import ( log "github.com/sirupsen/logrus" - "github.com/projectcalico/libcalico-go/lib/apis/v3" + v3 "github.com/projectcalico/libcalico-go/lib/apis/v3...
compat: implement gmtime_r() function for MSVS On Windows, we do not have gmtime_r(5). Instead, we need to implement it with gmtime_s() that has a slightly different interface.
@@ -38,6 +38,14 @@ static inline int getpagesize(void) GetSystemInfo(&info); return info.dwPageSize; } + +static inline struct tm *gmtime_r(const time_t *timep, struct tm *result) +{ + if (gmtime_s(result, timep)) + return NULL; + return result; +} + #else #include <netdb.h> #include <netinet/in.h>
pbdrv/nxtcolor: read calibration table
@@ -48,6 +48,9 @@ typedef struct _pbdrv_nxtcolor_t { bool waiting; pbio_light_color_t state; pbio_light_color_t lamp; + uint32_t calibration[3][4]; + uint16_t threshold[2]; + uint16_t crc; uint32_t wait_start; const pbdrv_nxtcolor_pininfo_t *pins; FILE *f_digi0_val; @@ -117,7 +120,13 @@ static pbio_error_t nxtcolor_get...
travis: disable RVM cache
@@ -52,9 +52,9 @@ script: travis_wait 30 $TRAVIS_BUILD_DIR/.ci/safe_run.sh $TRAVIS_BUILD_DIR/.ci/targets/$RHO_TARGET/run_app_on_simulator.sh; fi -cache: - directories: - - $HOME/.rvm +#cache: +# directories: +# - $HOME/.rvm before_cache: - echo Y | gem uninstall rhodes -a -I
NetworkTools: Update hostname query flags
@@ -58,7 +58,8 @@ PPH_STRING PhpGetIp4ReverseNameFromAddress( _In_ IN_ADDR Address ) { - return PhFormatString(L"%u.%u.%u.%u.%s", + return PhFormatString( + L"%hhu.%hhu.%hhu.%hhu.%s", Address.s_impno, Address.s_lh, Address.s_host, @@ -73,13 +74,13 @@ PPH_STRING PhpGetIp6ReverseNameFromAddress( { PH_STRING_BUILDER strin...
apps/examples/tc_pthread : Modify wrong return check in pthread join tc 1. Pthread_join in line 641 tries to wait/join the already terminated pthread. In this case, pthread_join returns ESRCH. 2. Add EINVAL case TC. EINVAL will be returned when passing the task's pid in pthread_join.
@@ -611,6 +611,16 @@ static void tc_pthread_pthread_barrier_init_destroy_wait(void) TC_SUCCESS_RESULT(); } +static int infinite_sleep(int argc, char *argv[]) +{ + while (1) { + /* This task will be terminated by task_delete from main tc task. */ + sleep(10); + } + + return 0; +} + /** * @fn :tc_pthread_pthread_create_e...
hash_table: use new CFL hashing interface
#include <fluent-bit/flb_hash_table.h> #include <fluent-bit/flb_log.h> #include <fluent-bit/flb_str.h> -#include <xxhash.h> + +#include <cfl/cfl.h> static inline void flb_hash_table_entry_free(struct flb_hash_table *ht, struct flb_hash_table_entry *entry) @@ -102,7 +103,7 @@ int flb_hash_table_del_ptr(struct flb_hash_t...
update readme added build failure soluction according to my own experience
@@ -26,6 +26,16 @@ source .travis/s2n_setup_env.sh .travis/s2n_travis_build.sh ``` +* For OSX 10 Mojave users, if you are facing ```Undefined symbols for architecture x86_64:``` error in building. Starting with Mojave, the headers are no longer installed under ```/usr/include``` by default -- look under ```Command Line...
sidk_s5jt200: add init fifo routine for IPC between supplicant and WiFi API This patch adds init fifo routine for IPC between supplicant and WiFi API
@@ -106,6 +106,33 @@ char *s5j_get_binary_version(uint32_t baddr) } +#ifdef CONFIG_SCSC_WLAN +static void scsc_wpa_ctrl_iface_init(void) +{ + int ret; + + ret = mkfifo("/dev/wpa_ctrl_req", 666); + if(ret != 0 && ret != -EEXIST) { + lldbg("mkfifo error ret:%d\n", ret); + return; + } + + ret = mkfifo("/dev/wpa_ctrl_cfm",...
apps/speed.c: add missing checks for RAND_bytes() Function RAND_bytes() may return 0 or -1 on error, simply goto end label when it fails. Fixes
@@ -2557,7 +2557,8 @@ int speed_main(int argc, char **argv) } for (i = 0; i < loopargs_len; i++) - RAND_bytes(loopargs[i].buf, 36); + if (RAND_bytes(loopargs[i].buf, 36) <= 0) + goto end; #ifndef OPENSSL_NO_RSA for (testnum = 0; testnum < RSA_NUM; testnum++) { @@ -2653,7 +2654,8 @@ int speed_main(int argc, char **argv)...
Fix byte order in ASN.
@@ -242,9 +242,10 @@ owerror_t cbor_parse_short_address(short_address_t *short_address, uint8_t *buf, } tmp++; - (short_address->lease_asn).bytes0and1 = ((uint16_t) tmp[1] << 8) | ((uint16_t) tmp[0]); - (short_address->lease_asn).bytes2and3 = ((uint16_t) tmp[3] << 8) | ((uint16_t) tmp[2]); - (short_address->lease_asn)....
northd: fix typo in consider_l3d{wg, gw}... function This patch fixes typo in consider_l3dgw_port_is_centralized() function.
@@ -11647,7 +11647,7 @@ build_gateway_mtu_flow(struct hmap *lflows, struct ovn_port *op, } static bool -consider_l3dwg_port_is_centralized(struct ovn_port *op) +consider_l3dgw_port_is_centralized(struct ovn_port *op) { if (l3dgw_port_has_associated_vtep_lports(op)) { return false; @@ -11698,7 +11698,7 @@ build_adm_ctrl...
Fix comment in do_dtls1_write() This code started off as a copy of ssl3_write_bytes(), and the comment was not updated with the implementation. Reported by yangyangtiantianlonglong in
@@ -800,8 +800,8 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, wb = &s->rlayer.wbuf[0]; /* - * first check if there is a SSL3_BUFFER still being written out. This - * will happen with non blocking IO + * DTLS writes whole datagrams, so there can't be anything left in + * the buffer. */ if (!ossl_ass...
gbp: Fix typo in condition
@@ -392,7 +392,7 @@ gbp_lpm_classify_inline (vlib_main_t * vm, if (DPO_PROTO_IP4 == dproto) ip4_0 = vlib_buffer_get_current (b0); - else if (DPO_PROTO_IP4 == dproto) + else if (DPO_PROTO_IP6 == dproto) ip6_0 = vlib_buffer_get_current (b0); else if (DPO_PROTO_ETHERNET == dproto) {
Swap the descriptions of tcp_getpeername and tcp_getsockname Both the method names and the libuv documentation suggest these two were meant to be swapped.
@@ -1560,7 +1560,7 @@ later using `uv.tcp_getsockname()`. **Parameters:** - `tcp`: `uv_tcp_t userdata` -Get the current address to which the handle is bound. +Get the address of the peer connected to the handle. **Returns:** `table` or `fail` - `ip` : `string` @@ -1574,7 +1574,7 @@ Get the current address to which the ...
feat(fabric parameters check): when creat fabric wallet, checke parameters "keyFormat"
@@ -105,16 +105,23 @@ static BOAT_RESULT BoatWalletCreatParaCheck(BoatProtocolType protocol_type,const case BOAT_PROTOCOL_HWBCS: if (wallet_config_ptr != NULL) { - if(((BoatHlfabricWalletConfig*)wallet_config_ptr)->accountPriKey_config.prikey_genMode != BOAT_WALLET_PRIKEY_GENMODE_EXTERNAL_INJECTION && - ((BoatHlfabricW...
mmapstorage: update docs & release notes
@@ -88,3 +88,8 @@ sudo kdb umount user/tests/mmapstorage ## Limitations Mapped files shall not be altered, otherwise the behavior is undefined. + +The `mmap()` system call only supports regular files. We made mmapstorage +compatible with non-regular files by creating copies of the data either +in memory (for kdbSet) or...
Keep the camera centered on the scene when shaking.
@@ -387,9 +387,9 @@ UBYTE ScriptUpdate_CamShake() { // Handle Shake if (shake_time != 0) { if (should_shake_x) - scroll_offset_x = (INT16)(shake_time & 0x5); + scroll_offset_x = (INT16)(shake_time & 0x5) * 2 - 5; if (should_shake_y) - scroll_offset_y = (INT16)((shake_time & 0xA) >> 1); + scroll_offset_y = (INT16)(shake...
Open scripts from widget
@@ -186,6 +186,18 @@ import SwiftUI PyCallbackHelper.code = code documentBrowserViewController.run(code: code) } + } else if inputURL.pathComponents.first == "widget" { // Open script from widget + let bookmarkString = inputURL.lastPathComponent + if let bookmarkData = Data(base64Encoded: bookmarkString) { + do { + var...
Add support for PDF printers.
@@ -221,6 +221,9 @@ pwg_callback( return (false); } + if (strstr(driver_name, "-pdf")) + driver_data->format = "application/pdf"; + if (!strncmp(driver_name, "pwg_2inch-", 10)) { papplCopyString(driver_data->make_and_model, "PWG 2-inch Label Printer", sizeof(driver_data->make_and_model));
Update doc/decisions/constructor_functions.md
## Problem -The constructor functions that `libelektra-core` defines for creating Keys and KeySets must be possible to implement in other languages without complicated workarounds. +The constructor functions for creating Keys and KeySets must be easy to be invoked from other languages without complicated workarounds. I...
Use macro for "headers"
@@ -2353,12 +2353,12 @@ createWatchObjectJson(config_t *cfg, watch_t src) for (i = 0; i < numhead; i++) { char *hstr = (char *)cfgEvtFormatHeader(cfg, i); if (hstr) { - cJSON_AddStringToObjLN(headers, "headers", hstr); + cJSON_AddStringToObjLN(headers, EX_HEADERS, hstr); } } } - cJSON_AddItemToObject(root, "headers", h...
cups-compiler.m4: Check for -fstack-protector-strong GCC can provide even stronger stack protection, let's use it if available. Otherwise fall back to -fstack-protector.
@@ -123,23 +123,27 @@ AS_IF([test -n "$GCC"], [ OPTIM="-fPIC $OPTIM" ]) - # The -fstack-protector option is available with some versions of - # GCC and adds "stack canaries" which detect when the return address - # has been overwritten, preventing many types of exploit attacks. - AC_MSG_CHECKING([whether compiler suppo...
king: First stab at handling ship crashes gracefully.
{- | - King Haskell Entry Point + # Signal Handling (SIGTERM, SIGINT) + + We handle SIGTERM by causing the main thread to raise a `UserInterrupt` + exception. This is the same behavior as SIGINT (the signal sent upon + `CTRL-C`). + + The main thread is therefore responsible for handling this exception + and causing eve...
Method parameter types need to match definitions in epanet2.c
@@ -475,7 +475,7 @@ namespace EpanetCSharpLibrary //Link Functions [DllImport(EPANETDLL, EntryPoint = "ENaddlink")] - public static extern int ENaddlink(string id, int linkType, string fromNode, string toNode, string index); + public static extern int ENaddlink(string id, int linkType, string fromNode, string toNode, r...
log BUGFIX avoid misinterpretation of %
@@ -626,11 +626,10 @@ lyplg_ext_log(const struct lysc_ext_instance *ext, LY_LOG_LEVEL level, LY_ERR er } /** - * @brief Exact same functionality as ::ly_err_print() but has variable arguments so va_start() can - * be used and an empty va_list created. + * @brief Exact same functionality as ::ly_err_print() but has vari...
Java operators.
%ignore tinyspline::BSpline::operator=; %ignore tinyspline::DeBoorNet::operator=; %ignore tinyspline::Domain::operator=; +%ignore tinyspline::Frame::operator=; +%ignore tinyspline::FrameSeq::operator=; %ignore tinyspline::Morphism::operator(); +%ignore tinyspline::Vec3::operator=; +%ignore tinyspline::Vec3::operator+; ...
disable dragging in text input fields
@@ -23,6 +23,7 @@ export default class SimpleTextField extends Component { const val = this.state.value === false ? value : this.state.value return ( + <div draggable="true" onDragStart={e => e.preventDefault()}> <TextField id={id} value={val} @@ -45,6 +46,7 @@ export default class SimpleTextField extends Component { }...
stop M2 attack exact on --stop_client_m2_attacks value
@@ -937,7 +937,7 @@ for(zeiger = ownlist; zeiger < ownlist +OWNLIST_MAX; zeiger++) if(status == OW_M1M2ROGUE) { zeiger->owm1m2roguecount += 1; - if(zeiger->owm1m2roguecount < owm1m2roguemax) return true; + if(zeiger->owm1m2roguecount <= owm1m2roguemax) return true; } zeiger->status |= status; return true;
Remove unnecessary std/nie struct parentheses
@@ -56,7 +56,6 @@ pub struct decoder? implements base.image_decoder( swizzler : base.pixel_swizzler, util : base.utility, -)( ) pub func decoder.set_quirk_enabled!(quirk: base.u32, enabled: base.bool) {
re-adds EN_PRICEPATTERN getter this was broken because of
@@ -1988,6 +1988,11 @@ int DLLEXPORT EN_getlinkvalue(EN_Project *p, int index, EN_LinkProperty code, EN getenergy(p, index, &a, &v); break; + case EN_PRICEPATTERN: + if (Link[index].Type == EN_PUMP) + v = (double)Pump[findpump(&p->network, index)].Epat; + break; + case EN_HEADCURVE: if (Link[index].Type == EN_PUMP) { v...
Use S2N_SMALL_FRAGMENT_LENGTH in AES-GCM tests Using the default fragment length was causing the test to run for too long(causing TravisCI timeouts). We don't lose any test coverage. Prior to upgrading max outgoing record size to 8k, this test was using S2N_SMALL_FRAGMENT_LENGTH.
@@ -44,7 +44,7 @@ static int setup_server_keys(struct s2n_connection *server_conn, struct s2n_blob int main(int argc, char **argv) { struct s2n_connection *conn; - uint8_t random_data[S2N_DEFAULT_FRAGMENT_LENGTH + 1]; + uint8_t random_data[S2N_SMALL_FRAGMENT_LENGTH + 1]; uint8_t aes128_key[] = "123456789012345"; uint8_...
Add make gen-certificate for generate DEMO certificate
@@ -24,6 +24,13 @@ SUBDIRS = lib tests examples ACLOCAL_AMFLAGS = -I m4 +CERTIFICATE_PASS=QUIC +CERTIFICATE_INFO='/CN=localhost/O=QUIC./C=FR' +CERTIFICATE_KEY=cert/server.key +CERTIFICATE_TMP_KEY=$(CERTIFICATE_KEY).tmp +CERTIFICATE_CSR_FILE=cert/server.csr +CERTIFICATE_CRT_FILE=cert/server.crt + # Format source files u...