message
stringlengths
6
474
diff
stringlengths
8
5.22k
Home+Menu enters shipping mode
@@ -446,10 +446,6 @@ void process_input() { // Tie backlight on/off to button X // HAL_GPIO_WritePin(GPIOE, GPIO_PIN_1, HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_0)); - // Tie shipping mode enable to button X - //if(HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_0) == 0) { - // bq24295_enable_shipping_mode(&hi2c4); - //} /*vibe++; HAL_GPIO_W...
Fix for passing Bus to fpgainfo
@@ -61,7 +61,7 @@ def main(args): # Display data from FPGA info for feature in FEATURES: - cmd = "fpgainfo {} -B {}".format(feature, bdf['bus']) + cmd = "fpgainfo {} -B 0x{}".format(feature, bdf['bus']) subprocess.call(cmd, shell=True) gbs_paths = args.gbs_paths
Fixed issue with 1 n_tile and upconvert
@@ -611,8 +611,11 @@ void libxsmm_generator_gemm_load_C_amx( libxsmm_generated_code* io_ge i_gp_reg_mapping->gp_reg_ldc, 4, (i_n_offset * i_xgemm_desc->ldc + i_m_offset) * i_micro_kernel_config->datatype_size, - im * n_tiles + in); - + acc_id); + acc_id++; + if (n_tiles == 1) { + acc_id++; + } i_n_offset += n_blocking_...
handle_method_request in method sample
@@ -51,7 +51,7 @@ static void parse_method_message( int topic_len, MQTTClient_message const* message, az_iot_hub_client_method_request* out_method_request); -static void handle_method_message(az_iot_hub_client_method_request const* method_request); +static void handle_method_request(az_iot_hub_client_method_request con...
add ranking screen for process 0
@@ -85,9 +85,28 @@ def create_frame(codec, beatmap, skin, replay_event, replay_info, resultinfo, st if showranking: component.rankingpanel.start_show() + component.rankinghitresults.start_show() + component.rankingtitle.start_show() + component.rankingcombo.start_show() + component.rankingaccuracy.start_show() + compon...
Only attempt to ftxwake in sempost if there might be a waiter.
@@ -6,6 +6,7 @@ use "futex" pkg thread = type sem = struct _val : ftxtag + _nwaiters : uint32 ;; const mksem : (v : uint32 -> sem) @@ -21,9 +22,11 @@ const mksem = {v const semwait = {s var v = 0 + xadd(&s._nwaiters, 1) for ; ; while (v = s._val) > 0 if xcas(&s._val, v, v - 1) == v + xadd(&s._nwaiters, -1) -> void ;; ;...
zephyr/shim/chip/npcx/npcx_monitor/npcx_monitor.c: Format with clang-format BRANCH=none TEST=none
@@ -261,7 +261,6 @@ int sspi_flash_get_image_used(const char *fw_base) ; return size ? size + 1 : 0; /* 0xea byte IS part of the image */ - } /* Entry function of spi upload function */
Add main to list of checked generator branch names [ci skip]
@@ -51,9 +51,9 @@ submodules=("cva6" "ibex" "boom" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chi dir="generators" if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ] then - branches=("master") + branches=("master" "main") else - branches=("master" "dev") + branches=("master" "main" "dev") fi search
libretro: add zlib on djgpp
@@ -623,9 +623,23 @@ if(BUILD_LIBRETRO) set(LIBRETRO_EXTENSION "a") endif() set_target_properties(tic80_libretro PROPERTIES SUFFIX "_partial.a") + include(CheckCSourceCompiles) + check_c_source_compiles( +"#ifndef __MSDOS__ +#error \"Not DOS\" +#endif" +IS_DOS +) + + if(IS_DOS) + add_custom_command(TARGET tic80_libretr...
[util][minor] replace Y_ASSERT with static_assert in bitops.h where possible
@@ -430,8 +430,8 @@ constexpr T RotateBitsRightCT(T value, const ui8 shift) noexcept { */ template <size_t Offset, size_t Size, class T> Y_FORCE_INLINE T SelectBits(T value) { - Y_ASSERT(Size < sizeof(T) * 8); - Y_ASSERT(Offset < sizeof(T) * 8); + static_assert(Size < sizeof(T) * 8, "violated: Size < sizeof(T) * 8"); +...
pci-quirk: Fix initiliser warning core/pci-quirk.c:70:7: warning: missing field 'vendor_id' initializer [-Wmissing-field-initializers] {NULL} ^ Instead use an empty initaliser, as this is what the kernel does.
@@ -67,7 +67,7 @@ static void quirk_astbmc_vga(struct phb *phb __unused, static const struct pci_quirk quirk_table[] = { /* ASPEED 2400 VGA device */ { &quirk_astbmc_vga, 0x1a03, 0x2000 }, - {NULL} + { NULL, 0, 0 } }; void pci_handle_quirk(struct phb *phb, struct pci_device *pd)
Move monotonic_time to BPF class, use CLOCK_MONOTONIC This allows all the tools (currently: trace and memleak) to use the `monotonic_time` facility, with the fix to use `CLOCK_MONOTONIC` instead of `CLOCK_MONOTONIC_RAW`. Resolves
@@ -115,6 +115,30 @@ class BPF(object): "linux/netdevice.h": ["sk_buff", "net_device"] } + # BPF timestamps come from the monotonic clock. To be able to filter + # and compare them from Python, we need to invoke clock_gettime. + # Adapted from http://stackoverflow.com/a/1205762 + CLOCK_MONOTONIC = 1 # see <linux/time.h...
move wpa_supp to external_libs
- mingw-threads/mingw.thread.h - mingw-threads/mingw.mutex.h - mingw-threads/mingw.condition_variable.h -- source_filter: "^yandex_io/services/wifid/wpa_supplicant/" +- source_filter: "^yandex_io/external_libs/wpa_supplicant/" includes: - private/android_filesystem_config.h - cutils/sockets.h
Make settings and options parameters const in recordmethod.h
@@ -129,8 +129,9 @@ struct ossl_record_method_st { int level, unsigned char *secret, size_t secretlen, SSL_CIPHER *c, BIO *transport, BIO_ADDR *local, - BIO_ADDR *peer, OSSL_PARAM *settings, - OSSL_PARAM *options); + BIO_ADDR *peer, + const OSSL_PARAM *settings, + const OSSL_PARAM *options); void (*free)(OSSL_RECORD_LA...
Remove "make" from build dependencies The project is built with meson+ninja.
@@ -43,7 +43,7 @@ Install the required packages from your package manager. sudo apt install ffmpeg libsdl2-2.0-0 # client build dependencies -sudo apt install make gcc git pkg-config meson ninja-build \ +sudo apt install gcc git pkg-config meson ninja-build \ libavcodec-dev libavformat-dev libavutil-dev \ libsdl2-dev
[Kernel] Re-enable user-mode frame symbolication
@@ -125,14 +125,12 @@ bool symbolicate_and_append(int frame_idx, uintptr_t* frame_addr, char** buf_hea } } else { - /* task_small_t* current_task = tasking_get_current_task(); const char* program_symbol = elf_sym_lookup(&current_task->elf_symbol_table, (uintptr_t)frame_addr); snprintf(symbol, sizeof(symbol), "[%s] %s",...
fuzz: correct hw minimization coverage
@@ -208,8 +208,8 @@ static void fuzz_perfFeedbackForMinimization(run_t* run) { ATOMIC_GET(run->global->feedback.feedbackMap->pidFeedbackEdge[run->fuzzNo]); uint64_t softCntCmp = ATOMIC_GET(run->global->feedback.feedbackMap->pidFeedbackCmp[run->fuzzNo]); - uint64_t cpuInstr = run->global->linux.hwCnts.cpuInstrCnt; - uin...
Allow path 45 for multi-sig
@@ -22,6 +22,8 @@ include $(BOLOS_SDK)/Makefile.defines DEFINES_LIB = USE_LIB_ETHEREUM APP_LOAD_PARAMS= --curve secp256k1 $(COMMON_LOAD_PARAMS) +# Allow the app to use path 45 for multi-sig (see BIP45). +APP_LOAD_PARAMS += --path "45'" APPVERSION_M=1 APPVERSION_N=1
timer: Move update_timer_expiry call to separate function
@@ -23,6 +23,14 @@ static LIST_HEAD(timer_poll_list); static bool timer_in_poll; static uint64_t timer_poll_gen; +static inline void update_timer_expiry(uint64_t target) +{ + if (proc_gen < proc_gen_p9) + p8_sbe_update_timer_expiry(target); + else + p9_sbe_update_timer_expiry(target); +} + void init_timer(struct timer ...
fix: Restore fabric and hwbcs header files
@@ -47,7 +47,7 @@ boatiotsdk.h is the wrapper header file for 3rd application to include. #endif #if PROTOCOL_USE_HLFABRIC == 1 - +#include "protocolapi/api_hlfabric.h" #endif #if PROTOCOL_USE_PLATONE == 1 @@ -59,7 +59,7 @@ boatiotsdk.h is the wrapper header file for 3rd application to include. #endif #if PROTOCOL_USE_...
BugID:17573647:fix white scan issue
@@ -97,6 +97,7 @@ NetworkContext *CoAPNetwork_init (const NetworkInit *p_param) #ifdef COAP_DTLS_SUPPORT if (COAP_NETWORK_DTLS == network->type) { // TODO: + coap_free(network); return NULL; }else{ #endif
naive: fix nonce set
|- ^- tang ?~ current-events ~ %+ weld $(current-events t.current-events) - =/ cur-event i.-.current-events + =/ cur-event i.current-events %+ category (weld "dominion " (scow %tas dominion.cur-event)) %+ category (weld "proxy " (scow %tas proxy.cur-event)) %+ category (weld "tx-type " (scow %tas tx-type.cur-event)) %b...
doc: update release note text
@@ -264,7 +264,8 @@ Many problems were resolved with the following fixes: - OpenSSL now also works properly, if we treat warnings as errors (compiler switch `-Werror`). -- [multifile](http://libelektra.org/plugins/multifile) now passes the child config to the storage plugins too and also handles symlinks correctly. +- ...
graph-store: safely peek update-log Safely returns a null when either the update-log does not exists, or it is empty Fixes
[%x %peek-update-log @ @ ~] =/ =ship (slav %p i.t.t.path) =/ =term i.t.t.t.path - =/ update-log=(unit update-log:store) (~(get by update-logs) [ship term]) - ?~ update-log [~ ~] - =/ result=(unit [time update:store]) - (peek:orm-log:store u.update-log) - ?~ result [~ ~] - ``noun+!>([~ -.u.result]) + =/ m-update-log=(un...
Report fixed digits for AHRS info on web UI.
@@ -138,26 +138,26 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) { $scope.press_time = Date.parse(situation.BaroLastMeasurementTime); $scope.gps_time = Date.parse(situation.GPSLastGPSTimeStratuxTime); if ($scope.gps_time - $scope.press_time < 1000) { - $scope.ahrs_alt = Math.round(situation.BaroPres...
IPSEC: remove double byte swap of IP addresses
@@ -86,25 +86,25 @@ ipsec_input_protect_policy_match (ipsec_spd_t * spd, u32 sa, u32 da, u32 spi) if (ipsec_sa_is_set_IS_TUNNEL (s)) { - if (da != clib_net_to_host_u32 (s->tunnel_dst_addr.ip4.as_u32)) + if (da != s->tunnel_dst_addr.ip4.as_u32) continue; - if (sa != clib_net_to_host_u32 (s->tunnel_src_addr.ip4.as_u32)) ...
no longer need altnerate host compiler to be gcc so we can remove logic for minimum gcc versions
@@ -73,44 +73,12 @@ if [ "$1" == "install" ] ; then $SUDO rm $INSTALL_OPENMP/testfile fi -GCCMIN=9 if [ "$AOMP_BUILD_CUDA" == 1 ] ; then if [ -f $CUDABIN/nvcc ] ; then CUDAVER=`$CUDABIN/nvcc --version | grep compilation | cut -d" " -f5 | cut -d"." -f1 ` echo "CUDA VERSION IS $CUDAVER" - if [ $CUDAVER -gt 8 ] ; then - G...
ipfix-export: tidy code style in flow_report.c Indent sections of code properly in vec_foreach loops. Type: style
@@ -322,8 +322,8 @@ flow_report_process (vlib_main_t * vm, nf->n_vectors++; } - nf = fr->flow_data_callback (frm, fr, - nf, to_next, ip4_lookup_node_index); + nf = fr->flow_data_callback (frm, fr, nf, to_next, + ip4_lookup_node_index); if (nf) vlib_put_frame_to_node (vm, ip4_lookup_node_index, nf); }
Add missing pointer helper macros
#define ALIGN_UP_POINTER_BY(Pointer, Align) ((PVOID)ALIGN_UP_BY(Pointer, Align)) #define ALIGN_UP(Address, Type) ALIGN_UP_BY(Address, sizeof(Type)) #define ALIGN_UP_POINTER(Pointer, Type) ((PVOID)ALIGN_UP(Pointer, Type)) +#define ALIGN_DOWN_BY(Address, Align) ((ULONG_PTR)(Address) & ~((ULONG_PTR)(Align) - 1)) +#define ...
Adjust event filter
@@ -17,7 +17,7 @@ extern "C" { typedef struct clap_plugin_event_filter { // Returns true if the plugin is interested in the given event type. // [main-thread] - bool (*accepts)(const clap_plugin_t *plugin, clap_event_type event_type); + bool (*accepts)(const clap_plugin_t *plugin, uint16_t space_id, uint16_t event_id);...
Fixed typo for NIH
@@ -129,7 +129,7 @@ and use to get a basic plugin experience: - [clap-juce-extension](https://github.com/free-audio/clap-juce-extension), juce add-on - [MIP2](https://github.com/skei/MIP2), host and plugins - [Avendish](https://github.com/celtera/avendish), a reflection-based API for media plug-ins in C++ which support...
docs: re-enable Lustre manifest for x86/centos
\renewcommand{\firstColWidth}{5.1cm} \renewcommand{\secondColWidth}{1.4cm} -%%% -%%% % Lustre -%%% \begin{table}[h!] -%%% \caption{\bf Lustre} \vspace*{\captionSpace{}} \label{table:lustre} -%%% \input manifest/lustre -%%% \vspace*{\tabSpaceBot{}} -%%% \end{table} + +% Lustre +\begin{table}[h!] +\caption{\bf Lustre} \v...
detect and repair damaged PRISM header
@@ -3191,6 +3191,7 @@ if(linktype == DLT_NULL) { if(caplen < (uint32_t)LOBA_SIZE) { + pcapreaderrors = 1; printf("failed to read loopback header\n"); return; } @@ -3201,6 +3202,7 @@ else if(linktype == DLT_EN10MB) { if(caplen < (uint32_t)ETH2_SIZE) { + pcapreaderrors = 1; printf("failed to read ethernet header\n"); ret...
[chainmaker]add header file function declaration
@@ -128,6 +128,20 @@ void BoatFree(void *mem_ptr); ******************************************************************************/ void BoatSleep(BUINT32 second); +/*!**************************************************************************** + * @brief Wrapper function for sleep (thread suspension) + * + * @details +...
[agx] Drop test
@@ -837,13 +837,6 @@ mod test { ); } - #[test] - fn test_constrain_rect() { - let m = Rect::new(0, 0, 100, 100); - let r = Rect::new(-5, -3, 6, 4); - assert_eq!(m.constrain(r), Rect::new(0, 0, 1, 1)); - } - #[test] fn test_rect_diff() { let main = Rect::new(0, 150, 300, 300);
feat[#1190]:Type conversion of enum variables
@@ -127,7 +127,7 @@ BOAT_RESULT hlchainmakerTransactionPacked(BoatHlchainmakerTx *tx_ptr, BCHAR* met sender.is_full_cert = true; tx_header.chain_id = tx_ptr->wallet_ptr->node_info.chain_id_info; - tx_header.tx_type = tx_type; + tx_header.tx_type = (Common__TxType)tx_type; tx_header.tx_id = tx_id; tx_header.timestamp = ...
HLS Sponge: Adding code to display status in MMIO registers ...
@@ -155,14 +155,20 @@ void action_wrapper(snap_membus_t *din_gmem, } for (slice = 0; slice < NB_SLICES; slice++) { - if (pe == (slice % nb_pe)) + if (pe == (slice % nb_pe)) { checksum ^= sponge(slice); + + /* Intermediate result display */ + write_results(Action_Output, Action_Input, + ReturnCode, checksum, slice); + }...
fixes 111 now correctly setting dead for infinite lifetimes
@@ -151,7 +151,7 @@ void agent_handleAdd(int sock, list_t* loaded_accounts, } else { timeout = agent_state.defaultTimeout; } - account_setDeath(account, time(NULL) + timeout); + account_setDeath(account, timeout ? time(NULL) + timeout : 0); struct oidc_account* found = NULL; if ((found = getAccountFromList(loaded_accou...
Add squashfs-tools for building Linux AppImage from CircleCI
@@ -111,6 +111,7 @@ jobs: - run: sudo apt-get -y update - run: sudo apt-get -y install fakeroot - run: sudo apt-get -y install rpm + - run: sudo apt-get -y install squashfs-tools - attach_workspace: at: ~/ - checkout
Small update in hashmap header
#include <stddef.h> #include "celixbool.h" -#include "exports.h" #ifdef __cplusplus extern "C" { @@ -51,7 +50,7 @@ void celix_stringHashmap_destroy(celix_string_hashmap_t* map, bool freeValues); /** * @brief Returns the size of the hashmap */ -size_t celix_stringHashMap_size(celix_string_hashmap_t* map); +size_t celix_...
Use stringbuilder in ecma_raise_standard_error_with_format JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi
@@ -257,7 +257,7 @@ ecma_raise_standard_error_with_format (ecma_standard_error_t error_type, /**< er { JERRY_ASSERT (format != NULL); - ecma_string_t *error_msg_p = ecma_get_magic_string (LIT_MAGIC_STRING__EMPTY); + ecma_stringbuilder_t builder = ecma_stringbuilder_create (); const char *start_p = format; const char *e...
options/posix: Define quad_t and u_quad_t
@@ -43,5 +43,9 @@ typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; +// BSD extensions +typedef int64_t quad_t; +typedef uint64_t u_quad_t; + #endif // _SYS_TYPES_H
Cleanup dependencies Re-add later if needed for WSI extensions
@@ -90,39 +90,13 @@ vulkan_wsi_deps = [] with_platform_x11 = true with_platform_wayland = false -with_xlib_lease = true dep_x11 = dependency('x11') -dep_xext = dependency('xext') -dep_xcb = dependency('xcb') -dep_x11_xcb = dependency('x11-xcb') -dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8') -dep_libdrm = de...
launch: force black base hash
@@ -63,7 +63,7 @@ export default function LaunchApp(props) { }, 2000); }} > - <Text mono bold>{hashText || props.baseHash}</Text> + <Text mono bold color="#000000">{hashText || props.baseHash}</Text> </Box> );
Fix code markup
@@ -19,8 +19,10 @@ Quick instructions for doing a CMake based build: * Copy the sample CMake configuration into the top: +``` cp cfe/cmake/Makefile.sample Makefile cp -r cfe/cmake/sample\_defs sample\_defs +``` The files in "sample\_defs" will need to be adjusted to meet the needs of your mission, but the sample values...
Using engine task to avoid racing condition.
@@ -1540,7 +1540,12 @@ nxt_router_listen_socket_update(nxt_task_t *task, void *obj, void *data) nxt_event_engine_post(job->tmcf->engine, &job->work); - nxt_router_conf_release(task, old); + /* + * The task is allocated from configuration temporary + * memory pool so it can be freed after engine post operation. + */ + +...
Auto detect version of windows for windows 10 with powershell >= v5.0 uses Expand_Archive utility for windows below 10 it requires unzip to be installed
@@ -14,16 +14,17 @@ powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www.sqlite.org/2018/sqlite-amalgamation-3240000.zip','sqlite-amalgamation.zip')" :: Unzip zip files -if "%1" == "use_unzip" ( - unzip libodb-2...
evp: fix coverity copy into fixed size buffer
@@ -1344,7 +1344,7 @@ static int fix_rsa_pss_saltlen(enum state state, break; } if (i == OSSL_NELEM(str_value_map)) { - BIO_snprintf(ctx->name_buf, 5, "%d", ctx->p1); + BIO_snprintf(ctx->name_buf, sizeof(ctx->name_buf), "%d", ctx->p1); } else { strcpy(ctx->name_buf, str_value_map[i].ptr); }
smaller, faster!
@@ -148,9 +148,8 @@ void UIShowText_b() __banked { if (l) { dest += strlen(itoa(script_variables[var_index], dest)); src += l + 1; - break; + continue; } - *dest++ = *src++; break; case '#': @@ -158,9 +157,8 @@ void UIShowText_b() __banked { if (l) { *dest++ = script_variables[var_index] + 0x20u; src += l + 1; - break;...
Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET. If a test case tried to set an invalid value of synchronous_standby_names, the test script didn't detect that, which seems like a bad idea. Noticed while testing a proposed patch that broke some of these test cases.
@@ -18,7 +18,7 @@ sub test_sync_state if (defined($setting)) { - $self->psql('postgres', + $self->safe_psql('postgres', "ALTER SYSTEM SET synchronous_standby_names = '$setting';"); $self->reload; }
Print error message on bad CLI usage. This was a small regression when bundling cli-main into boot.janet.
@@ -93,6 +93,9 @@ int main(int argc, char **argv) { JanetFiber *fiber = janet_fiber(janet_unwrap_function(mainfun), 64, 1, mainargs); fiber->env = env; status = janet_continue(fiber, janet_wrap_nil(), &out); + if (status != JANET_SIGNAL_OK) { + janet_stacktrace(fiber, out); + } /* Deinitialize vm */ janet_deinit();
hssi: change CLI (hssi_loopback) for consistency
@@ -54,7 +54,7 @@ loopback_app::loopback_app() , ports_(0) { options_.add_option<uint8_t>("socket-id", 'S', option::with_argument, "Socket id encoded in BBS"); - options_.add_option<uint8_t>("bus-number", 'B', option::with_argument, "Bus number of PCIe device"); + options_.add_option<uint8_t>("bus", 'B', option::with_a...
fpgabist input as str
@@ -45,7 +45,7 @@ def get_all_fpga_bdfs(): m = bdf_pattern.match(symlink) data = m.groupdict() if m else {} if data: - bdf_list.append(dict([(k, int(v, 16)) + bdf_list.append(dict([(k, v) for (k, v) in data.iteritems()])) return bdf_list @@ -103,13 +103,13 @@ def global_arguments(parser): type=str, help='Device Id for ...
bufr_dump: option '-f' should dump header if unpack fails
@@ -281,7 +281,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) } else { fprintf(stdout,"\"ERROR: unable to unpack data section\""); options->error=err; - return err; + /*return err; See ECC-723*/ } } a=grib_find_accessor(h,"numericValues"); @@ -299,7 +299,7 @@ int grib_tool_new_handl...
Update System.access() tests
@@ -21,14 +21,10 @@ assert(System.access("/", F_OK).success()); assert(System.access("/", R_OK).success()); assert(System.access("/", X_OK).success()); assert(not System.access("/", W_OK).success()); -assert(System.access("/", W_OK).unwrapError() == 'Read-only file system'); assert(not System.access("/", F_OK|R_OK|W_OK...
extmod/modnxtdevices: update SoundSensor method The soundsensor measures approximate sound intensity, not actual dB.
@@ -145,28 +145,25 @@ STATIC mp_obj_t nxtdevices_SoundSensor_make_new(const mp_obj_type_t *type, size_ return MP_OBJ_FROM_PTR(self); } -// pybricks.nxtdevices.SoundSensor.db -STATIC mp_obj_t nxtdevices_SoundSensor_db(mp_obj_t self_in) { - nxtdevices_SoundSensor_obj_t *self = MP_OBJ_TO_PTR(self_in); - int32_t analog; - ...
Make test_alloc_realloc_long_attribute_value() robust vs allocations
@@ -9591,7 +9591,9 @@ START_TEST(test_alloc_realloc_long_attribute_value) if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_alloc_parse_xdecl() */ + alloc_teardown(); + alloc_setup(); } if (i == 0) fail("Parse succeede...
Remove unused data argument
@@ -323,7 +323,7 @@ static char * generateSpecProblemErrorMessage (const char * application) "\t\"$ sudo kdb umount spec:%s\"\n" "and then reinstall the application.\n\n" "If that does not help, please consult the application's documentation or contact its developers.\n", - application, application, application, applic...
Update version classifiers.
@@ -573,6 +573,8 @@ setup(name = 'mod_wsgi', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Topic :: Internet :: WWW/HTTP :: WSGI', 'Topic :: Internet :: WWW...
fix bug in ranking tutorial ( )
"\n", "train_with_weights = Pool(\n", " data=X_train,\n", - " label=y_train,\n", - " group_id=queries_train\n", + " label=best_docs_train,\n", + " group_id=queries_train,\n", + " group_weight=create_weights(queries_train)\n", ")\n", "\n", "test_with_weights = Pool(\n", " data=X_test,\n", - " label=y_test,\n", - " group...
Use mbedtls_xor in CMAC
@@ -148,15 +148,6 @@ exit: #endif /* !defined(MBEDTLS_CMAC_ALT) || defined(MBEDTLS_SELF_TEST) */ #if !defined(MBEDTLS_CMAC_ALT) -static void cmac_xor_block( unsigned char *output, const unsigned char *input1, - const unsigned char *input2, - const size_t block_size ) -{ - size_t idx; - - for( idx = 0; idx < block_size;...
nimble/ll: Fix LE Read Supported States with no peripheral Bits 32,33 34 are for connectable advertising during connection state as central and thus should be reported only if both peripheral and central roles are enabled.
@@ -202,17 +202,13 @@ int8_t g_ble_ll_tx_power = MYNEWT_VAL(BLE_LL_TX_PWR_DBM); #define BLE_LL_S_CA_INIT ((uint64_t)1 << 32) #define BLE_LL_S_HDCA_INIT ((uint64_t)1 << 33) #define BLE_LL_S_LDCA_INIT ((uint64_t)1 << 34) -#else -#define BLE_LL_S_CA_INIT ((uint64_t)0 << 32) -#define BLE_LL_S_HDCA_INIT ((uint64_t)0 << 33) ...
pbio/platform/motors: Reduce medium motor gains. This reduces sensitivity to high inertial loads like free-spinning wheels. See also:
@@ -89,7 +89,7 @@ static const pbio_observer_settings_t settings_observer_technic_m_angular = { .k_1 = SCALE(0.000267785410941794f, PBIO_OBSERVER_SCALE_HIGH), .k_2 = SCALE(0.00643543836108826f, PBIO_OBSERVER_SCALE_HIGH), .f_low = SCALE(0.01218641268292683f, PBIO_OBSERVER_SCALE_TRQ), - .obs_gain = SCALE(0.002f, PBIO_OBS...
rsa: fix coverity resource leak
@@ -250,6 +250,7 @@ static int rsa_decrypt(void *vprsactx, unsigned char *out, size_t *outlen, if (prsactx->oaep_md == NULL) { prsactx->oaep_md = EVP_MD_fetch(prsactx->libctx, "SHA-1", NULL); if (prsactx->oaep_md == NULL) { + OPENSSL_free(tbuf); ERR_raise(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR); return 0; } @@ -264,6 +265,...
docs: update current year
\vspace*{0.5cm} -\noindent Copyright {\small\copyright} 2016-2018, OpenHPC, a Linux Foundation +\noindent Copyright {\small\copyright} 2016-2019, OpenHPC, a Linux Foundation Collaborative Project. All rights reserved. \\ \vspace*{0.1cm}
.ci/check-tidy: remove needless linter
@@ -57,5 +57,5 @@ for dir in build build-build; do echo "Checking $(echo ${SOURCES} | wc -w) files with clang-tidy" # The list of tidy checks must stay in sync with scripts/tidy - ${CLANGTIDY} -quiet -p ${dir} -checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus*,bugprone-*,performance-*,portability-*,readability-*,-r...
doc: review edits for rt_industry doc
@@ -20,7 +20,8 @@ for the RTVM. - Intel Kaby Lake (aka KBL) NUC platform with two disks inside (refer to :ref:`the tables <hardware_setup>` for detailed information). -- If you need to enable the serial port on KBL NUC, navigate to the :ref:`troubleshooting <connect_serial_port>` to prepare the cable. +- If you need to...
avx512vl: test for all required ISA extensions These functions require both AVX-512BW and AVX-512VL.
@@ -56,7 +56,7 @@ SIMDE__BEGIN_DECLS SIMDE__FUNCTION_ATTRIBUTES simde__m128i simde_mm_cvtsepi16_epi8 (simde__m128i a) { - #if defined(SIMDE_AVX512VL_NATIVE) + #if defined(SIMDE_AVX512VL_NATIVE) && defined(SIMDE_AVX512BW_NATIVE) return _mm_cvtsepi16_epi8(a); #else simde__m128i_private r_ = simde__m128i_to_private(simde_...
neon: test for MMX/SSE instead of x86 when choosing implementation On Elbrus we want to use MMX/SSE, so the old code was causing problems on Elbrus since the code assumed that if MMX/SSE was enabled the Intel types would be used.
@@ -174,7 +174,7 @@ SIMDE_ARM_NEON_TYPE_FLOAT_DEFINE_(64, 2, SIMDE_ALIGN_16_) #define SIMDE_ARM_NEON_NEED_PORTABLE_F64X1XN #define SIMDE_ARM_NEON_NEED_PORTABLE_F64X2XN #endif -#elif defined(SIMDE_ARCH_X86) || defined(SIMDE_ARCH_AMD64) +#elif defined(SIMDE_X86_MMX_NATIVE) || defined(SIMDE_X86_SSE_NATIVE) #define SIMDE_A...
nuttx: extend configuration options
* the default upgrade mode. */ -/* Uncomment to enable the overwrite-only code path. */ +/* Enable the overwrite-only code path. */ -/* #define MCUBOOT_OVERWRITE_ONLY */ - -#ifdef MCUBOOT_OVERWRITE_ONLY +#ifdef CONFIG_MCUBOOT_OVERWRITE_ONLY +# define MCUBOOT_OVERWRITE_ONLY +#endif -/* Uncomment to only erase and overwr...
Trying TRAVIS_PULL_REQUEST != false.
@@ -36,10 +36,10 @@ git: lfs_skip_smudge: true script: - - if [ "$TRAVIS_PULL_REQUEST_BRANCH" = "master" ]; then make coverage; fi - - if [ "$TRAVIS_PULL_REQUEST_BRANCH" = "" ]; then py.test; fi + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make coverage; fi + - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then py.tes...
removed some debug printf's
@@ -1344,8 +1344,6 @@ while((pcapstatus = pcap_next_ex(pcapin, &pkh, &packet)) != -2) if(pkh->len < (macl +LLC_SIZE +IP_SIZE_MIN +GRE_MIN_SIZE +PPP_SIZE +PPPCHAPHDR_MIN_CHAL_SIZE)) continue; - printf("%d %ld\n", pkh->len, macl +LLC_SIZE +IP_SIZE_MIN +GRE_MIN_SIZE +PPP_SIZE); - iph = (ip_frame_t*)(payload + LLC_SIZE); i...
Fix compile error with gcc (again)
@@ -327,7 +327,7 @@ ssize_t ngtcp2_pkt_decode_stream_frame(ngtcp2_stream *dest, idlen = (size_t)(((type & NGTCP2_STREAM_SS_MASK) >> 3) + 1); - b = (type & NGTCP2_STREAM_OO_MASK) >> 1; + b = (uint8_t)((type & NGTCP2_STREAM_OO_MASK) >> 1); if (b) { offsetlen = (size_t)(1 << b); }
extstore: add extstore_limit_maxbytes stat was easy. also kills some comments.
@@ -489,7 +489,7 @@ void conn_worker_readd(conn *c) { if (c->io_wraplist) { //assert(c->io_wrapleft == 0); // assert no more to process conn_set_state(c, conn_mwrite); - drive_machine(c); // FIXME: Again, is it really this easy? + drive_machine(c); } #endif } @@ -3168,6 +3168,7 @@ static void server_stats(ADD_STAT add_...
makefile: add driverless-fax
@@ -116,9 +116,12 @@ cups_brf_SOURCES = \ # PPD Generators # ============== pkgppdgendir = $(CUPS_SERVERBIN)/driver - +driverlessfaxscripts = \ + utils/driverless-fax if ENABLE_DRIVERLESS pkgppdgen_PROGRAMS = driverless +pkgppdgen_SCRIPTS = \ + $(driverlessfaxscripts) endif driverless_SOURCES = \ @@ -133,6 +136,11 @@ d...
actions BUGFIX install libval from source
@@ -9,7 +9,7 @@ on: env: DEFAULT_OPTIONS: -DENABLE_BUILD_TESTS=ON -DENABLE_DNSSEC=ON - DEFAULT_PACKAGES: libcmocka-dev zlib1g-dev libssh-dev libssl-dev libval-dev + DEFAULT_PACKAGES: libcmocka-dev zlib1g-dev libssh-dev libssl-dev jobs: build: @@ -123,6 +123,13 @@ jobs: make -j2 sudo make install + git clone https://git...
filtering_pState uses VLD1 and it needs to be aligned to avoid alignment faults
@@ -10,7 +10,7 @@ float32_t filtering_output_ref[LMS_MAX_BLOCKSIZE*2] = {0}; float32_t filtering_output_f32_fut[LMS_MAX_BLOCKSIZE*2] = {0}; float32_t filtering_output_f32_ref[LMS_MAX_BLOCKSIZE*2] = {0}; float32_t filtering_input_lms[LMS_MAX_BLOCKSIZE*2] = {0}; -float32_t filtering_pState[LMS_MAX_BLOCKSIZE + FILTERING_M...
Add "cleandepend" target (clean *.d).
@@ -135,7 +135,7 @@ endef $(foreach prog, $(PROGRAMS), $(eval $(call build_program,$(prog)))) -ifeq ($(filter print-% clean,$(MAKECMDGOALS)),) +ifeq ($(filter print-% clean cleandepend,$(MAKECMDGOALS)),) -include $(sort $(DEPFILES)) endif @@ -159,6 +159,7 @@ endif # clean .PHONY: clean pre-clean do-clean post-clean +.P...
Fix typo in ASN1_STRING_length doc CLA: trivial
@@ -71,8 +71,8 @@ utility functions should be used instead. In general it cannot be assumed that the data returned by ASN1_STRING_data() is null terminated or does not contain embedded nulls. The actual format of the data will depend on the actual string type itself: for example -for and IA5String the data will be ASCI...
Fix LED return values.
@@ -5,33 +5,33 @@ int led_count(void) { if (rval.type == TOCK_SYSCALL_SUCCESS_U32) { return rval.data[0]; } else { - return 0; + return tock_error_to_rcode(rval.data[0]); } } int led_on(int led_num) { syscall_return_t rval = command2(DRIVER_NUM_LEDS, 1, led_num, 0); if (rval.type == TOCK_SYSCALL_SUCCESS) { - return 0; ...
Turn off parallelization for h2d and d2h copies
@@ -554,6 +554,16 @@ static bool use_gpu(int p, void* ptr[p]) #endif return gpu; } + +static bool one_on_gpu(int p, void* ptr[p]) +{ + bool gpu = false; + + for (int i = 0; i < p; i++) + gpu |= cuda_ondevice(ptr[i]); + + return gpu; +} #endif extern double md_flp_total_time; @@ -699,7 +709,7 @@ out: debug_print_dims(DP...
test: add ethereum test cases test_004ParametersInit_0002TxInitFailureNullParam test_004ParametersInit_0003TxInitFailureErrorGasPriceHexFormat
@@ -152,6 +152,57 @@ START_TEST(test_004ParametersInit_0001TxInitSuccess) } END_TEST +START_TEST(test_004ParametersInit_0002TxInitFailureNullParam) +{ + BSINT32 rtnVal; + BoatEthTx tx_ptr; + rtnVal = ethereumWalletPrepare(); + ck_assert_int_eq(rtnVal, BOAT_SUCCESS); + + rtnVal = BoatEthTxInit(NULL, &tx_ptr, TEST_IS_SYN...
This comment is wrong.
@@ -11,7 +11,6 @@ Lily is a programming language focused on expressiveness and type safety. ``` scoped enum Color { Black, Blue, Cyan, Green, Magenta, Red, White, Yellow } -# Class properties and methods are public by default. class Terminal(var @foreground: Color, width_str: String) { public var @width = width_str.par...
add kernel-devel
To add optional support for mounting \beegfs{} file systems, an additional \pkgmgr{} repository must be configured. In this recipe, it is assumed that the \beegfs{} file system is hosted by servers that are pre-existing -and are not part of the install process. Once the client is configured to point +and are not part o...
Migrate old projectile events to include new data fields
@@ -15,7 +15,7 @@ import uuid from "uuid"; const indexById = indexBy("id"); export const LATEST_PROJECT_VERSION = "2.0.0"; -export const LATEST_PROJECT_MINOR_VERSION = "10"; +export const LATEST_PROJECT_MINOR_VERSION = "11"; /* * Helper function to make sure that all migrated functions @@ -1098,6 +1098,57 @@ export con...
stm32/usbdev: Be honest about data not being written to HID endpoint. USB_HID.send() should now return 0 if it could not send the report to the host.
@@ -1161,9 +1161,10 @@ uint8_t USBD_HID_SendReport(usbd_cdc_msc_hid_state_t *usbd, uint8_t *report, uin if (usbd->HID_ClassData.state == HID_IDLE) { usbd->HID_ClassData.state = HID_BUSY; USBD_LL_Transmit(usbd->pdev, usbd->hid_in_ep, report, len); + return USBD_OK; } } - return USBD_OK; + return USBD_FAIL; } uint8_t USB...
Increase d_m3MaxFunctionStackHeight on some platforms
@@ -153,7 +153,7 @@ typedef int8_t i8; # ifndef d_m3MaxFunctionStackHeight # if defined(ESP8266) || defined(ESP32) || defined(ARDUINO_AMEBA) || defined(TEENSYDUINO) -# define d_m3MaxFunctionStackHeight 128 +# define d_m3MaxFunctionStackHeight 256 # endif # endif @@ -183,7 +183,7 @@ typedef int8_t i8; # define d_m3MaxCo...
add missing buffer_free
@@ -524,6 +524,7 @@ read_entry(FILE* in, const char* name, int *lineno, uint32_t* default_ttl, /* store raw EDNS for matching */ cur_reply->raw_ednsdata = data_buffer2wire(hex_ednsdata_buffer); + ldns_buffer_free(edns); ldns_buffer_free(hex_ednsdata_buffer); hex_ednsdata_buffer = NULL; } else if(reading_hex_ednsdata) {...
Update link to TPP1 spec in RGBFIX man page To match the repo transfer from late 2021.
@@ -192,7 +192,7 @@ SurvivalKids.gbc .Sh TPP1 TPP1 is a homebrew mapper designed as a functional superset of the common traditional MBCs, allowing larger ROM and RAM sizes combined with other hardware features. Its specification, as well as more resources, can be found online at -.Lk https://github.com/TwitchPlaysPokem...
Add missing DefaultAlpha
@@ -4669,7 +4669,7 @@ TVector<THolder<IMetric>> TUserDefinedPerObjectMetric::Create(const TMetricConfi TUserDefinedPerObjectMetric::TUserDefinedPerObjectMetric(const TLossParams& params) : TMetric(ELossFunction::UserPerObjMetric, params) - , Alpha(params.GetParamsMap().contains("alpha") ? FromString<float>(params.GetPa...
[ymake.core.conf] Make ADD_COMPILABLE_TRANSLATE output NOAUTO
@@ -3323,7 +3323,7 @@ macro EXTRALIBS_STATIC(Args...) { macro ADD_COMPILABLE_TRANSLATE(Dict, Name, MakeTransDictOptions...) { __translatename_lower=${tolower:Name} __translate_dict=${BINDIR}/transdict.${__translatename_lower}.cpp - RUN_PROGRAM(dict/tools/maketransdict -i ${Dict} ${MakeTransDictOptions} ${Name} STDOUT $...
core/init: rearrange final boot steps Take secondaries out of sleep mode as late as possible, which tends to help with simulator boot speeds. Make give_self_os() the last step before starting the kernel, which matches the way secondaries behave.
@@ -565,24 +565,12 @@ void __noreturn load_and_boot_kernel(bool is_reboot) /* Clear SRCs on the op-panel when Linux starts */ op_panel_clear_src(); - cpu_give_self_os(); - mem_dump_free(); - /* Take processours out of nap */ - cpu_set_sreset_enable(false); - cpu_set_ipi_enable(false); - /* Dump the selected console */ ...
board/brya/usbc_config.c: Format with clang-format BRANCH=none TEST=none
@@ -241,8 +241,8 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state) } if (voltage < BC12_MIN_VOLTAGE) { - CPRINTS("%s: port %d: vbus %d lower than %d", __func__, - port, voltage, BC12_MIN_VOLTAGE); + CPRINTS("%s: port %d: vbus %d lower than %d", __func__, port, + voltage, BC12_MIN_VOLTAGE); ret...
fixes bash completion deb package installation
dh $@ override_dh_auto_install: - $(MAKE) INSTALL_PATH=$$(pwd)/debian/oidc-agent/usr MAN_PATH=$$(pwd)/debian/oidc-agent/usr/share/man CONFIG_PATH=$$(pwd)/debian/oidc-agent/etc BASH_COMPLETION_PATH=$$(pwd)/debian/oidc-agent/usr/share/bash-completion/completer install + $(MAKE) INSTALL_PATH=$$(pwd)/debian/oidc-agent/usr ...
Missing actor ids when calling custom event defaults to $self$
@@ -23,7 +23,7 @@ const compile = (input, helpers) => { if (!e.args) return; if (e.args.actorId && e.args.actordId !== "player") { - e.args.actorId = input[`$actor[${e.args.actorId}]$`]; + e.args.actorId = input[`$actor[${e.args.actorId}]$`] || "$self$"; } if (e.args.otherActorId && e.args.otherActorId !== "player") { ...
reduce amount of sbt calls for sim
@@ -8,7 +8,7 @@ SHELL=/bin/bash ######################################################################################### lookup_scala_srcs = $(shell find -L $(1)/ -iname "*.scala" 2> /dev/null) -PACKAGES=rocket-chip testchipip boom hwacha sifive-blocks utilities example +PACKAGES=rocket-chip testchipip boom hwacha sif...
removed empty file warning from get_compression_from_magic_num this method was called twice so the warning is being printed twice.
@@ -106,9 +106,6 @@ namespace ebi * (5 characters), then we assume there's no compression. */ if (line.size() < 5) { - if (line.size() == 0) { - BOOST_LOG_TRIVIAL(warning) << "The VCF file provided is empty"; - } return NO_EXT; }
Build: Fix format specifier for `st_size` on macOS
@@ -86,7 +86,13 @@ else () set (ELEKTRA_TIME_USEC_F "\"%d\"") endif () -if (SIZEOF_STAT_ST_SIZE EQUAL SIZEOF_LONG) +# Unfortunately `long` and `long long` have the same size (8 bytes) on `amd64` architectures in macOS and Debian GNU/Linux. This means we +# can not differentiate these types only based on their size. Con...
Off-by one error
@@ -468,7 +468,7 @@ _ (EvaluateExpression (io_module, & segmentOffset, c_m3Type_i32, & start, _throwif ("unallocated linear memory", !(io_memory->mallocated)); - if (segmentOffset > 0 && (size_t) segmentOffset + segment->size <= io_memory->mallocated->length) + if (segmentOffset >= 0 && (size_t)(segmentOffset) + segmen...
tneat - fixes
@@ -318,7 +318,7 @@ on_close(struct neat_flow_operations *opCB) printf("\tbytes\t\t: %u\n", tnf->rcv.bytes); printf("\trcv-calls\t: %u\n", tnf->rcv.calls); printf("\tduration\t: %.2fs\n", time_elapsed); - if (time_elapsed) { + if (time_elapsed > 0.0) { printf("\tbandwidth\t: %s/s\n", filesize_human(tnf->rcv.bytes/time_...