message
stringlengths
6
474
diff
stringlengths
8
5.22k
Fixing process crash in case of module load error. This is related to issue on GitHub.
@@ -327,6 +327,9 @@ nxt_app_start(nxt_task_t *task, void *data) lang->version, lang->file); nxt_app = nxt_app_module_load(task, lang->file); + if (nxt_slow_path(nxt_app == NULL)) { + return NXT_ERROR; + } } if (nxt_app->pre_init != NULL) {
Add dumbindent comment about `extern "C"`
@@ -85,6 +85,10 @@ func Format(src []byte) (dst []byte, retErr error) { } // Preprocessor lines (#ifdef, #pragma, etc) are never indented. + // + // The '{' and '}' for an `extern "C"` are also special cased not to + // change indentation inside the block. This assumes that the closing + // brace is followed by a `// e...
tests: don't run NEON tests The NEON code is pretty broken, which is why we're not installing the headers. These tests will be re-enabled once the NEON stuff is re-written. Fixes
@@ -10,7 +10,7 @@ int main(int argc, char* argv[HEDLEY_ARRAY_PARAM(argc + 1)]) { static MunitSuite suite = { "", NULL, NULL, 1, MUNIT_SUITE_OPTION_NONE }; MunitSuite suites[] = { *simde_tests_x86_get_suite(), - *simde_tests_arm_get_suite(), + /* *simde_tests_arm_get_suite(), */ { NULL, NULL, NULL, 1, MUNIT_SUITE_OPTION...
SHA: fix dma lldesc going out of scope issue DMA process didnt wait for idle before returning. This meant that there was a potential for the dma descriptors which were on the stack to be reclaimed before the DMA operation finished.
@@ -226,7 +226,7 @@ int esp_sha_dma(esp_sha_type sha_type, const void *input, uint32_t ilen, /* Copy to internal buf if buf is in non DMA capable memory */ if (!esp_ptr_dma_ext_capable(buf) && !esp_ptr_dma_capable(buf) && (buf_len != 0)) { - dma_cap_buf = heap_caps_malloc(sizeof(unsigned char) * buf_len, MALLOC_CAP_DMA...
Refactor sched_gettcb tc Add negative case and remove waitpid to run tc whether CONFIG_SCHED_WAITPID is enable
#define VAL_3 3 #define VAL_5 5 #define TASK_STACKSIZE 2048 +#define PID_INVAL -1 +#define PID_IDLE 0 pthread_t thread1, thread2; @@ -326,17 +328,14 @@ static void tc_sched_waitpid(void) static void tc_sched_sched_gettcb(void) { struct tcb_s *tcb; - pid_t pid; - int stat_loc; - pid = task_create("tc_gettcb", SCHED_PRIO...
chip/ish/ish_i2c.h: Format with clang-format BRANCH=none TEST=none
#define DEFAULT_SDA_HOLD_FAST_PLUS 300 #define DEFAULT_SDA_HOLD_HIGH 140 #define NS_2_COUNTERS(ns, clk) ((ns * clk) / NS_IN_SEC) -#define COUNTERS_2_NS(counters, clk) (counters * (NANOSECONDS_IN_SEC / \ - (clk * HZ_IN_MEGAHZ))) +#define COUNTERS_2_NS(counters, clk) \ + (counters * (NANOSECONDS_IN_SEC / (clk * HZ_IN_MEG...
fix undefined CC again
@@ -330,7 +330,7 @@ if ($link ne "") { $flags =~ s/\@/\,/g; $linker_L .= "-Wl,". $flags . " " ; } - if ($flags =~ /-lgomp/ && $CC =~ /clang/) { + if ($flags =~ /-lgomp/ && $ENV("CC") =~ /clang/) { $flags = "-lomp"; }
free_thread(): fix memory leak This function was failing to deallocate the signalfds notify set.
@@ -282,6 +282,7 @@ define_closure_function(1, 0, void, free_thread, thread, t) { deallocate_bitmap(bound(t)->affinity); + deallocate_notify_set(bound(t)->signalfds); deallocate(heap_general(get_kernel_heaps()), bound(t), sizeof(struct thread)); }
Renumber packet types
@@ -218,14 +218,14 @@ typedef enum { } ngtcp2_pkt_flag; typedef enum { - NGTCP2_PKT_VERSION_NEGOTIATION = 0x01, - NGTCP2_PKT_INITIAL = 0x02, - NGTCP2_PKT_RETRY = 0x03, - NGTCP2_PKT_HANDSHAKE = 0x04, - NGTCP2_PKT_0RTT_PROTECTED = 0x05, - NGTCP2_PKT_01 = 0x01, - NGTCP2_PKT_02 = 0x02, - NGTCP2_PKT_03 = 0x03 + NGTCP2_PKT_V...
Use dev images for pipeline This commit should be removed before merge as master images will have been updated at that time.
@@ -523,7 +523,7 @@ resources: type: docker-image source: repository: pivotaldata/gpdb7-centos7-build - tag: latest + tag: devv13 {% endif %} {% if "centos7" in os_types or "CLI" in test_sections %} @@ -531,7 +531,7 @@ resources: type: docker-image source: repository: pivotaldata/gpdb7-centos7-test - tag: latest + tag:...
utils: trace: Add waitForCondition(). This function is a generic version of waitForTraceState() to which you give a function pointer which acts as condition. Thus, waitForTraceState() was modified to use waitForCondition().
@@ -452,14 +452,17 @@ func getTraceWatcher(traceID string) (watch.Interface, error) { return watcher, nil } -// waitForTraceState wait for traces whom ID is given as parameter to be in the -// expected state. -func waitForTraceState(traceID string, expectedState string) (*gadgetv1alpha1.TraceList, error) { +// waitForC...
Fix Classify session creation error
@@ -2302,7 +2302,7 @@ classify_session_command_fn (vlib_main_t * vm, VLIB_CLI_COMMAND (classify_session_command, static) = { .path = "classify session", .short_help = - "classify session [hit-next|l2-hit-next|" + "classify session [hit-next|l2-input-hit-next|l2-output-hit-next|" "acl-hit-next <next_index>|policer-hit-n...
Clarify h2o_quic_send returns boolean
@@ -485,7 +485,7 @@ void h2o_http3_dispose_conn(h2o_http3_conn_t *conn); */ int h2o_http3_setup(h2o_http3_conn_t *conn, quicly_conn_t *quic); /** - * sends packets immediately by calling quicly_send, sendmsg (returns 1 if success, 0 if the connection was destroyed) + * sends packets immediately by calling quicly_send, ...
mangoapp: clean up msg_size
@@ -129,15 +129,15 @@ void msg_read_thread(){ while (1){ // make sure that the message recieved is compatible // and that we're not trying to use variables that don't exist (yet) - size_t msg_size = msgrcv(msgid, (void *) raw_msg, sizeof(raw_msg), 1, 0); + size_t msg_size = msgrcv(msgid, (void *) raw_msg, sizeof(raw_ms...
docs BUGFIX allign description and the argument name
@@ -297,7 +297,7 @@ typedef void (*ly_module_imp_data_free_clb)(void *module_data, void *user_data); /** * @brief Callback for retrieving missing included or imported models in a custom way. * - * When submod_name is provided, the submodule is requested instead of the module (in this case only + * When @p submod_name i...
Adjust titles in Devito README.
@@ -12,7 +12,7 @@ pip3 install -e . cd benchmarks/user/ ``` -<b>Set up environment.</b> +<b>Set AOMP.</b> If AOMP was installed via debian or rpm: ``` export AOMP=/usr/lib/aomp @@ -21,7 +21,7 @@ Otherwise: ``` export AOMP=/path/to/aomp ``` -<b>Set up environment variables.</b> +<b>Set up other environment variables.</b...
update conditions for ARCH_TYPE_32 and ARCH_TYPE_64 vars
@@ -122,11 +122,11 @@ class Platform(object): @property def is_32_bit(self): - return self.arch in ('i386', 'i686', 'x86', 'arm') + return self.arch in ('i386', 'i686', 'x86') or self.arch.startswith('armv7') @property def is_64_bit(self): - return self.arch == 'x86_64' + return self.arch in ('x86_64', 'armv8a', 'arm64...
C++ style: don't change code in the working tree Use --dry-run so that no code is changed, -Werror so that the process exit code is non-zero when a style violation is detected. Check the process exit code to determine pass/fail.
@@ -67,9 +67,9 @@ check_cpp () { FILES=$(find_cpp) echo "Checking $FILES" - clang-format -i -style=Google ${FILES} + clang-format --dry-run -Werror -style=Google ${FILES} - if [ x"$(git diff -- ${FILES})" != x ]; then + if [ $? -ne 0 ]; then echo "Coding style check failed. Please fix them based on the following sugges...
Fix homepage link in Cocoapod podspec
@@ -17,7 +17,7 @@ Pod::Spec.new do |s| By carto.com DESC - s.homepage = "https://carto.com/mobile/" + s.homepage = "https://carto.com/developers/mobile-sdk/" s.screenshots = "https://github.com/CartoDB/mobile-ios-samples/blob/gh-pages/carto-mobile-sdk-animated.gif?raw=true" s.license = { :type => "BSD" }
slow down rcascan speed
@@ -4325,7 +4325,7 @@ gettimeofday(&tv, NULL); tvold.tv_sec = tv.tv_sec; tvold.tv_usec = tv.tv_usec; tvfd.tv_sec = 0; -tvfd.tv_usec = 100000; +tvfd.tv_usec = FDUSECTIMER; cpa = 0; if(set_channel() == false) errorcount++; if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_ATTACKS) send_proberequest_undirected_broadcast...
Add one troubleshooting hint
@@ -55,6 +55,9 @@ Either run Winetricks in itself if you use your default prefix, or from your cus From now on, you can follow the Setting up the mod with ProtonTricks instructions. If you want to verify in Winetricks has correctly taken in account your custom Wine directory, click on `Browse files` to see if it brings...
bugfix (esp_timer): made os spinlock static
@@ -45,7 +45,7 @@ static intr_handler_t s_alarm_handler = NULL; static systimer_hal_context_t systimer_hal; /* Spinlock used to protect access to the hardware registers. */ -portMUX_TYPE s_time_update_lock = portMUX_INITIALIZER_UNLOCKED; +static portMUX_TYPE s_time_update_lock = portMUX_INITIALIZER_UNLOCKED; void esp_t...
Add "a" read swizzle to ETC2
@@ -110,7 +110,7 @@ use today. | EAC_R11 | `rrr1` | `.r` | | | EAC_RG11 | `rrrg` | `.ra` <sup>2</sup> | | | ETC1 | `rgb1` | `.rgb` | | -| ETC2 | `rgba` <sup>1</sup> | `.rgb` | | +| ETC2 | `rgba` <sup>1</sup> | `.rgba` | | | ETC2+EAC | `rgba` | `.rgba` | | | ETC2+EAC | `rgba` | `.rgba` | |
Add missing argument back
@@ -1118,7 +1118,7 @@ static void block() { static void function(FunctionType type) { Compiler compiler; - initCompiler(&compiler, 1, type); + initCompiler(&compiler, 1, type, vm.repl); bool optional = false; // Compile the parameter list.
Fix options window restart dialog location
@@ -1081,7 +1081,7 @@ static VOID PhpOptionsNotifyChangeCallback( if (RestartRequired) { if (PhShowMessage2( - PhMainWndHandle, + (IsWindowVisible(PhMainWndHandle) && !IsMinimized(PhMainWndHandle)) ? PhMainWndHandle : NULL, TDCBF_YES_BUTTON | TDCBF_NO_BUTTON, TD_INFORMATION_ICON, L"One or more options you have changed ...
Improve `xcallback` URL encoding
@@ -45,7 +45,7 @@ def add_url_params(url, params): ) # Converting URL argument to proper query string - encoded_get_args = urlencode(parsed_get_args, doseq=True) + encoded_get_args = urlencode(parsed_get_args, doseq=False) # Creating new parsed result object based on provided with new # URL arguments. Same thing happen...
Added EWOULDBLOCK errno
#define ENOSYS 35 /* Function not supported */ #define EAFNOSUPPORT 36 /* Address family not supported. */ #define ETIME 37 +#define EWOULDBLOCK EAGAIN /* Operation would block */ #endif
QUIC CHANNEL: Minor cleanups and bug fix
@@ -525,7 +525,7 @@ static int ch_on_handshake_yield_secret(uint32_t enc_level, int direction, * data. */ for (i = QUIC_ENC_LEVEL_INITIAL; i < enc_level; ++i) - if (!crypto_ensure_empty(ch->crypto_recv[i])) { + if (!crypto_ensure_empty(ch->crypto_recv[ossl_quic_enc_level_to_pn_space(i)])) { /* Protocol violation (RFC 9...
net/netdev/ioctl: correct the argument length of ioctl MII/PHY
@@ -1635,6 +1635,18 @@ ssize_t net_ioctl_arglen(int cmd) case SIOCGIFCOUNT: case SIOCSIFFLAGS: case SIOCGIFFLAGS: + case SIOCMIINOTIFY: + case SIOCGMIIPHY: + case SIOCGMIIREG: + case SIOCSMIIREG: + case SIOCGCANBITRATE: + case SIOCSCANBITRATE: + case SIOCACANEXTFILTER: + case SIOCDCANEXTFILTER: + case SIOCACANSTDFILTER...
Remove getchar() in integration test
@@ -13,7 +13,5 @@ int main(int argc, char * argv[]) { ::testing::InitGoogleMock(&argc, argv); ::testing::AddGlobalTestEnvironment(new environment()); - auto a = RUN_ALL_TESTS(); - getchar(); - return a; + return RUN_ALL_TESTS(); }
parallel-libs/mfem: build shared lib; rm static one
@@ -78,6 +78,10 @@ make config \ make %{?_smp_mflags} +mkdir tmp +(cd tmp; ar -x ../libmfem.a) +mpicxx -shared -Wl,-soname,libmfem.so.3 -o libmfem.so tmp/*.o + %install # OpenHPC compiler/mpi designation %ohpc_setup_compiler @@ -92,6 +96,13 @@ make PREFIX=%{buildroot}%{install_path} install sed -i 's|%{buildroot}||g' %...
Add extra tests (CCSDS and grib1 2nd order)
@@ -61,6 +61,7 @@ GRIB1_INPUTS=" ${data_dir}/gen_bitmap.grib ${data_dir}/spectral_complex.grib1 ${data_dir}/gen_ext.grib + ${data_dir}/gen.grib ${data_dir}/gen_ext_spd_2.grib" GRIB2_INPUTS=" @@ -73,7 +74,9 @@ if [ $HAVE_JPEG -eq 1 ]; then echo "Adding extra files (HAVE_JPEG=1)" GRIB2_INPUTS="${data_dir}/jpeg.grib2 ${da...
passwd: do not check formatting of imported code
@@ -50,6 +50,7 @@ static int validatepwent (struct passwd * pwd) } #if defined(USE_FGETPWENT_LOCAL) +// clang-format off /* Taken from musl libc * * https://github.com/ifduyue/musl/blob/b4b1e10364c8737a632be61582e05a8d3acf5690/src/passwd/getpwent_a.c @@ -118,6 +119,7 @@ struct passwd *fgetpwent_l(FILE *f) __getpwent_a(...
Added directions for accessing log stream and splunk to the readme file.
@@ -5,9 +5,11 @@ These represent containers used to test Cribl Scope. Containers: cribl The log stream product. Metric results are sent to log stream. One or more pipelines in log stream will maniplulate metrics and route them to splunk for evaluation. +Access log stream at http://localhost:9000/ splunk A splunk instan...
clay: fix +build-fit
?~ kid=(~(get by dir.nak) i.path) ~ $(nak u.kid, path t.path) - :: +get-fit: produce path with suffix /'s maybe converted to -'s - :: - ++ get-fit - |= [pre=@tas pax=@tas] - ^- (unit path) - ?~ nuk=(~(get by dir.nak) pre) - ~ - =. nak u.nuk - =/ paz (segments pax) - |- ^- (unit path) - ?~ paz ~ - =/ pax (snoc i.paz %ho...
Skip permission updates for Homebrew folders when NOROOT is set
# control of the brew dirs. That causes the brew update to fail. # Temporarily allow the user to take over control of brew files. -echo *** -echo *** You may need to enter your admin password to update the brew files: -echo *** - -sudo chown -R $(whoami) /usr/local/Cellar -sudo chown -R $(whoami) /usr/local/Homebrew -s...
newtmgr; crashes with invalid nh_len. Fix by removing ability to handle multiple incoming requests in a single message, as that is not being used.
@@ -188,8 +188,6 @@ nmgr_handle_req(struct nmgr_transport *nt, struct os_mbuf *req) CborEncoder payload_enc; struct nmgr_hdr *rsp_hdr; struct nmgr_hdr hdr; - int off; - uint16_t len; uint16_t mtu; int rc; @@ -215,11 +213,7 @@ nmgr_handle_req(struct nmgr_transport *nt, struct os_mbuf *req) /* Copy the request user heade...
Fix pagecache sg leaks and refcounting pages in writes This fixes cleaning up sg lists when errors occur, a missing refcount_release in pagecache_write_sg_finish().
@@ -144,9 +144,11 @@ static inline void change_page_state_locked(pagecache pc, pagecache_page pp, int case PAGECACHE_PAGESTATE_FREE: if (old_state == PAGECACHE_PAGESTATE_NEW) { pagelist_move(&pc->free, &pc->new, pp); - } else { - assert(old_state == PAGECACHE_PAGESTATE_ACTIVE); + } else if (old_state == PAGECACHE_PAGES...
Disable flto for correct warning report.
@@ -10,7 +10,7 @@ addons: - libexpat-dev - clang script: - - ./configure --enable-debug + - ./configure --enable-debug --disable-flto - make - make test - cd testdata; ../testcode/mini_tdir.sh exe clang-analysis.tdir ; if grep -e "warning:" -e "error:" result.clang-analysis ; then exit 1; else exit 0; fi
Splash submit on Enter
@@ -62,12 +62,19 @@ class Splash extends Component { if (key === "name") { value = stripInvalidFilenameCharacters(value); } + this.setState({ [key]: value, nameError: false }); }; + onKeyDown = e => { + if (e.key === "Enter") { + this.onSubmit(e); + } + }; + onSelectFolder = e => { if (e.target.files && e.target.files[...
Create MARS stream for GRIB EFAS output
1054 rjtd Tokyo 1055 cwao Montreal 1056 ammc Melbourne +1057 efas European Flood Awareness System 1070 msdc Monthly standard deviation and covariance 1071 moda Monthly means of daily means 1072 monr Monthly means using G. Boer's step function
Ignore OTA packets in checkSensorButtonEvent()
@@ -2471,6 +2471,11 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A return; } + if (ind.clusterId() == OTAU_CLUSTER_ID) + { + return; + } + bool checkReporting = false; const Sensor::ButtonMap *buttonMap = sensor->buttonMap(); if (!buttonMap)
prefer PRIu64 instead of "lu" in fprintf
@@ -58,10 +58,10 @@ static void show_event_per_sec(h2o_tracer_t *tracer, time_t *t0) strftime(s, sizeof(s), iso8601format, &t); if (tracer->lost_count > 0) { - fprintf(stderr, "%s %20lu events/s (possibly lost %" PRIu64 " events)\n", s, c, tracer->lost_count); + fprintf(stderr, "%s %20" PRIu64 " events/s (possibly lost...
[apps] Remove race condition in `hello_world`
#include "runtime.h" #include "synchronization.h" -volatile uint32_t atomic __attribute__((section(".l1"))); +volatile uint32_t atomic __attribute__((section(".l2"))) = -1; extern volatile uint32_t tcdm_start_address_reg; extern volatile uint32_t tcdm_end_address_reg; @@ -37,15 +37,16 @@ int main(int argc, char **argv)...
Updated sample startup.conf with supported plugin config options.
@@ -127,11 +127,20 @@ cpu { # no-tx-checksum-offload # } -# Adjusting the plugin path depending on where the VPP plugins are: -#plugins -#{ + +# plugins { + ## Adjusting the plugin path depending on where the VPP plugins are # path /home/bms/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins + + ## Disable all plu...
kernel/semaphore: update some comments on nsem_inode_s Add more description on some field of struct nsem_inode_s. [Shin: backported from NuttX]
struct inode; struct nsem_inode_s { + /* + * This must be the first element of the structure. In sem_close() + * this structure must be cast compatible with sem_t. + */ sem_t ns_sem; /* The contained semaphore */ /* Inode payload unique to named semaphores */
resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h Closes
@@ -50,14 +50,14 @@ typedef union { tSDP_UUID *p_uuid_list; } start_discovery; //BTC_SPP_ACT_CONNECT - struct connect_arg { + struct conn_arg { esp_spp_sec_t sec_mask; esp_spp_role_t role; UINT8 remote_scn; esp_bd_addr_t peer_bd_addr; } connect; //BTC_SPP_ACT_DISCONNECT - struct disconnect_arg { + struct disconn_arg { ...
extmod/modussl_axtls: Typo fix in comment.
@@ -113,7 +113,7 @@ STATIC mp_uint_t socket_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errc mp_int_t r = ssl_read(o->ssl_sock, &o->buf); if (r == SSL_OK) { // SSL_OK from ssl_read() means "everything is ok, but there's - // not user data yet. So, we just keep reading. + // no user data yet". So, we just keep r...
Read from both documented CommercialId locations There are two places in the registry where CommercialId may exist per the CS documentation (https://1dsdocs.azurewebsites.net/schema/PartA/m365a.html), and we should read from both of them in the preferred order.
@@ -152,10 +152,15 @@ namespace PAL_NS_BEGIN { std::string getCommercialId() { char buff[MAX_PATH] = { 0 }; + const PCSTR c_groupPolicyDataCollection_Key = "SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection"; const PCSTR c_dataCollection_Key = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection...
Add change to release note doc: Short description of changes added to release notes
@@ -275,7 +275,7 @@ This section keeps you up-to-date with the multi-language support provided by El - <<TODO>> - <<TODO>> - <<TODO>> -- <<TODO>> +- Denoted pacakage names & global variable names in [INSTALL.d](../INSTALL.md) as `Code` (@janldeboer) - <<TODO>> - <<TODO>> - Improve reference to Podman documentation _(@0...
docs: Add detail to shutdown/wipe/free usage Examples snippets of code might be more useful for this in the future. closes
@@ -743,8 +743,10 @@ const char * s2n_connection_get_curve(struct s2n_connection *conn); int s2n_connection_wipe(struct s2n_connection *conn); ``` -**s2n_connection_wipe** erases all data associated with a connection including -pending reads. +**s2n_connection_wipe** wipes an existing connection and allows it to be reu...
Removed Ubuntu Cosmic from Travis CI builds, since it is deprecated.
@@ -37,22 +37,6 @@ matrix: group: travis_latest env: DOCKER="ubuntu:disco" VARIANT="ubuntu" TOOL="pbuilder" - # ====== Ubuntu 18.10 (Cosmic Cuttlefish) ================================ - - name: "Ubuntu 18.10 (Cosmic Cuttlefish) with GCC" - os: linux - dist: xenial - group: travis_latest - env: DOCKER="ubuntu:cosmic" V...
Fix estimation of kernel support.
@@ -428,16 +428,16 @@ ccl_cl_tracer_t *ccl_cl_tracer_t_new(ccl_cosmology *cosmo, tr->chi_max = chi_w[n_w-1]; // Find minimum - for (ichi=0; ichi < n_w; ichi++) { - if (fabs(w_w[ichi]) >= w_max) { + for (ichi=0; ichi < n_w-1; ichi++) { + if (fabs(w_w[ichi+1]) >= w_max) { tr->chi_min = chi_w[ichi]; break; } } // Find max...
Disable llvm dynamic libs as amd-stg-open has this currently disabled.
@@ -59,9 +59,9 @@ fi MYCMAKEOPTS="-DLLVM_ENABLE_PROJECTS=clang;lld;compiler-rt -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_PROJECT -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=$TARGETS_TO_BUILD $COMPILERS -DLLVM_VERSION_SUFFIX=_AOMP${standalone_word}_$AOMP_VERSION_STRING -DCLANG_VENDOR=AOMP${s...
Comment: Remove tcp echo client from the comments
*/ /****************************************************************************** - * This project provides three demo applications. A simple blinky style project, - * a more comprehensive test and demo application, and a TCP echo demo. + * This project provides two demo applications. A simple blinky style project, + ...
Fixed bytes delete
@@ -649,8 +649,9 @@ namespace blit { palette = nullptr; } - //if(!file.get_ptr()) - // delete[] bytes; + if (!file.get_ptr()) { + delete[] (uint8_t*)(bytes - image.byte_count + offset); + } } /**
groups: remove - mh2 -> mh3 Design tweak.
@@ -68,7 +68,7 @@ export class ContactSidebar extends Component { title={member}> {cite(member)} </p> - <p className={"v-mid f9 mh2 red2 pointer " + adminOpt} + <p className={"v-mid f9 mh3 red2 pointer " + adminOpt} style={{paddingTop: 6}} onClick={() => { props.api.setSpinner(true);
component/bt: fix don't dequeue the command queue after process the read_by_type_req
@@ -1087,6 +1087,7 @@ void gatts_process_read_by_type_req(tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, } } else { attp_send_sr_msg(p_tcb, p_msg); + gatt_dequeue_sr_cmd(p_tcb); } }
patch-check: detect duplicated files
@@ -41,6 +41,7 @@ _BASH_INDENTATION = "2" _GIT_COMMIT_SUBJECT_LENGTH = 65 _INCLUDE_BASH_FILES_ONLY = [r".*\.sh$"] _INCLUDE_MAN_FILES_ONLY = [r"man/.+\.1$"] +_INCLUDE_SOURCE_FILES_ONLY = [r".*\.[ch]$"] _LIBWEBP_MAX_LINE_LENGTH = 80 @@ -72,6 +73,35 @@ def _CheckCommitSubjectLength(input_api, output_api): return output_ap...
Preserve stacktraces with xpcall instead of pcall
@@ -148,7 +148,7 @@ end -- typecheck = function(prog) - local ok, err = pcall(check_program, prog) + local ok, err = xpcall(check_program, debug.traceback, prog) if ok then return prog, {} -- TODO: no {} else
SOVERSION bump to version 2.8.7
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 8) -set(LIBYANG_MICRO_SOVERSION 6) +set(LIBYANG_MICRO_SOVERSION 7) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
version 1.11.4 (revised)
-2018-08-09 [version 1.11.4] +2018-08-17 [version 1.11.4] * [Fix] Fix free space mis-calculation when the last 01pct slot is freed. * [Fix] Use free small memory if possible when sm space is short of. * [Fix] Fix the wrong result of bop smget with unique option when the first bkeys of some btrees are duplicate. * [Fix]...
Change -c option to use dofile instead of require
"n" (fn [&] (set *colorize* false) 1) "m" (fn [i &] (setdyn :syspath (get process/args (+ i 1))) 2) "c" (fn [i &] - (def e (require (get process/args (+ i 1)))) + (def e (dofile (get process/args (+ i 1)))) (spit (get process/args (+ i 2)) (make-image e)) (set *no-file* false) 3)
Make all the C functions static We can think about modules, name mangling and all of that later
@@ -92,9 +92,8 @@ end -- This name-mangling scheme is designed to avoid clashes between the function -- names created in separate models. -local function mangle_function_name(modname, funcname, suffix) - return string.format("ttt_%d%s%d%s%s", - #modname, modname, #funcname, funcname, suffix) +local function mangle_func...
[NFSU2] bugfix for the smokeable frametime deref
@@ -744,7 +744,7 @@ void Init() uint32_t* dword_40A744 = hook::pattern("68 89 88 88 3C").count(1).get(0).get<uint32_t>(1); injector::WriteMemory(dword_40A744, FrameTime, true); // Smokeable frametime - float* flt_7FC858 = hook::pattern("8B F1 E8 ? ? ? ? 8A 86 06 05 00 00 84 C0 0F 84 ? ? ? ?").count(1).get(0).get<float>...
OpenSSL::Util::extract_pod_info(): Allow invisible names This should be very unusual, but we do have a case of a name we don't want to display.
@@ -114,6 +114,7 @@ sub extract_pod_info { die "Unknown input type"; } + my @invisible_names = (); my %podinfo = ( section => $defaults{section}); # Regexp to split a text into paragraphs found at @@ -143,6 +144,16 @@ sub extract_pod_info { $podinfo{lastsecttext} = ""; } + # Add invisible names + if (m|^=for\s+openssl\...
os/kernel/binary_manager : Modify binary manager to support shared library Modify binary manager to load the shared library at the time of loading all applications.
@@ -271,6 +271,15 @@ static int binary_manager_load_all(void) int load_cnt; uint32_t bin_count; +#ifdef CONFIG_SUPPORT_COMMON_BINARY + char libname[CONFIG_NAME_MAX]; + snprintf(libname, CONFIG_NAME_MAX, "%s%s", CONFIG_COMMON_BINARY_PATH, CONFIG_COMMON_BINARY_NAME); + ret = load_binary(0, libname, NULL); + if (ret < 0) ...
update ya tool arc no musl
}, "arc": { "formula": { - "sandbox_id": [360179902], + "sandbox_id": [360416694], "match": "arc" }, "executable": {
loadable_apps/binary_update: Show memory information for each update Show memory information for each update in binary update aging test to check memory leak or something
#include <crc32.h> #include <sys/types.h> +#ifdef CONFIG_MMINFO +#include <tinyara/fs/ioctl.h> +#include <tinyara/mminfo.h> +#endif #include <binary_manager/binary_manager.h> @@ -646,25 +650,52 @@ void binary_update_aging_test(void) { int ret; binary_update_info_t bin_info; +#ifdef CONFIG_MMINFO + int fd; + struct mall...
frsky: improve bind tunning
@@ -303,6 +303,7 @@ void frsky_handle_bind() { last_offset = current_offset; } if (tune_samples >= 3) { + quic_debugf("FRSKY: tuned offset %d", frsky_bind.offset); set_address(1); init_get_bind(); protocol_state = FRSKY_STATE_BIND_BINDING1;
ipsec: Checking wrong DB for initialistation Type: fix
@@ -263,7 +263,7 @@ ipsec_tun_protect_rx_db_add (ipsec_main_t * im, ipsec4_tunnel_mk_key(&key, &itp->itp_crypto.dst.ip4, clib_host_to_net_u32 (sa->spi)); - if (!im->tun4_protect_by_key.nbuckets) + if (!clib_bihash_is_initialised_8_16 (&im->tun4_protect_by_key)) clib_bihash_init_8_16 (&im->tun4_protect_by_key, "IPSec IP...
ip: reassembly add missing goto Type: fix Fixes:
@@ -589,6 +589,7 @@ ip6_sv_reassembly_inline (vlib_main_t * vm, next0 = IP6_SV_REASSEMBLY_NEXT_HANDOFF; vnet_buffer (b0)->ip.reass.owner_thread_index = kv.v.thread_index; + goto packet_enqueue; } if (!reass)
sysdeps/managarm: convert TIOCSWINSZ to helix_ng
@@ -228,8 +228,6 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { } case TIOCSWINSZ: { auto param = reinterpret_cast<const struct winsize *>(arg); - HelAction actions[3]; - globalQueue.trim(); managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator()); req.set_req_type(managarm::fs::C...
Fix interger overflow.
@@ -420,7 +420,7 @@ int client_loop_cb(picoquic_quic_t* quic, picoquic_packet_loop_cb_enum cb_mode, if (key_rot_ret != 0) { fprintf(stdout, "Will not test key rotation.\n"); picoquic_log_app_message(cb_ctx->cnx_client, "%s", "Will not test key rotation."); - cb_ctx->key_update_done = (uint64_t)-1; + cb_ctx->key_update_...
increase eps
@@ -23,7 +23,7 @@ extern "C" { /* DEFAULT SOLVER PARAMETERS AND SETTINGS -------------------------- */ #define MAX_ITERS (5000) -#define EPS (1E-6) +#define EPS (1E-5) #define ALPHA (1.5) #define RHO_X (1E-3) #define SCALE (5.0)
Use better random number generator on Mac OS and FreeBSD.
@@ -60,22 +60,20 @@ u_short ip_id = 0; /*__Userspace__ TODO Should it be initialized to zero? */ */ userland_mutex_t atomic_mtx; -/* Source: /usr/src/sys/dev/random/harvest.c */ -static int read_random_phony(void *, int); - -static int (*read_func)(void *, int) = read_random_phony; - -/* Userland-visible version of rea...
Add test for adding actor variables to clipboard
@@ -12,6 +12,7 @@ jest.mock("electron"); const mockedClipboard = mocked(clipboard, true); test("Should be able to copy actor to clipboard", async () => { + mockedClipboard.writeText.mockClear(); const store = ({ getState: () => ({ @@ -20,25 +21,97 @@ test("Should be able to copy actor to clipboard", async () => { entit...
coll commenting out debug so it removes a few "loud" stuff
@@ -23,9 +23,9 @@ before used to always bang on callback, now only bangs now due to new x->x_fileb /* LATER profile for the bottlenecks of insertion and sorting */ /* LATER make sure that ``reentrancy protection hack'' is really working... */ -#ifdef KRZYSZCZ +/* #ifdef KRZYSZCZ //#define COLL_DEBUG -#endif +#endif */ ...
Fix a problem that may arise if a proplist contains an empty tuple
@@ -123,10 +123,7 @@ term interop_proplist_get_value_default(term list, term key, term default_value) term *t_ptr = term_get_list_ptr(t); term head = t_ptr[1]; - if (term_is_tuple(head) && term_get_tuple_element(head, 0) == key) { - if (UNLIKELY(term_get_tuple_arity(head) != 2)) { - break; - } + if (term_is_tuple(head)...
change auto update GW version check value for LimeNet-micro
@@ -42,7 +42,7 @@ static const ConnectionImageEntry &lookupImageEntry(const LMS64CProtocol::LMSinf ConnectionImageEntry({LMS_DEV_LIMESDR, 2, 3, "LimeSDR-USB_HW_1.2_r3.0.img", 1, 20, "LimeSDR-USB_HW_1.1_r1.20.rbf"}), ConnectionImageEntry({LMS_DEV_LIMESDR, 1, 7, "LimeSDR-USB_HW_1.1_r7.0.img", 1, 20, "LimeSDR-USB_HW_1.1_r...
helm: Get "affinity" and "nodeSelector" from values.
@@ -733,6 +733,14 @@ spec: {{- toYaml .Values.resources | nindent 10 }} securityContext: {{- toYaml .Values.securityContext | nindent 10 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} ...
[class=".*"] --> [all] Instead of regex declaration for class windows, just declare [all] to avoid it.
@@ -31,7 +31,7 @@ For support & all other kinds of questions, you can ask your question on [GitHub ``` # You can also use any non-zero value if you'd like to have a border -for_window [class=".*"] border pixel 0 +for_window [all] border pixel 0 ``` Gaps are the namesake feature of i3-gaps and add spacing between window...
Tutorial: hide caret on mobile
@@ -228,6 +228,7 @@ export function TutorialModal(props: { api: GlobalApi }) { direction={arrow} height="0px" width="0px" + display={["none", "block"]} /> <Box
remove duplicated certificate config The duplicated certificate config will override the final config in certificate. Then the CA flag and key Identifier will miss, and verify CA failed. Ubuntu uses a newer ssl library, so it will suffer this error.
@@ -15,22 +15,10 @@ mkdir -p ${CLIENT_CERTS_PATH} function gencert() { openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \ -subj "/C=US/ST=California/L=Palo Alto/O=Pivotal/CN=$1root" \ - -extensions san -config \ - <(echo "[req]"; - echo distinguished_name=req; - echo "[san]"; - echo subjectAltName=DNS:$HOST_NAM...
move out of bounds check inside loop Fixes OSS-Fuzz 45899
@@ -2159,9 +2159,10 @@ internal_exr_compute_chunk_offset_size (struct _internal_exr_part* curpart) tilecount += ((int64_t) curpart->tile_level_tile_count_x[lx] * (int64_t) curpart->tile_level_tile_count_y[ly]); + + if (tilecount > (int64_t) INT_MAX) return -1; } } - if (tilecount > (int64_t) INT_MAX) return -1; retval ...
input: remove dummy debug message
@@ -311,7 +311,6 @@ int flb_input_coro_finished(struct flb_config *config, int ins_id) /* Look for input coroutines that needs to be destroyed */ mk_list_foreach_safe(head, tmp, &ins->input_coro_list_destroy) { input_coro = mk_list_entry(head, struct flb_input_coro, _head); - printf("coro destroy!: coro_id=%i\n", input...
more changelong entries in preparation for release
@@ -266,5 +266,9 @@ aomp (0.7-3) UNRELEASED; urgency=medium * nvptx uses a partial hardware barrier not availale in amdgcn. * Ultimately, named_sync should never be called by amdgcn. * Fix for reduction across teams. + * Fix for hip detecting wrong version of code object, done with patch + * before build + * Fix so roc...
HW: Ignoring <STOP> command for inactive contexts
@@ -977,8 +977,10 @@ BEGIN END IF; WHEN CTX_STOP => + IF context_status_mmio_dout(CTX_STAT_ACTION_VALID_INT) = '1' THEN context_stop_q(to_integer(unsigned(context_config_mmio_dout(CTX_CFG_SAT_INT_L DOWNTO CTX_CFG_SAT_INT_R)))) <= '1'; context_stop_ack_q0 <= '1'; + END IF; WHEN OTHERS => -- invalid command
oc_uuid: recognize the wildcard "*" UUID
void oc_str_to_uuid(const char *str, oc_uuid_t *uuid) { + if (str[0] == '*') { + memset(uuid->id, 0, 16); + uuid->id[0] = '*'; + return; + } int i, j = 0, k = 1; uint8_t c = 0; @@ -79,6 +84,12 @@ oc_uuid_to_str(const oc_uuid_t *uuid, char *buffer, int buflen) int i, j = 0; if (buflen < OC_UUID_LEN || !uuid) return; + i...
dm-hook: notify on pending
:: dm-hook [landscape]: receive and send DMs :: +/- hark=hark-store /+ default-agent, dbug, store=graph-store, graphlib=graph, agentio, resource /+ sig=signatures, hook=dm-hook :: ?> =(1 ~(wyt by nodes)) =/ ship-screen (~(get ju screened) src.bowl) =. ship-screen (~(uni in ship-screen) (normalize-incoming nodes)) - =. ...
Update gps.go Added support for Galileo GNSS constellation
@@ -276,22 +276,25 @@ func initGPSSerial() bool { // gpsattitude too much -- without WAAS corrections, the algorithm could get jumpy at higher // sampling rates. - cfgGnss := []byte{0x00, 0x20, 0x20, 0x05} + cfgGnss := []byte{0x00, 0x20, 0x20, 0x06} gps := []byte{0x00, 0x08, 0x10, 0x00, 0x01, 0x00, 0x01, 0x01} // enabl...
ames: sort by number of re-trying flows per app
== ?. =(%21 veb) ~ :- leaf+"----------------------------------" - %+ turn ~(tap by pags) + %+ turn %+ sort ~(tap by pags) + |= [[* v=(list)] [* w=(list)]] + (gth (lent v) (lent w)) |= [app=term v=(list [dst=term =ship =path])] :- %leaf %+ weld "#{<(lent v)>} flows for {<app>} with >10 retries"
OcAppleKernelLib: Prefer Shikumo's Aquantia patch
@@ -1979,7 +1979,10 @@ PatchAquantiaEthernet ( ) { EFI_STATUS Status; - EFI_STATUS Status2; + + // + // FIXME: Check whether any patches are required before 10.15.4. + // // // This patch is not required before macOS 10.15.4. @@ -1995,9 +1998,16 @@ PatchAquantiaEthernet ( // // In most cases either patch will work fine...
[tests] fix skip count in mod-fastcgi w/o php-cgi (fix test skip count when php-cgi is not available)
@@ -15,7 +15,7 @@ my $tf = LightyTest->new(); my $t; SKIP: { - skip "no php binary found", 31 unless $LightyTest::HAVE_PHP; + skip "no php binary found", 29 unless $LightyTest::HAVE_PHP; $tf->{CONFIGFILE} = 'fastcgi-10.conf'; ok($tf->start_proc == 0, "Starting lighttpd") or goto cleanup;
docs(porting) fix indev example to remove v7 bool return update indev doc example to remove v7 `return false` and fix return type
@@ -123,7 +123,7 @@ indev_drv.read_cb = encoder_with_keys_read; ... -bool encoder_with_keys_read(lv_indev_drv_t * drv, lv_indev_data_t*data){ +void encoder_with_keys_read(lv_indev_drv_t * drv, lv_indev_data_t*data){ data->key = last_key(); /*Get the last pressed or released key*/ /* use LV_KEY_ENTER for encoder press *...
remove poetry from nightly testing
@@ -33,27 +33,24 @@ jobs: rm -rf /usr/share/dotnet/ df -h - - name: Install dependencies + - name: Initialize run: | sudo apt-get update - sudo apt-get install build-essential libbsd-dev pkg-config openjdk-8-jdk libmicrohttpd-dev liburcu-dev libyaml-dev liblz4-dev libcurl4-openssl-dev libmongoc-1.0-0 libbson-1.0-0 libs...
remove double boom imports
@@ -18,8 +18,6 @@ import midas.targetutils.MemModelAnnotation import boom.common.BoomTile -import boom.common.BoomTile - /* Wires out tile trace ports to the top; and wraps them in a Bundle that the * TracerV bridge can match on. */
Fix automatic UTF grid configuration when using raster tiles vis CartoVisLoader
@@ -634,7 +634,12 @@ namespace carto { } if (subLayerIndex < 0) { + if (layerConfig.contains("interactivity")) { configureLayerInteractivity(*layer, layerConfig.get("interactivity")); + } else if (layerConfig.contains("options")) { + const picojson::value& layerOptions = layerConfig.get("options"); + configureLayerInte...
libhfuzz: missing write memory barriers
@@ -666,6 +666,7 @@ bool instrumentUpdateCmpMap(uintptr_t addr, uint32_t v) { if (prev < v) { ATOMIC_SET(covFeedback->bbMapCmp[pos], v); ATOMIC_POST_ADD(covFeedback->pidFeedbackCmp[my_thread_no], v - prev); + wmb(); return true; } return false; @@ -676,6 +677,7 @@ void instrumentClearNewCov() { covFeedback->pidFeedback...
tests: limit compiler parallelism Restrict the number of CPUs that make can use in the compile tests. This avoids forking 30+ compilers at the same time which made a significant difference in how long the CI simulation tests that runs on a 2-core machine took.
all: clean @$(MAKE) summary +ifdef NUMCORES + # User wants a certain number, respect that. + CPUS := $(NUMCORES) +else ifneq (, $(shell which nproc)) + # Query the machine for the number of processors. + CPUS := $(shell nproc) +else + # Default to something suitable for a mid-range laptop. + CPUS := 8 +endif + # The st...