message
stringlengths
6
474
diff
stringlengths
8
5.22k
fix deleting rcv name if "empty"
@@ -83,7 +83,7 @@ static t_pd *commentsink = 0; static void comment_receive(t_comment *x, t_symbol *s){ t_symbol *rcv = canvas_realizedollar(x->x_glist, x->x_rcv_unexpanded = s); if(rcv == gensym("empty")) - rcv == &s_; + rcv = &s_; if(rcv != &s_){ if(x->x_receive_sym != &s_) pd_unbind(&x->x_obj.ob_pd, x->x_receive_sym...
Examples: confusing comment in bufr_expanded.f90
@@ -32,7 +32,6 @@ real(kind=8), dimension(:), allocatable :: values do while (iret/=CODES_END_OF_FILE) - ! Get and print some keys form the BUFR header write(*,*) 'message: ',count ! We need to instruct ecCodes to expand all the descriptors
*Fix previous commit
@@ -289,7 +289,7 @@ INT WINAPI wWinMain( result = PhMainMessageLoop(); if (PhGetIntegerSetting(L"KphUnloadOnShutdown")) - PhUnloadDriver(NULL, L"KProcessHacker3"); + PhUnloadDriver(NULL, KPH_DEVICE_SHORT_NAME); RtlExitUserProcess(result); }
Geometry: enable SQUARE wave for beep audio
@@ -270,7 +270,7 @@ void init() { channels[0].release_ms = 10; channels[0].volume = 4000; - channels[1].waveforms = Waveform::SINE; + channels[1].waveforms = Waveform::SQUARE | Waveform::SINE; channels[1].frequency = 0; channels[1].attack_ms = 10; channels[1].decay_ms = 500;
Fix miner/worker split bug in hashrate stats
@@ -244,11 +244,11 @@ namespace Miningcore.Mining foreach(var item in orphanedHashrateForMinerWorker) { - var parts = item.Split(":"); + var parts = item.Split("."); var miner = parts[0]; var worker = parts.Length > 1 ? parts[1] : null; - stats.Miner = parts[0]; + stats.Miner = miner; stats.Worker = worker; // persist
Support for Linear Gradients with one Gradient stop
@@ -3170,11 +3170,11 @@ static std::vector<D2D1_GRADIENT_STOP> __CGGradientToD2D1GradientStop(CGContextR // effect based on the extend mode). We support that by inserting a point (with transparent color) close to the start/end points, such // that d2d will automatically extend the transparent color, thus we obtain the ...
modcustomdevices: Add I2CDevice structure This adds a class with a dummy method, but it doesn't do anything yet.
@@ -114,10 +114,55 @@ STATIC const mp_obj_type_t customdevices_AnalogSensor_type = { .locals_dict = (mp_obj_dict_t*)&customdevices_AnalogSensor_locals_dict, }; +// pybricks.customdevices.I2CDevice class object +typedef struct _customdevices_I2CDevice_obj_t { + mp_obj_base_t base; + pbio_ev3iodev_t *iodev; +} customdevi...
test without pwd
@@ -25,11 +25,11 @@ jobs: with: fetch-depth: 0 - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + # - name: Login to DockerHub + # uses: docker/login-action@v1 + # with: + # username: ${{ secrets.DOCKER_...
BugID:17865306: Allow to use wildcards in $(NAME)_SOURCES Allow to specify sources with $(NAME)_SOURCES := *.c */*.c simply.
@@ -218,7 +218,7 @@ AOS_SDK_FINAL_OUTPUT_FILE += $(BIN_OUTPUT_FILE) AOS_SDK_2BOOT_SUPPORT +=$(AOS_2BOOT_SUPPORT) AOS_CPLUSPLUS_FLAGS += $(CPLUSPLUS_FLAGS) $(eval PROCESSED_COMPONENTS += $(NAME)) -$(eval $(NAME)_SOURCES := $(sort $($(NAME)_SOURCES) $($(NAME)_SOURCES-y)) ) +$(eval $(NAME)_SOURCES := $(sort $(subst $($(NA...
Update pipeline README to note centos 7 is now default Authored-by: Tyler Ramer
@@ -113,13 +113,13 @@ template) to the source repository. As an example of generating a pipeline with a targeted test subset, the following can be used to generate a pipeline with supporting -builds (default: centos6 platform) and `CLI` only jobs. +builds (default: centos7 platform) and `CLI` only jobs. The generated p...
README.md fixes.
-# NGINX Unit - <!-- menu --> -- [About](#about) +- [NGINX Unit](#about) - [Installation](#installation) - [System Requirements](#system-requirements) - [Precompiled Packages](#precompiled-packages) - [Ubuntu Prerequisites](#ubuntu-prerequisits) - [CentOS Prerequisites](#centos-prerequisits) - [Configuring Sources](#co...
doc: METADATA require/required unclear status
@@ -336,15 +336,15 @@ example = 4-20 [require] type = boolean -status = proposed -description = Alternative to "default": ensures that an application - will be able to successfully retrieve a configuration setting. +status = unclear +description = See spec plugin [required] type = range usedby/plugin = required status ...
[kernel] fix typos
@@ -327,13 +327,13 @@ public: * \param nb the identifier of the DynamicalSystem to get * \return a pointer on DynamicalSystem */ - inline SP::DynamicalSystem dynamicalSystems(int nb) const + inline SP::DynamicalSystem dynamicalSystem(int nb) const { - return _topology->getDynamicalSystems(nb); + return _topology->getDy...
[kernel] add calls to updateInteractions() before updateOutput() in TimeSteppingDirectProjection
@@ -102,12 +102,10 @@ void TimeSteppingDirectProjection::advanceToEvent() DEBUG_PRINT("TimeStepping::newtonSolve begin :\n"); - // Update interactions if a manager was provided - updateInteractions(); - if (!_doOnlyProj) TimeStepping::newtonSolve(_newtonTolerance, _newtonMaxIteration); - + else + updateInteractions(); ...
apps/examples/usrsocktest: Add MSG_PEEK flag support Do not decrement the recv_avail_bytes if MSG_PEEK flag is specified.
@@ -879,7 +879,12 @@ prepare: { char tmp = 'a' + i; + /* Check if MSG_PEEK flag is specified. */ + + if ((req->flags & MSG_PEEK) != MSG_PEEK) + { tsock->recv_avail_bytes--; + } wlen = write(fd, &tmp, 1); if (wlen < 0)
bugfix/remove MEMMAP_SMP config This commit removes the MEMMAP_SMP config option. Dependencies on this config will now depend on !FREERTOS_UNICORE
@@ -20,13 +20,6 @@ config ESP32_DEFAULT_CPU_FREQ_MHZ default 160 if ESP32_DEFAULT_CPU_FREQ_160 default 240 if ESP32_DEFAULT_CPU_FREQ_240 -config MEMMAP_SMP - bool "Reserve memory for two cores" - default "y" - help - The ESP32 contains two cores. If you plan to only use one, you can disable this item - to save some mem...
group-view: fix errored rollback
%start start %added added %metadata metadata + ?(%no-perms %strange %abort) error == + ++ error jn-core ++ start jn-core ++ added (emit del-us:pass) ++ metadata (emit:added remove-pull-groups:pass)
Dev: v0.12 development begins!
@@ -20,7 +20,7 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/library") # Fluent Bit Version set(FLB_VERSION_MAJOR 0) -set(FLB_VERSION_MINOR 11) +set(FLB_VERSION_MINOR 12) set(FLB_VERSION_PATCH 0) set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
apps/examples/ustream: Fix a typo that generates a warning when CONFIG_BUILD_LOADABLE is selected.
# ############################################################################ --include $(TOPDIR)/.config -include $(TOPDIR)/Make.defs include $(APPDIR)/Make.defs @@ -69,7 +68,7 @@ CLIENT_MAINOBJ = $(CLIENT_MAINSRC:.c=$(OBJEXT)) CLIENT_SRCS = $(CLIENT_ASRCS) $(CLIENT_CSRCS) $(CLIENT_MAINSRC) CLIENT_OBJS = $(CLIENT_AOB...
examples/mediaplayer: Add missing break Add missing break at the end of case TEST_PCM.
@@ -130,6 +130,7 @@ bool MyMediaPlayer::init(int test) source->setPcmFormat(AUDIO_FORMAT_TYPE_S16_LE); return std::move(source); }; + break; case TEST_BUFFER: makeSource = []() { auto source = std::move(unique_ptr<BufferInputDataSource>(new BufferInputDataSource()));
[CLI] Add base64 filling for convinience tying to append trailing equal character(=) to input in getblock command
@@ -47,6 +47,15 @@ func execGetBlock(cmd *cobra.Command, args []string) { binary.LittleEndian.PutUint64(b, uint64(number)) blockQuery = b } else { + + if len(hash)%4 > 0 { + toAdd := 4 - len(hash)%4 + for toAdd > 0 { + hash = hash + "=" + toAdd-- + } + fmt.Printf("Trying to append change input to %s by appending fillin...
Add wheel as possible group name in storage/posix test. Some platforms use wheel as the group for symlinks instead of root.
@@ -268,7 +268,7 @@ testRun(void) TEST_RESULT_INT(info.mode, 0777, " check mode"); TEST_RESULT_STR(info.linkDestination, NULL, " check link destination"); TEST_RESULT_STR_Z(info.user, "root", " check user"); - TEST_RESULT_STR_Z(info.group, "root", " check group"); + TEST_RESULT_STR_Z(info.group, strEqZ(info.group, "whe...
Use ARG instead of ENV No need to persist this into runtime environment. Also, this way you can customize the build/runtime dependencies on the docker command line.
@@ -4,10 +4,11 @@ FROM alpine:edge COPY . /goaccess WORKDIR /goaccess -ENV build_deps="build-base ncurses-dev autoconf automake git gettext-dev" +ARG build_deps="build-base ncurses-dev autoconf automake git gettext-dev" +ARG runtime_deps="tini ncurses libintl gettext " RUN apk update && \ - apk add -u tini ncurses libi...
Missing pointer from
@@ -2837,7 +2837,7 @@ int prevcolourmap (s_model *model, int map_index); int prevcolourmapn (s_model *model, int map_index, int player_index); // Transition animation vs. default. -int transition_to_animation (entity ent, e_animations transition, e_animations default); +int transition_to_animation (entity *ent, e_anima...
vmbus: fix strncpy related warnings The code that was manipulating interface names with ifreq was causing warnings about possible truncation and non terminated strings. These are warnings only since kernel would allow a interface name > 15 characters anyway. Reported-by: Burt Silverman
@@ -157,7 +157,7 @@ vlib_vmbus_raise_lower (int fd, const char *upper_name) u8 *dev_net_dir; DIR *dir; - memset (&ifr, 0, sizeof (ifr)); + clib_memset (&ifr, 0, sizeof (ifr)); dev_net_dir = format (0, "%s/%s%c", sysfs_class_net_path, upper_name, 0); @@ -175,7 +175,7 @@ vlib_vmbus_raise_lower (int fd, const char *upper_...
Change build to full log
@@ -23,7 +23,7 @@ autoreconf -fvi if [ $OS == "Darwin" ] ; then ./configure --enable-debug=yes LDFLAGS="-L${SSL_LIBDIR}" CPPFLAGS="-I${SSL_INCLUDEDIR}" else - ./configure --enable-debug=log + ./configure --enable-debug=full fi make
Add docs to parser
@@ -389,6 +389,8 @@ espi_parse_at_sdk_version(const char* str, esp_sw_version_t* version_out) { /** * \brief Parse +LINK_CONN received string for new connection active + * \param[in] str: Pointer to input string starting with +LINK_CONN + * \return `1` on success, `0` otherwise */ uint8_t espi_parse_link_conn(const cha...
IPSEC: Tunnel SA not deleted p is overwritten by hash_unset so an incorrect value is passed to ipsec_sa_del
@@ -382,11 +382,14 @@ ipsec_add_del_tunnel_if_internal (vnet_main_t * vnm, } else { + u32 ti; + /* check if exists */ if (!p) return VNET_API_ERROR_INVALID_VALUE; - t = pool_elt_at_index (im->tunnel_interfaces, p[0]); + ti = p[0]; + t = pool_elt_at_index (im->tunnel_interfaces, ti); hi = vnet_get_hw_interface (vnm, t->...
remove unnecessary path qualifiers on output files
add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fox.o - COMMAND arm-none-eabi-ld -r -b binary -o ${CMAKE_CURRENT_BINARY_DIR}/fox.o ${CMAKE_CURRENT_SOURCE_DIR}/fox.tga + OUTPUT fox.o + COMMAND arm-none-eabi-ld -r -b binary -o fox.o ${CMAKE_CURRENT_SOURCE_DIR}/fox.tga DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/fox.tga ...
ocvalidate: Require LoadEarly=FALSE on OpenRuntime when OpenVariableRuntimeDxe is not present; remove duplicate driver check
@@ -416,14 +416,6 @@ CheckUefiDrivers ( HasAudioDxeEfiDriver = TRUE; IndexAudioDxeEfiDriver = Index; } - - if (AsciiStrCmp (Driver, "OpenVariableRuntimeDxe.efi") == 0) { - HasOpenVariableRuntimeDxeEfiDriver = TRUE; - - if (!DriverEntry->LoadEarly) { - DEBUG ((DEBUG_WARN, "OpenVariableRuntimeDxe at UEFI->Drivers[%u] mus...
chip: stm32: clock-stm32f4: Implement rtc_set() for RTC Implement rtc_set() function for STM32F4 chip variant BRANCH=none TEST=Using eval-board, use rtc set 0, observe increments
#define RTC_PREDIV_S (RTC_FREQ - 1) #define US_PER_RTC_TICK (1000000 / RTC_FREQ) -int32_t rtc_ssr_to_us(uint32_t rtcss) +int32_t rtcss_to_us(uint32_t rtcss) { return ((RTC_PREDIV_S - rtcss) * US_PER_RTC_TICK); } -uint32_t us_to_rtc_ssr(int32_t us) +uint32_t us_to_rtcss(int32_t us) { return (RTC_PREDIV_S - (us / US_PER_...
docs: Remove outdated HID note Removed outdated HID note from key-press.md
@@ -33,11 +33,6 @@ provided by ZMK near the top: Doing so makes a set of defines such as `A`, `N1`, etc. available for use with these behaviors -:::note -There is an [open issue](https://github.com/zmkfirmware/zmk/issues/21) to provide a more comprehensive, and -complete set of defines for the full keypad and consumer ...
testing/ostest: Remove the code which reference CONFIG_SEM_NNESTPRIO since CONFIG_SEM_NNESTPRIO is removed by:
# define NLOWPRI_THREADS 1 #endif -#ifndef CONFIG_SEM_NNESTPRIO -# define CONFIG_SEM_NNESTPRIO 0 -#endif - -/* Where resources configured for lots of waiters? If so then run 3 high - * priority threads. Otherwise, just one. - */ - -#if CONFIG_SEM_NNESTPRIO > 3 -# define NHIGHPRI_THREADS 3 -#else #define NHIGHPRI_THREAD...
LISP: Add APIs for enable/disable xTR/P-ITR/P-ETR modes
@@ -962,6 +962,66 @@ define show_one_map_register_fallback_threshold_reply u32 value; }; +autoreply define one_enable_disable_xtr_mode +{ + u32 client_index; + u32 context; + u8 is_en; +}; + +define one_show_xtr_mode +{ + u32 client_index; + u32 context; +}; + +define one_show_xtr_mode_reply +{ + u32 context; + i32 ret...
admin/lmod: remove override of libbir and datadir for lua
@@ -93,7 +93,7 @@ unset MODULEPATH export LUA_CPATH="%{LUA_CPATH}" export LUA_PATH="%{LUA_PATH}" %endif -./configure --prefix=%{OHPC_ADMIN} --libdir=%{lualibdir} --datadir=%{luapkgdir} --with-redirect=yes --with-autoSwap=no +./configure --prefix=%{OHPC_ADMIN} --with-redirect=yes --with-autoSwap=no %install %if 0%{?rhel...
Restore formatted JSON API responses
@@ -718,7 +718,11 @@ namespace Miningcore services.AddMvc() .SetCompatibilityVersion(CompatibilityVersion.Version_2_1) - .AddControllersAsServices(); + .AddControllersAsServices() + .AddJsonOptions(options => + { + options.SerializerSettings.Formatting = Formatting.Indented; + }); // Cors services.AddCors();
update docs to install llvm5
@@ -17,6 +17,6 @@ but we do not provide the full complement of downstream library builds. % begin_ohpc_run % ohpc_comment_header Install llvm Compilers \begin{lstlisting}[language=bash] -[sms](*\#*) (*\install*) llvm4-compilers-ohpc +[sms](*\#*) (*\install*) llvm5-compilers-ohpc \end{lstlisting} % end_ohpc_run
Mention that toplevel is part of pg_stat_statements key. While at it, also document that toplevel is always true if pg_stat_statements.track is set to top. Author: Julien Rouhaud Reported-By: Fujii Masao Discussion:
<para> The statistics gathered by the module are made available via a view named <structname>pg_stat_statements</structname>. This view - contains one row for each distinct database ID, user ID and query - ID (up to the maximum number of distinct statements that the module + contains one row for each distinct database ...
Controller experiments;
#include "headset/headset.h" #include "graphics/graphics.h" +#include "lib/vec/vec.h" #include <math/mat4.h> #include <math/quat.h> #include <emscripten.h> typedef struct { headsetRenderCallback renderCallback; + vec_controller_t controllers; } HeadsetState; static HeadsetState state; @@ -48,11 +50,19 @@ static void on...
xenbus_get_state(): fix handling of failure in retrieving state When xenstore_read_u64() returns an error status, the existing code was overwriting the value pointed to by `state` with a potentially uninitialized variable.
@@ -702,6 +702,7 @@ status xenbus_get_state(buffer path, XenbusState *state) status s = xenstore_read_u64(0, path, "state", &val); if (!is_ok(s)) *state = XenbusStateUnknown; + else *state = val; return s; }
EVP_PKEY_get_*_param should work with legacy Also do not shortcut the pkey == NULL case to allow EVP_PKEY_get_params() to raise an error.
@@ -1980,9 +1980,7 @@ int EVP_PKEY_get_bn_param(const EVP_PKEY *pkey, const char *key_name, size_t buf_sz = 0; if (key_name == NULL - || bn == NULL - || pkey == NULL - || !evp_pkey_is_provided(pkey)) + || bn == NULL) return 0; memset(buffer, 0, sizeof(buffer)); @@ -2021,9 +2019,7 @@ int EVP_PKEY_get_octet_string_param(...
Update set_compiler_env.bat to support MSVC 2022
@@ -11,6 +11,10 @@ set arch=x86 if "%platform%" EQU "x64" ( set arch=x86_amd64 ) +if "%COMPILER%"=="2022" ( + set SET_VS_ENV="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" +) + if "%COMPILER%"=="2019" ( set SET_VS_ENV="C:\Program Files (x86)\Microsoft Visual Studio\2019\Commu...
avx: use simde_mm_dp_ps to implement simde_mm256_dp_ps
@@ -3531,36 +3531,13 @@ simde__m256i simde_mm256_insertf128_si256(simde__m256i a, simde__m128i b, int im # define _mm256_insertf128_si256(a, b, imm8) simde_mm256_insertf128_si256(a, b, imm8) #endif -SIMDE__FUNCTION_ATTRIBUTES -simde__m256 -simde_mm256_dp_ps (simde__m256 a, simde__m256 b, const int imm8) { - simde__m256...
iOS: add required always GPS using description
</array> <key>NSLocationWhenInUseUsageDescription</key> <string>application tracks your position</string> + <key>NSLocationAlwaysAndWhenInUseUsageDescription</key> + <string>application tracks your position always</string> <key>NSCameraUsageDescription</key> <string>application wants to use camera</string> <key>NSBluet...
in_health: use new input chunk registration calls
@@ -58,10 +58,12 @@ struct flb_in_health_config { static int in_health_collect(struct flb_input_instance *i_ins, struct flb_config *config, void *in_context) { + int map_num = 1; uint8_t alive; struct flb_in_health_config *ctx = in_context; struct flb_upstream_conn *u_conn; - int map_num = 1; + msgpack_packer mp_pck; +...
treat all <= 1000 as channel and all > 1000 as frequency in Herz
@@ -7370,8 +7370,13 @@ for(c = 0; c < 256; c++) if(res >= 0) { frequency = pwrq.u.freq.m; + /* + frequency or channel : + 0 - 1000 = channel + > 1000 = frequency in Hz! + */ if(frequency > 100000) frequency /= 100000; - if(frequency < 1000) testchannel = frequency; + if(frequency <= 1000) testchannel = frequency; else ...
Update mixly_arduino/mpBuild/ESP32_MixGo/lib/mixgo.py
@@ -40,8 +40,8 @@ class Button: def is_pressed(self): return 1 - Pin(self.pin).value() - def irq(self, h, t): - Pin(self.pin).irq(handler = h, trigger = t) + def irq(self, handler, trigger): + Pin(self.pin).irq(handler = handler, trigger = trigger) # Pin
added info about xhci bug - many devices do not work at the moment
@@ -62,6 +62,8 @@ Requirements Adapters -------------- +* Due to abug in xhci subsystem many devices do not work at the moment: https://bugzilla.kernel.org/show_bug.cgi?id=202541 + * Due to continuous further development of hardware components (chipsets) by VENDORs and several kernel issues (kernel >= 4.20), I decided ...
configs/rtl8721csm/loadable_apps: set IPERF thread priority to 106 This is missing from commit
@@ -96,7 +96,7 @@ CONFIG_ARMV8M_MPU_NREGIONS=8 # CONFIG_ARCH_HAVE_DABORTSTACK is not set CONFIG_REG_STACK_OVERFLOW_PROTECTION=y # CONFIG_MPU_STACK_OVERFLOW_PROTECTION is not set -# CONFIG_MPU_STACK_OVERFLOW_PROTECTION_DISABLE is not set +# CONFIG_STACK_OVERFLOW_PROTECTION_DISABLE is not set # # ARMV8M Configuration Opt...
manifest: Block foreign classes from declaring properties.
@@ -5353,6 +5353,12 @@ static void manifest_foreign(lily_parse_state *parser) expect_word(parser, "class"); manifest_class(parser); parser->current_class->item_kind = ITEM_CLASS_FOREIGN; + + lily_named_sym *sym = parser->current_class->members; + + if (sym->item_kind == ITEM_PROPERTY) + lily_raise_syn(parser->raiser, +...
gimble: remove obsolete C1 reset configuration This problem was fixed by PS8815 FW version 0x3. And we are now using 0x25. TEST=Check with Parade Tested-by: Peter Chi
@@ -151,25 +151,6 @@ void config_usb_db_type(void) CPRINTS("Configured USB DB type number is %d", db_type); } -static void ps8815_reset(void) -{ - int val; - - CPRINTS("%s: patching ps8815 registers", __func__); - - if (i2c_read8(I2C_PORT_USB_C1_TCPC, - PS8XXX_I2C_ADDR1_P2_FLAGS, 0x0f, &val) == EC_SUCCESS) - CPRINTS("p...
unlinks console from :dns-bind on startup
+$ out-poke-data $% [%dns-bind =ship =target] [%dns-complete =ship =binding:dns] + [%drum-unlink =dock] == :: XX %requests from collector +$ in-peer-data ~ :: the app itself :: =* default-tapp default-tapp:tapp -%- create-tapp-poke:tapp -^- tapp-core-poke:tapp +%- create-tapp-all:tapp +^- tapp-core-all:tapp |_ [=bowl:g...
Add MOV GS:od, AL test11 contains the instruction.
@@ -416,6 +416,15 @@ uintptr_t dynarecGS(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int ninst, } break; + case 0xA2: + INST_NAME("MOV GS:Od, AL"); + grab_tlsdata(dyn, addr, ninst, x1); + u32 = F32; + MOV32(x2, u32); + ADD_REG_LSL_IMM5(x2, x1, x2, 0); + STRB_IMM9(xEAX, x2, 0); + break; + case 0xA3: INST_NAME("MOV...
clEnqueueNDRangeKernel: check reqd_work_group_size compatibility If the kernel has a required work-group size, return CL_INVALID_WORK_GROUP_SIZE if the user didn't specify one or specified one that doesn't match the requirements.
@@ -117,7 +117,23 @@ POname(clEnqueueNDRangeKernel)(cl_command_queue command_queue, local_z = work_dim > 2 ? local_work_size[2] : 1; } - if (local_work_size == NULL || + /* If the kernel has the reqd_work_group_size attribute, then the local + * work size _must_ be specified, and it _must_ match the attribute specifica...
fix validate ascii
@@ -497,18 +497,19 @@ int validate_ipv4_port(const char *str) int validate_ascii(const char *str) { - if(!str || strlen(str) == 0) { - return 1; + if(str == NULL) { + return 0; } - uint8_t c = 0; - for(int i = 0; i < strlen(str); i++) { - c = str[i]; - if(c > 126 && c < 32) { + for(;;++str) { + if(*str < 32 || *str > 1...
Docs: Drop Generic key as it is unused from Legacy
<key>SystemUUID</key> <string>00000000-0000-0000-0000-000000000000</string> </dict> - <key>Generic</key> - <dict> - <key>AdviseWindows</key> - <false/> - <key>MLB</key> - <string>M0000000000000001</string> - <key>ROM</key> - <data>ESIzRFVm</data> - <key>SpoofVendor</key> - <true/> - <key>SystemProductName</key> - <stri...
doc: add summary of config changes and upgrading guides v2: * Add the complete instructions to upgrade Python * Add libxml2-utils as another additional tool required for building v2.4 * Random typo fixes
@@ -152,6 +152,8 @@ toolset. Configuration Workflow +.. _acrn_makefile_targets: + Makefile Targets for Configuration ==================================
man: update Pango font description URL The old URL gives a 404.
@@ -40,7 +40,7 @@ runtime. *font* <font> Specifies the font to be used in the bar. _font_ should be specified as a pango font description. For more information on pango font descriptions, - see https://developer.gnome.org/pango/stable/pango-Fonts.html#pango-font-description-from-string + see https://docs.gtk.org/Pango/...
Use tls1_group_id_lookup in tls1_curve_allowed
@@ -254,13 +254,11 @@ void tls1_get_grouplist(SSL *s, int sess, const uint16_t **pcurves, /* See if curve is allowed by security callback */ int tls_curve_allowed(SSL *s, uint16_t curve, int op) { - const TLS_GROUP_INFO *cinfo; + const TLS_GROUP_INFO *cinfo = tls1_group_id_lookup(curve); unsigned char ctmp[2]; - if (cu...
set IP address to 192.168.1.100 in adc-test-client.c
@@ -7,7 +7,7 @@ gcc adc-test-client.c -o adc-test-client -lws2_32 #include <ws2tcpip.h> #include <windows.h> -#define TCP_ADDR "192.168.137.111" +#define TCP_ADDR "192.168.1.100" #define TCP_PORT 1001 int main(int argc, char**argv)
Update WhitePaper.md remove useless lines
@@ -22,8 +22,6 @@ Each block contains exactly one transaction. At the same time, the block is an a Every block in DAG has up to 15 links to another blocks (inputs and outputs). Block B is referenced by another block A if we can reach B from A by following the links. Chain is a sequence of blocks each of which is refere...
OcCryptoLib: Fixed rbx overriding in TryEnableAvx cpuid call writes into eax,ebx,ecx,edx registers, so it overwrites rbx which causes undefined behavior in subsequent execution
@@ -357,6 +357,8 @@ global ASM_PFX(TryEnableAvx) ASM_PFX(TryEnableAvx): ; Detect CPUID.1:ECX.XSAVE[bit 26] = 1 (CR4.OSXSAVE can be set to 1). ; Detect CPUID.1:ECX.AVX[bit 28] = 1 (AVX instructions supported). + + push rbx mov eax, 1 ; Feature Information cpuid ; result in EAX, EBX, ECX, EDX and ecx, 014000000H @@ -379,...
kaluga: investigate all arguments to check the module is auto
static struct module_info modules[MAX_DRIVER_MODULES]; inline bool is_auto_driver(struct module_info* mi) { - return mi->argc > 1 && strcmp(mi->argv[1], "auto") == 0; + int i; + bool auto_driver = false; + + for (i = 1; i < mi->argc; i++) { + if (strcmp(mi->argv[i], "auto") == 0) { + auto_driver = true; + break; + } + ...
Fix Accumulate to make it work as std::accumulate.
@@ -452,23 +452,27 @@ static inline void Rotate(T f, T m, T l) { } template <typename It, typename Val> -static inline Val Accumulate(It begin, It end, Val val) { - return std::accumulate(begin, end, val); +Val Accumulate(It begin, It end, Val val) { + // std::move since C++20 + return std::accumulate(begin, end, std::...
Check item.hits in map_data to protect against divide by zero
@@ -420,6 +420,8 @@ map_data (GModule module, GRawDataItem item, datatype type, char **data, uint32_ case U32: if (!(*data = ht_get_datamap (module, item.nkey))) return 1; + if (!item.hits) + return 1; *hits = item.hits; break; case STR:
VERSION bump to version 1.3.14
@@ -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 3) -set(SYSREPO_MICRO_VERSION 13) +set(SYSREPO_MICRO_VERSION 14) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
one last build location fix
@@ -15,7 +15,7 @@ fi fi fi TMPDIR=$(mktemp -d) mkdir -p ${TMPDIR}/scope -cp ${DIR}/cli/build/{scope,ldscope,libscope.so,scope.yml,scope_protocol.yml} ${TMPDIR}/scope/ +cp ${DIR}/bin/linux/{scope,ldscope,libscope.so,scope.yml,scope_protocol.yml} ${TMPDIR}/scope/ cd ${TMPDIR} && tar cfz scope.tgz scope cd scope && md5sum...
kdbtypes.h: add definitions for C99
@@ -48,8 +48,31 @@ using octet_t = uint8_t; // default: 0 // for C (and C++) -typedef unsigned char kdb_boolean_t; typedef unsigned char kdb_char_t; + +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +// for C99+ +#include <stdbool.h> +#include <stdint.h> + +typedef uint8_t kdb_octet_t; +typedef bool kdb_b...
Only merge tilesets for images if they significantly overlap
@@ -117,11 +117,18 @@ const compileImages = async ( ]); const mergedLength = Object.keys(mergedLookup).length; - const diffLength = - Object.keys(mergedLookup).length - - Object.keys(tilesetLookups[j]).length; + const aLength = Object.keys(tilesetLookups[i]).length; + const bLength = Object.keys(tilesetLookups[j]).leng...
OcSerializeLib: Improve printing even further
@@ -180,10 +180,11 @@ ParseSerializedValue ( if (Result == FALSE) { DEBUG (( - DEBUG_WARN, "OCS: Failed to parse %a field as type %a with <%.16a> contents\n", + DEBUG_WARN, + "OCS: Failed to parse %a field as value with type %a and <%a> contents\n", XmlNodeName (Node), GetSchemaTypeName (Info->Value.Type), - XmlNodeCon...
Update: Change Grease Quic Bit draft to RFC
@@ -19,11 +19,11 @@ protocol. It is cross-platform, written in C and designed to be a general purpos [![](https://img.shields.io/static/v1?label=RFC&message=9001&color=brightgreen)](https://tools.ietf.org/html/rfc9001) [![](https://img.shields.io/static/v1?label=RFC&message=9002&color=brightgreen)](https://tools.ietf.o...
Bump R21 firmware version to 0x26490700 Fix issues when joining Zigbee 3.0 steering devices like IKEA Tradfri on/off switch.
@@ -75,7 +75,7 @@ DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \ DEFINES += GW_AUTO_UPDATE_AVR_FW_VERSION=0x260b0500 DEFINES += GW_AUTO_UPDATE_R21_FW_VERSION=0x26420700 DEFINES += GW_MIN_AVR_FW_VERSION=0x26330500 -DEFINES += GW_MIN_R21_FW_VERSION=0x26480700 +DEFINES += GW_MIN_R21_FW_VERSION=0x26490700 # Minimum version ...
fixed btcp links * Fixed BTCP explorer url/methods and added address Fixed BTCP explorer url/methods and added address link for btcp * changed BTCP links to https
@@ -40,7 +40,7 @@ namespace MiningCore.Blockchain { CoinType.BTC, new Dictionary<string, string> { { string.Empty, $"https://blockchain.info/block/{BlockHeightPH}" }}}, { CoinType.DOGE, new Dictionary<string, string> { { string.Empty, $"https://dogechain.info/block/{BlockHeightPH}" }}}, { CoinType.ZEC, new Dictionary<s...
pbio/trajectory: enforce max speed This argument wasn't used.
@@ -124,6 +124,7 @@ pbio_error_t pbio_trajectory_make_time_based(pbio_trajectory_t *ref, bool foreve int32_t max_init = timest(a, t3mt0); int32_t abs_max = min(wmax, max_init); w0 = max(-abs_max, min(w0, abs_max)); + wt = max(-abs_max, min(wt, abs_max)); // Initial speed is less than the target speed if (w0 < wt) { @@ ...
Update packfile.c Reverted changes to packfile.c made the changes to allow the android build to compile have to find another way to fix it. this will fix issue
@@ -436,7 +436,7 @@ int openPackfile(const char *filename, const char *packfilename) packfilepointer[h] = 0; // Separate file present? - if((handle = open(filename, O_CREAT | O_RDONLY | O_BINARY, 777)) != -1) + if((handle = open(filename, O_RDONLY | O_BINARY, 777)) != -1) { if((packfilesize[h] = lseek(handle, 0, SEEK_E...
Fix Cmake picotls helper
@@ -22,7 +22,7 @@ find_package_handle_standard_args(PTLS REQUIRED_VARS PTLS_INCLUDE_DIR) if(PTLS_FOUND) - set(PTLS_LIBRARIES ${PTLS_CORE_LIBRARY} ${PTLS_OPENSSL_LIBRARY}) + set(PTLS_LIBRARIES ${PTLS_CORE_LIBRARY} ${PTLS_OPENSSL_LIBRARY} ${PTLS_FUSION_LIBRARY}) set(PTLS_INCLUDE_DIRS ${PTLS_INCLUDE_DIR}) endif()
encode_key2text.c: Fix build error on OPENSSL_NO_{DH,DSA,EC}
@@ -126,6 +126,7 @@ err: /* Number of octets per line */ #define LABELED_BUF_PRINT_WIDTH 15 +#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_EC) static int print_labeled_buf(BIO *out, const char *label, const unsigned char *buf, size_t buflen) { @@ -151,6 +152,7 @@ static int print_labele...
VERSION bump to version 2.1.89
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 1) -set(SYSREPO_MICRO_VERSION 88) +set(SYSREPO_MICRO_VERSION 89) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
Fix byteenable in the basic memory model
@@ -249,15 +249,23 @@ function automatic Response create_response ( return rsp; endfunction +// Expand data enable to a data mask +function automatic logic [DATA_W-1:0] get_mask (logic [NUM_SYMBOLS-1:0] byteenable); + logic [DATA_W-1:0] mask; + for(int i=0; i<NUM_SYMBOLS; i++) begin + mask[i*SYMBOL_W +: SYMBOL_W] = byt...
Allow longer file size
#define ROW_HEIGHT 10 #define ROW(x) Point(0,x * ROW_HEIGHT) #define MAX_FILENAME 256+1 -#define MAX_FILELEN 5+1 +#define MAX_FILELEN 16+1 #define PAGE_SIZE 256 class FlashLoader : public CDCCommandHandler
Change stem to filename in symbol address related to the extension loader.
@@ -181,7 +181,7 @@ int ext_loader_impl_load_from_file_handle(loader_impl_ext ext_impl, loader_impl_ } dynlink_symbol_addr symbol_address = NULL; - std::string symbol_name = std::filesystem::path(path).stem().string(); + std::string symbol_name = std::filesystem::path(path).filename().string(); if (dynlink_symbol(lib, ...
Shell: added command tsch-set-coordinator
@@ -418,6 +418,34 @@ PT_THREAD(cmd_ip_neighbors(struct pt *pt, shell_output_func output, char *args)) #if MAC_CONF_WITH_TSCH /*---------------------------------------------------------------------------*/ static +PT_THREAD(cmd_tsch_set_coordinator(struct pt *pt, shell_output_func output, char *args)) +{ + static int is...
s_time: avoid unlikely division by zero Fixing coverity 966560 Division or modulo by zero (DIVIDE_BY_ZERO)
@@ -394,10 +394,13 @@ int s_time_main(int argc, char **argv) printf ("\n\n%d connections in %.2fs; %.2f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn / totalTime), bytes_read); + if (nConn > 0) printf ("%d connections in %ld real seconds, %ld bytes read per connection\n", nConn, (long)time(N...
I updated the mfem and fastbit libraries on the rzzeus system.
@@ -134,7 +134,8 @@ VISIT_OPTION_DEFAULT(VISIT_CGNS_LIBDEP HDF5_LIBRARY_DIR hdf5 ${VISIT_HDF5_LIBDEP ## ## FastBit ## -VISIT_OPTION_DEFAULT(VISIT_FASTBIT_DIR ${VISITHOME}/fastbit/1.2.0/${VISITARCH}) +SETUP_APP_VERSION(FASTBIT 2.0.3) +VISIT_OPTION_DEFAULT(VISIT_FASTBIT_DIR ${VISITHOME}/fastbit/${FASTBIT_VERSION}/${VISIT...
debug/fs : fix build error when nxfusing run can't find dbg_noarg when nxfusing, because config is different
@@ -382,7 +382,6 @@ int get_errno(void); #else #define fdbg(...) #define flldbg(...) -#define fsdbg(format, ...) #endif #ifdef CONFIG_DEBUG_FS_WARN @@ -395,9 +394,11 @@ int get_errno(void); #ifdef CONFIG_DEBUG_FS_INFO #define fvdbg(format, ...) vdbg(format, ##__VA_ARGS__) +#define fsdbg(format, ...) dbg_noarg(format, #...
vioinput: Remove all uses of bEnableInterruptSuppression The field has no effect and will be removed.
@@ -408,11 +408,9 @@ VIOInputInitAllQueues( VIRTIO_WDF_QUEUE_PARAM params[2]; // event - params[0].bEnableInterruptSuppression = false; params[0].Interrupt = pContext->QueuesInterrupt; // status - params[1].bEnableInterruptSuppression = false; params[1].Interrupt = pContext->QueuesInterrupt; TraceEvents(TRACE_LEVEL_INF...
chgstv2: Move battery revival code to sub-routine This patch moves battery revival code to revive_battery. It also uses IS_ENABLED to increase readability. There is no functional change. BRANCH=None TEST=buildall
@@ -1852,6 +1852,41 @@ static void wakeup_battery(int *need_static) } } +static void revive_battery(int *need_static) +{ + if (IS_ENABLED(CONFIG_BATTERY_REQUESTS_NIL_WHEN_DEAD) + && curr.requested_voltage == 0 + && curr.requested_current == 0 + && curr.batt.state_of_charge == 0) { + /* + * Battery is dead, give prechar...
Enable process test for Windows
return require('lib/tap')(function (test) + local isWindows = _G.isWindows + test("test disable_stdio_inheritance", function (print, p, expect, uv) uv.disable_stdio_inheritance() end) @@ -9,7 +11,7 @@ return require('lib/tap')(function (test) local handle, pid handle, pid = uv.spawn(uv.exepath(), { - args = {"-e", "pri...
freertos_hooks: Fix unbalance lock in deregistration for cpu functions Current code exits the deregistration for cpu functions with spinlock held when cpuid >= portNUM_PROCESSORS. Fix it. Fixes: ("New Task Watchdog API (Revert of Revert)")
@@ -109,10 +109,10 @@ esp_err_t esp_register_freertos_tick_hook(esp_freertos_tick_cb_t new_tick_cb) void esp_deregister_freertos_idle_hook_for_cpu(esp_freertos_idle_cb_t old_idle_cb, UBaseType_t cpuid) { - portENTER_CRITICAL(&hooks_spinlock); if(cpuid >= portNUM_PROCESSORS){ return; } + portENTER_CRITICAL(&hooks_spinlo...
fix usage string missing arg
@@ -1439,7 +1439,7 @@ main (int argc, char **argv) ; else { - fformat (stderr, "%s: usage [master|slave]\n"); + fformat (stderr, "%s: usage [master|slave]\n", argv[0]); exit (1); } }
doxm: ignore invalid owned queries on only mcast Tested-by: IoTivity Jenkins
@@ -108,11 +108,15 @@ get_doxm(oc_request_t *request, oc_interface_mask_t interface, void *data) if (ql > 0 && ((doxm[device].owned == 1 && strncasecmp(q, "false", 5) == 0) || (doxm[device].owned == 0 && strncasecmp(q, "true", 4) == 0))) { + if (request->origin && (request->origin->flags & MULTICAST) == 0) { + request-...
added merged PR's to v2.4.2 release notes.
@@ -458,6 +458,12 @@ This is a patch release that includes fixes for the following security vulnerabi * Invalid chunkCount attributes could cause heap buffer overflow in getChunkOffsetTableSize() * Invalid tiled input file can cause invalid memory access TiledInputFile::TiledInputFile() +### Merged Pull Requests + +* [...
Fix environment setup for clang CI job
@@ -69,10 +69,11 @@ jobs: image: ubuntu-2004:202010-01 steps: - checkout - - run: *linux-setup - - run: > - export CC=/usr/bin/clang - export CXX=/usr/bin/clang++ + - run: + command: *linux-setup + environment: + CC: /usr/bin/clang + CXX: /usr/bin/clang++ - run: *build-test build-and-test-arm:
idf.py: Make the lambda function Python 2 & 3 compatible
@@ -357,7 +357,7 @@ def print_closing_message(args): else: # flashing the whole project cmd = " ".join(flasher_args["write_flash_args"]) + " " flash_items = sorted(((o,f) for (o,f) in flasher_args["flash_files"].items() if len(o) > 0), - key = lambda (o,_): int(o, 0)) + key = lambda x: int(x[0], 0)) for o,f in flash_it...
dnstap test program prints messages and timestamps in long format.
@@ -246,6 +246,23 @@ static char* possible_str(ProtobufCBinaryData str) return NULL; } +/** convert timeval to string, malloced or NULL */ +static char* tv_to_str(protobuf_c_boolean has_time_sec, uint64_t time_sec, + protobuf_c_boolean has_time_nsec, uint32_t time_nsec) +{ + char buf[64], buf2[256]; + struct timeval tv...
RPL-MRHOF: when squaring etx, do so only in path/rank calculation, not in link_metric
#define RPL_MRHOF_SQUARED_ETX 1 #endif /* RPL_MRHOF_CONF_SQUARED_ETX */ -#if !RPL_MRHOF_SQUARED_ETX /* Configuration parameters of RFC6719. Reject parents that have a higher * link metric than the following. The default value is 512. */ #define MAX_LINK_METRIC 512 /* Eq ETX of 4 */ + +/* Reject parents that have a high...
rpl-lite: fix variable name
@@ -220,12 +220,12 @@ rpl_dag_update_state(void) static rpl_nbr_t * update_nbr_from_dio(uip_ipaddr_t *from, rpl_dio_t *dio) { - rpl_nbr_t *p = NULL; + rpl_nbr_t *nbr = NULL; const uip_lladdr_t *lladdr; - p = rpl_neighbor_get_from_ipaddr(from); + nbr = rpl_neighbor_get_from_ipaddr(from); /* Neighbor not in RPL neighbor ...
options/posix: fix OOB read in read_dns_name
@@ -36,7 +36,7 @@ static frg::string<MemoryAllocator> read_dns_name(char *buf, char *&it) { for (int i = 0; i < code; i++) res += (*it++); - if (*(it + 1)) + if (*it) res += '.'; } else { break;
drv/virtual/simulation: Allow None for actuation. This allows continuing the simulation when no new input is given. This is needed for open loop simulations where new values are set only occasionally.
@@ -36,10 +36,13 @@ class SimulationModel(ABC): # Empty buffers to hold results, starting with the initial time/state. self.times = array([t0]) self.states = zeros((self.n, 1)) if x0 is None else x0.reshape(self.n, 1) - self.inputs = zeros((self.m, 1)) self.outputs = self.output(t0, x0).reshape(self.p, 1) - def simulat...
Fix Change commandline control actions to always log.
+7 July 2022L Tom + - Fix #212: Change commandline control actions to always log. + 1 July 2022: Wouter - Fix static analyzer reports, fix wrong log print when skipping xfr, fix to print error on pipe read fail, and assert an xfr is in