message
stringlengths
6
474
diff
stringlengths
8
5.22k
Slightly better location for stopping AHRS.
@@ -164,6 +164,7 @@ func sensorAttitudeSender() { ) log.Println("AHRS Info: initializing new simple AHRS") s = ahrs.InitializeSimple(fmt.Sprintf("/var/log/sensors_%s.csv", time.Now().Format("20060102_150405"))) + defer s.Stop() m = ahrs.NewMeasurement() cage = make(chan(bool)) @@ -315,9 +316,7 @@ func sensorAttitudeSen...
Add device name finder query
@@ -61,3 +61,8 @@ findSharedMemoryFrame(NodeId,DeviceId) :- findRanges(NodeName,SharedName,NodeRange,SharedRange), findRanges(DevName,SharedName,DeviceRange,SharedRange), printSharedRanges(NodeRange,SharedRange,DeviceRange). + +findDeviceId(NodeId,Addr) :- + SrcName = name(NodeId,Addr), + resolve(SrcName,name(DeviceId,...
GtkFileChooser 1: replace GtkFileSelection (save dir listing) GtkFileSelection = GTK1
@@ -91,29 +91,17 @@ change_filespec (gpointer data) static void -destroy_save_directory_listing (GtkWidget * widget, gftp_save_dir_struct * str) +dosave_directory_listing (const char *filename, gftp_save_dir_struct * str) { - gtk_widget_destroy (str->filew); - g_free (str); -} - - -static void -dosave_directory_listing...
[MUSL] Remove locks in freeaddrinfo this avoid locking during fork
@@ -10,7 +10,7 @@ void freeaddrinfo(struct addrinfo *p) for (cnt=1; p->ai_next; cnt++, p=p->ai_next); struct aibuf *b = (void *)((char *)p - offsetof(struct aibuf, ai)); b -= b->slot; - LOCK(b->lock); + // LOCK(b->lock); if (!(b->ref -= cnt)) free(b); - else UNLOCK(b->lock); + // else UNLOCK(b->lock); }
HLS: Increasing the FIFO depth to 32 as experiment
@@ -312,9 +312,9 @@ static void __do_the_work(snap_membus_t din_gmem[MEMORY_LINES], t1_fifo_t t1_fifo; t2_fifo_t t2_fifo; t3_fifo_t t3_fifo; -#pragma HLS stream variable=t1_fifo depth=4 -#pragma HLS stream variable=t2_fifo depth=4 -#pragma HLS stream variable=t3_fifo depth=4 +#pragma HLS stream variable=t1_fifo depth=3...
makefile support for tensorflow
@@ -29,6 +29,7 @@ UBSAN?=0 FFTWTHREADS?=1 SCALAPACK?=0 ISMRMRD?=0 +TENSORFLOW?=0 NOEXEC_STACK?=0 PARALLEL?=0 PARALLEL_NJOBS?= @@ -141,6 +142,8 @@ endif CUDA_BASE ?= /usr/ CUDA_LIB ?= lib +# tensorflow +TENSORFLOW_BASE ?= /usr/local/ # acml @@ -149,6 +152,7 @@ ACML_BASE ?= /usr/local/acml/acml4.4.0/gfortran64_mp/ # mkl ...
Do not trigger initial pktns PTO probe if no ack-eliciting packet is left
@@ -10786,11 +10786,11 @@ static ngtcp2_pktns *conn_get_earliest_pktns(ngtcp2_conn *conn, ngtcp2_tstamp *pts, const ngtcp2_tstamp *times) { ngtcp2_pktns *ns[] = {conn->in_pktns, conn->hs_pktns, &conn->pktns}; - ngtcp2_pktns *res = ns[0]; + ngtcp2_pktns *res = NULL; size_t i; - ngtcp2_tstamp earliest_ts = times[NGTCP2_P...
mix: fix wrong outdated message printed for Mix_OpenAudioDevice
@@ -28,7 +28,7 @@ package mix //#if !(SDL_MIXER_VERSION_ATLEAST(2,0,2)) // //#if defined(WARN_OUTDATED) -//#pragma message("Mix_OpenAudioDevice is not supported before SDL 2.0.9") +//#pragma message("Mix_OpenAudioDevice is not supported before SDL_mixer 2.0.2") //#endif // //static inline int Mix_OpenAudioDevice(int fr...
Fix chip/imxrt_enc.c:950:27: error: use of logical '&&' with constant operand
@@ -951,7 +951,7 @@ static int imxrt_setup(struct qe_lowerhalf_s *lower) imxrt_enc_putreg16(priv, IMXRT_ENC_TST_OFFSET, regval); #endif - if ((config->init_flags && XIE_SHIFT) == 1) + if (((config->init_flags >> XIE_SHIFT) & 1) != 0) { ret = irq_attach(config->irq, imxrt_enc_index, priv); if (ret < 0) @@ -1011,10 +1011...
bump numpy to v1.13.1
@@ -22,7 +22,7 @@ Requires: openblas-%{compiler_family}%{PROJ_DELIM} %define PNAME %(echo %{pname} | tr [a-z] [A-Z]) Name: python-%{pname}-%{compiler_family}%{PROJ_DELIM} -Version: 1.12.1 +Version: 1.13.1 Release: 1%{?dist} Url: http://sourceforge.net/projects/numpy Summary: NumPy array processing for numbers, strings,...
build: bump to v1.9.6
@@ -4,7 +4,7 @@ project(fluent-bit) # Fluent Bit Version set(FLB_VERSION_MAJOR 1) set(FLB_VERSION_MINOR 9) -set(FLB_VERSION_PATCH 5) +set(FLB_VERSION_PATCH 6) set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}") set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Updated man page ms specifier.
@@ -772,6 +772,10 @@ If a timestamp is given in microseconds, must be used as .I time-format +or +.I +%* +if the timestamp is given in milliseconds. .IP "date-format" The .I date-format @@ -787,6 +791,10 @@ If a timestamp is given in microseconds, must be used as .I date-format +or +.I +%* +if the timestamp is given in...
Update signiture algorithm handling Rename local variables and to simplify things use static_assert to determine if the default signiture algorithms are not fit into the SSL handshake structure.
@@ -1628,10 +1628,10 @@ read_record_header: * Try to fall back to default hash SHA1 if the client * hasn't provided any preferred signature-hash combinations. */ - if( sig_hash_alg_ext_present == 0 ) + if( ! sig_hash_alg_ext_present ) { - uint16_t *set = ssl->handshake->received_sig_algs; - const uint16_t sig_algs[] = ...
ssse3: silence MSVC warning in simde_mm_abs_epi32
@@ -122,7 +122,14 @@ simde_mm_abs_epi32 (simde__m128i a) { SIMDE__VECTORIZE for (size_t i = 0 ; i < (sizeof(r_.i32) / sizeof(r_.i32[0])) ; i++) { + #if defined(_MSC_VER) + HEDLEY_DIAGNOSTIC_PUSH + #pragma warning(disable:4146) + #endif r_.u32[i] = (a_.i32[i] < 0) ? (- HEDLEY_STATIC_CAST(uint32_t, a_.i32[i])) : HEDLEY_S...
add matekf405 to targets
} ] }, + { + "name": "matekf405", + "configurations": [ + { + "name": "brushless.serial", + "defines": { + "BRUSHLESS_TARGET": "", + "RX_UNIFIED_SERIAL": "" + } + } + ] + }, { "name": "crazybee_f4", "configurations": [
Travis: temporary decrease wait time for debug
@@ -90,7 +90,7 @@ script: #TODO: change this to run specs in auto mode and collect results - | if [[ -z $SKIP_TESTS ]]; then - travis_wait 45 $TRAVIS_BUILD_DIR/.ci/safe_run.sh $TRAVIS_BUILD_DIR/.ci/targets/$RHO_TARGET/$RHO_RUNNER_SCRIPT; + travis_wait 20 $TRAVIS_BUILD_DIR/.ci/safe_run.sh $TRAVIS_BUILD_DIR/.ci/targets/$...
Fix comment in procarray.c The description of GlobalVisDataRels was missing, GlobalVisCatalogRels being mentioned instead. Author: Jim Nasby Discussion:
@@ -146,7 +146,7 @@ typedef struct ProcArrayStruct * I.e. the difference to GlobalVisSharedRels is that * snapshot in other databases are ignored. * - * 3) GlobalVisCatalogRels, which only considers an XID's + * 3) GlobalVisDataRels, which only considers an XID's * effects visible-to-everyone if neither snapshots in th...
defines: add undef for boards without buzzer
#undef SOFTSPI_4WIRE #endif +#if defined(BUZZER_ENABLE) && !defined(BUZZER_PIN) +#undef BUZZER_ENABLE +#endif + #ifdef BUZZER_INVERT #define PIN_ON(port, pin) GPIO_ResetBits(port, pin) #define PIN_OFF(port, pin) GPIO_SetBits(port, pin)
fix assertion for huge blocks
@@ -783,7 +783,7 @@ static mi_page_t* mi_large_huge_page_alloc(mi_heap_t* heap, size_t size) { mi_page_queue_t* pq = (is_huge ? NULL : mi_page_queue(heap, block_size)); mi_page_t* page = mi_page_fresh_alloc(heap, pq, block_size); if (page != NULL) { - const size_t bsize = mi_page_usable_block_size(page); + const size_t...
examples: fix endpoint for sidecar container
@@ -3,19 +3,19 @@ set -eu REMOTE_HOST=${REMOTE_HOST:-127.0.0.1} -if command -v http; then +if command -v http &> /dev/null ; then http -v "$REMOTE_HOST":2020/api/v1/trace/dummy.0 output=stdout prefix=trace. params:='{"format":"json"}' -elif command -v curl; then +elif command -v curl &> /dev/null ; then curl --header '...
component/bt: Some timer oneshot will timeout twice Find when BQB
@@ -242,23 +242,6 @@ void btu_task_thread_handler(void *arg) case SIG_BTU_ONESHOT_ALARM: { TIMER_LIST_ENT *p_tle = (TIMER_LIST_ENT *)e.par; btu_general_alarm_process(p_tle); - - switch (p_tle->event) { -#if (defined(BLE_INCLUDED) && BLE_INCLUDED == TRUE) - case BTU_TTYPE_BLE_RANDOM_ADDR: - btm_ble_timeout(p_tle); - bre...
doc: edit RDT_ENABLED tooltip
@@ -290,9 +290,8 @@ and no more than 512.</xs:documentation> <xs:sequence> <xs:element name="RDT_ENABLED" type="Boolean" default="n"> <xs:annotation acrn:title="Intel Resource Director Tech"> - <xs:documentation>Enable Intel Resource Director Technology (RDT). If -the board hardware does not support -RDT, setting this ...
[Cita][#1193]update cita2c.py
# limitations under the License. -# This python script generates FISCOBCOS's C language interface function from contract ABI (solidity). +# This python script generates Ethereum's C language interface function from contract ABI (solidity). # Not all contract ABI can be converted to C interface because C is lack of obje...
profile: absolute-positioning fix fixes urbit/landscape#444
@@ -165,7 +165,7 @@ export function Profile(props: any): ReactElement { const ViewInterface = () => { return ( <Center p={[0, 4]} height='100%' width='100%'> - <Box ref={anchorRef} maxWidth='600px' width='100%'> + <Box ref={anchorRef} maxWidth='600px' width='100%' position='relative'> <ViewProfile api={props.api} nacke...
fix floating layout resize
@@ -1463,7 +1463,7 @@ enternotify(XEvent *e) if ((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root) return; c = wintoclient(ev->window); - if (c && selmon->sel && selmon->sel->isfloating && c != selmon->sel && + if (c && selmon->sel && ( selmon->sel->isfloating || NULL == selmon->lt[selmo...
Encoding with packingType=grid_ccsds via codes_grib_util_set_spec
@@ -1429,7 +1429,7 @@ grib_handle* grib_util_set_spec2(grib_handle* h, * Reason 1: It is not available in GRIB1 and so we have to wait until we change edition * Reason 2: It has to be done AFTER we set the data values */ - if (strcmp(input_packing_type, "grid_ccsds") && !strcmp(input_packing_type, "grid_simple")) + if ...
http_server: metrics: add destructor to prevent leak
pthread_key_t hs_metrics_key; +static struct mk_list *hs_metrics_key_create() +{ + struct mk_list *metrics_list = NULL; + + metrics_list = flb_malloc(sizeof(struct mk_list)); + if (metrics_list == NULL) { + flb_errno(); + return NULL; + } + mk_list_init(metrics_list); + pthread_setspecific(hs_metrics_key, metrics_list)...
Remove TracedBoomConfig
@@ -48,15 +48,6 @@ class DualSmallBoomConfig extends Config( new boom.common.WithNBoomCores(2) ++ // dual-core new freechips.rocketchip.system.BaseConfig) -class TracedSmallBoomConfig extends Config( - new WithTop ++ - new WithBootROM ++ - new freechips.rocketchip.subsystem.WithInclusiveCache ++ - new boom.common.WithT...
fix CDS values written on GFIR enable/disable
@@ -143,11 +143,11 @@ int LMS7_Device::ConfigureGFIR(bool tx, unsigned ch, bool enabled, double bandwi if (ch%2) { lms->Modify_SPI_Reg_bits(LMS7param(CDSN_RXBLML), !(enabled|sisoDDR)); - lms->Modify_SPI_Reg_bits(LMS7param(CDS_RXBLML), !(enabled|sisoDDR)); + lms->Modify_SPI_Reg_bits(LMS7param(CDS_RXBLML), enabled? 3 : 0...
fix segfault in ProcessBlock - incorrect jobs count
@@ -78,14 +78,15 @@ namespace NCB { template <class TProcessDataFunc> void ProcessBlock(TProcessDataFunc processFunc) { const int threadCount = LocalExecutor->GetThreadCount() + 1; - LocalExecutor->ExecRangeWithThrow(NPar::TLocalExecutor::BlockedLoopBody( - NPar::TLocalExecutor::TExecRangeParams(0, ParseBuffer.ysize())...
website-frontend: reformattion with prettier
@@ -31,10 +31,10 @@ Check the [Ideas](/doc/IDEAS.md) page if you are searching for a good topic to s If you want to publish your local changes to this project you have to create a new pull-request. -1. Open GitHub and navigate to *your* libeketra-fork -2. In the tab *Codes* press the *New Pull-Request* button and choos...
Update main.tex Rephrased.
@@ -1035,7 +1035,7 @@ If you would like to contribute to \ccl or contact the developers, please do so \section{Citing \ccl} \label{sec:cite} -If you use \ccl in your work, please provide a link to the repository and cite it as LSST DESC (in preparation). \ccl has a built-in version of {\tt CLASS} for convenience. We re...
Add binnec requirement for devs merging to develop
@@ -131,7 +131,16 @@ Tests will run automatically via GitHub Actions when you open a pull request or push new commits to an existing pull request. Once you've collected and addressed feedback, tests are passing, and your PR has -been approved, merge the pull request. If you properly included the "Resolves +been approve...
View.rst uses a list for the options in 3d viewing
@@ -150,22 +150,34 @@ of a 3D view. The 3D perspective view volume -To set the 3D view, first decide on where you want to look from. Type a -vector value into the **View normal** text field. Next, type the vector -valued location of what you want to look at into the **Focus** text -field. The **Up axis** vector is simp...
Use both fonts simultaneously in text demo
#include <cstdlib> #include "pico_explorer.hpp" +#include "font6_data.hpp" #include "font8_data.hpp" #include "msa301.hpp" @@ -26,7 +27,10 @@ int main() { pico_explorer.clear(); pico_explorer.set_pen(255, 255, 255); - pico_explorer.text("Hello World. How are you today?", Point(10, 190), 100); + pico_explorer.set_font(&...
Fix a compilation failure with no-tls_1_2
@@ -8627,7 +8627,7 @@ int setup_tests(void) void cleanup_tests(void) { -# ifndef OPENSSL_NO_DH +# if !defined(OPENSSL_NO_TLS1_2) && !defined(OPENSSL_NO_DH) EVP_PKEY_free(tmp_dh_params); #endif OPENSSL_free(cert);
[swig] provide __array__ so that numpy.array(v) for SiconosVector works
SiconosVectorIterator __iter__() { return SiconosVectorIterator($self->begin()); } +%insert("python") %{ + def __array__(self): + import numpy + return numpy.fromiter(self, dtype=float) +%} } %extend BlockVector{ std::string __str__() { return $self->toString(); }
guybrush: Implement ppc_interrupt Implement ppc_interrupt handler. BRANCH=None TEST=Build
@@ -495,7 +495,18 @@ uint16_t tcpc_get_alert_status(void) void ppc_interrupt(enum gpio_signal signal) { - /* TODO */ + switch (signal) { + case GPIO_USB_C0_PPC_INT_ODL: + aoz1380_interrupt(USBC_PORT_C0); + break; + + case GPIO_USB_C1_PPC_INT_ODL: + nx20p348x_interrupt(USBC_PORT_C1); + break; + + default: + break; + } }...
HTTP: request body was not passed to application. The bug has appeared in changeset
@@ -218,6 +218,11 @@ nxt_http_app_request(nxt_task_t *task, void *obj, void *data) ar->r.header.cookie.start = r->cookie->value; } + if (r->body != NULL) { + ar->r.body.buf = r->body; + ar->r.body.preread_size = r->content_length_n; + } + ar->r.body.done = 1; ret = nxt_http_parse_request_init(&ar->resp_parser, r->mem_p...
gsl_error handling for ccl_cls.c
@@ -46,8 +46,12 @@ static double spline_eval(double x,SplPar *spl) return spl->y0; else if(x>=spl->xf) return spl->yf; - else - return gsl_spline_eval(spl->spline,x,spl->intacc); + else{ + double y; + int stat= gsl_spline_eval_e(spl->spline,x,spl->intacc,&y); + if (stat != GSL_SUCCESS) return NAN; + return y; + } } //W...
apps: address potential memory leaks
@@ -3016,6 +3016,7 @@ static int www_body(int s, int stype, int prot, unsigned char *context) /* No need to free |con| after this. Done by BIO_free(ssl_bio) */ BIO_set_ssl(ssl_bio, con, BIO_CLOSE); BIO_push(io, ssl_bio); + ssl_bio = NULL; #ifdef CHARSET_EBCDIC io = BIO_push(BIO_new(BIO_f_ebcdic_filter()), io); #endif @...
Test calling lua function from haskell
@@ -23,8 +23,8 @@ THE SOFTWARE. module Foreign.Lua.InteropTest (tests) where import Foreign.Lua.Functions -import Foreign.Lua.Interop (peek, registerhsfunction) -import Foreign.Lua.Types (Result (..)) +import Foreign.Lua.Interop (callfunc, peek, registerhsfunction) +import Foreign.Lua.Types (LuaNumber, Result (..)) imp...
[esp32] use system esptool.py for elf2bin conversion
@@ -26,4 +26,4 @@ OTA_BIN_OUTPUT_FILE := $(LINK_OUTPUT_FILE:$(LINK_OUTPUT_SUFFIX)=.ota$(BIN_OUTPUT EXTRA_POST_BUILD_TARGETS += gen_crc_bin gen_crc_bin: - python platform/mcu/esp32/esptool_py/esptool/esptool.py --chip esp32 elf2image $(LINK_OUTPUT_FILE) + esptool.py --chip esp32 elf2image $(LINK_OUTPUT_FILE)
tools:ras remove fme error revision zero code changes: - remove fme error revision zero code, not supported in relase bitstream
@@ -637,7 +637,7 @@ fpga_result print_ras_errors(fpga_token token) } printf(" fme error revison : %ld \n", revision); - // Revision 0 + // Revision 1 if( revision == 1 ) { // Non Fatal Error @@ -712,81 +712,6 @@ fpga_result print_ras_errors(fpga_token token) return result; } - // Revision 0 - } else if( revision == 0){...
Fixed crash at copy report unexpected message type error
@@ -7105,11 +7105,14 @@ extract_line_buf(CopyState cstate) lineno_delim = memchr(line_start, COPY_METADATA_DELIM, Min(32, cstate->line_buf.len)); + if (lineno_delim && (lineno_delim != line_start)) + { value_len = lineno_delim - line_start + 1; line_start += value_len; line_buf = line_start; } } + } /* * Finally alloca...
webdojo: remove "no slogs" notification
@@ -19,11 +19,9 @@ export default class Subscription { setupSlog() { const slog = new EventSource('/~/slog', { withCredentials: true }); - let available = false; slog.onopen = e => { console.log('slog: opened stream'); - available = true; } slog.onmessage = e => { @@ -32,11 +30,6 @@ export default class Subscription { ...
[Rust] File server launches programs in /config/run_on_startup.txt on startup
@@ -180,6 +180,20 @@ fn launch_program(root_dir: &DirectoryImage, sender: &str, request: &LaunchProgr launch_program_by_path(root_dir, requested_path) } +fn launch_startup_programs(root_dir: &DirectoryImage) { + let run_on_startup_path = "/config/run_on_startup.txt"; + let run_on_startup_config = + fs_entry_find(root_d...
papi: export packed message structures Use the Python API binding to generate a set of API messages in binary format, that can later be replayed independently of the Python API. Type: improvement
@@ -530,6 +530,13 @@ class VPPApiClient: return f + def make_pack_function(self, msg, i, multipart): + def f(**kwargs): + return self._call_vpp_pack(i, msg, **kwargs) + + f.msg = msg + return f + def _register_functions(self, do_async=False): self.id_names = [None] * (self.vpp_dictionary_maxid + 1) self.id_msgdef = [No...
Update scripts/docker/alpine/3.10/release.Dockerfile docker: alpine release image fix ALLUSERSPROFILE
@@ -96,7 +96,7 @@ RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers RUN echo "alias sudo='sudo -i' # in this image we do not need to be root" >> /etc/profile RUN echo "export PS1='\u $ '" >> /etc/profile RUN echo "export LD_LIBRARY_PATH=/usr/local/lib/elektra/" >> /etc/profile -RUN echo "export ALLUSERSPROFILE=...
osx: travis fixing path for unziping
@@ -11,7 +11,7 @@ echo Downloading Qt #./dmginstall.sh https://download.qt.io/official_releases/qt/5.9/5.9.5/qt-opensource-mac-x64-5.9.5.dmg #brew update && brew install qt5 --with-qtwebengine wget -q https://s3.amazonaws.com/files.tau-technologies.com/buildenv/Qt5.9.5.tar.gz -O $HOME/Qt5.9.5.tar.gz -tar -xzf $HOME/Qt5...
docs/packages: Add quick "Creating distribution packages" section. Needs more details.
@@ -199,6 +199,32 @@ Few notes: you may want to decrease the amount of frozen modules included. +Creating distribution packages +------------------------------ + +Distribution packages for MicroPython are created in the same manner +as for CPython or any other Python implementation, see references at +the end of chapte...
Changed references to to .
@@ -43,8 +43,8 @@ class ClTracer(object): has_intrinsic_alignment (bool, optional): Flag to incorporate intrinsic alignment into the model. Defaults to False. z_n (array_like, optional): Array of redshifts for N(z). n (array_like, optional): Array of N(z)-values. - z_b (array_like, optional): Array of redshifts for bia...
Enhanced functionality
@@ -292,7 +292,8 @@ typedef enum libxsmm_meltw_opreduce_vecs_flags { LIBXSMM_MELTW_FLAG_OPREDUCE_VECS_REDOP_NONE = 512, LIBXSMM_MELTW_FLAG_OPREDUCE_VECS_REDOP_SUM = 1024, LIBXSMM_MELTW_FLAG_OPREDUCE_VECS_REDOP_MAX = 2048, - LIBXSMM_MELTW_FLAG_OPREDUCE_VECS_REDOP_MIN = 4096 + LIBXSMM_MELTW_FLAG_OPREDUCE_VECS_REDOP_MIN =...
OpenXR: sync all subaction paths;
@@ -1775,13 +1775,14 @@ static double openxr_update(void) { state.lastDisplayTime = state.frameState.predictedDisplayTime - state.frameState.predictedDisplayPeriod; } + XrActiveActionSet activeSets[] = { + { state.actionSet, XR_NULL_PATH } + }; + XrActionsSyncInfo syncInfo = { .type = XR_TYPE_ACTIONS_SYNC_INFO, - .coun...
Show topology - dimms list sort by DimmID
@@ -59,6 +59,45 @@ CONST CHAR16 *mpDefaultDimmIds[DISPLAY_DIMM_ID_MAX_SIZE] = { #define ERROR_CHECKING_MIXED_SKU L"Error: Could not check if SKU is mixed." #define WARNING_DIMMS_SKU_MIXED L"Warning: Mixed SKU detected. Driver functionalities limited.\n" +/** + Compare DimmID field in DIMM_INFO Struct + + @param[in] pFi...
Drop unnecessary NULL check The variable `str` has been already dereferenced in the loop. check_after_deref: Null-checking str suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Found by Coverity
@@ -1365,7 +1365,7 @@ parse_format (GLogItem * logitem, char *str, char *lfmt) { return 0; if (tilde && *p != '\0') { - if ((str == NULL) || (*str == '\0')) + if (*str == '\0') return 0; if (special_specifier (logitem, &str, &p) == 1) return 1; @@ -1373,7 +1373,7 @@ parse_format (GLogItem * logitem, char *str, char *lf...
Ignore Zero-Length Receive Events in Tests
@@ -1056,7 +1056,9 @@ DummyStreamCallback( switch (Event->Type) { case QUIC_STREAM_EVENT_RECEIVE: - TEST_FAILURE("QUIC_STREAM_EVENT_RECEIVE should never be called!"); + if (Event->RECEIVE.TotalBufferLength != 0) { + TEST_FAILURE("QUIC_STREAM_EVENT_RECEIVE with data should never be called!"); + } break; case QUIC_STREAM...
Update: Readme link to demos
@@ -4,6 +4,7 @@ This is a completely new platform and not branched from the existing OpenNARS co The ONA implementation has been developed with a pragmatic mindset. The focus on the design has been to implement the 'existing' theory [6, 7] as effectively as possible and make firm decisions rather than keep as many opti...
VERSION bump version to 0.11.22
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 21) +set(LIBNETCONF2_MICRO_VERSION 22) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(L...
Add :release to all objects;
@@ -23,6 +23,7 @@ static int luax_meta__gc(lua_State* L) { destructorFn* destructor = (destructorFn*) lua_tocfunction(L, -1); if (destructor) { _lovrRelease(p->object, destructor); + p->object = NULL; } } return 0; @@ -70,6 +71,10 @@ void _luax_registertype(lua_State* L, const char* name, const luaL_Reg* function luaL_...
hv: lapic: fix a theoretic infinite loop when clear lapic isr In theory, there would have 256 pending interrupts on lapic ISR. Add this check to avoid theoretic infinite loop for clearing lapic isr. Leave the potentially hardware issue to machine check.
@@ -45,20 +45,23 @@ static union lapic_base_msr saved_lapic_base_msr; static void clear_lapic_isr(void) { - uint32_t isr_reg = MSR_IA32_EXT_APIC_ISR0; + uint32_t i; + uint32_t isr_reg; /* This is a Intel recommended procedure and assures that the processor * does not get hung up due to already set "in-service" interrup...
Updated values in tests/AbioticO2.
@@ -4,8 +4,8 @@ import astropy.units as u @benchmark( { - "log.final.star.Luminosity": {"value": 7.362835e23, "unit": u.W}, - "log.final.star.LXUVStellar": {"value": 7.362835e20, "unit": u.W}, + "log.final.star.Luminosity": {"value": 7.362896e+23, "unit": u.W}, + "log.final.star.LXUVStellar": {"value": 7.362896e+20, "u...
zephyr: lis2dw12: Add register to emulator Update the emulator to handle the CTRL1 and add an assert message when attempting to access unsupported registers BRANCH=None TEST=zmake -D configure --test test-drivers
@@ -29,6 +29,8 @@ struct lis2dw12_emul_data { struct i2c_common_emul_data common; /** Emulated who-am-i register */ uint8_t who_am_i_reg; + /** Emulated ctrl1 register */ + uint8_t ctrl1_reg; /** Emulated ctrl2 register */ uint8_t ctrl2_reg; /** Soft reset count */ @@ -87,11 +89,16 @@ static int lis2dw12_emul_read_byte...
build: create _objs target for each library Type: improvement
@@ -19,7 +19,13 @@ macro(add_vpp_library lib) ${ARGN} ) - add_library(${lib} SHARED ${ARG_SOURCES}) + set (lo ${lib}_objs) + add_library(${lo} OBJECT ${ARG_SOURCES}) + set_target_properties(${lo} PROPERTIES POSITION_INDEPENDENT_CODE ON) + + add_library(${lib} SHARED) + target_sources(${lib} PRIVATE $<TARGET_OBJECTS:${l...
Make test_nsalloc_realloc_attributes() robust vs allocation changes
@@ -10804,7 +10804,9 @@ START_TEST(test_nsalloc_realloc_attributes) if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_nsalloc_xmlns() */ + nsalloc_teardown(); + nsalloc_setup(); } if (i == 0) fail("Parsing worked despi...
storage: added extra argument to flb_sched_timer_cb_create call
@@ -267,7 +267,7 @@ struct flb_storage_metrics *flb_storage_metrics_create(struct flb_config *ctx) ret = flb_sched_timer_cb_create(ctx->sched, FLB_SCHED_TIMER_CB_PERM, 5000, cb_storage_metrics_collect, - ctx->storage_metrics_ctx); + ctx->storage_metrics_ctx, NULL); if (ret == -1) { flb_error("[storage metrics] cannot c...
zephyr: docs: Update the doc template Update the document template to reflect current best practices. Specifically, move all related Kconfigs into a separate file and link to the file only BRANCH=none TEST=View preview in gitiles
## Kconfig Options -*List the Kconfig options that enable the feature and list any sub-configuration -options that control the behavior of the feature.* - -Kconfig Option | Default | Documentation -:------------------------------------- | :-----: | :------------ -`CONFIG_PLATFORM_EC_<option>` | y/n | [zephyr/Kconfig](....
A hacky fix for missed elements when renderer/layer caches are out of sync
@@ -360,8 +360,12 @@ namespace carto { std::lock_guard<std::recursive_mutex> lock(_mutex); + long long tileId = getTileId(MapTile(vtTileId.x, vtTileId.y, vtTileId.zoom, _frameNr)); TileInfo tileInfo; - _visibleCache.peek(getTileId(MapTile(vtTileId.x, vtTileId.y, vtTileId.zoom, _frameNr)), tileInfo); + _visibleCache.pee...
Add option to run clang-tidy and cppcheck
@@ -109,6 +109,7 @@ option(QUIC_UWP_BUILD "Build for UWP" OFF) option(QUIC_PGO "Enables profile guided optimizations" OFF) option(QUIC_SOURCE_LINK "Enables source linking on MSVC" ON) option(QUIC_PDBALTPATH "Enable PDBALTPATH setting on MSVC" ON) +option(QUIC_CODE_CHECK "Run static code checkers" OFF) # FindLTTngUST do...
enable jobcomp_elasticsearch plugin The plugin is built automatically if curl-config is found.
@@ -228,6 +228,9 @@ Requires(pre): shadow-utils %endif %endif +#needed to enable jobcomp_elasticsearch plugin +BuildRequires: curl-devel + %description Slurm is an open source, fault-tolerant, and highly scalable cluster management and job scheduling system for Linux clusters.
Improve encoders api docs
@@ -16,9 +16,15 @@ extern "C" { #endif /* - * ============================================================================ - * Primitives encoding - * ============================================================================ + * All cbor_encode_* methods take 2 or 3 arguments: + * - a logical `value` to encode (exce...
do not respond to WILDCARD SSID request
@@ -2051,9 +2051,8 @@ static inline void getnewmac(uint8_t *newapmac, uint8_t *essidtagptr) int c; static macessidlist_t *zeiger; static ietag_t *essidtag; -essidtag = (ietag_t*)essidtagptr; - +essidtag = (ietag_t*)essidtagptr; zeiger = myproberesponselist; for(c = 0; c < MYPROBERESPONSELIST_MAX -1; c++) { @@ -2111,6 +...
Fix a possible recursion in SSLfatal handling Fixes: (hopefully)
@@ -118,11 +118,12 @@ void ossl_statem_set_renegotiate(SSL *s) void ossl_statem_fatal(SSL *s, int al, int func, int reason, const char *file, int line) { + ERR_put_error(ERR_LIB_SSL, func, reason, file, line); /* We shouldn't call SSLfatal() twice. Once is enough */ - assert(s->statem.state != MSG_FLOW_ERROR); + if (s-...
[trace] Only extract benchmark sections
@@ -489,8 +489,12 @@ def main(): 'cfg_buf': deque(), 'curr_cfg': None } - perf_metrics = [defaultdict(int)] # all values initially 0, also 'start' time of measurement 0 - perf_metrics[0]['start'] = None + perf_metrics_bench = [defaultdict(int)] # all values initially 0, also 'start' time of measurement 0 + perf_metrics...
Improve use of `@` in match.
~(do (def ,pattern ,expr) ,(onmatch)))) (and (tuple? pattern) (= :parens (tuple/type pattern))) - (if (and (= (pattern 0) '@) (symbol? (pattern 1))) + (if (= (get pattern 0) '@) # Unification with external values - ~(if (= ,(pattern 1) ,expr) ,(onmatch) ,sentinel) + ~(if (= ,(get pattern 1) ,expr) ,(onmatch) ,sentinel)...
Error on illegal port values in WKS Thanks Ray Bellis
@@ -615,7 +615,7 @@ ldns_str2rdf_b32_ext(ldns_rdf **rd, const char *str) int i; /* first byte contains length of actual b32 data */ size_t slen = strlen(str); - uint32_t len = ldns_b32_pton_calculate_size(slen); + size_t len = ldns_b32_pton_calculate_size(slen); if (len > 255) { return LDNS_STATUS_INVALID_B32_EXT; } @@...
Fix missing moc json generation
@@ -80,7 +80,7 @@ rule("qt.moc") end local user_flags = target:get("qt.moc.flags") or {} batchcmds:mkdir(path.directory(sourcefile_moc)) - batchcmds:vrunv(moc, table.join(flags, path(sourcefile), "-o", path(sourcefile_moc))) + batchcmds:vrunv(moc, table.join(user_flags, flags, path(sourcefile), "-o", path(sourcefile_mo...
platforms/nicole: Fixup the system VPD EEPROM size Hostboot doesn't export the correct description for EEPROMs, as a result, all EEPROMs in the system work in "atmel,24c128" compatibility mode (16KiB). Nicole platform has 32KiB EEPROM for the system VPD.
@@ -34,6 +34,26 @@ static const struct slot_table_entry nicole_phb_table[] = { { .etype = st_end }, }; +/* Fixup the system VPD EEPROM size. + * + * Hostboot doesn't export the correct description for EEPROMs, as a result, + * all EEPROMs in the system work in "atmel,24c128" compatibility mode (16KiB). + * Nicole platf...
is31fl3743b: Set and clear config register bits correctly This patch makes is31fl3743b_enable set and clear the bits of the config register correctly. BRANCH=None TEST=None
@@ -91,8 +91,10 @@ static int is31fl3743b_enable(struct rgbkbd *ctx, bool enable) return rv; } - return is31fl3743b_write(ctx, IS31FL3743B_REG_CONFIG, - u8 | BIT(3) | (enable ? BIT(0) : 0)); + WRITE_BIT(u8, 3, 1); + WRITE_BIT(u8, 0, enable); + + return is31fl3743b_write(ctx, IS31FL3743B_REG_CONFIG, u8); } static int is...
test-suite: add logic to skip local ipmitool tests on sms if aarch64
@@ -23,6 +23,7 @@ fi } @test "[OOB] ipmitool local bmc ping" { + [[ "$ARCH" == "aarch64" ]] && skip "Skipping local bmc ping for ARCH=$ARCH" # Check 4 channels of ipmi lan for IP address @@ -44,6 +45,7 @@ fi } @test "[OOB] ipmitool power status" { + [[ "$ARCH" == "aarch64" ]] && skip "Skipping local power status for AR...
Fix servive properties propsheet flags
@@ -108,12 +108,15 @@ VOID PhShowServiceProperties( SERVICE_PROPERTIES_CONTEXT context; propSheetHeader.dwFlags = + PSH_MODELESS | PSH_NOAPPLYNOW | PSH_NOCONTEXTHELP | - PSH_PROPTITLE; + PSH_PROPTITLE | + //PSH_USECALLBACK | + PSH_USEHICON; propSheetHeader.hInstance = PhInstanceHandle; propSheetHeader.hwndParent = Pare...
Use an executable example for net.socket:on()
@@ -310,11 +310,11 @@ Otherwise, all connection errors (with normal close) passed to disconnection eve ```lua srv = net.createConnection(net.TCP, 0) srv:on("receive", function(sck, c) print(c) end) -srv:on("connection", function(sck) +srv:on("connection", function(sck, c) -- Wait for connection before sending. - sck:se...
Use debug print in assertion failure So the failing domain name is also printed.
@@ -36,16 +36,17 @@ __FBSDID("$FreeBSD$"); #include <assert.h> #include <stdio.h> #include <stdlib.h> +#include <barrelfish/debug.h> void __assert(const char *func, const char *file, int line, const char *failedexpr) { if (func == NULL) - (void)fprintf(stderr, + (void)debug_printf( "Assertion failed: (%s), file %s, lin...
Stuffed neko path
@@ -23,7 +23,7 @@ before_install: - sudo cp /usr/local/lib/neko/neko-2.3.0-osx64/neko /usr/local/lib/haxe - sudo ln -s /usr/local/lib/neko/neko-2.3.0-osx64/libneko.2.3.0.dylib /usr/local/lib/libneko.2.dylib - sudo ln -s /usr/local/lib/neko/neko-2.3.0-osx64/libneko.2.3.0.dylib /usr/local/lib/libneko.dylib -- sudo ln -s ...
HardwareDevices: Fix options crash
@@ -185,7 +185,7 @@ VOID AddNetworkAdapterToListView( BOOLEAN found = FALSE; PDV_NETADAPTER_ID newId = NULL; - InitializeNetAdapterId(&adapterId, IfIndex, Luid, NULL); + InitializeNetAdapterId(&adapterId, IfIndex, Luid, Guid); for (ULONG i = 0; i < NetworkAdaptersList->Count; i++) {
Reenable GCC unexpected __attribute__ warning
@@ -93,8 +93,6 @@ DEFINES += GW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300 DEFINES += GW_DEFAULT_NAME=\\\"Phoscon-GW\\\" -QMAKE_CXXFLAGS += -Wno-attributes - HEADERS = bindings.h \ connectivity.h \ colorspace.h \
VERSION bump to version 1.3.1
@@ -27,7 +27,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 3) -set(SYSREPO_MICRO_VERSION 0) +set(SYSREPO_MICRO_VERSION 1) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR...
parse_browser(): avoid passing NULL to strpbrk()
@@ -508,7 +508,7 @@ parse_browser (char *match, char *type, int i, char ***hash) { match = char_replace (match, ' ', '/'); } /* all others */ - else if ((ptr = strpbrk (b, ";) ")) != NULL) { + else if ((ptr = strpbrk (b ? b : match, ";) ")) != NULL) { *ptr = '\0'; }
gitlab-ci: comment out LTO Integration Test As it takes too long for now
@@ -235,13 +235,13 @@ Integration_Test_UBSan: dependencies: - Build_UBSan -Integration_Test_LTO: - image: debian:stable - stage: test2 - script: - - CFLAGS="-flto -O2 -g" make test - needs: [Build_LTO] - dependencies: - - Build_LTO +#Integration_Test_LTO: +# image: debian:stable +# stage: test2 +# script: +# - CFLAGS="...
OcXmlLib: Fix previous commit
@@ -1153,30 +1153,33 @@ XmlDocumentExport ( ) { CHAR8 *Buffer; - CHAR8 *BufferXmlContent; + CHAR8 *NewBuffer; UINT32 AllocSize; UINT32 CurrentSize; + UINT32 NewSize; AllocSize = Document->Buffer.Length + 1; - if (PrependPlistInfo && OcOverflowAddU32 (AllocSize, L_STR_SIZE_NT (XML_PLIST_HEADER), &AllocSize)) { - return ...
NN: remove convert/scaling code from network test.
@@ -433,22 +433,8 @@ int nn_dry_run_network(nn_t *net, image_t *img, int8_t *output_data) switch (layer->type) { case LAYER_TYPE_DATA: { data_layer_t *data_layer = (data_layer_t *) layer; - input_data = fb_alloc(data_layer->c * data_layer->h * data_layer->w); - // Scale, convert, remove mean image and load input data. ...
Host: bettor library loading
@@ -110,6 +110,7 @@ bool PluginHost::load(const QString &path, int pluginIndex) { unload(); library_.setFileName(path); + library_.setLoadHints(QLibrary::ResolveAllSymbolsHint | QLibrary::DeepBindHint); if (!library_.load()) { QString err = library_.errorString(); qWarning() << "failed to load " << path << ": " << err;...
Fix some typos and make load/unload USB functionality conditionally compiled for Linux.
// Local functions... // +#ifdef __linux static bool load_usb_printer(pappl_printer_t *printer); static void unload_usb_printer(void); +#endif // __linux // @@ -44,6 +46,9 @@ _papplPrinterRunUSB( ssize_t bytes; // Bytes in buffer + if (!load_usb_printer(printer)) + return (NULL); + if ((data.fd = open("/dev/g_printer",...
make tmpname static so that the storage doesn't go out of scope when LLVMFuzzerTestOneInput returns.
@@ -327,7 +327,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) */ if (!init_done) { const char *client_timeout_ms_str; - char tmpname[] = "/tmp/h2o-fuzz-XXXXXX"; + static char tmpname[] = "/tmp/h2o-fuzz-XXXXXX"; char *dirname; h2o_url_t upstream; signal(SIGPIPE, SIG_IGN);
RGBKBD: Print error code in set_color_single This patch makes set_color_single print error code returned from a driver. BRANCH=None TEST=Taniks
@@ -38,16 +38,17 @@ uint8_t rgbkbd_table[EC_RGBKBD_MAX_KEY_COUNT]; static int set_color_single(struct rgb_s color, int x, int y) { struct rgbkbd *ctx = &rgbkbds[0]; - uint8_t gid; + uint8_t grid; uint8_t col = 0; uint8_t offset; + int rv; if (rgbkbd_hsize <= x || rgbkbd_vsize <= y) { return EC_ERROR_OVERFLOW; } /* Sear...
More flexible shorthands for texture and material args;
@@ -706,7 +706,14 @@ int l_lovrGraphicsNewMaterial(lua_State* L) { int index = 1; - if (lua_isuserdata(L, index)) { + if (lua_type(L, index) == LUA_TSTRING) { + Blob* blob = luax_readblob(L, index++, "Texture"); + TextureData* textureData = lovrTextureDataFromBlob(blob); + lovrRelease(&blob->ref); + Texture* texture = ...
Fixes an deadlock issue in the dm
@@ -173,7 +173,6 @@ static void celix_dm_allComponentsActiveCallback(void *handle, const celix_bundl if (!allActive) { *allActivePtr = false; } - celixThreadMutex_lock(&mng->mutex); } bool celix_dependencyManager_allComponentsActive(celix_dependency_manager_t *manager) {
create key file with u+rw persmission
#include <errno.h> #include <string.h> #include <sys/socket.h> +#include <sys/stat.h> #include "mbedtls/platform.h" #include "mbedtls/entropy.h" @@ -301,6 +302,9 @@ static int write_pem(const mbedtls_pk_context *key, const char path[]) return -1; } + // Set u+rw persmissions + chmod(path, 0600); + len = strlen((char*) ...
docs: Details the repositories used to store images.
@@ -23,8 +23,15 @@ To run the integration tests, it is necessary to have the gadget container image available on a container repository so that it can be installed in the Kubernetes cluster where the tests will run. -As a default, `ghcr.io/${{ github.repository }}` is used to store images created -in the CI pipeline. +...
avx: use internal symbols in clang fallbacks for cmp_ps/pd functions This is just to work around the fallback macro being called recursively instead of invoking the function.
@@ -2648,7 +2648,12 @@ simde_mm_cmp_ss (simde__m128 a, simde__m128 b, const int imm8) SIMDE_FUNCTION_ATTRIBUTES simde__m256d -simde_mm256_cmp_pd (simde__m256d a, simde__m256d b, const int imm8) +#if defined(__clang__) && defined(__AVX512DQ__) +simde_mm256_cmp_pd_internal_ +#else +simde_mm256_cmp_pd +#endif +(simde__m25...