message
stringlengths
6
474
diff
stringlengths
8
5.22k
more doxygen comments
@@ -316,6 +316,13 @@ void oc_ri_add_timed_event_callback_ticks(void *cb_data, oc_trigger_t event_callback, oc_clock_time_t ticks); +/** + * @brief add timed event callback in seconds + * * + * @param cb_data the timed event callback info + * @param event_callback the callback + * @param seconds time in seconds + */ #de...
appveyor: Turn this off until the problems can be diagnosed. I don't use Windows, so I'm not sure why appveyor is failing to build the precommit tests and use covlib. PR's gladly accepted if someone knows what's going on. Otherwise, I'll fix it after tackling other lower-numbered issues.
@@ -3,13 +3,14 @@ platform: - x64 build_script: - - cmd: mkdir build - - cmd: cd build - - cmd: cmake ../ -G "Visual Studio 14 2015 Win64" - - cmd: cmake --build . --config Release - - cmd: cp Release/lily.exe ../lily - - cmd: cp Release/pre-commit-tests.exe ../pre-commit-tests.exe - - cmd: cd .. + #- cmd: mkdir build ...
`defer_thread_wait ` - make sure there's a valid pool object
@@ -305,7 +305,8 @@ void defer_thread_throttle(unsigned long microsec) { return; } */ #pragma weak defer_thread_wait void defer_thread_wait(pool_pt pool, void *p_thr) { - size_t throttle = (pool->count) * DEFER_THROTTLE; + size_t throttle = + pool ? ((pool->count) * DEFER_THROTTLE) : DEFER_THROTTLE_LIMIT; if (!throttle...
add recommendation to use docker #no_auto_pr
@@ -87,12 +87,21 @@ Some thoughts to consider when adding a new message: # Releasing New Versions of the Library -Oh boy, so you've decided to release a new version of libsbp. It's recommended -this process is performed on a Mac, as it has been known to go wrong on Linux. +## Using Docker + +It's highly recommended to ...
docker-jenkins-buildnode: adjust cabal update configuration
@@ -42,8 +42,7 @@ RUN apt-get -y install \ maven \ git \ libcurl4-gnutls-dev -RUN cabal update && \ - apt-get clean && \ +RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # TODO use elektra for the configuration steps below @@ -65,6 +64,11 @@ RUN echo "\n\n\n\n\nY" | adduser --quiet --disabled-passw...
Improve error messages around REPLICATION and BYPASSRLS properties. Clarify wording as per suggestion from Wolfgang Walther. No back-patch; this doesn't seem worth thrashing translatable strings in the back branches. Tom Lane and Stephen Frost Discussion:
@@ -305,7 +305,7 @@ CreateRole(ParseState *pstate, CreateRoleStmt *stmt) if (!superuser()) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), - errmsg("must be superuser to change bypassrls attribute"))); + errmsg("must be superuser to create bypassrls users"))); } else { @@ -719,14 +719,14 @@ AlterRole(AlterRole...
fix linop_stack
@@ -672,7 +672,7 @@ struct linop_s* linop_stack(int D, int E, const struct linop_s* a, const struct PTR_ALLOC(struct linop_s, c); c->forward = operator_stack(D, E, a->forward, b->forward); - c->adjoint = operator_stack(E, D, b->adjoint, a->adjoint); + c->adjoint = operator_stack(E, D, a->adjoint, b->adjoint); const str...
Increment version to 4.6.5.
#define MOD_WSGI_MAJORVERSION_NUMBER 4 #define MOD_WSGI_MINORVERSION_NUMBER 6 -#define MOD_WSGI_MICROVERSION_NUMBER 4 -#define MOD_WSGI_VERSION_STRING "4.6.4" +#define MOD_WSGI_MICROVERSION_NUMBER 5 +#define MOD_WSGI_VERSION_STRING "4.6.5" /* ------------------------------------------------------------------------- */
Update trigger script tabs for pointnclick scenes Point & Click scenes don't support on enter or on leave scripts. Instead the trigger script is activated when the interact button is pressed. The IDE now reflects that by changing the default script tab name to `On Interact` and not displaying `On Leave`
@@ -49,6 +49,10 @@ const scriptTabs = { leave: l10n("SIDEBAR_ON_LEAVE"), } as const; +const pointNClickScriptTabs = { + trigger: l10n("SIDEBAR_ON_INTERACT"), +} as const; + const getScriptKey = (tab: keyof typeof scriptTabs): TriggerScriptKey => { if (tab === "trigger") { return "script"; @@ -285,6 +289,17 @@ export co...
Set USDT argument constraint for all architectures This sets the USDT argument constraint for all architectures rather than just restricting it to powerpc and x86 variants. However, the other architectures might still need additional argument parsing support.
#ifndef FOLLY_SDT_ARG_CONSTRAINT #if defined(__powerpc64__) || defined(__powerpc__) #define FOLLY_SDT_ARG_CONSTRAINT "nQr" -#elif defined(__x86_64__) || defined(__i386__) +#else #define FOLLY_SDT_ARG_CONSTRAINT "nor" #endif #endif
Add missing new line in error message
@@ -45,7 +45,7 @@ int ocf_ctx_register_volume_type(ocf_ctx_t ctx, uint8_t type_id, return 0; err: - ocf_log(ctx, log_err, "Failed to register volume operations '%s'", + ocf_log(ctx, log_err, "Failed to register volume operations '%s'\n", properties->name); return result; }
add back fd close
@@ -21,6 +21,7 @@ int osGetNumThreads(pid_t pid) } if (g_fn.read(fd, buf, sizeof(buf)) == -1) { + g_fn.close(fd); return -1; } @@ -28,6 +29,7 @@ int osGetNumThreads(pid_t pid) for (i = 1; i < 20; i++) { entry = strtok_r(NULL, delim, &last); } + g_fn.close(fd); if ((result = strtol(entry, NULL, 0)) == (long)0) { return ...
Added error response logging. Every internal server error response should have a clear description in log.
@@ -3722,6 +3722,7 @@ static void nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg, void *data) { + size_t b_size, count; nxt_int_t ret; nxt_app_t *app; nxt_buf_t *b, *next; @@ -3787,15 +3788,20 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg, nxt_http_request...
[CLI] Change max message size change size to 10MB to support large block.
@@ -22,6 +22,8 @@ import ( const aergosystem = "aergo.system" +const MaxRPCMessageSize = 1024 * 1024 * 10 // 10MB + var ( // Used for test. test bool @@ -131,8 +133,9 @@ func connectAergo(cmd *cobra.Command, args []string) { } serverAddr := GetServerAddress() opts := []grpc.DialOption{ - grpc.WithDefaultCallOptions(grp...
blocklevel: smart_write: Rename size variable for clarity We're writing in chunks, so lets make it clear that size is relative to the chunk that we're writing.
@@ -562,19 +562,20 @@ int blocklevel_smart_write(struct blocklevel_device *bl, uint64_t pos, const voi while (len > 0) { uint32_t erase_block = pos & ~(erase_size - 1); uint32_t block_offset = pos & (erase_size - 1); - uint32_t size = erase_size > len ? len : erase_size; + uint32_t chunk_size = erase_size > len ? len :...
Add 8px and 10px montserrat fonts to build
CSRCS += lv_font.c CSRCS += lv_font_fmt_txt.c CSRCS += lv_font_loader.c +CSRCS += lv_font_montserrat_8.c +CSRCS += lv_font_montserrat_10.c CSRCS += lv_font_montserrat_12.c CSRCS += lv_font_montserrat_14.c CSRCS += lv_font_montserrat_16.c
external/wakaama : fixes memory leakage in tcp api This patch fixes memory leakage issue in tcp api. Without this commit, 32 bytes are not released when client is registered over tcp.
@@ -87,7 +87,8 @@ static int prv_getRegistrationQuery(lwm2m_context_t * contextP, index += res; } - if (contextP->protocol == COAP_TCP) + if (contextP->protocol == COAP_TCP + || contextP->protocol == COAP_TCP_TLS) { /* * We need to append the token to the parameters list @@ -100,6 +101,7 @@ static int prv_getRegistrati...
BugID:17291083:fix memory corruption caused by iotx_cm_close
@@ -188,6 +188,14 @@ int iotx_cm_close(int fd) return -1; } + if (--inited_conn_num == 0) { +#if (CONFIG_SDK_THREAD_COST == 1) + while (!yield_task_leave) { + HAL_SleepMs(10); + } +#endif + } + iotx_cm_close_fp close_func; HAL_MutexLock(fd_lock); close_func = _cm_fd[fd]->close_func; @@ -199,12 +207,7 @@ int iotx_cm_clo...
revise processing of vendor
@@ -8,7 +8,6 @@ import tempfile arcadia_project_prefix = 'a.yandex-team.ru/' contrib_go_std_src_prefix = 'contrib/go/_std/src/' -contrib_go_prefix = 'vendor/' vendor_prefix = 'vendor/' @@ -16,15 +15,26 @@ def copy_args(args): return copy.copy(args) +def get_vendor_index(import_path): + index = import_path.rfind('/' + v...
board/kukui/led.c: Format with clang-format BRANCH=none TEST=none
@@ -35,8 +35,7 @@ static void kukui_led_set_battery(void) chstate = charge_get_state(); - if (prv_chstate == chstate && - chstate != PWR_STATE_DISCHARGE) + if (prv_chstate == chstate && chstate != PWR_STATE_DISCHARGE) return; prv_chstate = chstate; @@ -62,8 +61,7 @@ static void kukui_led_set_battery(void) return; } - i...
fix compilation added enum and fixed re-declaration
@@ -69,7 +69,7 @@ typedef enum SceHttpErrorCode { SCE_HTTP_ERROR_RESOLVER_ENORECORD = 0x8043600a } SceHttpErrorCode; -typedef SceHttpsErrorCode { +typedef enum SceHttpsErrorCode { SCE_HTTPS_ERROR_CERT = 0x80435060, SCE_HTTPS_ERROR_HANDSHAKE = 0x80435061, SCE_HTTPS_ERROR_IO = 0x80435062, @@ -77,14 +77,14 @@ typedef SceH...
Fix minor documentation issue Merges
@@ -62,7 +62,7 @@ esp_err_t sdmmc_write_sectors(sdmmc_card_t* card, const void* src, size_t start_sector, size_t sector_count); /** - * Write given number of sectors to SD/MMC card + * Read given number of sectors from the SD/MMC card * * @param card pointer to card information structure previously initialized * using ...
AP font name changed
* Opts: ******************************************************************************/ -#ifndef PERSIAN_FONT -#define PERSIAN_FONT 1 +#ifndef LV_FONT_AP_18 +#define LV_FONT_AP_18 1 #endif -#if PERSIAN_FONT +#if LV_FONT_AP_18 /*----------------- * BITMAPS @@ -5487,7 +5487,7 @@ static lv_font_fmt_txt_dsc_t font_dsc = { ...
BugID:23251508: lwip_itoa: fix implicit conversion warning commit Author: Simon Goldschmidt Date: Mon Jun 18 12:15:37 2018 +0200
@@ -235,6 +235,6 @@ lwip_itoa(char* result, size_t bufsize, int number) return; } /* move from temporary buffer to output buffer (sign is not moved) */ - memmove(res, tmp, (result + bufsize) - tmp); + memmove(res, tmp, (size_t)((result + bufsize) - tmp)); } #endif
update ya tool arc no -ononempty on darwin
}, "arc": { "formula": { - "sandbox_id": [397664968], + "sandbox_id": [398100724], "match": "arc" }, "executable": {
VERSION bump to version 1.2.1
@@ -27,7 +27,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 0) +set(SYSREPO_MICRO_VERSION 1) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR...
apps/blemesh: rename bleprph functions
@@ -185,13 +185,13 @@ static const struct bt_mesh_prov prov = { }; static void -bleprph_on_reset(int reason) +blemesh_on_reset(int reason) { BLE_HS_LOG(ERROR, "Resetting state; reason=%d\n", reason); } static void -bleprph_on_sync(void) +blemesh_on_sync(void) { int err; @@ -218,8 +218,8 @@ main(void) /* Initialize the ...
doc: fix doc error filter patterns Changes to hypercall.h altered the error pattern match used to decide if doxygen errors are "expected". Update the pattern match.
^(?P=filename):(?P=lineno): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9]+] ^[ \t]* ^[ \t]*\^ -^(?P=filename):(?P=lineno): WARNING: Invalid definition: Expected end of definition. \[error at [0-9]+] +# +^(?P<filename>[-._/\w]+/api/hypercall_api.rst):(?P<lineno>[0-9]+): WARNING: Inval...
Add support for engine.json fields for plugins
import EventEmitter from "events"; import Path from "path"; -import { readJSON } from "fs-extra"; +import { readJSON, pathExists } from "fs-extra"; import { EngineFieldSchema } from "store/features/engine/engineState"; import { engineRoot } from "../../consts"; import l10n from "lib/helpers/l10n"; -import { clampToCTyp...
Fixed a compilation error when not on ARM
@@ -124,7 +124,7 @@ EXPORT int my_snprintf(x86emu_t* emu, void* buff, uint32_t s, void * fmt, void * void* f = vsnprintf; return ((iFpupp_t)f)(buff, s, fmt, emu->scratch); #else - return vsnprintf((char*)buff, s, (char*)f, V); + return vsnprintf((char*)buff, s, (char*)vsnprintf, V); #endif } EXPORT int my___sprintf_chk...
improve version handler
@@ -2,8 +2,6 @@ package main import ( "net/http" - "strconv" - "strings" ) type versionResult struct { @@ -11,13 +9,6 @@ type versionResult struct { Elektra elektraVersion `json:"elektra"` } -type elektraVersion struct { - Version string `json:"version"` - Major int `json:"major"` - Minor int `json:"minor"` - Micro int...
Update Vagrantfile to Ubuntu 20.04.
@@ -14,8 +14,8 @@ Vagrant.configure(2) do |config| # Full development and test environment which should be used by default. #------------------------------------------------------------------------------------------------------------------------------- config.vm.define "default", primary: true do |default| - default.vm...
Fixed broken wifi.sta.{dis,}connect() with event mon enabled.
@@ -979,6 +979,7 @@ static int wifi_station_connect4lua( lua_State* L ) if(lua_isfunction(L, 1)){ lua_pushnumber(L, EVENT_STAMODE_CONNECTED); lua_pushvalue(L, 1); + lua_remove(L, 1); wifi_event_monitor_register(L); } #endif @@ -993,6 +994,7 @@ static int wifi_station_disconnect4lua( lua_State* L ) if(lua_isfunction(L, ...
Further fake mode cleanups.
@@ -49,11 +49,10 @@ okayFakeAddr = \case ADGala _ _ -> True ADIpv4 _ p (Ipv4 a) -> a == localhost -destSockAddr :: NetworkMode -> AmesDest -> SockAddr -destSockAddr m = \case - -- As mentioned previously, "localhost" is wrong. - ADGala _ g -> SockAddrInet (galaxyPort m g) localhost - ADIpv4 _ p a -> SockAddrInet (fromI...
Change Ruuvi sample rate for LIS2DH12
@@ -236,7 +236,7 @@ config_lis2dh12_sensor(void) memset(&cfg, 0, sizeof(cfg)); cfg.lc_s_mask = SENSOR_TYPE_ACCELEROMETER; - cfg.lc_rate = LIS2DH12_DATA_RATE_1HZ; + cfg.lc_rate = LIS2DH12_DATA_RATE_HN_1344HZ_L_5376HZ; cfg.lc_fs = LIS2DH12_FS_2G; rc = lis2dh12_config((struct lis2dh12 *)dev, &cfg);
fix kinematics
@@ -145,22 +145,40 @@ class OMLinkKinematics OMLinkKinematics(){}; ~OMLinkKinematics(){}; - void forward(Manipulator* manipulator, Name from, bool* error = false) + void forward(Manipulator* manipulator, bool* error = false) { + Pose pose_to_wolrd; + Pose link_relative_pose; + Eigen::Matrix3f rodrigues_rotation_matrix;...
Add dependency for generated test cases
@@ -59,6 +59,7 @@ class BignumModRawFixQuasiReduction(bignum_common.ModOperationCommon, test_name = "mbedtls_mpi_mod_raw_fix_quasi_reduction" input_style = "fixed" arity = 1 + dependencies = ["MBEDTLS_TEST_HOOKS"] # Extend the default values with n < x < 2n input_values = bignum_common.ModOperationCommon.input_values +...
firdespm/autotest: adding callback function test (V pattern)
@@ -165,6 +165,48 @@ void autotest_firdespm_lowpass() liquid_autotest_verbose ? "autotest_firdespm_lowpass.m" : NULL); } +// user-defined callback function defining response and weights +int callback_firdespm_autotest(double _frequency, + void * _userdata, + double * _desired, + double * _weight) +{ + *_desired = _freq...
webterm: add glob url to desk.docket
:~ title+'Web Terminal' info+'A web interface for dill, through herm.' color+0xff.ffff - glob-http+'https://bootstrap.urbit.org/glob-XX.glob' + glob-http+'https://bootstrap.urbit.org/glob-0v4.8ui32.ui10d.t0v4d.n9g1s.1ftua.glob' base+'webterm' version+[0 0 1] website+'https://tlon.io'
OpenCanopy: Fix double-click regression introduced in 0.6.5 closes acidanthera/bugtracker#1386
@@ -531,7 +531,8 @@ InternalBootPickerEntryPtrEvent ( if (SameIter) { SameIter = FALSE; } else { - Context->BootEntry = Entry->Context; + Context->ReadyToBoot = TRUE; + ASSERT (Context->BootEntry == Entry->Context); } } //
Enable show smbios command on uefi release build Show smbios command uses function getdimmsmbiostable. In this function there were sections compiled only for debug build. In this change these compile time checks for debug build are removed so that the command provides similar output for release build.
@@ -3201,17 +3201,14 @@ GetDimmSmbiosTable( { EFI_STATUS ReturnCode = EFI_INVALID_PARAMETER; #ifndef OS_BUILD -#ifndef MDEPKG_NDEBUG + SMBIOS_STRUCTURE_POINTER DmiPhysicalDev; SMBIOS_STRUCTURE_POINTER DmiDeviceMappedAddr; SMBIOS_VERSION SmbiosVersion; DIMM *pDimm = NULL; -#endif + NVDIMM_ENTRY(); -#ifdef MDEPKG_NDEBUG ...
[bsp/stm32] fix the bug of 'can' being stucked when short cricuit the canH and canL, change some wrong annotations
@@ -343,7 +343,7 @@ static rt_err_t _can_control(struct rt_can_device *can, int cmd, void *arg) } /** * ID | CAN_FxR1[31:24] | CAN_FxR1[23:16] | CAN_FxR1[15:8] | CAN_FxR1[7:0] | - * MASK | CAN_FxR2[31:24] | CAN_FxR1[23:16] | CAN_FxR1[15:8] | CAN_FxR1[7:0] | + * MASK | CAN_FxR2[31:24] | CAN_FxR2[23:16] | CAN_FxR2[15:8] ...
optimize _maketable
@@ -101,12 +101,6 @@ function serialize._maketable(object, opt, level, path, reftab) isarr = false end - -- make indent - local indent = "" - if opt.indent then - indent = string.rep(opt.indent, level) - end - -- make body local bodystrs = {} if isarr then @@ -114,38 +108,40 @@ function serialize._maketable(object, opt...
Don't install npm It is no longer necessary since we were only using it for the node-based coap client
@@ -29,7 +29,6 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280 mosquitto \ mosquitto-clients \ net-tools \ - npm \ openjdk-8-jdk \ python-pip \ python-serial \
Simplify tcheckExpr
@@ -373,23 +373,13 @@ func (q *checker) tcheckExpr(n *a.Expr, depth uint32) error { switch op := n.Operator(); { case op.IsXUnaryOp(): - if err := q.tcheckExprUnaryOp(n, depth); err != nil { - return err - } + return q.tcheckExprUnaryOp(n, depth) case op.IsXBinaryOp(): - if err := q.tcheckExprBinaryOp(n, depth); err !=...
Add RtlGetFileMUIPath
@@ -4775,6 +4775,19 @@ RtlFormatMessageEx( _Out_opt_ PPARSE_MESSAGE_CONTEXT ParseContext ); +NTSYSAPI +NTSTATUS +NTAPI +RtlGetFileMUIPath( + _In_ ULONG Flags, + _In_ PCWSTR FilePath, + _Inout_opt_ PWSTR Language, + _Inout_ PULONG LanguageLength, + _Out_opt_ PWSTR FileMUIPath, + _Inout_ PULONG FileMUIPathLength, + _Inou...
mercator support
@@ -158,7 +158,21 @@ static int unpack_string(grib_accessor* a, char* v, size_t* len) if (err) return err; if (strcmp(grid_type, "mercator") == 0) { - sprintf(v, "%s", "mercator proj string"); + double earthMajorAxisInMetres = 0, earthMinorAxisInMetres = 0, radius = 0, LaDInDegrees = 0; + if (grib_is_earth_oblate(h)) {...
[rtmapreduce] yolint: fix migrations.
@@ -441,8 +441,6 @@ migrations: - a.yandex-team.ru/quasar/iot/steelix/server_test - a.yandex-team.ru/rtc/janus/janus - a.yandex-team.ru/rtc/janus/janus_test - - a.yandex-team.ru/rtmapreduce/tools/sli - - a.yandex-team.ru/rtmapreduce/tools/sli_test - a.yandex-team.ru/transfer_manager/go/cmd/cdc_server - a.yandex-team.ru...
Skip key-value pairs in compresed KTX files
@@ -1079,12 +1079,13 @@ bool load_ktx_compressed_image( size_t actual = fread(&hdr, 1, sizeof(hdr), f); if (actual != sizeof(hdr)) { - printf("Failed to read header of KTX file %s\n", filename); + printf("Failed to read header from %s\n", filename); fclose(f); return true; } - if (memcmp(hdr.magic, ktx_magic, 12) != 0 ...
TRIVIAL fix a typo in usage hint
@@ -48,7 +48,7 @@ def get_compiler_info(compiler): def main(): if len(sys.argv) != 4: - print >>sys.stderr, "Usage: svn_version_gen.py <output file> <CXX compiler> <CXX flags>" + print >>sys.stderr, "Usage: build_info_gen.py <output file> <CXX compiler> <CXX flags>" sys.exit(1) cxx_compiler = sys.argv[2] cxx_flags = sy...
modified self.max_entries to be available from all the MAP types This commit introduces the self.max_entries attribute both into Queue/Stack maps and to all those whwqo extend TableBase
@@ -314,6 +314,8 @@ class TableBase(MutableMapping): self.flags = lib.bpf_table_flags_id(self.bpf.module, self.map_id) self._cbs = {} self._name = name + self.max_entries = int(lib.bpf_table_max_entries_id(self.bpf.module, + self.map_id)) def get_fd(self): return self.map_fd @@ -670,8 +672,6 @@ class TableBase(MutableM...
fix not writing frame
@@ -280,10 +280,10 @@ def draw_frame(shared, lock, beatmap, skin, skin_path, replay_event, resultinfo, print("setup done") while frame_info.osr_index < end_index: # len(replay_event) - 3: - render_draw(beatmap, component, cursor_event, frame_info, img, np_img, pbuffer, + status = render_draw(beatmap, component, cursor_...
Don't call `h2o_http2_conn_request_write` from `emit_writereq_of_openref` This fixes an issue seen when 'server-timing: enforced' is set in the configuration: proceed would set the write callback, and we'd hit the assert in `do_emit_writereq()` checking that `buf_in_flight` is `NULL`: ``` h2o: lib/http2/connection.c:12...
@@ -1216,7 +1216,6 @@ static int emit_writereq_of_openref(h2o_http2_scheduler_openref_t *ref, int *sti } h2o_hpack_flatten_trailers(&conn->_write.buf, &conn->_output_header_table, stream->stream_id, conn->peer_settings.max_frame_size, trailers, num_trailers); - h2o_http2_conn_request_write(conn); } h2o_linklist_insert(...
fix several bugs in the source routing table
@@ -115,9 +115,11 @@ uip_sr_expire_parent(void *graph, const uip_ipaddr_t *child, const uip_ipaddr_t uip_sr_node_t *l = uip_sr_get_node(graph, child); /* Check if parent matches */ if(l != NULL && node_matches_address(graph, l->parent, parent)) { + if(l->lifetime > UIP_SR_REMOVAL_DELAY) { l->lifetime = UIP_SR_REMOVAL_D...
fix: use vc->udp_service.ssrc instead of vc->ssrc
@@ -426,7 +426,7 @@ discord_send_speaking(struct discord_voice *vc, enum discord_voice_speaking_flag "}", &flag, &delay, - &vc->ssrc); + &vc->udp_service.ssrc); ASSERT_S(ret < sizeof(payload), "Out of bounds write attempt"); log_info("Sending VOICE_SPEAKING(%d bytes)", ret);
fix: fix test_002InitWallet_0007SetNodeUrlFailureErrorNodeUrlFormat issue
@@ -724,6 +724,8 @@ START_TEST(test_002InitWallet_0007SetNodeUrlFailureErrorNodeUrlFormat) BoatEthWallet *wallet_ptr = BoatMalloc(sizeof(BoatEthWallet)); BoatEthWalletConfig wallet; + ck_assert_ptr_ne(wallet_ptr, NULL); + /* 1. execute unit test */ strncpy(wallet.node_url_str, "abcd", strlen("abcd")); wallet_ptr->netwo...
Version String Macro
@@ -13,6 +13,15 @@ Feel free to copy, use and enjoy according to the license provided. #define FACIL_VERSION_MINOR 7 #define FACIL_VERSION_PATCH 0 +/* Automatically convert version data to a string constant*/ +#define FACIL_VERSION_STR_FROM_MACRO_STEP2(major, minor, patch) \ +#major "." #minor "." #patch +#define FACIL...
Skyrim: Remove CONFIG_SYSTEM_UNLOCKED Skyrim is at a stage where this CONFIG can be removed. BRANCH=None TEST=zmake build skyrim; boot up on a D4 skyrim
# Skyrim reference-board-specific Kconfig settings. CONFIG_BOARD_SKYRIM=y -# TODO(b/215404321): Remove later in board development +# CBI WP pin present CONFIG_PLATFORM_EC_EEPROM_CBI_WP=y -CONFIG_PLATFORM_EC_SYSTEM_UNLOCKED=y # LED CONFIG_PLATFORM_EC_LED_DT=y
Log more info on ZMK config dir usage.
@@ -45,9 +45,11 @@ set(CACHED_ZMK_CONFIG ${ZMK_CONFIG} CACHE STRING "Selected user ZMK config") if (ZMK_CONFIG) if(EXISTS "${ZMK_CONFIG}/boards") + message(STATUS "Adding ZMK config directory as board root: ${ZMK_CONFIG}") list(APPEND BOARD_ROOT "${ZMK_CONFIG}") endif() if(EXISTS "${ZMK_CONFIG}/dts") + message(STATUS "...
Minor comment improvements for instrumentation.h Remove a duplicated word. Add "of" or "# of" in a couple places for clarity and consistency. Start comments with a lower case letter as we do elsewhere in this file. Rafia Sabih
@@ -48,20 +48,20 @@ typedef struct Instrumentation bool need_bufusage; /* true if we need buffer usage data */ /* Info about current plan cycle: */ bool running; /* true if we've completed first tuple */ - instr_time starttime; /* Start time of current iteration of node */ - instr_time counter; /* Accumulated runtime f...
board/dood/board.h: Format with clang-format BRANCH=none TEST=none
#define CONFIG_ACCELGYRO_BMI160_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) -#define CONFIG_SYNC_INT_EVENT \ - TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) +#define CONFIG_SYNC_INT_EVENT TASK_EVENT_MOTION_SENSOR_INTERRUPT(VSYNC) #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_UPDATE /* prevent pd reset wh...
more AtkEvent types
namespace FFXIVClientStructs.FFXIV.Component.GUI { - // there's 70+ of these + // max known: 79 + // seems to have generic events followed by component-specific events public enum AtkEventType { MouseDown = 3, MouseUp = 4, MouseMove = 5, - MouseOver = 6, // used for changing the cursor state when you mouseover stuff + ...
change "unsigned char list" to "byte list"
@@ -15,7 +15,7 @@ Blockly.Blocks['lists_create_with'] = { init: function() { this.setColour(Blockly.Blocks.lists.HUE); this.appendDummyInput("") - .appendField(new Blockly.FieldDropdown([[Blockly.LANG_MATH_INT, 'long'],[Blockly.LANG_MATH_FLOAT, 'float'],[Blockly.LANG_MATH_CHAR, 'char'],[Blockly.LANG_MATH_BYTE, 'unsigne...
Flash algo fix sectors for stm32f4xx
@@ -40,6 +40,9 @@ static const sector_info_t sectors_info[] = { { 0x08000000, 0x00004000 }, // 4 x 16KB { 0x08010000, 0x00010000 }, // 1 x 64KB { 0x08020000, 0x00020000 }, // 7 x 128KB + { 0x08100000, 0x00004000 }, + { 0x08110000, 0x00010000 }, + { 0x08120000, 0x00020000 }, }; static const program_target_t flash = {
Fix std_stream_create initialiser
@@ -59,6 +59,7 @@ char std_stream_popchar(std_stream_t* stream) { std_stream_t* std_stream_create() { std_stream_t* st = kmalloc(sizeof(std_stream_t)); memset(st, 0, sizeof(std_stream_t)); + st->buf = calloc(1, sizeof(circular_buffer)); cb_init(st->buf, 256, sizeof(char)); return st; }
Improve adding sensors and only allow doing so in active find sensor state
@@ -1115,6 +1115,11 @@ void DeRestPluginPrivate::gpDataIndication(const deCONZ::GpDataIndication &ind) if (!sensor) { + if (findSensorsState != FindSensorsActive) + { + return; + } + // create new sensor Sensor sensorNode; @@ -2240,6 +2245,11 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node) return; ...
vatmeta: fixing potential null ref
@@ -8,8 +8,8 @@ export function VatMeta(props: { vat: Vat }) { const { vat } = props; const { desk, arak, cass, hash } = vat; - const { desk: foreignDesk, ship, next } = arak.rail!; - const pluralUpdates = next.length !== 1; + const { desk: foreignDesk, ship, next } = arak.rail || {}; + const pluralUpdates = next?.leng...
[core] cold func http_response_omit_header()
#include <string.h> #include <time.h> +__attribute_cold__ +static int http_response_omit_header(connection *con, const data_string * const ds) { + const size_t klen = buffer_string_length(ds->key); + if (klen == sizeof("X-Sendfile")-1 + && buffer_eq_icase_ssn(ds->key->ptr,CONST_STR_LEN("X-Sendfile"))) + return 1; + if ...
store: Avoid spurious error from decoding at EOF Fixes
@@ -518,6 +518,7 @@ static int file_load_file(struct file_ctx_st *ctx, OSSL_PASSPHRASE_CALLBACK *pw_cb, void *pw_cbarg) { struct file_load_data_st data; + int ret, err; /* Setup the decoders (one time shot per session */ @@ -533,7 +534,16 @@ static int file_load_file(struct file_ctx_st *ctx, /* Launch */ - return OSSL_...
Better way to recognise mingw64 in config script
@@ -320,6 +320,15 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in echo "${MACHINE}-v11-${SYSTEM}"; exit 0; ;; + # The following combinations are supported + # MINGW64* on x86_64 => mingw64 + # MINGW32* on x86_64 => mingw + # MINGW32* on i?86 => mingw + # + # MINGW64* on i?86 isn't expected to work... + MINGW64*...
bluetooth: fix missing braces and indentation
@@ -578,7 +578,7 @@ void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV *p_srcb, UINT16 conn_id, for (i = 0 ; i < BTA_GATTC_NOTIF_REG_MAX; i ++) { if (p_clrcb->notif_reg[i].in_use && !bdcmp(p_clrcb->notif_reg[i].remote_bda, remote_bda)) - + { /* It's enough to get service or characteristic handle, as * clear bounda...
Samples:Host Exerciser Enhancement Fixing conflicts
@@ -34,8 +34,6 @@ BuildRequires: python3-jsonschema BuildRequires: python3-pip BuildRequires: python3-virtualenv BuildRequires: systemd-devel -BuildRequires: libcap-devel -BuildRequires: libudev-devel %description Open Programmable Acceleration Engine (OPAE) is a software framework
Make `peek()` tail recursive instead of using `goto` Compilation is identical with `gcc` or `clang`, -O3` or `-O2`
@@ -900,10 +900,7 @@ static char const *readInterpolation(size_t depth); static int peek(void) { - int c; - -restart: - c = peekInternal(0); + int c = peekInternal(0); if (lexerState->macroArgScanDistance > 0) return c; @@ -924,7 +921,7 @@ restart: * expanded, so skip it and keep peeking. */ if (!str || !str[0]) - goto...
HV: trace leaf and subleaf of cpuid We care more about leaf and subleaf of cpuid than vcpu_id. So, this patch changes the cpuid trace-entry to trace the leaf and subleaf of this cpuid vmexit.
@@ -274,6 +274,7 @@ int32_t cpuid_vmexit_handler(struct acrn_vcpu *vcpu) rbx = vcpu_get_gpreg(vcpu, CPU_REG_RBX); rcx = vcpu_get_gpreg(vcpu, CPU_REG_RCX); rdx = vcpu_get_gpreg(vcpu, CPU_REG_RDX); + TRACE_2L(TRACE_VMEXIT_CPUID, rax, rcx); guest_cpuid(vcpu, (uint32_t *)&rax, (uint32_t *)&rbx, (uint32_t *)&rcx, (uint32_t ...
kdbtypes.h: use PRI-macros for C99
@@ -64,25 +64,12 @@ typedef uint16_t kdb_unsigned_short_t; typedef uint32_t kdb_unsigned_long_t; typedef uint64_t kdb_unsigned_long_long_t; -#if SIZEOF_LONG == 4 -#define ELEKTRA_LONG_F "%ld" -#define ELEKTRA_UNSIGNED_LONG_F "%lu" -#elif SIZEOF_INT == 4 -#define ELEKTRA_LONG_F "%d" -#define ELEKTRA_UNSIGNED_LONG_F "%u"...
Make Key::setString accept a (const) reference This avoids an unnecessaryy copy. The underlaying key copies the data anyway.
@@ -175,7 +175,7 @@ public: inline void set (T x); inline std::string getString () const; - inline void setString (std::string newString); + inline void setString (const std::string & newString); inline ssize_t getStringSize () const; typedef void (*func_t) (); @@ -1205,7 +1205,7 @@ inline void Key::setCallback (callba...
doc: describe how to run single tests
@@ -50,6 +50,12 @@ The alternative to `make run_nokdbtests`: ctest -T Test --output-on-failure -LE kdbtests -j 6 ``` +To only run tests whose names match a regular expression, you can use: + +```sh +ctest -V -R <regex> +``` + ## Required Environment To run the tests successfully, the environment
[software] Use DMA for memcpy
@@ -39,6 +39,7 @@ int volatile error __attribute__((section(".l1"))); dump(start, 2); dump(end, 3); +dump(dma, 7); void *mempool_memcpy(void *destination, const void *source, size_t num) { if ((((size_t)destination | (size_t)source | num) & @@ -145,17 +146,27 @@ int main() { } int32_t volatile *const src_a = (int32_t *...
hdata/i2c: log unknown i2c devices An i2c device is unknown if either the i2c device list is outdated or the device is marked as unknown (0xFF) in the hdat. This log both cases.
@@ -165,6 +165,7 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, uint32_t i2c_addr; uint32_t version; uint32_t size; + uint32_t purpose; int i, count; /* @@ -226,11 +227,9 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, */ i2c_addr = dev->i2c_addr >> 1; - prlog(PR_TRA...
One instance of kernel_4x1 is used even on SKX
@@ -172,6 +172,7 @@ static void sgemv_kernel_4x2( BLASLONG n, FLOAT **ap, FLOAT *x, FLOAT *y, FLOAT } +#endif #endif #ifndef HAVE_KERNEL_4x1 @@ -248,8 +249,6 @@ static void sgemv_kernel_4x1(BLASLONG n, FLOAT *ap, FLOAT *x, FLOAT *y, FLOAT *a #endif -#endif - static void add_y(BLASLONG n, FLOAT *src, FLOAT *dest, BLASLO...
docs: update description about deploy contracts
@@ -84,7 +84,7 @@ See blockchain official website for details: #### Deploy the smart contract The smart contracts used in the demo locate in ./contract. -Follow blockchain official website for details on how to compile and deploy the contract. +Follow the blockchain's official website for details on how to compile and ...
Fixed a bug introduced in the changeset
@@ -347,7 +347,7 @@ nxt_master_start_worker_process(nxt_task_t *task, nxt_runtime_t *rt, group = (char *) last; nxt_memcpy(group, app_conf->group.start, app_conf->group.length); - end = nxt_pointer_to(group, app_conf->group.length); + last = nxt_pointer_to(group, app_conf->group.length); *last++ = '\0'; } else {
tests: internal: fuzzer: fix missing data type declaration
#define GET_MOD_EQ(max, idx) (data[0] % max) == idx #define MOVE_INPUT(offset) data += offset; size -= offset; -char *get_null_terminated(size_t size, char **data, *total_data_size) { +char *get_null_terminated(size_t size, char **data, size_t *total_data_size) +{ char *tmp = flb_malloc(size+1); memcpy(tmp, *data, size...
nimble/ll: Check if truncated on CRC error
@@ -3199,7 +3199,7 @@ scan_continue: #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV) if (aux_data) { - if (evt_possibly_truncated) { + if (evt_possibly_truncated || !BLE_MBUF_HDR_CRC_OK(hdr)) { ble_ll_scan_end_adv_evt(aux_data); }
ya tool: add flexible I/O tester Note: mandatory check (NEED_CHECK) was skipped
"vmexec": { "description": "VMEXEC run script inside qemu-vm" }, "yfm": { "description": "YFM-extended markdown processor for Cloud deploy" }, "aws": { "description": "Run aws" }, - "sedem": { "description": "SEDEM tool - Service management tool for Maps services" } + "sedem": { "description": "SEDEM tool - Service man...
sim: remove deprecated usage of sync::ONCE_INIT Switch to `Once::new()`.
//! the tests. use env_logger; -use std::sync::{Once, ONCE_INIT}; +use std::sync::Once; -static INIT: Once = ONCE_INIT; +static INIT: Once = Once::new(); /// Setup the logging system. Intended to be called at the beginning of each test. pub fn setup() {
vapi: break if parsing progress cannot be made
@@ -393,6 +393,7 @@ class JsonParser(object): if progress <= last_progress: # cannot make forward progress self.exceptions.extend(exceptions) + break exceptions = [] last_progress = progress progress = 0
BCH address validation
@@ -651,9 +651,17 @@ namespace MiningCore.Blockchain.Bitcoin isPoS = difficultyResponse.Values().Any(x => x.Path == "proof-of-stake"); // Create pool address script from response - poolAddressDestination = !isPoS ? - AddressToDestination(validateAddressResponse.Address) : - new PubKey(validateAddressResponse.PubKey); +...
preset optimization level for apple clang
-//#if defined(__apple_build_version__) && __clang_major__ == 11 && __clang_minor__ == 0 && __clang_patchlevel__ == 3 -//#pragma clang optimize off -//#endif +#if defined(__apple_build_version__) && __clang_major__ == 11 && __clang_minor__ == 0 && __clang_patchlevel__ == 3 +#pragma clang optimize "O2" +#endif /* %0 = "...
Add coreclr to .NET modules
@@ -5448,6 +5448,7 @@ BOOLEAN NTAPI PhpIsDotNetEnumProcessModulesCallback( ) { static PH_STRINGREF clrString = PH_STRINGREF_INIT(L"clr.dll"); + static PH_STRINGREF clrcoreString = PH_STRINGREF_INIT(L"coreclr.dll"); static PH_STRINGREF mscorwksString = PH_STRINGREF_INIT(L"mscorwks.dll"); static PH_STRINGREF mscorsvrStri...
synthetic: one TCP read per incoming request
@@ -18,7 +18,7 @@ extern crate test; use std::collections::BTreeMap; use std::f32::INFINITY; use std::io; -use std::io::{ErrorKind, Write}; +use std::io::{ErrorKind, Read, Write}; use std::net::{Ipv4Addr, SocketAddrV4}; use std::slice; use std::str::FromStr; @@ -185,10 +185,11 @@ fn run_linux_udp_server(backend: Backen...
Packages: added epel-release to unit-go dependencies on CentOS 6.
@@ -12,7 +12,12 @@ MODULE_INSTARGS_go= go-install MODULE_SOURCES_go= unit.example-go-app \ unit.example-go-config +ifeq ($(OSVER), centos6) +BUILD_DEPENDS_go= epel-release golang +else BUILD_DEPENDS_go= golang +endif + BUILD_DEPENDS+= $(BUILD_DEPENDS_go) define MODULE_DEFINITIONS_go
CI/CD: fix a typo
@@ -124,7 +124,7 @@ jobs: tar xzf sgx_rpm_local_repo.tgz; yum-config-manager --add-repo sgx_rpm_local_repo; yum makecache; - yum install --nogpgcheck -y libsgx-dcap-quote-verify-${{ env.DCAP_CENTOS_VERSION }} libsgx-dcap-default-qply-${{ env.DCAP_CENTOS_VERSION }}; + yum install --nogpgcheck -y libsgx-dcap-quote-verify...
sse: don't use _mm_undefined_* on MSVC
@@ -3191,7 +3191,7 @@ simde_mm_ucomineq_ss (simde__m128 a, simde__m128 b) { # if __has_builtin(__builtin_ia32_undef128) # define SIMDE__HAVE_UNDEFINED128 # endif -# elif !defined(__PGI) && !defined(SIMDE_BUG_GCC_REV_208793) +# elif !defined(__PGI) && !defined(SIMDE_BUG_GCC_REV_208793) && !defined(_MSC_VER) # define SIM...
include/switch.h: Format with clang-format BRANCH=none TEST=none
*/ void switch_interrupt(enum gpio_signal signal); #else -static inline void switch_interrupt(enum gpio_signal signal) { } +static inline void switch_interrupt(enum gpio_signal signal) +{ +} #endif /* !CONFIG_SWITCH */ #endif /* __CROS_EC_SWITCH_H */
docker: update container documentation Add docker container usage examples and document the newly included +code scripts.
@@ -29,6 +29,51 @@ The image includes `EXPOSE` directives for TCP port 80 and UDP port 34343. Port You can either pass the `-P` flag to docker to map ports directly to the corresponding ports on the host, or map them individually with `-p` flags. For local testing the latter is often convenient, for instance to remap p...
config tool: hide PTM in schema change acrn:view attribute to ""
@@ -400,7 +400,7 @@ argument and memory.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="PTM" type="Boolean" default="y" minOccurs="0"> - <xs:annotation acrn:title="Precision Time Measurement" acrn:applicable-vms="pre-launched, post-launched" acrn:views="advanced"> + <xs:annotation acrn:title="Preci...
DOCS: Mention that libcrypto has helper functions for OSSL_PARAMs Fixes
@@ -71,6 +71,12 @@ is NULL. The usual full terminating template is: This can also be specified using L<OSSL_PARAM_END(3)>. +=head2 Functional support + +Libcrypto offers a limited set of helper functions to handle +B<OSSL_PARAM> items and arrays, please see L<OSSL_PARAM_get_int(3)>. +Developers are free to extend or re...
fix bugs for optlen output on size not big enough for timeout events
@@ -191,11 +191,16 @@ int win32_connect(SOCKET sockfd, const struct sockaddr *addr, socklen_t addrlen) int win32_getsockopt(SOCKET sockfd, int level, int optname, void *optval, socklen_t *optlen) { int ret = 0; if ((level == SOL_SOCKET) && ((optname == SO_RCVTIMEO) || (optname == SO_SNDTIMEO))) { + if (*optlen >= sizeo...
small changes to text
@@ -491,7 +491,7 @@ The \citet{Tinker2010} model parameterizes the halo mass function and the halo b f(\nu) &=& \alpha[1+(\beta\nu)^{-2\phi}]\nu^{2\eta}e(-\gamma\nu^2/2). \end{eqnarray} -Again, while high {\em numerical} accuracy has been verified, there is a remaining uncertainty. \citet{Tinker2010} found a $\sim6\%$ ...