message
stringlengths
6
474
diff
stringlengths
8
5.22k
publish: proper sidebar height, overflow behaviour
@@ -137,8 +137,6 @@ export class Sidebar extends Component { ); }) - let notebooks = <div>{notebookItems}</div> - return ( <div className={ @@ -187,7 +185,8 @@ export class Sidebar extends Component { /> </div> </div> - <div className="overflow-y-scroll h-100"> + <div className="overflow-y-auto pb1" + style={{height: "...
CLEANUP: removed an useless variable.
@@ -10020,14 +10020,13 @@ static void process_sop_get(conn *c, char *key, size_t nkey, uint32_t count, struct elems_result eresult; eitem **elem_array = NULL; uint32_t elem_count; - uint32_t req_count = count; uint32_t flags, i; bool dropped; int need_size; ENGINE_ERROR_CODE ret; ret = mc_engine.v1->set_elem_get(mc_eng...
sidk_s5jt200: specify tagno when creating an mtd partition There is no knob for finding mtd part using get_mtd_partition(). This patch adds partno info for providing knob in sidk_s5jt200_configure_partitions.
@@ -175,7 +175,7 @@ static void sidk_s5jt200_configure_partitions(void) } mtd_part = mtd_partition(mtd, partoffset, - partsize / geo.erasesize, 0); + partsize / geo.erasesize, partno); partoffset += partsize / geo.erasesize; if (!mtd_part) {
Remove abort when catching a signal. Combined with signal handler chaining from the JVM, this should be prevent the JVM from shutting down exception_handler gets called.
@@ -114,8 +114,6 @@ static void exception_handler(int sig) { if (tidx != -1 && exc_jmp_buf[tidx] != NULL) siglongjmp(*exc_jmp_buf[tidx], 1); - - assert(false); // We should not reach this point. } }
Make flag volatile and avoid include warning
@@ -603,7 +603,7 @@ static VALUE iodine_count(VALUE self) { /* ***************************************************************************** Running the server */ -static int sock_io_thread = 0; +static volatile int sock_io_thread = 0; static void *iodine_io_thread(void *arg) { (void)arg; static const struct timespec t...
Fixed intersect unit test intersect.new.t61
@@ -729,13 +729,21 @@ rm obs dummy.txt.gz exp # Test that an empty query with header, bgzipped, that # runs with -header option will print header ############################################################ + +# I'm not quite sure what this test was trying to do. +# It may have been attempting to test bzip2 compression...
Valhalla profile
"defines": "_CARTO_GEOCODING_SUPPORT;_CARTO_ROUTING_SUPPORT;_CARTO_OFFLINE_SUPPORT;_CARTO_CUSTOM_BASEMAP_SUPPORT;_CARTO_PACKAGEMANAGER_SUPPORT;_CARTO_EDITABLE_SUPPORT;_CARTO_WKBT_SUPPORT" }, + "valhalla": { + "defines": "_CARTO_GEOCODING_SUPPORT;_CARTO_VALHALLA_ROUTING_SUPPORT;_CARTO_ROUTING_SUPPORT;_CARTO_OFFLINE_SUPP...
llvm 14: handle deprecated LLVMBuildCall As of llvm 14, LLVMBuildCall is deprecated in favor of LLVMBuildCall2
@@ -1216,7 +1216,12 @@ Workgroup::createAllocaMemcpyForStruct(LLVMModuleRef M, LLVMBuilderRef Builder, args[1] = CARG1; args[2] = Size; - LLVMValueRef call4 = LLVMBuildCall(Builder, MemCpy4, args, 3, ""); +#ifdef LLVM_OLDER_THAN_14_0 + LLVMValueRef Call4 = LLVMBuildCall(Builder, MemCpy4, args, 3, ""); +#else + LLVMType...
Fix build with gcc It fails because gcc infers that the auto argument is a pointer rather than a reference: error: request for member 'Type' in 'ctrDescription', which is of pointer type 'NCatboostOptions::TCtrDescription* const' (maybe you meant to use '->' ?) Note: mandatory check (NEED_CHECK) was skipped
@@ -315,7 +315,7 @@ bool NCatboostOptions::CtrsNeedTargetData(const NCatboostOptions::TCatFeaturePar bool ctrsNeedTargetData = false; catFeatureParams.ForEachCtrDescription( - [&] (const auto& ctrDescription) { + [&] (const NCatboostOptions::TCtrDescription& ctrDescription) { if (NeedTarget(ctrDescription.Type)) { ctrs...
filter: print help if config map checker fails
@@ -402,6 +402,10 @@ int flb_filter_init_all(struct flb_config *config) ret = flb_config_map_properties_check(ins->p->name, &ins->properties, ins->config_map); if (ret == -1) { + if (config->program_name) { + flb_helper("try the command: %s -F %s -h\n", + config->program_name, ins->p->name); + } flb_filter_instance_des...
Use single config option instead of multiple for enabling/configuring fft
@@ -22,9 +22,7 @@ class TinyRocketConfig extends Config( new chipyard.config.AbstractConfig) class FFTRocketConfig extends Config( - new fftgenerator.WithFFTNumPoints(8) ++ - new fftgenerator.WithFFTBaseAddr(0x2000) ++ - new fftgenerator.WithFFTGenerator ++ + new fftgenerator.WithFFTGenerator(baseAddr=0x2000, numPoints...
Image in the readme
@@ -15,6 +15,10 @@ A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with inte * [Can fuzz remote/standalone long-lasting processes](https://github.com/google/honggfuzz/blob/master/docs/AttachingToPid.md) (e.g. network servers like __Apache's httpd__ and __ISC's bind__), though the [persistent fuzz...
Add RAC spec note about SquashFS
@@ -34,8 +34,8 @@ Non-goals for version 1 include: There is the capability (see reserved `TTag`s, below) but no promise to address these in a future RAC version. There might not be a need to, as other designs -such as EROFS ([Extendable Read-Only File -System](https://lkml.org/lkml/2018/5/31/306)) already exist. +such ...
Fix exlv sorting (regression from previous subclass changes)
@@ -164,7 +164,7 @@ LRESULT CALLBACK PhpExtendedListViewWndProc( { HWND headerHandle; - headerHandle = (HWND)DefSubclassProc(hwnd, LVM_GETHEADER, 0, 0); + headerHandle = (HWND)SendMessage(hwnd, LVM_GETHEADER, 0, 0); if (header->hwndFrom == headerHandle) { @@ -352,7 +352,7 @@ LRESULT CALLBACK PhpExtendedListViewWndProc(...
Fix compile on macos 10.13
#import <AVFoundation/AVFoundation.h> #include "os_glfw.h" +#include "util.h" static struct { uint64_t frequency; @@ -65,6 +66,7 @@ void os_request_permission(os_permission permission) { return; } +#if TARGET_OS_IOS || (defined(MAC_OS_X_VERSION_10_14) && __MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14) switch...
docker: website frontend disable ASAN
@@ -28,7 +28,7 @@ WORKDIR /app/kdb ADD . /app/kdb/ RUN mkdir build \ && cd build \ - && cmake -DENABLE_ASAN=ON -DBUILD_FULL=OFF -DBUILD_SHARED=ON \ + && cmake -DBUILD_FULL=OFF -DBUILD_SHARED=ON \ -DBUILD_STATIC=OFF -DBUILD_DOCUMENTATION=OFF \ -DPLUGINS="ALL;-EXPERIMENTAL;-fstab;-ruby;-lua;-python;-xerces;-yamlcpp;file;...
no need to set default return value again
@@ -257,7 +257,6 @@ int cmd_exec( struct reply_t *r, int argc, char **argv ) { value = value->next; } r_printf( r ,"%d announcements started.\n", count ); - rc = 0; goto end; } else if( argc == 2 ) { minutes = 0; @@ -316,38 +315,28 @@ int cmd_exec( struct reply_t *r, int argc, char **argv ) { goto end; } else if( strcm...
notify: address mark review
$: =provider-state =client-state == -+$ base-state-1 ++$ base-state-2 $: notifications=(map uid notification) base-state-0 == [%1 base-state-0] :: +$ state-2 - [%2 base-state-1] + [%2 base-state-2] :: +$ versioned-state $% state-0 :: ++ on-init :_ this - [(~(watch-our pass:io /hark) %hark-store /notes)]~ + :~ (~(watch-...
reverting logging level to all
OS=${1} GITHUB_WORKSPACE=${2} -export BOOST_TEST_LOG_LEVEL=error +export BOOST_TEST_LOG_LEVEL=all if [[ ${OS} == "windows" ]]; then echo "----------------------------------------"
Remove RustThemis wrapper changelog * Remove the CHANGELOG.md since we already have one, common for all libraries and wrappers * Fix link to point on common changelog
@@ -36,7 +36,7 @@ to get a feeling of how Themis can be used. [Wiki]: https://github.com/cossacklabs/themis/wiki [Docs.rs]: https://docs.rs/themis [Documentation Server]: https://docs.cossacklabs.com/products/themis/ -[CHANGELOG]: /src/wrappers/themis/rust/CHANGELOG.md +[CHANGELOG]: /CHANGELOG.md [Examples]: /docs/exam...
hv: vtd: fix a logic error when set iommu page walk coherent Fix a logic error when set iommu page walk coherent. Acked-by: Eddie Dong
@@ -495,7 +495,7 @@ static int32_t dmar_register_hrhd(struct dmar_drhd_rt *dmar_unit) pr_fatal("%s: dmar unit doesn't support Extended Interrupt Mode!", __func__); ret = -ENODEV; } else { - if ((iommu_ecap_c(dmar_unit->ecap) == 0U) && (dmar_unit->drhd->ignore != 0U)) { + if ((iommu_ecap_c(dmar_unit->ecap) == 0U) && (!d...
Add SSL error code updates from
@@ -902,7 +902,7 @@ find themselves unable to migrate their session cache functionality without accessing fields of `mbedtls_ssl_session` should describe their use case on the Mbed TLS mailing list. -### Removal of some SSL error codes +### Changes in the SSL error code space This affects users manually checking for th...
[fabric][tests]remvoe test_005Transaction_0016Free_WalletConfig_WithoutInit
@@ -366,14 +366,6 @@ START_TEST(test_005Transaction_0015DeInit_Txptr_NULL) } END_TEST -START_TEST(test_005Transaction_0016Free_WalletConfig_WithoutInit) -{ - BoatHlfabricNetworkConfig network_config; - fabricWalletConfigFree(network_config); -} -END_TEST - - Suite *make_fabricTransactionTest_suite(void) { /* Create Sui...
sysdeps/linux: implement {set,get}priority
#define NR_getegid 108 #define NR_rt_sigsuspend 130 #define NR_sigaltstack 131 +#define NR_getpriority 140 +#define NR_setpriority 141 #define NR_arch_prctl 158 #define NR_setrlimit 160 #define NR_sys_futex 202 @@ -479,6 +481,22 @@ int sys_listen(int fd, int backlog) { return 0; } +int sys_getpriority(int which, id_t w...
Update plannodes.h's comments about PlanRowMark. The reference here to different physical column numbers in inherited UPDATE/DELETE plans is obsolete as of remove it. Also rework the text about inheritance cases to make it clearer.
@@ -1086,9 +1086,9 @@ typedef enum RowMarkType * When the planner discovers that a relation is the root of an inheritance * tree, it sets isParent true, and adds an additional PlanRowMark to the * list for each child relation (including the target rel itself in its role - * as a child). isParent is also set to true for...
Add workaround for linux virtual console colors init error
@@ -1585,19 +1585,27 @@ int main(int argc, char** argv) { // hasn't typed anything. That way we can mix other timers in our code, // instead of being a slave only to terminal input. // nodelay(stdscr, TRUE); + + if (has_colors()) { // Enable color start_color(); use_default_colors(); - for (int ifg = 0; ifg < Colors_co...
ph: include missing library function
/- *aquarium, spider -/+ libstrand=strand, *strandio, util=ph-util +/+ libstrand=strand, *strandio, util=ph-util, aqua-azimuth =, strand=strand:libstrand |% ++ send-events (pure:m ~) loop :: +++ init-moon ::NOTE real moon always have the same keys + |= [moon=ship fake=?] + ?> ?=(%earl (clan:title moon)) + ?: fake (init...
mdns: Fix alloc issue if TXT has empty value
@@ -778,8 +778,8 @@ static uint16_t _mdns_append_txt_record(uint8_t * packet, uint16_t * index, mdns char * tmp; mdns_txt_linked_item_t * txt = service->txt; while (txt) { - uint8_t txt_data_len = strlen(txt->key) + txt->value_len + 1; - tmp = (char *)malloc(txt_data_len); + uint8_t txt_data_len = strlen(txt->key) + tx...
BugID:17624007:[example]fix log printf error in http2_example_stream.c
@@ -302,7 +302,7 @@ static void on_header(uint32_t stream_id, char *channel_id,int cat,const uint8_t static void on_chunk_recv(uint32_t stream_id, char *channel_id,const uint8_t *data, size_t len,uint8_t flags) { - EXAMPLE_TRACE("~~~~~stream_id = %d, channel_id=%s, data = %s ,len = %d flag = %d\n", stream_id,channel_id...
use whole route when running safety replay from CLI
@@ -4,7 +4,6 @@ import os import sys from panda.tests.safety import libpandasafety_py from panda.tests.safety_replay.helpers import package_can_msg, init_segment -from tools.lib.logreader import LogReader # pylint: disable=import-error # replay a drive to check for safety violations def replay_drive(lr, safety_mode, pa...
Do not warn when receiving consistent DIO
@@ -1613,7 +1613,7 @@ rpl_process_dio(uip_ipaddr_t *from, rpl_dio_t *dio) } } else { if(p->rank == dio->rank) { - LOG_WARN("Received consistent DIO\n"); + LOG_INFO("Received consistent DIO\n"); if(dag->joined) { instance->dio_counter++; }
Ensure at least one command if no dependencies C++Builder's `make.exe` complains if a target has no dependencies (e.g. after variable expansion) and no lines of commands. Ensure there is a blank command line if the dependency list is entirely made of variables.
@@ -388,11 +388,15 @@ PROCESSOR= {- $config{processor} -} build_docs: build_html_docs build_html_docs: $(HTMLDOCS1) $(HTMLDOCS3) $(HTMLDOCS5) $(HTMLDOCS7) - + @ build_generated: $(GENERATED_MANDATORY) + @ build_libs_nodep: $(LIBS) {- join(" ",map { platform->sharedlib_import($_) // () } @{$unified_info{libraries}}) -} ...
[misc] for pretty printing, set indent tab at a json marshaler
@@ -44,6 +44,7 @@ func (c *ConnClient) Close() { func JSON(pb protobuf.Message) string { var w bytes.Buffer var marshaler jsonpb.Marshaler + marshaler.Indent = "\t" err := marshaler.Marshal(&w, pb) if err != nil { return "[marshal fail]"
sdcard_image-rpi : minor bug in use of FATPAYLOAD Double quotation marks were added around FATPAYLOAD to prevent parsing error when FATPAYLOAD contains list of file names
@@ -143,7 +143,7 @@ IMAGE_CMD_rpi-sdimg () { fi fi - if [ -n ${FATPAYLOAD} ] ; then + if [ -n "${FATPAYLOAD}" ] ; then echo "Copying payload into VFAT" for entry in ${FATPAYLOAD} ; do # add the || true to stop aborting on vfat issues like not supporting .~lock files
Fixed compiler warning in CoAP logging
@@ -541,7 +541,7 @@ get_psk_info(struct dtls_context_t *ctx, ks.identity_hint = id; ks.identity_hint_len = id_len; LOG_DBG("got psk_identity_hint: '"); - LOG_DBG_COAP_STRING(id, id_len); + LOG_DBG_COAP_STRING((const char *)id, id_len); LOG_DBG_("'\n"); }
Emitter: Depth will always be 3 for closing over class self.
@@ -948,13 +948,13 @@ find_closed_sym_spot_raw(emit, depth, (sym)->reg_spot) This initializes the current function_block's self field. */ static void close_over_class_self(lily_emit_state *emit, lily_ast *ast) { - uint16_t depth = emit->function_depth; + /* The resulting depth for the backing closure is always the same...
move dependency require into task code to avoid build issues
@@ -49,7 +49,6 @@ require 'securerandom' require 'uri' require 'logger' require 'rake' -require 'deep_merge' # It does not work on Mac OS X. rake -T prints nothing. So I comment this hack out. # NB: server build scripts depend on proper rake -T functioning. @@ -1891,6 +1890,8 @@ namespace "config" do task :load do + re...
Changed rand() to <random> in HalfTest/testError.cpp
#include <iostream> #include <stdlib.h> #include <assert.h> - +#include <random> using namespace std; @@ -21,7 +21,10 @@ namespace { float drand() { - return static_cast<float> (rand()/(RAND_MAX+1.0f)); + static std::default_random_engine generator; + static std::uniform_real_distribution<float> distribution (0.0f, 1.0...
Make sure all packets in window are lost
@@ -458,12 +458,14 @@ static uint64_t compute_pkt_loss_delay(const ngtcp2_rcvry_stat *rcs) { int ngtcp2_rtb_detect_lost_pkt(ngtcp2_rtb *rtb, ngtcp2_frame_chain **pfrc, ngtcp2_rcvry_stat *rcs, ngtcp2_duration pto, ngtcp2_tstamp ts) { - ngtcp2_rtb_entry *ent, *oldest_ent; + ngtcp2_rtb_entry *ent; uint64_t loss_delay; ngt...
rotation perm fix
@@ -95,7 +95,7 @@ SDR SDR_Copy(SDR *original) SDR SDR_PermuteByRotation(SDR *sdr, bool forward) { SDR c = SDR_Copy(sdr); - int shiftToLeftmost = (sizeof(SDR_BLOCK_TYPE)-1); + int shiftToLeftmost = SDR_BLOCK_SIZE-1; if(forward) { for(int i=0; i<SDR_NUM_BLOCKS; i++)
graph-store: turn back on noisy duplicates
|^ =/ [=graph:store mark=(unit mark:store)] (~(got by graphs) resource) - :: TODO: turn back on assertion once issue with 8-10x facts being - :: issued is resolved. Too noisy for now - :: - :: ~| "cannot add duplicate nodes to {<resource>}" - :: ?< (check-for-duplicates graph ~(key by nodes)) - ?: (check-for-duplicates...
[shell] add re-initial check.
@@ -726,6 +726,12 @@ int finsh_system_init(void) rt_err_t result = RT_EOK; rt_thread_t tid; + if(shell) + { + rt_kprintf("finsh shell already init.\n"); + return RT_EOK; + } + #ifdef FINSH_USING_SYMTAB #ifdef __CC_ARM /* ARM C Compiler */ extern const int FSymTab$$Base;
Refactor mkapiref.py to use filename as header file
import re, sys, argparse, os.path class FunctionDoc: - def __init__(self, name, content, domain): + def __init__(self, name, content, domain, filename): self.name = name self.content = content self.domain = domain if self.domain == 'function': self.funcname = re.search(r'(ngtcp2_[^ )]+)\(', self.name).group(1) + self.f...
upstream: adjust upstream connection
/* Upstream TCP connection */ struct flb_upstream_conn { struct mk_event event; - struct flb_thread *thread; + struct flb_coro *coro; /* Socker */ flb_sockfd_t fd; @@ -64,6 +64,9 @@ struct flb_upstream_conn { time_t ts_connect_start; time_t ts_connect_timeout; + /* Event loop */ + struct mk_event_loop *evl; + /* Upstre...
fix: append to bot.log and dump.json instead of overwriting on each run
#include "json-actor.h" -static bool g_first_run = true; // used to delete existent dump files - static int get_log_level(char level[]) { @@ -95,9 +93,6 @@ logconf_setup(struct logconf *config, const char config_file[]) /* SET LOGGER CONFIGS */ if (!IS_EMPTY_STRING(logging->filename)) { - if (true == g_first_run) - con...
Add a coding style section for Exceptions
@@ -154,6 +154,8 @@ C++ code - If required by a platform (e.g, Microsoft COM), use the appropriate ref-counted type, but do not expose those types to platform agnostic code, prefer to use an abstraction. + - Exceptions + - All [user-declared destructors](https://en.cppreference.com/w/cpp/language/destructor) must be ma...
SOVERSION bump to version 4.1.12
@@ -38,7 +38,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 11) +set(SYSREPO_MICRO_S...
tests: add libgpgme to valgrind suppressions
obj:*libgcrypt* ... } +{ + <insert_a_suppression_name_here> + Memcheck:Leak + match-leak-kinds: all + ... + obj:*libgpgme* + ... +} { <insert_a_suppression_name_here> Memcheck:Cond
Added missing "windowopen" value for Danfoss TRV
@@ -1789,6 +1789,7 @@ Note: It does not clear or delete previous weekly schedule programming configura <!-- Danfoss manufacturer specific --> <attribute-set id="0x4000" description="Danfoss specific" mfcode="0x1246"> <attribute id="0x4000" name="eTRV Open Window Detection" type="enum8" default="0x00" access="r" require...
Validate parser parameter to XML_SetReturnNSTriplet
@@ -1308,6 +1308,8 @@ XML_UseForeignDTD(XML_Parser parser, XML_Bool useDTD) void XMLCALL XML_SetReturnNSTriplet(XML_Parser parser, int do_nst) { + if (parser == NULL) + return; /* block after XML_Parse()/XML_ParseBuffer() has been called */ if (ps_parsing == XML_PARSING || ps_parsing == XML_SUSPENDED) return;
mqtt: reenable outbox unit tests for esp32s2
@@ -37,7 +37,6 @@ TEST_CASE("mqtt init and deinit", "[mqtt][leaks=0]") esp_mqtt_client_destroy(client); } -#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2) static const char* this_bin_addr(void) { spi_flash_mmap_handle_t out_handle; @@ -69,4 +68,3 @@ TEST_CASE("mqtt enqueue and destroy outbox", "[mqtt][leaks=0]") esp_mqtt_...
bin: use engine return status code
@@ -1065,9 +1065,9 @@ int main(int argc, char **argv) flb_output_prepare(); ret = flb_engine_start(config); - if (ret == -1) { + if (ret == -1 && config) { flb_engine_shutdown(config); } - return 0; + return ret; }
SOVERSION bump to version 2.25.0
@@ -65,8 +65,8 @@ set(LIBYANG_MICRO_VERSION 267) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) -set(LIBYANG_MINOR_SOVERSION 24) -set(LIBYANG_MICRO_SOVERSION 26) +set(LIBYANG_MINOR_SOVERSION 25) +set(LIBYANG_MIC...
Fix that it is --enable-rpath, for
20 April 2020: Wouter - - Fix #222: --with-rpath, fails to rpath python lib. + - Fix #222: --enable-rpath, fails to rpath python lib. 17 April 2020: George - Add SNI support on more TLS connections (fixes #193).
ensured initialization of success variable
@@ -746,7 +746,7 @@ perform_multi_resource_read_op(lwm2m_object_t *object, } /* ---------- Read operation ------------- */ } else if(ctx->operation == LWM2M_OP_READ) { - lwm2m_status_t success; + lwm2m_status_t success = 0; uint8_t lv; lv = ctx->level;
configure with opari
@@ -135,6 +135,7 @@ export CONFIG_ARCH=%{machine} -pdt=$PDTOOLKIT_DIR \ -useropt="%optflags -I$MPI_INCLUDE_DIR -I$PWD/include -fno-strict-aliasing" \ -openmp \ + -opari \ -extrashlibopts="-fPIC -L$MPI_LIB_DIR -lmpi -L/tmp/%{install_path}/lib -L/tmp/%{install_path}/%{machine}/lib" make install
Add parallel loop metadata on LLVM 12 onward and not before on load instructions inside conditions
@@ -468,23 +468,25 @@ ParallelRegion::Verify() * !1 distinct !{} * !2 distinct !{} * - * Parallel loop metadata prior to LLVM 13 on memory reads also implies that + * Parallel loop metadata prior to LLVM 12 on memory reads also implies that * if-conversion (i.e., speculative execution within a loop iteration) * is safe...
Update default paths for global configuration (environment variable, absolute and current).
@@ -43,17 +43,39 @@ int configuration_initialize(const char * reader, const char * path, void * allo { static const char configuration_path[] = CONFIGURATION_PATH; - #if defined(CONFIGURATION_INSTALL_PATH) - static const char configuration_default_path[] = CONFIGURATION_INSTALL_PATH; - #else + const char * env_path = e...
Return error on CRC mismatch during recovery
@@ -90,20 +90,12 @@ static void ocf_metadata_check_crc_skip(ocf_pipeline_t pipeline, crc = ocf_metadata_raw_checksum(cache, segment->raw); superblock_crc = ocf_metadata_superblock_get_checksum(segment->superblock, segment_id); - if (crc != superblock_crc) { - /* Checksum does not match */ - if (!clean_shutdown) { - ocf...
[ya] NO_GPL says no warnings if license check fails via
@@ -52,14 +52,14 @@ def validate_mf(mf, module_type): if bad_mfs: raise BadMfError("Can't validate licenses for {}: no 'licenses' info for dependency(es) {}".format(path,', '.join(bad_mfs))) - bad_contribs = [dep['path'] + '/ya.make' for dep in mf['dependencies'] if dep['path'].startswith('contrib/') and not dep['licen...
Don't return NULL from mat4_invert;
@@ -397,7 +397,7 @@ MAF mat4 mat4_invert(mat4 m) { d = (b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06), invDet; - if (!d) { return NULL; } + if (!d) { return m; } invDet = 1 / d; m[0] = (a11 * b11 - a12 * b10 + a13 * b09) * invDet;
Make Font texture rgba16f; Sampling from rg11b10f does not appear to work on mobile.
@@ -388,7 +388,7 @@ static void lovrFontExpandTexture(Font* font) { // Could look into using glClearTexImage when supported to make this more efficient. static void lovrFontCreateTexture(Font* font) { lovrRelease(font->texture, lovrTextureDestroy); - Image* image = lovrImageCreate(font->atlas.width, font->atlas.height,...
landscape: fixed remote content expand button
@@ -148,8 +148,9 @@ export default class RemoteContent extends PureComponent<RemoteContentProps, Rem <Fragment> {renderUrl ? this.wrapInLink(this.state.embed && this.state.embed.title ? this.state.embed.title : url) : null} {this.state.embed !== 'error' && this.state.embed?.html && !unfold ? <Button + display='inline-f...
GCM: record limit counter gets reset on AAD changes It shouldn't be. This moves the reset to the init function instead and only does the reset on a key change.
@@ -25,6 +25,10 @@ static int gcm_cipher_internal(PROV_GCM_CTX *ctx, unsigned char *out, size_t *padlen, const unsigned char *in, size_t len); +/* + * Called from EVP_CipherInit when there is currently no context via + * the new_ctx() function + */ void ossl_gcm_initctx(void *provctx, PROV_GCM_CTX *ctx, size_t keybits,...
tools: Be more helpful to MSYS32 users with package installation
@@ -43,27 +43,6 @@ if __name__ == "__main__": default=os.path.join(idf_path, 'requirements.txt')) args = parser.parse_args() - # Special case for MINGW32 Python, needs some packages - # via MSYS2 not via pip or system breaks... - if sys.platform == "win32" and \ - os.environ.get("MSYSTEM", None) == "MINGW32" and \ - "/...
readme: explain meson options, caution out-of-tree sysdeps
![Continuous Integration](https://github.com/managarm/mlibc/workflows/Continuous%20Integration/badge.svg) **Official Discord server:** https://discord.gg/7WB6Ur3 +**AUR package** (provides `mlibc-gcc`): https://aur.archlinux.org/packages/mlibc ## Design of the library | `sysdeps/` | OS-specific headers and code.<br>`sy...
[fabric][tests]fix test case error aitos-io#1356
@@ -327,14 +327,19 @@ START_TEST(test_005Transaction_0013TxInvoke_Failure_Walleturl_Err) } END_TEST -START_TEST(test_005Transaction_0014TxInvoke_Failure_WalletHostName_Err) +START_TEST(test_005Transaction_0014TxInvoke_Success_WalletHostName_Err) { BSINT32 rtnVal; BoatHlfabricTx tx_ptr; BoatHlfabricWallet *g_fabric_wall...
data_flash: increase buffer, always write a full page
#define PAGE_SIZE SDCARD_PAGE_SIZE #endif -#define BUFFER_SIZE (16 * PAGE_SIZE) +#define BUFFER_SIZE 8192 typedef enum { STATE_DETECT, @@ -268,7 +268,7 @@ data_flash_result_t data_flash_update() { write_size = to_write; } - if (!m25p16_page_program(offset, write_buffer + written_offset, write_size)) { + if (!m25p16_pag...
Fixed occasional 'internal error: 31' when running multiple instances of YARA at the same time
@@ -31,6 +31,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #if !defined(_WIN32) && !defined(__CYGWIN__) #include <errno.h> +#include <stdio.h> +#include <unistd.h> #endif #if defined(__FreeBSD__) @@ -103,12 +105,18 @@ int semaphore_init( // from the name. More info at: // // http://stackoverflow.com...
MARS: 2 new classes for CARRA/CERRA
16 dt Data Targeting System 17 la ALADIN-LAEF 18 yt YOTC -19 mc MACC +19 mc Copernicus Atmosphere Monitoring Service (CAMS, previously MACC) 20 pe Permanent experiments 21 em ERA-CLIM model integration for the 20th-century (ERA-20CM) 22 e2 ERA-CLIM reanalysis of the 20th-century using surface observations only (ERA-20C...
Docs: changed path to download netperf
@@ -144,7 +144,7 @@ sdw3-1</codeblock> <pd>Specifies that the <codeph>netperf</codeph> binary should be used to perform the network test instead of the Greenplum network test. To use this option, you must download <codeph>netperf</codeph> from <xref - href="http://www.netperf.org" format="html" scope="external"/> and +...
AudioDxe: Fix another integer truncation
@@ -246,7 +246,7 @@ HdaCodecInfoGetWidgets( // Create variables. HDA_CODEC_INFO_PRIVATE_DATA *HdaPrivateData; HDA_WIDGET_DEV *HdaWidgetDev; - UINT8 AmpInCount; + UINT32 AmpInCount; HDA_WIDGET *HdaWidgets; UINTN HdaWidgetsCount;
Support rendering %exp
@@ -11,6 +11,8 @@ export class Message extends Component { return this.renderLin(speech.lin.msg, speech.lin.pat); } else if (_.has(speech, 'url')) { return this.renderUrl(speech.url); + } else if (_.has(speech, 'exp')) { + return this.renderExp(speech.exp.exp, speech.exp.res); } else if (_.has(speech, 'ire')) { return ...
Use exit code 1 on error in redis-cli On error, redis-cli was returning `REDIS_ERR` on some cases by mistake. `REDIS_ERR` is `-1` which becomes `255` as exit code. This commit changes it and returns `1` on errors to be consistent.
@@ -2758,7 +2758,7 @@ static int noninteractive(int argc, char **argv) { retval = issueCommand(argc, sds_args); sdsfreesplitres(sds_args, argc); - return retval; + return retval == REDIS_OK ? 0 : 1; } /*------------------------------------------------------------------------------ @@ -2845,7 +2845,7 @@ static int evalM...
prepared parameter.c for UNROLL values, that are not a power of two
@@ -497,13 +497,13 @@ void blas_set_parameter(void){ if (xgemm_p == 0) xgemm_p = 64; #endif - sgemm_p = (sgemm_p + SGEMM_UNROLL_M - 1) & ~(SGEMM_UNROLL_M - 1); - dgemm_p = (dgemm_p + DGEMM_UNROLL_M - 1) & ~(DGEMM_UNROLL_M - 1); - cgemm_p = (cgemm_p + CGEMM_UNROLL_M - 1) & ~(CGEMM_UNROLL_M - 1); - zgemm_p = (zgemm_p + Z...
out_cloudwatch_logs: fix memory leak when using cpu or mem inputs (fluent#3145)
@@ -770,6 +770,10 @@ struct msgpack_object pack_emf_payload(struct flb_cloudwatch *ctx, msgpack_unpack(mp_sbuf.data, mp_sbuf.size, NULL, &mempool, &deserialized_emf_object); + /* free allocated memory */ + msgpack_zone_destroy(&mempool); + msgpack_sbuffer_destroy(&mp_sbuf); + return deserialized_emf_object; } @@ -801,6...
Add the ability to configure recv_max_early_data via s_server
@@ -748,8 +748,8 @@ typedef enum OPTION_choice { OPT_ID_PREFIX, OPT_SERVERNAME, OPT_SERVERNAME_FATAL, OPT_CERT2, OPT_KEY2, OPT_NEXTPROTONEG, OPT_ALPN, OPT_SRTP_PROFILES, OPT_KEYMATEXPORT, OPT_KEYMATEXPORTLEN, - OPT_KEYLOG_FILE, OPT_MAX_EARLY, OPT_EARLY_DATA, OPT_S_NUM_TICKETS, - OPT_ANTI_REPLAY, OPT_NO_ANTI_REPLAY, + O...
Fix comment in control message serialization Refs
@@ -69,7 +69,7 @@ write_position(uint8_t *buf, const struct sc_position *position) { buffer_write16be(&buf[10], position->screen_size.height); } -// write length (2 bytes) + string (non nul-terminated) +// write length (4 bytes) + string (non null-terminated) static size_t write_string(const char *utf8, size_t max_len,...
CMSIS Driver: updated WiFi Interface API version
@@ -918,7 +918,7 @@ and 8-bit Java bytecodes in Jazelle state. <file category="header" name="CMSIS/Driver/Include/Driver_USBH.h" /> </files> </api> - <api Cclass="CMSIS Driver" Cgroup="WiFi" Capiversion="1.0.0" exclusive="0"> + <api Cclass="CMSIS Driver" Cgroup="WiFi" Capiversion="1.1.0" exclusive="0"> <description>WiF...
BugID:17646749:[build-rules] fix listing FEATURE_SRC in switches
include $(CURDIR)/src/tools/internal_make_funcs.mk -SWITCH_VARS := $(shell grep -o 'FEATURE_[_A-Z0-9]*' $(TOP_DIR)/Config.in $(TOP_DIR)/make.settings|cut -d: -f2|uniq) +SWITCH_VARS := $(shell grep -o 'FEATURE_[_A-Z0-9]*' $(TOP_DIR)/Config.in $(TOP_DIR)/make.settings|grep -v FEATURE_SRCPATH|cut -d: -f2|uniq) SWITCH_VARS...
runtime: memory ordering fixes to scheduler 1. queue pointers shared with the iokernel can be written with relaxed consistency. 2. queue pointer interactions with thread_ready() ready acquire and release semantics. Fix any queue pointer memory order inconsistencies in the runtime scheduler.
@@ -145,12 +145,12 @@ static bool steal_work(struct kthread *l, struct kthread *r) rq_tail = r->rq_tail; for (i = 0; i < avail; i++) l->rq[i] = r->rq[rq_tail++ % RUNTIME_RQ_SIZE]; - l->rq_head = avail; - l->q_ptrs->rq_head += avail; store_release(&r->rq_tail, rq_tail); - store_release(&r->q_ptrs->rq_tail, r->q_ptrs->rq...
Fix test_ignore_section_utf16_be() for builds
@@ -4455,7 +4455,7 @@ START_TEST(test_ignore_section_utf16_be) /* <d><e>&en;</e></d> */ "\0<\0d\0>\0<\0e\0>\0&\0e\0n\0;\0<\0/\0e\0>\0<\0/\0d\0>"; const XML_Char *expected = - "<![IGNORE[<!ELEMENT e (#PCDATA)*>]]>\n&en;"; + XCS("<![IGNORE[<!ELEMENT e (#PCDATA)*>]]>\n&en;"); CharData storage; CharData_Init(&storage);
* Added typescript generic to JBDOC in node binding
@@ -50,7 +50,7 @@ declare namespace ejdb2_node { /** * EJDB document. */ - interface JBDOC { + interface JBDOC<T extends object = { [key: string]: any }> { /** * Document identifier */ @@ -59,7 +59,7 @@ declare namespace ejdb2_node { /** * Document JSON object */ - json: any; + json: T; /** * String represen @@ -67,8 +...
py/misc.h: Add MP_STATIC_ASSERT macro to do static assertions.
@@ -50,6 +50,9 @@ typedef unsigned int uint; #define _MP_STRINGIFY(x) #x #define MP_STRINGIFY(x) _MP_STRINGIFY(x) +// Static assertion macro +#define MP_STATIC_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)])) + /** memory allocation ******************************************/ // TODO make a lazy m_renew that can incr...
BugID:16906212:Free memory for OTA on ESP8266 1)Kill tasks:linkkit,pmT,event_task:Free memory for OTA download on ESP8266 2)To avoid build failure for the AWSS notify of otaapp
@@ -8,10 +8,11 @@ $(NAME)_COMPONENTS += network/netmgr \ middleware/uagent/uota \ utility/cjson +ifeq ($(COMPILER),iar) +$(NAME)_COMPONENTS += feature.linkkit-gateway-noawss +else $(NAME)_COMPONENTS += feature.linkkit-gateway - -$(NAME)_INCLUDES += \ - ../../../middleware/uagent/uota/src/service +endif GLOBAL_CFLAGS +=...
geneve: fix options len parsing as 32-bits words See 3.4. second paragraph Opt Len Type: fix
@@ -171,14 +171,15 @@ vnet_set_geneve_version (geneve_header_t * h, u8 version) static inline u8 vnet_get_geneve_options_len (geneve_header_t * h) { - return ((h->first_word & GENEVE_OPTLEN_MASK) >> GENEVE_OPTLEN_SHIFT); + return ((h->first_word & GENEVE_OPTLEN_MASK) >> GENEVE_OPTLEN_SHIFT) << 2; } static inline void v...
xpath BUGFIX nested extension data nodes node check
@@ -5688,9 +5688,9 @@ moveto_node_check(const struct lyd_node *node, enum lyxp_node_type node_type, co /* module check */ if (moveto_mod) { - if (!(node->flags & LYD_EXT) && (node->schema->module != moveto_mod)) { + if ((set->ctx == LYD_CTX(node)) && (node->schema->module != moveto_mod)) { return LY_ENOT; - } else if (...
iokernel: initialize tx mbuf private data the memory backing the tx mbufs does not seem to be guaranteed to be empty, leading to occasional segfaults when the iokernel starts.
@@ -285,6 +285,18 @@ full: return true; } +/* + * Zero out private data for a packet + */ + +static void tx_pktmbuf_priv_init(struct rte_mempool *mp, void *opaque, + void *obj, unsigned obj_idx) +{ + struct rte_mbuf *buf = obj; + struct tx_pktmbuf_priv *data = tx_pktmbuf_get_priv(buf); + memset(data, 0, sizeof(*data));...
docs: add FISCO BCOS official website to the list
+ [PlatON Enterprise](https://github.com/PlatONEnterprise/) + [Hyperledger Fabric](https://www.hyperledger.org/use/fabric) + [Hyperledger Fabric Docs](https://hyperledger-fabric.readthedocs.io/) ++ [FISCO BCOS](http://fisco-bcos.org/) # Supported Module List
Fixes asset_tests failure on unique due to dash in regex
@@ -28,7 +28,7 @@ static const auto MAX_NAME_LENGTH = 30; // min lengths are expressed by quantifiers static const std::regex ROOT_NAME_CHARACTERS("^[A-Z0-9._]{3,}$"); static const std::regex SUB_NAME_CHARACTERS("^[A-Z0-9._]+$"); -static const std::regex UNIQUE_TAG_CHARACTERS("^[A-Za-z0-9@$%&*()[\\]{}<>\\-_.;?\\\\:]+$"...
improve GenIndexes
using System; using System.Collections.Concurrent; +using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; @@ -38,11 +39,13 @@ namespace Miningcore.Blockchain.Ergo { height = Math.Min(NIncreasementHeightMax, height); - if(height < IncreaseStart) + switch (height) + { + case < Increase...
Make sure that proxying errors are sent with connection:close in the http1 frontend
@@ -443,7 +443,7 @@ static h2o_httpclient_body_cb on_head(h2o_httpclient_t *client, const char *errs h2o_start_response(req, &generator); h2o_send(req, NULL, 0, H2O_SEND_STATE_ERROR); } else { - h2o_send_error_502(req, "Gateway Error", errstr, 0); + h2o_send_error_502(req, "Gateway Error", errstr, H2O_SEND_ERROR_HTTP1_...
Fixed hud width not applying
@@ -503,6 +503,8 @@ static struct swapchain_data *new_swapchain_data(VkSwapchainKHR swapchain, struct swapchain_data *data = new swapchain_data(); data->device = device_data; data->swapchain = swapchain; + if (instance_data->params.font_size > 0 && instance_data->params.width == 280) + instance_data->params.width = hud...
nimble/ll: Do not hand up data PDU with invalid CRC to LL It seems pointless to hand up data PDU with invalid CRC to LL since the only thing LL does with such packets is to throw them away. This saves us also an unnecessary rxpdu allocation.
@@ -3452,9 +3452,8 @@ ble_ll_conn_rx_data_pdu(struct os_mbuf *rxpdu, struct ble_mbuf_hdr *hdr) uint16_t acl_hdr; struct ble_ll_conn_sm *connsm; - if (!BLE_MBUF_HDR_CRC_OK(hdr)) { - goto conn_rx_data_pdu_end; - } + /* Packets with invalid CRC are not sent to LL */ + BLE_LL_ASSERT(BLE_MBUF_HDR_CRC_OK(hdr)); /* XXX: there...
[numerics] use calloc before NM_gemv to avoid hazardous behavior
#include "SolverOptions.h" // for SICONOS_DPARAM_TOL /* #define OUTPUT_DEBUG *\/ */ - +/* #define DEBUG_MESSAGES */ +/* #define DEBUG_STDOUT */ #include "debug.h" // for DEBUG_EXPR, DEBUG_P... @@ -269,9 +270,8 @@ int gfc3d_reformulation_local_problem(GlobalFrictionContactProblem* problem, Fri cblas_dcopy_msan(m, proble...
NSH ls command: if node is a symobolic link, use readlink() to get and the display the target of the symblic link.
@@ -146,7 +146,9 @@ static int ls_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath, FAR struct dirent *entryp, FAR void *pvarg) { unsigned int lsflags = (unsigned int)((uintptr_t)pvarg); +#ifdef CONFIG_PSEUDOFS_SOFTLINKS bool isdir = false; +#endif int ret; /* Check if any options will require that we stat ...
sh_malloc & sh_free prototype change to match POSIX CLA: trivial
@@ -52,8 +52,8 @@ static CRYPTO_RWLOCK *sec_malloc_lock = NULL; * These are the functions that must be implemented by a secure heap (sh). */ static int sh_init(size_t size, int minsize); -static char *sh_malloc(size_t size); -static void sh_free(char *ptr); +static void *sh_malloc(size_t size); +static void sh_free(voi...
sh2 = added NA image numbers 0x0000012C, 0x00000070, 0x00000136, 0x000000C0, 0x000000C6, 0x0000014C, 0x00000080 Images that weren't being scaled to fullscreen in the NA version of the game.
@@ -555,7 +555,8 @@ void Init() 0x000000A4, 0x00000038, 0x00000034, 0x00000040, 0x00000044, 0x000000AA, 0x000000AC, 0x000000B2, 0x000000BC, 0x000000AE, 0x000000CC, 0x00000170, 0x00000174, 0x00000172, 0x00000176, 0x00000184, 0x00000186, 0x00000178, 0x00000188, 0x0000018A, 0x0000018C, 0x0000018E, 0x00000194, 0x0000017A, ...
CI/CD: work around ra-tls parallel compilation issue
@@ -25,6 +25,7 @@ jobs: rune_test=$(docker run -itd --privileged --rm --net host --device /dev/sgx/enclave --device /dev/sgx/provision -v $GITHUB_WORKSPACE:/root/inclavare-containers rune-test:${{ matrix.tag }}); echo "rune_test=$rune_test" >> $GITHUB_ENV + # ra-tls is buggy on parallel compilation. Always use -j1. - n...
Fix weak key usage
local typedecl = {} -local names = setmetatable({}, {__mode = 'v'}) +local names = setmetatable({}, {__mode = 'k'}) function typedecl.declare(module, modname, typename, constructors) module[typename] = {}