message
stringlengths
6
474
diff
stringlengths
8
5.22k
webp-lossless-bitstream-spec: fix num_code_lengths check in the 'Normal Code Length Code' description the number of valid code lengths is 19, not 18.
@@ -910,7 +910,7 @@ First, `num_code_lengths` specifies the number of code lengths. int num_code_lengths = 4 + ReadBits(4); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -If `num_code_lengths` is > 18, the bitstream is invalid. +If `num_code_lengths` is > 19, the bitstream is invalid. The code lengths are themselves encoded using pre...
Add separator fields
@@ -51,9 +51,6 @@ import qualified System.FilePath as Path description :: Text description = "Module for file path manipulations." -fields :: [Field] -fields = [] - documentedModule :: Module documentedModule = Module { moduleName = "paths" @@ -72,6 +69,33 @@ preloadModule :: String -> Lua () preloadModule name = Modul...
parallel-libs/boost: fix typo for patch
@@ -44,7 +44,7 @@ Patch1: boost-fenv_suse.patch # After download, all patch line numbers were all adjusted by +3 # Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1190039 - boost package doesn't honor optflags #Patch2: boost-1.75.0-build-optflags.patch -Pathc2: boost-1.76.0-b2-build-flags.patch +Patch2: boost-1.76...
ref_clock: port*_CRITICAL vanilla FreeRTOS compliance
@@ -130,10 +130,10 @@ void ref_clock_init() static void IRAM_ATTR pcnt_isr(void* arg) { - portENTER_CRITICAL(&s_lock); + portENTER_CRITICAL_ISR(&s_lock); PCNT.int_clr.val = BIT(REF_CLOCK_PCNT_UNIT); s_milliseconds += REF_CLOCK_PRESCALER_MS; - portEXIT_CRITICAL(&s_lock); + portEXIT_CRITICAL_ISR(&s_lock); } void ref_cloc...
Cast to uintptr_t instead of size_t for mask ops on ptrs. Addressing reviewer comment.
@@ -742,7 +742,7 @@ DwaCompressor::LossyDctDecoderBase::execute () for (int i = 0; i < _SSE_ALIGNMENT; ++i) { - if ((reinterpret_cast<size_t>(rowBlockHandle + i) & _SSE_ALIGNMENT_MASK) == 0) + if ((reinterpret_cast<uintptr_t>(rowBlockHandle + i) & _SSE_ALIGNMENT_MASK) == 0) rowBlock[0] = (unsigned short *)(rowBlockHand...
Update Python winloader to 2.5.4
<topic id="topic2" xml:lang="en"> <title id="nw149721">Installing Python</title> <body> - <p>The Greenplum loader program (<codeph>gpload.py</codeph>) for Windows requires Python 2.5 + <p>The Greenplum loader program (<codeph>gpload.py</codeph>) for Windows requires Python 2.5.4 (32-bit version) to also be installed on...
update test_client with new addr
@@ -52,7 +52,7 @@ main(int argc, char ** argv) evhtp_request_t * request; evbase = event_base_new(); - conn = evhtp_connection_new(evbase, "75.126.169.52", 80); + conn = evhtp_connection_new(evbase, "104.27.150.225", 80); request = evhtp_request_new(request_cb, evbase); evhtp_request_set_hook(request, evhtp_hook_on_rea...
Added sceAppMgrGameDataMount header
@@ -126,6 +126,9 @@ int sceAppMgrLaunchAppByName2(const char *name, const char *param, SceAppMgrLaun //! return AppId ? SceUID sceAppMgrLaunchAppByName2ForShell(const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam); +//! Mount pfs, set unk and unk2 to 0 +int sceAppMgrGameDataMount(const char *path,...
make: fix wildcard condition
@@ -10,7 +10,7 @@ SE=arm-none-eabi-size GCC_VERSION = $(shell arm-none-eabi-gcc -dumpversion) GIT_VERSION = unkown -ifeq (,$(wildcard .git/refs/heads/master)) +ifneq (,$(wildcard .git/refs/heads/master)) GIT_VERSION = $(shell cat .git/refs/heads/master) endif
pci: Fix the crash on deleting the pci device clib_file_index is 0 if it is not initialized result in following assertion on deleteing the pci device. vpp/src/vppinfra/file.h:122 (clib_file_del_by_index) assertion `! pool_is_free (um->file_pool, _e)' fails This patch fixes the issue by initializing the clib_file_index ...
@@ -1236,6 +1236,7 @@ vlib_pci_device_open (vlib_main_t * vm, vlib_pci_addr_t * addr, p->handle = p - lpm->linux_pci_devices; p->addr.as_u32 = di->addr.as_u32; p->intx_irq.fd = -1; + p->intx_irq.clib_file_index = -1; p->numa_node = di->numa_node; /* * pci io bar read/write fd @@ -1282,6 +1283,7 @@ vlib_pci_device_close...
HTTP/1 -> HTTP/2 upgrade path fd leak On upgrade error, make sure we're closing the HTTP/1 socket before giving control to the HTTP/2 error handling.
@@ -579,8 +579,10 @@ static void on_upgrade_complete(h2o_socket_t *socket, const char *err) if (err == 0) { sock = conn->sock; reqsize = conn->_reqsize; - } close_connection(conn, 0); + } else { + close_connection(conn, 1); + } cb(data, sock, reqsize); }
Add dotnet command configurable from an option in order to provide support for Guix.
@@ -28,7 +28,7 @@ if(DOTNET_FOUND) endif() # Define dotnet command -set(DOTNET_COMMAND dotnet) +option(DOTNET_COMMAND "Path of .NET Core command" dotnet) # Detect dotnet command execute_process(COMMAND ${DOTNET_COMMAND}
when adding asset as history to mesh with no history, create intermediate copy of mesh for upstream history first
@@ -300,6 +300,27 @@ houdiniEngine_connectHistory(string $inputAttr, string $objects[], string $compo print "This asset is already connected as history\n"; return 0; } + // if there is no upstream mesh history, copy the mesh, insert as upstream history + // and make it intermediate so it doesn't mess up selection and o...
Fix double Ergo auth request header problem
@@ -16,9 +16,6 @@ public partial class ErgoClient private Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, String url, CancellationToken ct) { - foreach(var pair in RequestHeaders) - request.Headers.Add(pair.Key, pair.Value); - return Task.CompletedTask; }
Make sure that receiving RESET_STREAM twice does not cause harm
@@ -1876,6 +1876,14 @@ void test_ngtcp2_conn_recv_reset_stream(void) { rv = ngtcp2_conn_read_pkt(conn, &null_path.path, &null_pi, buf, pktlen, 2); CU_ASSERT(0 == rv); + CU_ASSERT(1024 == conn->rx.offset); + CU_ASSERT(128 * 1024 + 1024 == conn->rx.unsent_max_offset); + + /* Receiving same RESET_STREAM does not increase ...
added __pre_resolve property for PM
@@ -3740,7 +3740,7 @@ send_properties_to_pm(neat_ctx *ctx, neat_flow *flow) { int rc = NEAT_ERROR_OUT_OF_MEMORY; struct ifaddrs *ifaddrs = NULL; - json_t *array = NULL, *endpoints = NULL, *properties = NULL, *domains = NULL, *address, *port; + json_t *array = NULL, *endpoints = NULL, *properties = NULL, *domains = NULL...
BugID:18068959: add all the band for inter freq of Class B
@@ -311,9 +311,13 @@ PhyParam_t RegionCN470AGetPhyParam(GetPhyParams_t *getPhy) #ifdef LORAMAC_CLASSB_ENABLED case PHY_BEACON_CHANNEL_FREQ: { if (get_lora_freq_mode() == FREQ_MODE_INTER) { - phyParam.Value = CN470A_BEACON_CHANNEL_INTER_FREQ; + if (TxFreqBandNum >= 8) { + phyParam.Value = 470300000 + 200000 * FreqBandSt...
add client buffer_out after headers
@@ -5386,13 +5386,16 @@ evhtp_make_request(evhtp_connection_t * c, evhtp_request_t * r, } - evbuffer_add_buffer(obuf, r->buffer_out); } evhtp_headers_for_each(r->headers_out, htp__create_headers_, obuf); evbuffer_add_reference(obuf, "\r\n", 2, NULL, NULL); + if (evbuffer_get_length(r->buffer_out)) { + evbuffer_add_buff...
Add Debug build for xdp
@@ -198,6 +198,16 @@ stages: config: Debug extraName: 'shared_ec' extraBuildArgs: -EnableTelemetryAsserts -SharedEC -ExtraArtifactDir shared_ec + - template: ./templates/build-config-user.yml + parameters: + image: windows-2019 + platform: windows + arch: x64 + tls: schannel + config: Debug + extraName: 'xdp' + extraPr...
rbd: clear WCE rbd disables its write cache during image open time, and WRITEs to the OSD will be written to disk when we get a succes response, so report WCE=0.
@@ -438,6 +438,8 @@ static int tcmu_rbd_open(struct tcmu_device *dev) tcmu_set_dev_max_xfer_len(dev, image_info.obj_size / tcmu_get_dev_block_size(dev)); + tcmu_set_dev_write_cache_enabled(dev, 0); + tcmu_dev_dbg(dev, "config %s, size %lld\n", tcmu_get_dev_cfgstring(dev), rbd_size); free(dev_cfg_dup);
Fix potential NULL reference on cleanup If allocation of bindings failed. Found with clang-tidy
@@ -39,9 +39,11 @@ void free_bar_config(struct bar_config *bar) { free(bar->swaybar_command); free(bar->font); free(bar->separator_symbol); + if (bar->bindings) { for (int i = 0; i < bar->bindings->length; i++) { free_bar_binding(bar->bindings->items[i]); } + } list_free(bar->bindings); list_free_items_and_destroy(bar-...
Update: little fix, big consequence for event-based Q/A which now works perfectly! :)
@@ -264,7 +264,7 @@ void Memory_addEvent(Event *event, long currentTime, double priority, bool input if(Memory_FindConceptByTerm(&event->term, &concept_i)) { Concept *c = concepts.items[concept_i].address; - if(event->occurrenceTime == currentTime) + if(event->occurrenceTime != OCCURRENCE_ETERNAL) { c->belief_spike = I...
Refactor create sensor (3) Use a smaller generic approach to check top level attributes.
@@ -266,8 +266,8 @@ int DeRestPluginPrivate::createSensor(const ApiRequest &req, ApiResponse &rsp) bool ok; QVariant var = Json::parse(req.content, ok); - QVariantMap map = var.toMap(); - QString type = map["type"].toString(); + const QVariantMap map = var.toMap(); + const QString type = map["type"].toString(); Sensor ...
Performance: BUFR decoding: fixes
@@ -1948,7 +1948,6 @@ int codes_bufr_extract_headers_malloc(grib_context* c, const char* filename, cod void* mesg = NULL; size_t size = 0; off_t offset = 0; - codes_bufr_header* headers = *result; if (!c) c=grib_context_get_default(); fp = fopen(filename, "rb"); @@ -1958,21 +1957,30 @@ int codes_bufr_extract_headers_ma...
[P2P] Fix bug of prev commit
@@ -238,10 +238,6 @@ func (ps *peerManager) init() { ps.selfMeta.Port = uint32(listenPort) ps.selfMeta.ID = pid - // init subprotocols also - for _, sub := range ps.subProtocols { - sub.startHandling() - } } func (ps *peerManager) run() {
Squashed 'opae-libs/' changes from 3421f781..9a062ce5 xfpga: fix device field of PCIE_PATH_PATTERN git-subtree-dir: opae-libs git-subtree-split:
@@ -147,7 +147,7 @@ pthread_mutex_t _sysfs_device_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; #define SYSFS_MAX_DEVICES 128 static sysfs_fpga_device _devices[SYSFS_MAX_DEVICES]; -#define PCIE_PATH_PATTERN "([0-9a-fA-F]{4}):([0-9a-fA-F]{2}):([0-9]{2})\\.([0-9])/fpga" +#define PCIE_PATH_PATTERN "([0-9a-fA-F]{4}):([0-9...
linux-raspberrypi: Minor recipe tidyup
@@ -3,8 +3,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" LINUX_VERSION ?= "4.9.27" SRCREV = "9a5f215eda12bad29b35040dff00d0346fe517e2" -SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ -" +SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y" + require linux-ra...
Add var shader helper; Now you can write var(0) instead of layout(set = 2, binding = 0). The advantage is less typing and resilience in the event that the default set changes. The disadvantage is that now you can't use var.
@@ -155,6 +155,11 @@ layout(location = 14) in vec3 Tangent; // Helpers #define Constants layout(push_constant) uniform PushConstants +#ifdef GL_COMPUTE_SHADER +#define var(x) layout(set = 0, binding = x) +#else +#define var(x) layout(set = 2, binding = x) +#endif // Helper for sampling textures using the default sample...
compile: fix symver for highlevel
libelektra_0.8 { # elektra.h; - #- elektraOpen: moved to libelektra_0.9; + elektraOpen; ## Getter; elektraGetRawString; @@ -132,8 +132,6 @@ libelektra_0.8 { }; libelektra_0.9 { - elektraOpen; - elektraFindReference; elektraFindReferenceArrayElement; elektraHelpKey;
cmake: add -Werror for CFLAGS
cmake_minimum_required (VERSION 2.8 FATAL_ERROR) project (tcmu-runner C) set(VERSION 1.3.0-rc1) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wdeclaration-after-statement -std=c99") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wdeclaration-after-statement -std=c99") include(GNUInstallDirs) include(CheckIncludeFile...
add missing PT_REGS_RET definition for x86 add missing PT_REGS_RET definition for x86
@@ -741,6 +741,7 @@ int bpf_usdt_readarg_p(int argc, struct pt_regs *ctx, void *buf, u64 len) asm("l #define PT_REGS_PARM4(ctx) ((ctx)->cx) #define PT_REGS_PARM5(ctx) ((ctx)->r8) #define PT_REGS_PARM6(ctx) ((ctx)->r9) +#define PT_REGS_RET(ctx) ((ctx)->sp) #define PT_REGS_FP(ctx) ((ctx)->bp) /* Works only with CONFIG_FR...
shapito: fix misc error field read
@@ -156,9 +156,8 @@ int so_feread_error(so_feerror_t *error, uint8_t *data, uint32_t size) return 0; default: { - uint8_t *data; - uint32_t data_len; - rc = so_stream_readsz(&data, &data_len); + uint32_t field_len = 0; + rc = so_stream_readsz(&data, &field_len); if (so_unlikely(rc == -1)) return -1; break;
Fix deprecation warning in the tests.
@@ -14,7 +14,7 @@ class RuggedTest < Rugged::TestCase version = Rugged::libgit2_version assert_equal version.length, 3 version.each do |i| - assert i.is_a? Fixnum + assert i.is_a? Integer end end
i8sak: Minor formatting fix
@@ -197,7 +197,6 @@ void i8sak_tx_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) wpanlistener_add_eventreceiver(&i8sak->wpanlistener, tx_eventcb, &eventfilter, (FAR void *)i8sak, true); - ret = i8sak_tx(i8sak, fd); if (ret < 0) {
minor fix for last SGDK changes
@@ -78,7 +78,7 @@ Map bga; s16 camPosX; s16 camPosY; // require scroll update -bool scrollNeedUpdate; +//bool scrollNeedUpdate; fix32 maxSpeed; fix32 jumpSpeed; @@ -139,7 +139,7 @@ int main(u16 hard) // camera position (force refresh) camPosX = -1; camPosY = -1; - scrollNeedUpdate = FALSE; +// scrollNeedUpdate = FALSE;...
vppinfra: fix corner cases in tw_timer_expire Type: fix
@@ -513,7 +513,7 @@ static inline u32 slow_wheel_index __attribute__ ((unused)); u32 glacier_wheel_index __attribute__ ((unused)); - /* Shouldn't happen */ + /* Called too soon to process new timer expirations? */ if (PREDICT_FALSE (now < tw->next_run_time)) return callback_vector_arg; @@ -525,6 +525,27 @@ static inlin...
graph-store: properly take a deep tabulation
[e d] =* atom p.i.b =* node q.i.b + =. c (snoc c atom) ?- -.children.node - %empty $(e +(e), d (~(put by d) c node)) + %empty + $(b t.b, e +(e), d (~(put by d) c node), c ~) :: %graph - =/ f $(c (snoc c atom), b (tab:orm p.children.node ~ (sub a e))) + =/ f $(b (tab:orm p.children.node ~ (sub a e))) ?: =(e.f a) f %_ $ ...
Fix ActorCanvas import
import React from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; -import SpriteSheetCanvas from "./SpriteSheetCanvas1"; +import SpriteSheetCanvas from "./SpriteSheetCanvas"; import { framesPerDirection } from "../../lib/helpers/gbstudio"; import { PaletteShape } from "../../store/st...
Add predictive remarking for tui visualization
@@ -442,17 +442,42 @@ int main(int argc, char** argv) { } } + Field scratch_field; + field_init(&scratch_field); + Tui_cursor tui_cursor; tui_cursor_init(&tui_cursor); Usz tick_num = 0; Usz ruler_spacing_y = 8; Usz ruler_spacing_x = 8; + bool needs_remarking = true; for (;;) { int term_height = getmaxy(stdscr); int ter...
make find-doc-nits report function typedef w/ space before arg list
@@ -144,6 +144,11 @@ sub name_synopsis { $line =~ s/STACK_OF\([^)]+\)/int/g; $line =~ s/SPARSE_ARRAY_OF\([^)]+\)/int/g; $line =~ s/__declspec\([^)]+\)//; + if ( $line =~ /typedef.*\(\*\S+\)\s+\(/ ) { + # a callback function with whitespace before the argument list: + # typedef ... (*NAME) (... + err($id, "function type...
simplify the serial frame ACK.
@@ -47,10 +47,7 @@ owerror_t openserial_printInfoErrorCritical( errorparameter_t arg1, errorparameter_t arg2 ); -owerror_t openserial_ackReply( - bool positiveAck, - bool hasFrameFollowed -); +owerror_t openserial_ackReply(void); // command handlers void openserial_handleRxFrame(void); @@ -250,22 +247,16 @@ owerror_t o...
Log Change: Use fence for code snippet
@@ -17,7 +17,9 @@ be notified of every removed, added or changed key easily. Prints every added, changed or deleted key on the console. To use it, add it during mounting: +```sh kdb mount logchange.dump user/logchange dump logchange +``` Configure the plugin with `log/get=1` to enable printing when configuration is loa...
Cleanup some uses of wprintx non-formatted strings
@@ -468,19 +468,19 @@ void draw_hud(WINDOW* win, int win_y, int win_x, int height, int width, switch (input_mode) { case Ged_input_mode_normal: wattrset(win, A_normal); - wprintw(win, "insert"); + waddstr(win, "insert"); break; case Ged_input_mode_append: wattrset(win, A_bold); - wprintw(win, "append"); + waddstr(win, ...
kiln: minor print cleanup
++ bump-one |= [kel=weft =desk] ^+ kiln - ~> %slog.(fmt "bump {<desk>} to {<[- +]:kel>}") + ~> %slog.(fmt "bump {<desk>} to {<[lal num]:kel>}") =< abet ^+ vats =. vats (abed desk) ?: =([~ kel] (read-kelvin-local our desk now)) - ~> %slog.(fmt "{here} already at {<[- +]:kel>}") + ~> %slog.(fmt "{here} already at {<[lal ...
Documentation: Use correct tense
@@ -286,7 +286,7 @@ just run when a file is first mounted, but whenever a file gets updated, this fu ### `elektraPluginSet` -We also gave a brief overview of the `elektraPluginSet` function. This function is basically the opposite of `elektraPluginGet`. Where `elektraPluginGet` +We also give a brief overview of the `el...
KOKKOS Makefile Update. Check for /usr/lib64 as libkokkoscore.a is not created yet.
@@ -51,7 +51,7 @@ CPPFLAGS = $(INCLUDES) -Wall -Wextra -O3 -DNDEBUG -w $(TARGET_FLAGS) -std=c LINKFLAGS = $(enableopt) -Wall -Wextra -O3 -DNDEBUG -w $(TARGET_FLAGS) # Archive may be at lib64 for non-debian systems -ifneq (,$(wildcard $(KOKKOS_ROOT)/lib64/libkokkoscore.a)) +ifneq (,$(wildcard /usr/lib64)) KOKKOS_LIB = $...
quickdump: fix memleaks
@@ -207,6 +207,7 @@ int elektraQuickdumpGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key { if (c == EOF) { + keyDel (k); fclose (file); return ELEKTRA_PLUGIN_STATUS_ERROR; } @@ -216,6 +217,7 @@ int elektraQuickdumpGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key char * metaName = readString (file,...
jenkins: make image.id easier visible
@@ -939,7 +939,7 @@ def withDockerEnv(image, opts=[], cl) { "CTEST_PARALLEL_LEVEL='${cpu_count+2}'", "XDG_CONFIG_HOME=${WORKSPACE}/xdg/user", "XDG_CONFIG_DIRS=${WORKSPACE}/xdg/system"]) { - echo "Starting ${env.STAGE_NAME} on ${env.NODE_NAME}" + echo "Starting ${STAGE_NAME} on ${NODE_NAME} using ${image.id}" checkout s...
Error info should be send, whatever cmd or cmdq
@@ -207,6 +207,8 @@ void replyMemcachedBinaryError(client *c, memcachedBinaryResponseStatus err, co char *start = buf + sizeof(memcachedBinaryResponseHeader); memcpy(start, errstr, len); } + /* when meet error, error info response should be send */ + c->flags &= ~CLIENT_NO_REPLY; addReplyStringMemcached(c, buf, sizeof(...
Missing time -> timestamp change done after compiling code again under OSX
@@ -136,7 +136,7 @@ static timestamp rdtsc(void) asm("cpuid":::"%rax", "%rbx", "%rcx", "%rdx"); asm volatile("rdtsc" : "=a" (a), "=d" (d)); - return (((time)a) | (((time)d) << 32)); + return (((timestamp)a) | (((timestamp)d) << 32)); } void init_clock(kernel_heaps kh);
Add Size == operator
@@ -32,5 +32,6 @@ namespace blit { inline Size operator/ (Size lhs, const int a) { lhs /= a; return lhs; } inline Size operator* (Size lhs, const float a) { lhs *= a; return lhs; } inline Size operator* (Size lhs, const int a) { lhs *= a; return lhs; } + inline bool operator== (Size lhs, Size rhs) { return lhs.w == rhs...
Remove obsolete text in error message The HID/OTG features are now available on all platforms. PR <https://github.com/Genymobile/scrcpy/pull/3011>
@@ -1370,8 +1370,7 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[], opts->keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_HID; break; #else - LOGE("HID over AOA (-K/--hid-keyboard) is disabled (or " - "unsupported on this platform)."); + LOGE("HID over AOA (-K/--hid-keyboard) is disabled.");...
rm constraint for max value of button identifier updated error message to be more adequate for current contraint
@@ -19,10 +19,10 @@ struct cmd_results *input_cmd_scroll_button(int argc, char **argv) { new_input_config(current_input_config->identifier); int scroll_button = atoi(argv[0]); - if (scroll_button < 0 || scroll_button > 1000) { + if (scroll_button < 0) { free_input_config(new_config); return cmd_results_new(CMD_INVALID,...
Update compile options in msvc to properly build in release mode.
@@ -106,23 +106,15 @@ if(WIN32) if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") # Disable optimizations add_compile_options(/Od) - - # Multithread MSV CTR - add_compile_options(/MDd) - - ##add_compile_options(/LTCG) # Enable debugging information else() - add_compile_options(/GS) # B...
kernel/init: start the preapp task regardless of binary manager The preapp task which launches TASH and system tasks does not have any dependency with binary manager. So, it should be outside of binary manager conditional. This commit fixes an issue that TASH is not come up.
@@ -252,21 +252,18 @@ static inline void os_do_appstart(void) net_initialize(); #endif - /* Start the application initialization task. In a flat build, this is - * entrypoint is given by the definitions, CONFIG_USER_ENTRYPOINT. In - * the protected build, however, we must get the address of the - * entrypoint from the ...
Fix missing external declaration
int blas_server_avail = 0; +extern int openblas_omp_adaptive_env(); + static void * blas_thread_buffer[MAX_PARALLEL_NUMBER][MAX_CPU_NUMBER]; #ifdef HAVE_C11 static atomic_bool blas_buffer_inuse[MAX_PARALLEL_NUMBER];
Testing: Add test for and HDF5
@@ -33,6 +33,8 @@ tempGrib=temp.${label}.grib tempNetcdf=temp.${label}.nc tempText=temp.${label}.txt +have_netcdf4=0 + # Do we have ncdump? NC_DUMPER="" if command -v "ncdump" >/dev/null 2>&1; then @@ -51,6 +53,20 @@ if test "x$NC_DUMPER" != "x"; then grep -q "short tp_0001" $tempText fi +echo "Test HDF5 decoding ..." ...
Use tick elps
@@ -439,7 +439,7 @@ static lv_res_t lv_rotary_signal(lv_obj_t * rotary, lv_signal_t sign, void * par /*Calculate the slew rate limited angle based on threshold (degrees/sec)*/ int16_t delta_angle = angle - ext->last_angle; - uint32_t delta_tick = lv_tick_get() - ext->last_tick; + uint32_t delta_tick = lv_tick_elaps(ext...
Add oc_string_array_t to the SWIG types Tested-by: IoTivity Jenkins
jstring jvalue = JCALL1(NewStringUTF, jenv, oc_string(temp$argnum)); JCALL3(SetObjectArrayElement, jenv, $input, 0, jvalue); } + +/******************************************************************** + * oc_string_array_t * + ********************************************************************/ +%typemap(jni) oc_string...
ledc: Remove usage of legacy FreeRTOS type
@@ -597,7 +597,7 @@ static void ledc_cpu_reset_test_first_stage(void) ledc_timer_config_t ledc_time_config = create_default_timer_config(); TEST_ESP_OK(ledc_timer_config(&ledc_time_config)); - vTaskDelay(50 / portTICK_RATE_MS); + vTaskDelay(50 / portTICK_PERIOD_MS); esp_restart(); }
ssl_tls13_generate_and_write_ecdh_key_exchange(): remove redundant check This check can be removed as if the buffer is too small for the key, then export will fail.
@@ -262,12 +262,6 @@ static int ssl_tls13_generate_and_write_ecdh_key_exchange( } - if( own_pubkey_len > (size_t)( end - buf ) ) - { - MBEDTLS_SSL_DEBUG_MSG( 1, ( "No space in the buffer for ECDH public key." ) ); - return( MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL ); - } - *out_len = own_pubkey_len; return( 0 );
docs - add palloc/malloc discussion
<codeph><xref href="../ref_guide/config_params/guc-list.xml#memory_spill_ratio" type="section"/></codeph> server configuration parameter.</p> </section> + <section id="topic833cons" xml:lang="en"> + <title>Other Memory Considerations</title> + <p>Resource groups track all Greenplum Database memory allocated via the <co...
nailed down bits 24 and 25 in PPCI+0x488
</reg32> <reg32 offset="0x480" name="INTR" variants="G84-" type="g84_pci_intr"/> <reg32 offset="0x484" name="INTR_EN" variants="G84-" type="g84_pci_intr"/> + <reg32 offset="0x488" name="UNK488" variants="G84-"> + <bitfield low="24" high="25" name="MULTI_FUN_STATUS"> + <value value="0" name="DISABLED"/> + <value value="...
Fix SEGV when adding Philips hue motion sensor Issue
@@ -3463,7 +3463,7 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi item = sensorNode.addItem(DataTypeUInt8, RConfigSensitivityMax); item->setValue(R_SENSITIVITY_MAX_DEFAULT); sensorNode.removeItem(RConfigDuration); - item = sensorNode.item(RConfigDelay); + item = sensorNode.addItem(D...
Added error for mass function when mass is out of range
@@ -225,7 +225,7 @@ TASK: Outputs fitting function for use in halo mass function calculation; ccl_angulo (arxiv 1203.3216 ) ccl_watson (arxiv 1212.0095 ) ccl_shethtormen (arxiv 9901122) -*/ +-*/ static double massfunc_f(ccl_cosmology *cosmo, double halomass, double a, double odelta, int *status) { double fit_A, fit_a, ...
haskell-bindings-fix-tests: quote bindir
@@ -62,7 +62,7 @@ if (GHC_EXECUTABLE) add_custom_target (c2hs_haskell ALL DEPENDS "${BINDING_HASKELL_NAME}") # build and install it to the cabal db - install (CODE "execute_process (COMMAND ${CABAL_EXECUTABLE} install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") + install (CODE "execute_process (COMMAND ${CABAL_EXE...
SOVERSION bump to version 1.3.5
@@ -50,7 +50,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION # with backward compatible change and micro version is connected with any internal change of the library. set(LIBNETCONF2_MAJOR_SOVERSION 1) set(LIBNETCONF2_MINOR_SOVERSION 3) -set(LIBNETCONF2_MICRO_SOVERSION 4) +set(LIBN...
os/fs/driver/mtd: Add 'TODO' comment to check part operations Add 'TODO comment to indicate that mtd part operations need to be checked in the future to ensure watertight checks and avoid memory leaks.
@@ -216,6 +216,10 @@ static bool part_bytecheck(FAR struct mtd_partition_s *priv, off_t byoff) * Private Functions ****************************************************************************/ +//TODO: Check mtd part functions for memory leaks such as unchecked buffer overflows, +// etc. happening especially with the p...
Make ++from-module not leak faces.
:: :: ++ from-module :: create wrapper - |* _[%module ..$ _abet]:(hood-module) - => .(+< [identity start finish]=+<) + |* _[identity=%module start=..$ finish=_abet]:(hood-module) =- [wrap=- *start] :: usage (wrap handle-arm):from-foo |* handle/_finish - |= _+<.handle + |= a=_+<.handle =. +>.handle (start hid (able iden...
[remove] useless variable.
@@ -852,7 +852,6 @@ int timer_gettime(timer_t timerid, struct itimerspec *its) struct timer_obj *timer = (struct timer_obj *)timerid; rt_tick_t remaining; rt_uint32_t seconds, nanoseconds; - rt_int64_t nsecs, secs; if (timer == NULL) { @@ -918,7 +917,6 @@ int timer_settime(timer_t timerid, int flags, const struct itime...
VERSION bump to version 2.2.25
@@ -65,7 +65,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 2) -set(SYSREPO_MICRO_VERSION 24) +set(SYSREPO_MICRO_VERSION 25) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
idf.py: Don't expect "_" env. variable to be available from PowerShell
@@ -1113,7 +1113,7 @@ if __name__ == "__main__": WINPTY_VAR = "WINPTY" WINPTY_EXE = "winpty" if ("MSYSTEM" in os.environ) and ( - not os.environ["_"].endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ + not os.environ.get("_", "").endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ ): os.environ[WINPTY_VAR] = "1" ...
interface: update md version Fixes urbit/landscape#662
@@ -103,6 +103,6 @@ export default class MetadataApi extends BaseApi<StoreState> { } private metadataAction(data) { - return this.action('metadata-push-hook', 'metadata-update-0', data); + return this.action('metadata-push-hook', 'metadata-update-1', data); } }
BugID:18973731:[http] update http download log and add rx buffer limit
#define HTTPCLIENT_READ_BUF_SIZE (1024) /* read payload */ #define HTTPCLIENT_RAED_HEAD_SIZE (32) /* read header */ #define HTTPCLIENT_SEND_BUF_SIZE (1024) /* send */ +#define HTTPCLIENT_CHUNK_SIZE (1024) #define HTTPCLIENT_MAX_URL_LEN (256) @@ -306,14 +307,14 @@ static int _http_get_response_body(httpclient_t *client,...
stm32/Makefile: Use MBOOT_PACK_KEYS_FILE as depedency of .pack.dfu. To match the definition of GENERATE_PACK_DFU, so a board can customise the location/name of this file if needed.
@@ -676,7 +676,7 @@ $(BUILD)/firmware.dfu: $(BUILD)/firmware0.bin $(BUILD)/firmware1.bin $(call GENERATE_DFU,$@,$(word 1,$^),$(TEXT0_ADDR),$(word 2,$^),$(TEXT1_ADDR)) endif -$(BUILD)/firmware.pack.dfu: $(BUILD)/firmware.dfu $(BOARD_DIR)/mboot_keys.h +$(BUILD)/firmware.pack.dfu: $(BUILD)/firmware.dfu $(MBOOT_PACK_KEYS_F...
Adds usage of PRIVATE to target_link_libraries for add_deploy CMake commands
@@ -102,7 +102,7 @@ function(add_celix_container) include_directories(${CELIX_INCLUDE_DIRS}) add_executable(${CONTAINER_TARGET} ${LAUNCHER_SRC}) set_target_properties(${CONTAINER_TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CONTAINER_LOC}) - target_link_libraries(${CONTAINER_TARGET} ${CELIX_FRAMEWORK_LIBRARY} ${CELIX_...
fix static code analysis issue
@@ -267,7 +267,7 @@ STATIC int opae_uio_init(struct opae_uio *u, const char *dfl_device) // Check for uio string in dfl_device ptr = strstr(dfl_device, "uio"); - if (ptr == dfl_device) { + if (ptr && (ptr == dfl_device)) { if (snprintf(u->device_path, sizeof(u->device_path), "/dev/%s", ptr) < 0) { ERR("snprintf() faile...
[BSP] Add BOARD_STM32F429_APPOLO option.
@@ -15,6 +15,11 @@ config $PKGS_DIR option env="PKGS_ROOT" default "packages" +config BOARD_STM32F429_APPOLO + bool + select ARCH_ARM_CORTEX_M4 + default y + source "$RTT_DIR/KConfig" source "$PKGS_DIR/KConfig"
Optimize setGenericCommand(): no need to remove the expiration entry when 'expire' is not NULL
@@ -99,7 +99,8 @@ void setGenericCommand(client *c, int flags, robj *key, robj *val, robj *expire, return; } - setkey_flags |= (flags & OBJ_KEEPTTL) ? SETKEY_KEEPTTL : 0; + /* When expire is not NULL, we avoid deleting the TTL so it can be updated later instead of being deleted and then created again. */ + setkey_flags...
chat-cli: Cosmetic improvements Better variable naming. Trailing newline.
=* path p.n.inbox =* mailbox q.n.inbox =/ =target (path-to-target path) - =^ mon this (read-envelopes target envelopes.mailbox) - =^ mol this $(inbox l.inbox) - =^ mor this $(inbox r.inbox) - [:(weld mon mol mor) this] + =^ moves-n this (read-envelopes target envelopes.mailbox) + =^ moves-l this $(inbox l.inbox) + =^ m...
modinfo BUGFIX missing cache unlock Fixes
@@ -2468,6 +2468,10 @@ sr_modinfo_get_filter(struct sr_mod_info_s *mod_info, const char *xpath, sr_sess /* data will be changed, we cannot use the cache anymore */ lyd_dup_siblings(mod_info->data, NULL, LYD_DUP_RECURSIVE | LYD_DUP_WITH_FLAGS, &mod_info->data); mod_info->data_cached = 0; + + /* CACHE READ UNLOCK */ + sr...
Add missing replacements.
@@ -40,8 +40,8 @@ jobs: - C:\\Python27\\python -m pip install -U pip setuptools - C:\\Python27\\python -m pip install wheel - choco install python3 - - C:\\Python37\\python -m pip install -U pip setuptools - - C:\\Python37\\python -m pip install wheel + - C:\\Python38\\python -m pip install -U pip setuptools + - C:\\Py...
For the DoH create_http_handler, also pass the socket.
@@ -3377,7 +3377,8 @@ static struct comm_point* comm_point_create_http_handler(struct comm_base *base, struct comm_point* parent, size_t bufsize, int harden_large_queries, uint32_t http_max_streams, char* http_endpoint, - comm_point_callback_type* callback, void* callback_arg) + comm_point_callback_type* callback, void...
dms: don't load if pending
@@ -77,7 +77,7 @@ export function DmResource(props: DmResourceProps) { ); useEffect(() => { - if(dm.size === 0) { + if(dm.size === 0 && !pending) { getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`); } }, [ship, dm]); @@ -134,6 +134,7 @@ export function DmResource(props: DmResourceProps) { history.push...
[PRINTER] Fixed the VMOV.<dt> R, D[imm] instruction printer
@@ -396,7 +396,7 @@ const char* arm_print(uint32_t opcode) { int n = ((opcode >> 7) & 1) << 4 | ((opcode >> 16) & 0xF); int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF); - sprintf(ret, "VSHL.%s %s, %s, %s", dts[(u << 2) + size], vecname[(q << 5) + 0x20 + d], vecname[(q << 5) + 0x20 + n], vecname[(q << 5) + 0x20...
examples:dns_matching: fixed loop break condition The for loop was copying garbase characters after domain name. Fixed this by adding correct terminating condition. Also removed unnecessary code
@@ -70,10 +70,6 @@ int dns_matching(struct __sk_buff *skb) struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); if(udp->dport == 53){ - // Our Cursor + the length of our udp packet - size of the udp header - // - the two 16bit values for QTYPE and QCLASS. - u8 *sentinel = cursor + udp->length - sizeof(*udp) - 4; -...
Solve syntax errors for Travis CI.
@@ -62,12 +62,12 @@ after_script: - TRAVIS_REPO_OWNER=${TRAVIS_REPO_SLUG%/*} - TRAVIS_REPO_NAME=${TRAVIS_REPO_SLUG#*/} - PREVIOUS_TAG=`git describe HEAD^1 --abbrev=0 --tags` - - GIT_HISTORY=`git log --no-merges --format="- %s" $PREVIOUS_TAG..HEAD` - - if [[ $PREVIOUS_TAG == "" ]]; then GIT_HISTORY=`git log --no-merges ...
Removed usage of __popcnt Apparently some old processors don't support this instruction. It's up to the user to provide optimized implementation by defining macro VMA_COUNT_BITS_SET. Fixes
@@ -2685,6 +2685,11 @@ static void vma_aligned_free(void* VMA_NULLABLE ptr) #endif #endif +#ifndef VMA_COUNT_BITS_SET + // Returns number of bits set to 1 in (v) + #define VMA_COUNT_BITS_SET(v) VmaCountBitsSet(v) +#endif + #ifndef VMA_BITSCAN_LSB // Scans integer for index of first nonzero value from the Least Signific...
Release jni_sync_lock it on put/post fail If initPut or initPost methods fail this will release the jni_sync_lock before returning to prevent the code from deadlocking.
@@ -1336,7 +1336,13 @@ bool jni_oc_init_put(const char *uri, oc_endpoint_t *endpoint, const char *query OC_DBG("JNI: %s\n", __func__); OC_DBG("JNI: - lock %s\n", __func__); jni_mutex_lock(jni_sync_lock); - return oc_init_put(uri, endpoint, query, handler, qos, jcb); + bool returnValue = oc_init_put(uri, endpoint, query...
Synchronous egg commitment
@@ -1622,35 +1622,6 @@ _raft_punk(u3_noun ovo) } -static void -_raft_comm(c3_d bid_d) -{ - u3p(u3v_cart) egg_p; - - u3_lo_open(); - - egg_p = u3A->ova.egg_p; - while ( egg_p ) { - u3v_cart* egg_u = u3to(u3v_cart, egg_p); - - if ( egg_u->ent_d <= bid_d ) { - egg_u->cit = c3y; - } else break; - - egg_p = egg_u->nex_p; - ...
libhfuzz: call __asan_init is it's available, and under Android
int hfuzz_module_instrument = 0; static bool guards_initialized = false; - -#if defined(__has_feature) -#if __has_feature(address_sanitizer) -void __asan_init(void); -#endif /* __has_feature(address_sanitizer) */ -#endif /* defined(__has_feature) */ +void __asan_init(void) __attribute__((weak)); /* * We require SSE4.2 ...
Fix TZ grid search and star refinement Changes TZ grid search and star refinement to keep the origin constant instead of moving to the best position after each iteration. Changes star refinement to loop until there is no more improvement, instead of running the step only once.
@@ -478,6 +478,7 @@ static bool early_terminate(inter_search_info_t *info) void kvz_tz_pattern_search(inter_search_info_t *info, unsigned pattern_type, const int iDist, + vector2d_t mv, int *best_dist) { assert(pattern_type < 4); @@ -573,8 +574,6 @@ void kvz_tz_pattern_search(inter_search_info_t *info, }; } - const vec...
BugID:16944965: Fix test/Config.in
@@ -7,16 +7,15 @@ source "test/develop/benchmark/realtime_test/Config.in" source "test/develop/bluetooth/ble_bqb/Config.in" source "test/develop/bluetooth/blemesh/Config.in" source "test/develop/bluetooth/blemesh_cli/Config.in" +source "test/develop/bluetooth/blemesh_cmds/Config.in" source "test/develop/bluetooth/bleme...
Add 'since' at mqtt APIs for doxygen
@@ -147,7 +147,7 @@ typedef struct _mqtt_client_t { * * @param[in] config the information of MQTT client object configuration * @return On success, the handle of MQTT client object is returned. On failure, NULL is returned. - * + * @since Tizen RT v1.1 */ mqtt_client_t *mqtt_init_client(mqtt_client_config_t *config); @...
spi_common: remove deprecated spi_common_periph_claim macros
@@ -143,18 +143,6 @@ esp_err_t spi_bus_free(spi_host_device_t host); */ bool spicommon_periph_claim(spi_host_device_t host, const char* source); -// The macro is to keep the back-compatibility of IDF v3.2 and before -// In this way we can call spicommon_periph_claim with two arguments, or the host with the source set t...
[bsp] Fix a CAN interrupt number macro definition bug for STM32F10X_LD,STM32F10X_MD and STM32F10X_XL series.
#include <rtdevice.h> #include <board.h> #include <bxcan.h> + #ifdef RT_USING_COMPONENTS_INIT #include <components.h> #endif + #ifdef RT_USING_CAN #ifndef STM32F10X_CL #define BX_CAN_FMRNUMBER 28 #define BX_CAN2_FMRSTART 14 #endif -#ifdef STM32F10X_HD -#undef USING_BXCAN2 +#if (defined (STM32F10X_LD)) || (defined (STM3...
spi_master: change to DMA burst mode when access descriptors
@@ -607,6 +607,8 @@ static void SPI_MASTER_ISR_ATTR spi_intr(void *arg) host->hw->dma_in_link.start=0; host->hw->dma_conf.val &= ~(SPI_OUT_RST|SPI_IN_RST|SPI_AHBM_RST|SPI_AHBM_FIFO_RST); host->hw->dma_conf.out_data_burst_en=1; + host->hw->dma_conf.indscr_burst_en=1; + host->hw->dma_conf.outdscr_burst_en=1; //Set up QIO...
Make use of POCL_DEVICES_ENV
@@ -617,9 +617,9 @@ pocl_init_devices () pocl_num_devices += device_count[i]; } - const char *dev_env = pocl_get_string_option ("POCL_DEVICES", NULL); + const char *dev_env = pocl_get_string_option (POCL_DEVICES_ENV, NULL); POCL_GOTO_ERROR_ON ((pocl_num_devices == 0), CL_DEVICE_NOT_FOUND, - "no devices found. POCL_DEVI...
Extend the note id to 32 bits
@@ -117,7 +117,7 @@ typedef int32_t clap_event_type; typedef struct clap_event_note { clap_event_header_t header; - int16_t note_id; // -1 if unspecified, otherwise >0 + int32_t note_id; // -1 if unspecified, otherwise >0 int16_t port_index; int16_t key; // 0..127 int16_t channel; // 0..15 @@ -148,7 +148,7 @@ typedef s...
Completions: Do not suggest useless entries
@@ -69,7 +69,7 @@ end function __fish_kdb_print_namespaces -d 'Print a list of possible namespace completions' set -l namespace (commandline -ct) - kdb complete --max-depth=1 "$namespace" + kdb complete --max-depth=1 "$namespace" | string match -vr '(dir|proc|spec|user)$' end # -- Completions --------------------------...