message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fix for quotation marks not actually showing
@@ -124,13 +124,13 @@ def render_page(): # Advance our position further if the word contains special characters if '\u201c' in next_word: - next_word.replace('\u201c', '\"') + next_word = next_word.replace('\u201c', '\"') next_pos += 2 if '\u201d' in next_word: - next_word.replace('\u201d', '\"') + next_word = next_wor...
unit test with TLS authentication
@@ -11,7 +11,8 @@ server: do-not-query-localhost: no ssl-upstream: yes + tls-cert-bundle: unbound_server.pem forward-zone: name: "." - forward-addr: "127.0.0.1@@SERVPORT@" + forward-addr: "127.0.0.1@@SERVPORT@#unbound"
* vscode settings updated
"-DBUILD_SHARED_LIBS=ON", "-DBUILD_TESTS=ON", "-DBUILD_EXAMPLES=OFF", - "-DBUILD_JNI_BINDING=OFF", - "-DBUILD_DART_BINDING=OFF", - "-DBUILD_NODEJS_BINDING=OFF", + "-DBUILD_JNI_BINDING=ON", + "-DBUILD_DART_BINDING=ON", + "-DBUILD_NODEJS_BINDING=ON", "-DBUILD_REACT_NATIVE_BINDING=OFF", - "-DBUILD_SWIFT_BINDING=OFF", + "-...
Skip collision init on cache start passive Recovery during passive start is based on the assuption that metadata collision section stored on disk might be partially valid. Reseting this data would make rebuilding metadata impossible.
@@ -321,9 +321,11 @@ static ocf_error_t init_attached_data_structures(ocf_cache_t cache) return 0; } -static void init_attached_data_structures_recovery(ocf_cache_t cache) +static void init_attached_data_structures_recovery(ocf_cache_t cache, + bool init_collision) { ocf_metadata_init_hash_table(cache); + if (init_coll...
including boost system in build
@@ -27,7 +27,7 @@ if(MSVC) set(Boost_USE_STATIC_LIBS ON) endif(MSVC) set(Boost_THREAD_FOUND OFF) -find_package(Boost COMPONENTS thread filesystem) +find_package(Boost COMPONENTS system thread filesystem) include_directories (${Boost_INCLUDE_DIRS})
clarify which functions are the CMS functions which must have CMS_PARTIAL set
@@ -20,7 +20,8 @@ an ASN1_OBJECT pointer. An application can then decide how to process the CMS_ContentInfo structure based on this value. CMS_set1_eContentType() sets the embedded content type of a CMS_ContentInfo -structure. It should be called with CMS functions with the B<CMS_PARTIAL> +structure. It should be calle...
RAND_egd_bytes: No need to check RAND_status on connection error.
@@ -231,6 +231,8 @@ int RAND_egd_bytes(const char *path, int bytes) int num, ret = -1; num = RAND_query_egd_bytes(path, NULL, bytes); + if (num < 0) + goto err; if (RAND_status() == 1) ret = num; err:
gta2 videomode error fix [skip appveyor]
@@ -169,7 +169,8 @@ DWORD WINAPI Init(LPVOID bDelay) injector::WriteMemory(pattern.get_first(1), Screen.Width, true); //0x4CB59C + 1 injector::WriteMemory<uint8_t>(pattern.get_first(10), 32, true); //0x4CB5A5+1 injector::WriteMemory(pattern.get_first(12), Screen.Height, true); //0x4CB5A7 + 1 - + pattern = hook::pattern...
arch/arm/common: remove unnecessary conditional in up_mpuinit.c Currently up_mpuinit.c has two conditionals which cover entire source code. They are CONFIG_BUILD_PROTECTED and CONFIG_ARM_MPU. But MPU could be used regardless of CONFIG_BUILD_PROTECTED for cache setting, RAM setting and so on. Let's remove CONFIG_BUILD_P...
****************************************************************************/ #include <tinyara/config.h> + +#ifdef CONFIG_ARM_MPU #include <tinyara/mpu.h> #include <assert.h> #include "up_mpuinit.h" #include "cache.h" -#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_ARM_MPU) - /**********************************...
hash: make use of key's length in key comparison
@@ -290,7 +290,7 @@ int flb_hash_get(struct flb_hash *ht, char *key, int key_len, struct flb_hash_entry, _head); - if (strcmp(entry->key, key) != 0) { + if (strncmp(entry->key, key, key_len) != 0) { entry = NULL; } }
fix for from github
@@ -285,6 +285,7 @@ namespace NCB::NModelEvaluation { ui8* resultPtr = result.data(); std::fill(result.begin(), result.begin() + expectedQuantizedFeaturesLen, 0); for (; start < end; start += FORMULA_EVALUATION_BLOCK_SIZE) { + ui8* resultPtrForBlockStart = resultPtr; ++cpuEvaluatorQuantizedData->BlocksCount; auto docCo...
bugfix [net][netdev] Update netdev->ip_addr&gw&netmask after registered.
@@ -317,6 +317,9 @@ static int netdev_add(struct netif *lwip_netif) rt_strncpy(name, lwip_netif->name, LWIP_NETIF_NAME_LEN); result = netdev_register(netdev, name, (void *)lwip_netif); + netdev->ip_addr = lwip_netif->ip_addr; + netdev->gw = lwip_netif->gw; + netdev->netmask = lwip_netif->netmask; #ifdef RT_LWIP_DHCP ne...
Fix desktop driver crash when window isn't open;
@@ -197,6 +197,10 @@ static Texture* desktop_getTexture(void) { static Pass* desktop_getPass(void) { Pass* pass = lovrGraphicsGetWindowPass(); + if (!pass) { + return pass; + } + float position[4], orientation[4]; desktop_getViewPose(0, position, orientation);
FONT.BMP/FONT.ROM can be loaded lower case. 2
@@ -182,7 +182,7 @@ to input underscore(_), press Shift+right Ctrl. BIOS files --- * bios.rom -* FONT.ROM (big letter) or FONT.BMP (big letter) +* font.rom or font.bmp * itf.rom * sound.rom * (bios9821.rom or d8000.rom But I never see good dump file.) @@ -327,6 +327,8 @@ I/O:0x00D0 Release --- +* Feb 20, 2018 + - FONT....
fix(demo): can not found lvgl.h file
-#if defined(LV_LVGL_H_INCLUDE_SIMPLE) -#include "lvgl.h" -#else -#include "lvgl/lvgl.h" -#endif - +#include "../../../lvgl.h" #ifndef LV_ATTRIBUTE_MEM_ALIGN #define LV_ATTRIBUTE_MEM_ALIGN
nimble/ll: Fix setting TxAdd flag in advertising instance This patch fixes following scenario: Advertising instance own address type is 0x02, IRK is 0 and public address has bits as RPA. In such a case TxAdd flag would be incorrectly set.
@@ -193,8 +193,16 @@ static void ble_ll_adv_sm_stop_timeout(struct ble_ll_adv_sm *advsm); static void ble_ll_adv_rpa_update(struct ble_ll_adv_sm *advsm) { - ble_ll_resolv_gen_rpa(advsm->peer_addr, advsm->peer_addr_type, - advsm->adva, 1); + if (ble_ll_resolv_gen_rpa(advsm->peer_addr, advsm->peer_addr_type, + advsm->adv...
porting: Allow to build with -Wcast-align It is expected that mbuf structures are properly aligned so we can just cast to void pointer here and silence warning.
@@ -133,11 +133,11 @@ struct os_mqueue { /** Get a packet header pointer given an mbuf pointer */ #define OS_MBUF_PKTHDR(__om) ((struct os_mbuf_pkthdr *) \ - ((uint8_t *)&(__om)->om_data + sizeof(struct os_mbuf))) + (void *)((uint8_t *)&(__om)->om_data + sizeof(struct os_mbuf))) /** Given a mbuf packet header pointer, ...
smart_audio: remove duplicate looptime reset
@@ -101,8 +101,6 @@ void smart_audio_auto_baud() { baud_rate += direction * 50; quic_debugf("SMART_AUDIO: auto baud %d (%d)", baud_rate, direction * 50); serial_smart_audio_reconfigure(); - - reset_looptime(); } packets_sent = 0;
os/kernel/debug: Remove wrong description of sysdbg_read function Remove wrong description of sysdbg_read function
@@ -288,12 +288,10 @@ static int sysdbg_close(FAR struct file *filep) * Read the saved debug data and display on console * * Inputs: - * file pointer - * buffer : User space buffer - * buflen : User space buffer length + * None * * Return Value: - * total size of written buffer + * None * * Assumptions: * None
Documentation change only: add a note to the README.md in the static_size platform to explain how to measure dynamic RAM usage and to give some example numbers. Also mention the static_size platform in the main README.md.
@@ -6,6 +6,16 @@ The following data is required: - `source.txt` paths to all of the files built as part of `ubxlib` that are NOT related to a platform or to testing or to examples, i.e. the core functionality. - `include.txt` paths to the include directories required to build those source files. +# A Note On Dynamic RA...
Remove extra "compile error: " string.
@@ -1496,7 +1496,7 @@ value, one key will be ignored." (def {:error err :start start :end end :fiber errf} res) (def msg (if (<= 0 start) - (string "compile error: " err " at (" start ":" end ")") + (string err " at (" start ":" end ")") err)) (on-compile-error msg errf where)))) :a))
BugID:17023355:fix example white scan issue
@@ -632,10 +632,6 @@ int trigger_event(sample_context_t *sample) return linkkit_trigger_event(sample->thing, EVENT_ERROR_IDENTIFIER, post_property_cb); - - /* please modify the event_id by TSL */ - return linkkit_trigger_event(sample->thing, "TemperatureAlarm", - post_property_cb); } #ifdef EXTENDED_INFO_ENABLED
platform/mihawk: Add system VPD EEPROM to I2C bus Add VPD EEPROM type fix for planar VPD update. [oliver: commit subject]
@@ -229,6 +229,24 @@ static void mihawk_create_ocapi_i2c_bus(void) } } +/* + * HACK: Hostboot doesn't export the correct data for the system VPD EEPROM + * for this system. So we need to work around it here. + */ +static void vpd_dt_fixup(void) +{ + struct dt_node *n = dt_find_by_path(dt_root, + "/xscom@603fc00000000/i...
docs: updata BoAT_User_Guide_en.md change "After the SDK library compile completed, the compiled library needs to be" to "After the SDK library compilation completes, the compiled library needs to be" .
@@ -291,7 +291,7 @@ Among them, boatiotsdk is the directory where the SDK is located, and the -C par *Note: In the Makefile, the command under target must start with a Tab (ASCII code 0x09), not a space.* -The above steps are only used to compile the SDK library. After the SDK library compile completed, the compiled li...
pimctl: report layout fixes When implementing a gui-package for pfSense, I noticed the headerline disapeared as a consequence op "--plain"
@@ -269,6 +269,7 @@ static void print(char *line) if (!plain) { fprintf(stdout, "\e[7m%s%*s\e[0m\n", line, len < 0 ? 0 : len, ""); } else { + fprintf(stdout, "%s%*s\n", line, len < 0 ? 0 : len, ""); while (len--) fputc('=', stdout); fputs("\n", stdout);
machinarium: update cmake banner
@@ -44,7 +44,7 @@ include_directories("${OPENSSL_INCLUDE_DIR}") add_subdirectory(src) message (STATUS "") -message (STATUS "machinarium: cooperative multitasking library.") +message (STATUS "MACHINARIUM: Cooperative multitasking framework.") message (STATUS "") message (STATUS "BUILD_SHARED: ${BUILD_SHARED}") message (...
Fix memory leak in handling chimeric multimappers. Previously, chAl's al1 and al2 were not deallocated if chAl was discarded and not added to chimAligns.
@@ -86,7 +86,12 @@ bool ChimericDetection::chimericDetectionMult(uint nW, uint *readLength, int max if (chimAligns.back().chimScore > chimScoreBest) chimScoreBest=chimAligns.back().chimScore; - }; // endif stitched chimera survived. + } // endif stitched chimera survived. + else { + // al1, al2 allocated during stitchi...
Replace raw assert()s with BSON_ASSERT
@@ -1406,7 +1406,7 @@ test_bson_json_double_overflow (void) for (p = nums; *p; p++) { j = bson_strdup_printf ("{ \"d\" : %s }", *p); - assert (!bson_init_from_json (&b, j, -1, &error)); + BSON_ASSERT (!bson_init_from_json (&b, j, -1, &error)); ASSERT_ERROR_CONTAINS (error, BSON_ERROR_JSON, BSON_JSON_ERROR_READ_INVALID_...
fix curl for iOS and Android
/* #undef USE_SCHANNEL */ /* if you want POSIX threaded DNS lookup */ -#define USE_THREADS_POSIX 1 +//#define USE_THREADS_POSIX 1 /* if you want Win32 threaded DNS lookup */ /* #undef USE_THREADS_WIN32 */ /* #undef USE_TLS_SRP */ /* Use Unix domain sockets */ -#define USE_UNIX_SOCKETS 1 +// #define USE_UNIX_SOCKETS 1 /...
_reqsize -> _headers_size
@@ -58,7 +58,7 @@ struct st_h2o_http1_conn_t { h2o_timer_t _timeout_entry; uint64_t _req_index; size_t _prevreqlen; - size_t _reqsize; + size_t _headers_size; struct st_h2o_http1_req_entity_reader *_req_entity_reader; struct st_h2o_http1_finalostream_t _ostr_final; struct { @@ -195,7 +195,6 @@ static void handle_one_bo...
style: remove unused function declarations
@@ -106,10 +106,6 @@ LCUI_API void Graph_PrintInfo(LCUI_Graph *graph); LCUI_API void Graph_Init(LCUI_Graph *graph); -LCUI_API LCUI_Graph *Graph_New(void); - -LCUI_API void Graph_Delete(LCUI_Graph *graph); - LCUI_API LCUI_Color RGB(uchar_t r, uchar_t g, uchar_t b); LCUI_API LCUI_Color ARGB(uchar_t a, uchar_t r, uchar_t ...
[snitch] Trace stall events
@@ -207,6 +207,9 @@ module mempool_cc #( // State "source": SrcSnitch, "stall": i_snitch.stall, + "stall_instr": (!i_snitch.valid_instr), + "stall_lsu": i_snitch.lsu_stall, + "stall_acc": i_snitch.acc_stall, // Decoding "rs1": i_snitch.rs1, "rs2": i_snitch.rs2,
fix mouse gesture interfering with systray
@@ -1161,10 +1161,10 @@ drawstatusbar(Monitor *m, int bh, char* stext) { char buf[8]; memcpy(buf, (char*)text+i+1, 7); buf[7] = '\0'; - drw_clr_create(drw, &drw->scheme[ColFg], buf); + drw_clr_create(drw, &drw->scheme[ColBg], buf); i += 7; } else if (text[i] == 'd') { - drw->scheme[ColFg] = scheme[SchemeNorm][ColFg]; +...
leap: navigate to DMs Fixes urbit/landscape#948
@@ -100,9 +100,9 @@ export function Omnibox(props: OmniboxProps): ReactElement { } Mousetrap.bind('escape', props.toggle); const touchstart = new Event('touchstart'); - // @ts-ignore + // @ts-ignore ref typings inputRef?.current?.input?.dispatchEvent(touchstart); - // @ts-ignore + // @ts-ignore ref typings inputRef?.cu...
tcmu:fix error using the return value of function tcmu_get_dev_max_xfer_length The return value of fuction tcmu_get_dev_max_xfer_len is number of sector, but some functions used it as data size, for example handle_writesam and handle_format_unit functions.
@@ -759,7 +759,7 @@ static int handle_writesame(struct tcmu_device *dev, struct tcmulib_cmd *cmd) NULL); } - max_xfer_length = tcmu_get_dev_max_xfer_len(dev); + max_xfer_length = tcmu_get_dev_max_xfer_len(dev) * block_size; length = round_up(length, max_xfer_length); length = min(length, (size_t)lba_cnt * block_size); ...
Remove 'set -x' to reduce verbosity in log file.
@@ -331,8 +331,6 @@ function verify_sha_checksum return 0 fi - set -x - if [[ $checksum_algo == 512 ]]; then tmp=`shasum -a $checksum_algo $dfile | tr ' ' '\n' | grep '^[0-9a-f]\{128\}'` else
Remove examples secondary repository link
@@ -27,10 +27,6 @@ Follow documentation for more information on implementation and other details. - Embeds other AT features, such as `WPS`, `DNS` and others - User friendly MIT license -## Examples and resources - -For examples, please check second repository, available at https://github.com/MaJerle/ESP_AT_Lib_res - #...
Fix share traversal
@@ -135,7 +135,6 @@ namespace MiningCore.Payments.PayoutSchemes var before = value; var pageSize = 50000; var currentPage = 0; - var lastId = (long?) null; var shares = new Dictionary<string, double>(); while (true) @@ -145,12 +144,12 @@ namespace MiningCore.Payments.PayoutSchemes var blockPage = shareReadFaultPolicy.E...
fix use after free, that also lead to merge conflicts
@@ -75,7 +75,6 @@ char* buildCodeFlowUri(const struct oidc_account* account, char** state_ptr, return NULL; } } - secFree(redirect); redirect = findRedirectUriByPort(account, port); } else { // custome scheme url char* tmp = oidc_sprintf("%hhu:%s", strEnds(redirect, "/"), *state_ptr);
options/posix: Implement send() and sendto()
@@ -108,9 +108,23 @@ ssize_t recvmsg(int fd, struct msghdr *hdr, int flags) { return length; } -ssize_t send(int, const void *, size_t, int) { - __ensure(!"Not implemented"); - __builtin_unreachable(); +ssize_t send(int fd, const void *buffer, size_t size, int flags) { + return sendto(fd, buffer, size, flags, nullptr, ...
YAwn: Remove useless `return` keyword
@@ -82,8 +82,7 @@ int nextToken (void ** attribute) void syntaxError (int errorToken, void * errorTokenData, int ignoredToken, void * ignoredTokenData, int recoveredToken, void * recoveredTokenData) { - return errorListenerAdress->syntaxError (errorToken, errorTokenData, ignoredToken, ignoredTokenData, recoveredToken, ...
Fix secure coding deserialization on non-iOS platforms
@@ -195,7 +195,7 @@ static unsigned int getAsn1HeaderSize(NSString *publicKeyType, NSNumber *publicK // Update the cache on the filesystem if (self.spkiCacheFilename.length > 0) { NSData *serializedSpkiCache = nil; - if (@available(iOS 11.0, *)) { // prefer NSSecureCoding API when available + if (@available(iOS 11.0, t...
Add Missing TC_SUCCESS_RESULT Macro in libc termios.
@@ -81,6 +81,8 @@ static void tc_termios_tcsetattr_tcgetattr(void) printf("\n"); printf("<< Enable (NL) to (CR-NL) >>\n"); printf("-> This line is adapted to Carriage-return\n"); + + TC_SUCCESS_RESULT(); } /****************************************************************************
ProfileOverlay: fix DM route Fixes urbit/landscape#933
@@ -156,7 +156,7 @@ const ProfileOverlay = (props: ProfileOverlayProps) => { icon='Chat' size={16} cursor='pointer' - onClick={() => history.push(`/~landscape/messages/dm/${ship}`)} + onClick={() => history.push(`/~landscape/messages/dm/~${ship}`)} /> )} </Row>
king: Finish factoring out HTTP server lifecycle from Eyre.
{-# OPTIONS_GHC -Wno-deprecations #-} module Urbit.Vere.Eyre.Serv - ( TlsConfig(..) + ( ServApi(..) + , TlsConfig(..) , MultiTlsConfig , ReqApi(..) , ServType(..) @@ -50,6 +51,11 @@ import qualified Urbit.Vere.Eyre.Wai as E -- Internal Types -------------------------------------------------------------- +data ServApi =...
[P2P] Tunes levels of some logs
@@ -239,12 +239,14 @@ func (p *remotePeerImpl) runRead() { for { msg, err := p.rw.ReadMsg() if err != nil { - p.logger.Error().Str(p2putil.LogPeerName, p.Name()).Err(err).Msg("Failed to read message") + // TODO set different log level by case (i.e. it can be expected if peer is disconnecting ) + p.logger.Warn().Str(p2p...
format API doc
@@ -952,9 +952,9 @@ prefering throughput will use large record sizes that minimize overhead. -Connections default to an 8k outgoing maximum **s2n_connection_set_dynamic_record_threshold** -provides a smooth transition from **s2n_connection_prefer_low_latency** to **s2n_connection_prefer_throughput** -s2n uses small TLS...
[io] correct logic for outputing a backup file
@@ -1888,8 +1888,6 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5): if output_backup_frequency is not None: self._output_backup_frequency=output_backup_frequency - - if output_backup is not None: self._output_backup=output_backup @@ -2166,8 +2164,8 @@ class MechanicsHdf5Runner(siconos.io.mechanics...
Add clamp function to maths.h Clamp shorthand function can help clean-up code that involves dealing with bounding.
@@ -32,6 +32,12 @@ extern const fix16 sqrttab16[0x10000]; */ #define max(X, Y) (((X) > (Y))?(X):(Y)) +/** + * \brief + * Returns L if X is less than L, H if X is greater than H or X if in between L and H. + */ +#define clamp(X, L, H) (min(max((X), (L)), (H))) + #if (ENABLE_NEWLIB == 0) /** * \brief
Fix a buffer overflow in drbg_ctr_generate This can happen if the 32-bit counter overflows and the last block is not a multiple of 16 bytes. Fixes [extended tests]
@@ -366,9 +366,11 @@ __owur static int drbg_ctr_generate(RAND_DRBG *drbg, ctr32 = GETU32(ctr->V + 12) + blocks; if (ctr32 < blocks) { /* 32-bit counter overflow into V. */ + if (ctr32 != 0) { blocks -= ctr32; buflen = blocks * 16; ctr32 = 0; + } ctr96_inc(ctr->V); } PUTU32(ctr->V + 12, ctr32);
Remove physfs from .gitmodules
[submodule "deps/openvr"] path = deps/openvr url = https://github.com/ValveSoftware/openvr -[submodule "deps/physfs"] - path = deps/physfs - url = https://github.com/Didstopia/physfs.git [submodule "deps/luajit"] path = deps/luajit url = https://github.com/WohlSoft/LuaJIT
Don't crash if target-keys have same values as source-keys
@@ -30,13 +30,25 @@ void copySingleKey (Cmdline const & cl, Key const & rk, KeySet & tmpConf, KeySet { tmpConf.lookup (rk, KDB_O_POP); } - else if (tmpConf.lookup (rk)) + else + { + Key key = tmpConf.lookup (rk); + if (key != nullptr) { - throw CommandAbortException ( - std::string ("Copy will not be done, because " + ...
esp_rom: fix esp_rom_wdt linker issue
@@ -6,5 +6,5 @@ entries: esp_rom_tlsf (noflash) if SOC_SYSTIMER_SUPPORTED = y: esp_rom_systimer (noflash) - if CONFIG_HAL_WDT_USE_ROM_IMPL = y: + if HAL_WDT_USE_ROM_IMPL = y: esp_rom_wdt (noflash)
Update cherow dependency bug for Guix builds.
@@ -44,6 +44,13 @@ if(NOT OPTION_BUILD_GUIX) DESTINATION ${INSTALL_LIB} COMPONENT runtime ) +else() + # Guix stores cherow dependency previously to the build in the output directory + install(DIRECTORY + ${BOOTSTRAP_OUTPUT_PATH}/node_modules/cherow + DESTINATION ${INSTALL_LIB}/node_modules + COMPONENT runtime + ) endif...
Correctly define FILEVERSION for libcouchbase.dll Tested-by: Build Bot
#include <windows.h> -#define LCB_HEXVER @LCB_VERSION_HEX@ -#define LCB_MAJOR LCB_HEXVER & 0xFF0000 -#define LCB_MINOR LCB_HEXVER & 0x00FF00 -#define LCB_PATCH LCB_HEXVER & 0x0000FF +#define LCB_MAJOR @LCB_VERSION_MAJOR@ +#define LCB_MINOR @LCB_VERSION_MINOR@ +#define LCB_PATCH @LCB_VERSION_PATCH@ #define VER_FILEVERSI...
Method ServerAddress for TBaseServerRequestData
#include <util/system/defaults.h> #include <util/string/cast.h> #include <util/string/cgiparam.h> +#include <util/network/address.h> #include <util/network/socket.h> #include <util/generic/hash.h> #include <util/system/yassert.h> @@ -30,6 +31,10 @@ public: return Host; } + NAddr::IRemoteAddrPtr ServerAddress() const { ...
framework/st_things : Delete wifi profile information on reset Delete stored wifi profile information
@@ -317,6 +317,8 @@ bool try_turn_on_soft_ap() wifi_manager_info_s info; wifi_manager_get_info(&info); + wifi_manager_remove_config(); + if (info.mode != SOFTAP_MODE) { wifi_manager_softap_config_s *ap_config = dm_get_softap_wifi_config(); if (wifi_manager_set_mode(SOFTAP_MODE, ap_config) != WIFI_MANAGER_SUCCESS) {
Added free statements in scope.c:main().
@@ -203,17 +203,20 @@ main(int argc, char **argv, char **env) } if ((ebuf = getElf(exe_path)) == NULL) { + free(exe_path); fprintf(stderr, "error: can't read the executable %s\n", exe_path); return EXIT_FAILURE; } if (is_static(ebuf->buf) == TRUE) { fprintf(stderr, "error: can't attach to the static executable: %s\nNot...
[CUDA] Require LLVM 4.0 or newer
@@ -825,6 +825,12 @@ endif() ########################################################## if(ENABLE_CUDA) + + # Require LLVM 4.0 or newer + if ("${LLVM_MAJOR}" STRLESS "4") + message(FATAL_ERROR "The CUDA backend requires LLVM 4.0 or newer") + endif() + set(OCL_DRIVERS "${OCL_DRIVERS} cuda") set(OCL_TARGETS "${OCL_TARGET...
tests: internal: sds: validate flb_sds_printf()
@@ -21,7 +21,24 @@ static void test_sds_usage() flb_sds_destroy(s); } +static void test_sds_printf() +{ + int len; + flb_sds_t s; + flb_sds_t tmp; + char *str = "0123456789ABCDEFGHIJQLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvewxyz"; + + s = flb_sds_create_size(10); + tmp = flb_sds_printf(&s, "%s=%s", str, str); + + len = (s...
[numerics] add the possibility to convert the problem in NM_DENSE format
@@ -22,11 +22,11 @@ static int fccounter =-1; #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> +#endif +//#define USE_NM_DENSE - -#endif static double * alloc_memory_double(unsigned int size, double *p) { double * r = (double *) malloc (size * sizeof(double)); @@ -147,6 +147,34 @@ int gfc3d_LmgcDriver(d...
examples/camera: Cast the last argument of ioctl to uintptr_t
@@ -140,7 +140,7 @@ static int camera_prepare(int fd, enum v4l2_buf_type type, fmt.fmt.pix.field = V4L2_FIELD_ANY; fmt.fmt.pix.pixelformat = pixformat; - ret = ioctl(fd, VIDIOC_S_FMT, (unsigned long)&fmt); + ret = ioctl(fd, VIDIOC_S_FMT, (uintptr_t)&fmt); if (ret < 0) { printf("Failed to VIDIOC_S_FMT: errno = %d\n", er...
Add warning if fips libcrypto is built on MacOS FIPS is not officially supported on the platform. The script supports it as a convenience for s2n developers who work on MacOS locally.
@@ -32,6 +32,8 @@ PLATFORM=$3 if [ "$PLATFORM" == "linux" ]; then CONFIGURE="./config -d" elif [ "$PLATFORM" == "osx" ]; then + echo "WARNING: FIPS and MacOS is not officially supported. This build should only be used for local debugging." + echo "See: http://openssl.6102.n7.nabble.com/Openssl-Fips-build-for-Mac-OSX-64...
Improve test results
@@ -146,6 +146,11 @@ _Clock_GetMonotonic (struct timespec *ts) /* OUT */ /* milliseconds -> microseconds -> nanoseconds*/ ts->tv_nsec = (ticks % 1000) * 1000 * 1000; +#elif defined(__hpux__) + uint64_t nsec = gethrtime (); + + ts->tv_sec = (int64_t) (nsec / 1e9); + ts->tv_nsec = (int32_t) (nsec - (double) ts->tv_sec * ...
Bugfix: multiply within ntohl
@@ -808,7 +808,7 @@ xfrd_set_timer_retry(xfrd_zone_type* zone) } /* exponential backoff within configured and defined bounds */ set_retry = within_retry_bounds(zone, - ntohl(zone->soa_disk.retry * mult)); + ntohl(zone->soa_disk.retry) * mult); if(zone->state == xfrd_zone_expired) { xfrd_set_timer(zone, set_retry); retu...
Parameter: slight nerf of obj up for calibration
@@ -112,7 +112,7 @@ STRUCT_CONFIG_ITEM("mpfit-stationary-object-up-variance", t->stationary_obj_up_variance) STRUCT_CONFIG_ITEM("mpfit-cal-stationary-object-up-variance", "How much to weight having the accel direction on tracked objects pointing up during calibration", - 1e-4, t->calibration_stationary_obj_up_variance)...
Testing: verbose output
@@ -654,7 +654,7 @@ write; EOF ${tools_dir}/codes_bufr_filter -o ${f}.out $fRules $f 2>> $fLog 1>> $fLog -${tools_dir}/bufr_compare ${f}.out $f 2>> $fLog 1>> $fLog +${tools_dir}/bufr_compare ${f}.out $f #2>> $fLog 1>> $fLog rm -f ${f}.out @@ -673,7 +673,7 @@ cat >$fRules <<EOF EOF ${tools_dir}/codes_bufr_filter -o $fOu...
updating patch for openmpi configuration with pbs enabled using output from pbs-config utility
---- configure.orig 2016-09-01 18:30:27.000000000 -0700 -+++ configure 2016-11-12 20:45:06.402865542 -0800 -@@ -134250,8 +134250,10 @@ - LIBS_save="$LIBS" +--- configure.orig 2017-03-22 14:43:34.520446787 -0500 ++++ configure 2017-03-22 14:44:51.993727117 -0500 +@@ -134252,7 +134252,9 @@ CPPFLAGS="$CPPFLAGS $ess_tm_CPP...
Enable GBP tests for ARM The underlying failure has been fixed.
import unittest -from framework import VppTestCase, VppTestRunner, is_skip_aarch64_set, \ - is_platform_aarch64 +from framework import VppTestCase, VppTestRunner from vpp_object import VppObject from vpp_neighbor import VppNeighbor from vpp_ip_route import VppIpRoute, VppRoutePath, VppIpTable, \ @@ -1836,8 +1835,6 @@ c...
Fix comparing signed and unsigned ints in KEM known answer test
@@ -37,8 +37,8 @@ int s2n_test_kem_with_kat(const struct s2n_kem *kem, const char *kat_file_name) FILE *kat_file = fopen(kat_file_name, "r"); notnull_check(kat_file); - /* Client side variables */ uint8_t *ct, *client_shared_secret, *pk, *sk, *server_shared_secret, *pk_answer, *sk_answer, *ct_answer, *ss_answer; + /* C...
Add custom exit process handler for node 12 or superior.
@@ -3562,6 +3562,26 @@ void *node_loader_impl_register(void *node_impl_ptr, void *env_ptr, void *functi } } + /* Set up the process exit handler */ +#if NODE_MAJOR_VERSION >= 12 || (NODE_MAJOR_VERSION == 12 && NODE_MINOR_VERSION >= 13) + { + v8::Isolate *isolate = v8::Isolate::GetCurrent(); + v8::Local<v8::Context> con...
hw/drivers/adc: Add ISR tracing for nRF52 ADC driver This requires small wrapper around nrfx ISR handler to add tracing code, but this is added only if sysview is enabled.
@@ -354,6 +354,15 @@ nrf52_adc_size_buffer(struct adc_dev *dev, int chans, int samples) return (sizeof(nrf_saadc_value_t) * chans * samples); } +#if MYNEWT_VAL(OS_SYSVIEW) +static void +saadc_irq_handler(void) +{ + os_trace_isr_enter(); + nrfx_saadc_irq_handler(); + os_trace_isr_exit(); +} +#endif /** * Callback to ini...
Flatten environment binding tables. For some reason, these tables used prototypes. There seems to be no need for this.
@@ -278,12 +278,10 @@ static int varleaf( JanetCompiler *c, const uint8_t *sym, JanetSlot s, - JanetTable *attr) { + JanetTable *reftab) { if (c->scope->flags & JANET_SCOPE_TOP) { /* Global var, generate var */ JanetSlot refslot; - JanetTable *reftab = janet_table(1); - reftab->proto = attr; JanetArray *ref = janet_arr...
move TX LO reset to before main loop in sdr-transceiver-hpsdr.c
@@ -498,6 +498,10 @@ int main(int argc, char *argv[]) *tx_rst |= 3; *tx_rst &= ~3; + /* reset tx lo */ + *lo_rst &= ~8; + *lo_rst |= 8; + if(i2c_codec) { /* reset codec ADC fifo */ @@ -656,9 +660,9 @@ int main(int argc, char *argv[]) enable_thread = 1; active_thread = 1; rx_sync_data = 0; - /* reset all los */ - *lo_rs...
FindLibevent now displays all deps
@@ -20,7 +20,6 @@ endif() include (FindPackageHandleStandardArgs) -find_package_handle_standard_args (LIBEVENT DEFAULT_MSG LIBEVENT_LIBRARY LIBEVENT_INCLUDE_DIR) set (LIBEVENT_INCLUDE_DIRS ${LIBEVENT_INCLUDE_DIR}) set (LIBEVENT_LIBRARIES @@ -31,4 +30,5 @@ set (LIBEVENT_LIBRARIES ${LIBEVENT_THREAD} ${LIBEVENT_EXTRA}) + ...
hv: vioapic: check vector prior to irr in EOI write emulation Check the vector first to avoid unnecessary irr check. Acked-by: Anthony Xu
@@ -284,10 +284,8 @@ vioapic_write_eoi(struct vioapic *vioapic, uint32_t vector) for (pin = 0U; pin < pincount; pin++) { rte = vioapic->rtbl[pin]; - if ((rte.full & IOAPIC_RTE_REM_IRR) == 0UL) { - continue; - } - if ((rte.u.lo_32 & IOAPIC_RTE_LOW_INTVEC) != vector) { + if (((rte.u.lo_32 & IOAPIC_RTE_LOW_INTVEC) != vect...
Remove some inappropriate conditional compilation
#include <nuttx/config.h> -#ifdef CONFIG_PLATFORM_CONFIGDATA - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -83,5 +81,4 @@ void up_cxxinitialize(void); } #endif -#endif /* CONFIG_PLATFORM...
BugID:16857751:[test] fixed dependent module name errors in .mk file
@@ -3,7 +3,7 @@ NAME := uData_test $(NAME)_MBINS_TYPE := app $(NAME)_VERSION := 0.0.1 $(NAME)_SUMMARY := -$(NAME)_COMPONENTS += middleware.common middle.udata +$(NAME)_COMPONENTS += middleware.common middleware.udata $(NAME)_SOURCES += uData_test.c
Fix logic of gen_statem timer_map state
@@ -248,22 +248,22 @@ do_handle_state(EventType, Request, State) -> {noreply, State#state{ current_state = NextState, data = NewData, - timer_map = maps:merge(TimerMap, TimerRefs) + timer_map = maps:merge(NewTimerMap, TimerRefs) }}; {stop, Reason} -> - maybe_cancel_timer(CurrentState, TimerMap), - {stop, Reason, State}...
buildrequiress curl
@@ -42,6 +42,7 @@ BuildRequires: libgomp1 BuildRequires: libgomp %endif +BuildRequires: curl BuildRequires: postgresql-devel binutils-devel Requires: binutils-devel BuildRequires: libotf-devel zlib-devel python-devel
Retry write if it is interrupted by signal
#include <stdio.h> #include <unistd.h> #include <assert.h> +#include <errno.h> #include "ngtcp2_str.h" @@ -208,7 +209,8 @@ static void log_printf(ngtcp2_log *log, const char *fmt, ...) { return; } - (void)write(log->fd, buf, (size_t)n); + while (write(log->fd, buf, (size_t)n) == -1 && errno == EINTR) + ; } static void ...
Minor bug solved in python loader when the asyncio module is not enabled.
@@ -322,7 +322,7 @@ void future_py_interface_destroy(future f, future_impl impl) } } -future_interface future_py_singleton() +future_interface future_py_singleton(void) { static struct future_interface_type py_future_interface = { &future_py_interface_create, @@ -2989,12 +2989,14 @@ int py_loader_impl_discover_func(loa...
provisioning/warewulf-provision: substitute new variable
---- a/configure.ac 2018-07-11 13:44:07.000000000 -0700 -+++ b/configure.ac 2018-07-11 13:42:58.000000000 -0700 +--- a/configure.ac 2018-07-11 13:56:05.000000000 -0700 ++++ b/configure.ac 2018-07-11 14:20:58.000000000 -0700 [x86_64], [ AS_IF([test "x$enable_cross_compile" = "xyes"], [ AC_MSG_NOTICE([cross-compile for a...
vppinfra: change default cache line size 64 bytes This change only affects Aarch64 where previously we were using 128 bytes.
*/ #ifndef CLIB_LOG2_CACHE_LINE_BYTES -#if defined(__x86_64__) || defined(__ARM_ARCH_7A__) || defined(__i386__) -#define CLIB_LOG2_CACHE_LINE_BYTES 6 -#endif - -#ifdef __aarch64__ -#define CLIB_LOG2_CACHE_LINE_BYTES 7 -#endif - -/* Default cache line size of 32 bytes. */ +/* Default cache line size of 64 bytes. */ #ifn...
Link to `rgbds-www` repo in README Should make it easier to find..!
@@ -12,11 +12,10 @@ for the Game Boy and Game Boy Color. It consists of: This is a fork of the original RGBDS which aims to make the programs more like other UNIX tools. -This toolchain is maintained on `GitHub <https://github.com/rednex/rgbds>`__. +This toolchain is maintained `on GitHub <https://github.com/gbdev/rgbd...
changed some default values
#define RSN_LEN_MAX 24 #define TIME_INTERVAL 5 #define EAPOLTIMEOUT 150000 -#define DEAUTHENTICATIONINTERVALL 20 +#define DEAUTHENTICATIONINTERVALL 10 #define DEAUTHENTICATIONS_MAX 100 -#define APATTACKSINTERVALL 20 +#define APATTACKSINTERVALL 10 #define APPATTACKS_MAX 100 #define FILTERLIST_MAX 32
Don't search 2 times for sys/socket.h
@@ -155,7 +155,6 @@ if (NOT WIN32) set (HAVE_STDLIB_H stdlib.h) set (HAVE_STRING_H string.h) set (HAVE_IOCTL_H sys/ioctl.h) - set (HAVE_SOCKET_H sys/socket.h) set (HAVE_TIME_H sys/time.h) set (HAVE_SYSLOG_H syslog.h) set (HAVE_UNISTD_H unistd.h) @@ -170,7 +169,6 @@ if (NOT WIN32) HAVE_STDLIB_H HAVE_STRING_H HAVE_IOCTL_...
hdata: Remove hn variable where it is unused Whatever this was used for appears to pre-date the public release of skiboot. Found using scan-build.
@@ -848,7 +848,6 @@ static void io_parse_slots(const struct HDIF_common_hdr *sp_iohubs, int hub_id) static void io_parse_fru(const void *sp_iohubs) { unsigned int i; - struct dt_node *hn; int count; count = HDIF_get_iarray_size(sp_iohubs, CECHUB_FRU_IO_HUBS); @@ -863,6 +862,7 @@ static void io_parse_fru(const void *sp_...
boards/NANO-RP2040: Update manifest.
freeze ("$(PORT_DIR)/modules") +freeze("$(MPY_DIR)/drivers/onewire") +freeze("$(MPY_DIR)/drivers/dht", "dht.py") include("$(MPY_DIR)/extmod/uasyncio/manifest.py") +include("$(MPY_DIR)/drivers/neopixel/manifest.py") freeze ("$(MPY_LIB_DIR)/", "lsm6dsox.py") freeze ("$(MPY_LIB_DIR)/", "ble_advertising.py") -freeze ("$(MP...
Simplelink: fix preprocessor condition
@@ -261,12 +261,12 @@ netstack_sched_fs(void) * * For Prop-mode, the synth is always manually calibrated with CMD_FS. */ -#if (RF_MODE == RF_CORE_MODE_2_4_GHZ) +#if (RF_MODE == RF_MODE_2_4_GHZ) if(rx_key) { cmd_rx_restore(rx_key); return RF_RESULT_OK; } -#endif /* RF_MODE == RF_CORE_MODE_2_4_GHZ */ +#endif /* RF_MODE =...
kano: change ppc/bc12 chip i2c addr Change ppc/bc12 chip i2c addr to fit hw setting. BRANCH=none TEST=Use i2cscan to check addr is same as setting.
@@ -70,7 +70,7 @@ struct ppc_config_t ppc_chips[] = { [USBC_PORT_C1] = { /* Compatible with Silicon Mitus SM536A0 */ .i2c_port = I2C_PORT_USB_C1_PPC, - .i2c_addr_flags = SYV682x_ADDR3_FLAGS, + .i2c_addr_flags = SYV682X_ADDR0_FLAGS, .drv = &syv682x_drv, }, }; @@ -117,7 +117,7 @@ const struct pi3usb9201_config_t pi3usb92...
return empty string in keyName and keyUnescapedName if keyName is not set
@@ -342,10 +342,11 @@ keyDel(key); */ const char * keyName (const Key * key) { - if (!key || !key->keyName) return 0; + if (!key) return 0; - ELEKTRA_ASSERT (key->keyName->key != NULL, "invalid name"); + if(!key->keyName) return ""; + ELEKTRA_ASSERT (key->keyName->key != NULL, "invalid name"); return key->keyName->key;...
fixed invalid pointer
@@ -1424,7 +1424,7 @@ while(1) zeiger->essidlen = len; memcpy(zeiger->essid, linein, len); essidlistincount++; - if(essidlistincount >= hashlistcount) + if(essidlistincount >= essidlistinmax) { essidlistinmax += 1000; essidlistinnew = realloc(essidlistin, essidlistinmax *ESSIDLIST_SIZE);
Enlarge ECC/DATA layout array size.
@@ -62,7 +62,7 @@ extern "C"{ #define UFFS_LAYOUT_UFFS 0 //!< do layout by dev->attr information #define UFFS_LAYOUT_FLASH 1 //!< flash driver do the layout -#define UFFS_SPARE_LAYOUT_SIZE 6 //!< maximum spare layout array size, 2 segments +#define UFFS_SPARE_LAYOUT_SIZE 16 //!< maximum spare layout array size, 2 segme...
hexnumber: update README and fix formatting
@@ -40,11 +40,12 @@ When mounting a backend with the hexnumber plugin, a few parameters can be confi sudo kdb mount test.ecf /examples/hexnumber/forced hexnumber /force=1 ``` -2. The types recognized as integers can be configured. For this purpose specify all types you want to be considered for possible hexadecimal - c...
jni: resolve JAVA_HOME full path using CMake, avoid Fedora 35 RPATH issues
@@ -3,7 +3,10 @@ include (LibAddBinding) include (SafeCheckSymbolExists) if (DEPENDENCY_PHASE) - set (JAVA_HOME $ENV{JAVA_HOME}) + # resolve full path to avoid invalid RPATH (e.g. on Fedora 35) + set (JAVA_HOME_TEMP $ENV{JAVA_HOME}) + get_filename_component (JAVA_HOME ${JAVA_HOME_TEMP} REALPATH) + if (APPLE) if (NOT DE...
Fix no-tls and no-tls1_2
@@ -757,6 +757,7 @@ static int test_tlsext_status_type(void) } #endif +#if !defined(OPENSSL_NO_TLS1_3) || !defined(OPENSSL_NO_TLS1_2) static int new_called, remove_called, get_called; static int new_session_cb(SSL *ssl, SSL_SESSION *sess) @@ -785,7 +786,6 @@ static SSL_SESSION *get_session_cb(SSL *ssl, const unsigned c...
Create Fonts from Rasterizers;
@@ -820,6 +820,11 @@ int l_lovrGraphicsNewCanvas(lua_State* L) { } int l_lovrGraphicsNewFont(lua_State* L) { + Rasterizer* rasterizer; + void** type; + if ((type = luax_totype(L, 1, Rasterizer)) != NULL) { + rasterizer = *type; + } else { Blob* blob = NULL; float size; @@ -830,15 +835,16 @@ int l_lovrGraphicsNewFont(lu...
fix issue according to reviews
@@ -2026,11 +2026,11 @@ static int add_remark_bi(struct block_internal* bi, xdag_remark_t strbuf) return 0; } char *remark_tmp = xdag_malloc(size + 1); - memset(remark_tmp, 0, size + 1); if(remark_tmp == NULL) { xdag_err("xdag_malloc failed, [function add_remark_bi]"); return 0; } + memset(remark_tmp, 0, size + 1); mem...
packages BUGFIX wrong var name
@@ -2,7 +2,7 @@ Name: @PACKAGE@ Version: @SYSREPO_VERSION@ Release: 0 Summary: @PACKAGE_BRIEF@ -Url: @GIT_URL@ +Url: @GITHUB_URL@ Source: @GITHUB_URL@/archive/master.tar.gz Source1: @PACKAGE@.rpmlintrc License: Apache-2.0