message
stringlengths
6
474
diff
stringlengths
8
5.22k
[core] detect and reject TLS connect to cleartext detect and reject TLS connection to cleartext listening port (alternative to failing to receive HTTP header and waiting to time out)
@@ -832,10 +832,22 @@ static int connection_handle_read_state(connection * const con) { "oversized request-header -> sending Status 431"); r->http_status = 431; /* Request Header Fields Too Large */ r->keep_alive = 0; + connection_set_state(r, CON_STATE_REQUEST_END); return 1; } if (0 != header_len) break; + if (((unsi...
azure pipeline: try to add centos. Third attempt.
@@ -17,7 +17,7 @@ jobs: # imageName: 'ubuntu-16.04' pool: vmImage: $(imageName) - container: $[ variables['containerImage'] ] + container: OpenLogic:CentOS:7.5:latest steps: - task: ShellScript@2 displayName: Install dependencies
system-prefs: shouldn't see two settings sections for system
@@ -46,6 +46,7 @@ export const SystemPreferences = (props: RouteComponentProps<{ submenu: string } `${match.url}/:submenu/:desk?` ); const charges = useCharges(); + const filteredCharges = Object.values(charges).filter((charge) => charge.desk !== window.desk); const isMobile = useMedia('(max-width: 639px)'); const sett...
pass text metadata through verbatim
elm:(static:cram (ream mud)) ++ front :: XX performance, types ^- (map term knot) - (~(run by inf:(static:cram (ream mud))) scot) + %- ~(run by inf:(static:cram (ream mud))) + |= a=dime ^- cord + ?+ (end 3 1 a) (scot a) + %t q.a + == -- ++ grab |%
announce common names from certificates by default
@@ -296,6 +296,21 @@ int tls_server_add_sni( const char crt_file[], const char key_file[] ) { return 0; } +static void tls_announce_all_cnames( void ) { + struct sni_entry *cur; + char name[QUERY_MAX_SIZE]; + + // Announce cnames + cur = g_sni_entries; + while( cur ) { + // Won't announce wildcard domains + if( query_s...
arm: fix define in scsi_sense.h
#define SCSI_ASC_BLOCK_SEQUENCE_ERROR 0x1404 #define SCSI_ASC_RANDOM_POSITIONING_ERROR 0x1500 #define SCSI_ASC_MECHANICAL_POSITIONING_ERROR 0x1501 -#define SCSI_ASC_POSITIONING_ERROR_DETECTED_BY_READ OF_MEDIUM 0x1502 +#define SCSI_ASC_POSITIONING_ERROR_DETECTED_BY_READ_OF_MEDIUM 0x1502 #define SCSI_ASC_RECOVERED_DATA_W...
fix one way using tile | tile and optimize math Before 3F6 - 3DA Optimized 3C8 - 3C0 Now constant 3D2
@@ -22,20 +22,17 @@ UBYTE TileAt(UINT16 tx, UINT16 ty) { } UBYTE TileAt2x1(UINT16 tx, UINT16 ty) { - UWORD y_offset; + UBYTE* collision_ptr_tmp; UBYTE tile; // Check tile outside of bounds if (tx == MAX_UINT16 || tx == image_tile_width || ty == image_tile_height || ty == MAX_UINT16) { return OUT_OF_BOUNDS; } - y_offset...
Update README to refer to janet-lang/janet repository.
-[![Build Status](https://travis-ci.org/bakpakin/janet.svg?branch=master)](https://travis-ci.org/bakpakin/janet) -[![Appveyor Status](https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true)](https://ci.appveyor.com/project/bakpakin/janet) +[![Build Status](https://travis-ci.org/janet-lang/janet.svg?branc...
Change variable to $(MSYSTEM) to make it better and compatible with Msys1.
@@ -295,14 +295,14 @@ README.pdf \ # It can be found in the MinGW directory (usually "C:\msys64\mingw64\bin" for 64bit builds # or "C:\msys64\mingw32\bin" for 32bit builds) directory and should be # copied to the current directory before installation or packaging. -# We use $(MINGW_CHOST) for compiler Arch detection. (...
Rename CMake library to clap with clap-core alias This makes consuming this library from a build system much simpler since the target name is now the same as the project name. Old uses of `clap-core` will continue to work.
@@ -7,8 +7,13 @@ option(CLAP_BUILD_TESTS "Should CLAP build tests and the like?" OFF) # If you use clap as a submodule of your plugin you need some interface projects # to allow you to link. clap-core gives you the include directory and clap-plugin-core # gives you the core + plugin-glue. -add_library(clap-core INTERFA...
[GB] CPU cal dispatch an interrupt handler
@@ -786,6 +786,21 @@ impl CpuState { self.set_pc(target); } + pub fn call_interrupt_vector(&mut self, interrupt_type: InterruptType) { + // TODO(PT): Unit test this + let interrupt_vector = match interrupt_type { + InterruptType::VBlank => 0x40, + InterruptType::LCDStat => 0x48, + InterruptType::Timer => 0x50, + Interr...
fixed small FCS bug on REALTEK chipset
@@ -1696,7 +1696,7 @@ while((pcapstatus = pcap_next_ex(pcapin, &pkh, &packet)) != -2) continue; rth = (const rth_t*)packet; fcsl = 0; - field = 12; + field = 8; if((rth->it_present & 0x01) == 0x01) field += 8; if((rth->it_present & 0x80000000) == 0x80000000)
Run global_action_callbacks in predictable order
@@ -674,7 +674,7 @@ def init_cli(verbose_output=None): if path not in extension_dirs: extension_dirs.append(path) - extensions = {} + extensions = [] for directory in extension_dirs: if directory and not os.path.exists(directory): print_warning('WARNING: Directory with idf.py extensions doesn\'t exist:\n %s' % director...
Touch fuzz/c/std/bzip2_fuzzer.c Updates
@@ -89,7 +89,13 @@ fuzz(wuffs_base__io_buffer* src, uint64_t hash) { wuffs_bzip2__decoder dec; wuffs_base__status status = wuffs_bzip2__decoder__initialize( &dec, sizeof dec, WUFFS_VERSION, - (hash & 1) ? WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED : 0); + // TODO: uncomment this code, after we figure out wh...
Documentation: grib_filter
@@ -71,6 +71,7 @@ Running the same command again we obtain a different list of files.\n - print "string to print also with key values like in the file name" - transient keyname1 = keyname2; - comments beginning with # + - defined(keyname) to check if a key is defined in a message . A complex example of grib_filter rule...
Send tcp_req_info->spool_buffer as dnstap CLIENT_RESPONSE When tcp_req_info exists. This fixes that dnstap CLIENT_RESPONSE messages did not contain the response message when answering on statful transport for uncached responses.
@@ -3153,18 +3153,21 @@ comm_point_send_reply(struct comm_reply *repinfo) &repinfo->addr, repinfo->c->type, repinfo->c->buffer); #endif } else { +#ifdef USE_DNSTAP + if(repinfo->c->tcp_parent->dtenv != NULL && + repinfo->c->tcp_parent->dtenv->log_client_response_messages) + dt_msg_send_client_response(repinfo->c->tcp_p...
Directory Value: Mark pointers as constant
@@ -174,7 +174,7 @@ static bool onlyArrayEntriesDirectlyBelow (Key * key, KeySet * keys) * @param arrays The function stores all array parents in this key set. * @param other The function stores all non-array keys in this parameter. */ -static void splitArrays (KeySet * input, KeySet * arrays, KeySet * other) +static v...
bn/asm/sparcv9-mont.pl: iron another glitch in squaring code path. This module is used only with odd input lengths, i.e. not used in normal PKI cases, on contemporary processors. The problem was "illuminated" by fuzzing tests.
@@ -493,6 +493,9 @@ $code.=<<___; mulx $npj,$mul1,$acc1 add $tpj,$car1,$car1 ld [$np+$j],$npj ! np[j] + srlx $car1,32,$tmp0 + and $car1,$mask,$car1 + add $tmp0,$sbit,$sbit add $acc0,$car1,$car1 ld [$tp+8],$tpj ! tp[j] add $acc1,$car1,$car1
interface: use font-display: swap;
font-family: 'Inter'; font-style: normal; font-weight: 400; + font-display: swap; src: url("/~landscape/fonts/inter-regular.woff2") format("woff2"), url("https://media.urbit.org/fonts/Inter-Regular.woff2") format("woff2"); } font-family: 'Inter'; font-style: normal; font-weight: 500; + font-display: swap; src: url("htt...
examples - bugfixes
@@ -158,8 +158,6 @@ on_connected(struct neat_flow_operations *opCB) uv_loop_t *loop = neat_get_event_loop(opCB->ctx); // now we can start writing fprintf(stderr, "%s - connection established\n", __func__); - - opCB->userData = calloc(1, sizeof(struct stat_flow)); stat = opCB->userData; gettimeofday(&(stat->begin), NULL...
Fix wording of several extended stats comments Reported-by: Thomas Munro Discussion:
@@ -993,7 +993,7 @@ statext_is_compatible_clause_internal(PlannerInfo *root, Node *clause, if (list_length(expr->args) != 2) return false; - /* Check if the expression the right shape (one Var, one Const) */ + /* Check if the expression has the right shape (one Var, one Const) */ if (!examine_clause_args(expr->args, &v...
tests BUGFIX typo
@@ -665,7 +665,7 @@ test_instanceid(void **state) leaf = (struct lyd_node_term*)tree; assert_string_equal("/xdf:cont/xdf:leaftarget", leaf->value.canonized); lyd_free_all(tree); -#if +#if 0 /* TODO predicates support */ data = "<list xmlns=\"urn:tests:types\"><id>>a</id></list><list xmlns=\"urn:tests:types\"><id>>b</id...
landscape: remove new group from group-view on leave This fixes "ghost groups" if you leave a group soon after joining
(raw-poke-our %contact-pull-hook pull-hook-act) ;< ~ bind:m (raw-poke-our %group-store remove) +;< ~ bind:m + (raw-poke-our %group-view group-view-action+!>([%done rid])) (pure:m !>(~))
.Net Core Bootstrap example - postponed
<ItemGroup> <PackageReference Include="Autofac" Version="4.6.2" /> - <PackageReference Include="AutoMapper" Version="6.2.1" /> + <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.0" /> + <PackageReference Include="AutoMapper" Version="6.2.2" /> <PackageReference Include="Dapper" Version="1...
Update: Cycle: Cleanup, localInference procedure extra
@@ -126,21 +126,9 @@ void pushEvents(long currentTime) } } -void Cycle_Perform(long currentTime) -{ - eventsSelected = eventsDerived = 0; - popEvents(currentTime); - for(int i=0; i<eventsSelected; i++) - { - Event *e = &selectedEvents[i]; - Event_SetSDR(e, e->sdr); // TODO make sure that hash needs to be calculated onc...
AVoid sending spurious Version negotiation packets
@@ -143,6 +143,11 @@ int picoquic_parse_long_packet_header( break; } } + else { + DBG_PRINTF("Version is not recognized: 0x%08x\n", ph->vn); + ph->ptype = picoquic_packet_error; + ph->pc = 0; + } if (ph->ptype == picoquic_packet_retry) { /* No segment length or sequence number in retry packets */ @@ -640,8 +645,6 @@ in...
tool: elektrad - improve documentation
-# elektra-web/elektrad +# Elektrad + +## Introduction A server that provides an [HTTP API](http://docs.elektrad.apiary.io) to access -Elektra remotely, built using [go](https://golang.org). +Elektra remotely, built using [Go](https://golang.org). + +## Compiling + +You can compile `elektrad` manually or via CMake. + +...
Xerces: Use non-cascading keys in MSR example This way Xerces handles all the metadata. If we use cascading keys, then the example would fail if we use INI as default storage. If you want to learn more, please check out issue
@@ -80,22 +80,22 @@ XSD transformations, schemas or DTDs are not supported yet. ### Mounting, setting a key and exporting ```sh -# Backup-and-Restore:/examples/xercesfile +# Backup-and-Restore:user/examples/xercesfile -sudo kdb mount xerces.xml /examples/xercesfile xerces +sudo kdb mount xerces.xml user/examples/xerces...
removed unused CMAC cleanup
@@ -1715,7 +1715,6 @@ static size_t testptklen; static size_t testmiclen; static EVP_MD_CTX *mdctx; static EVP_PKEY *pkey; -static CMAC_CTX *ctx; static uint8_t pkedata[102]; static uint8_t testptk[EVP_MAX_MD_SIZE]; @@ -1991,7 +1990,6 @@ else if(keyver == 3) } EVP_PKEY_free(pkey); EVP_MD_CTX_free(mdctx); - CMAC_Final(c...
doxygen: remove cygwin support Only doclatex and docroot are used by Doxyfile, remove the other variables. The generated html is identical before/after this commit.
-contiking := ../.. -empty := -space := $(empty) $(empty) -pwd := $(shell cd $(contiking); pwd) - # Doxyfile configuration variables -export docdir := . export doclatex := NO -export docroot := $(contiking) - -# Get appropriate root for doxygen path cutoff -ifeq ($(HOST_OS),Windows) - # on windows need to convert cygwi...
jets: jet +scot %uv and %uw.
@@ -15,6 +15,22 @@ c3_y to_digit(u3_atom tig) } } +static +c3_y to_w_digit(u3_atom tig) +{ + if (tig == 63) { + return '~'; + } else if (tig == 62) { + return '-'; + } else if (tig >= 36) { + return 29 + tig; + } else if (tig >= 10) { + return 87 + tig; + } else { + return '0' + tig; + } +} + // gives the characters fo...
Remove testType from kdf135_tls
@@ -77,7 +77,6 @@ ACVP_RESULT acvp_kdf135_tls_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) { ACVP_CAPS_LIST *cap; ACVP_KDF135_TLS_TC stc; ACVP_TEST_CASE tc; - ACVP_HASH_TESTTYPE test_type; ACVP_RESULT rv; const char *alg_str = json_object_get_string(obj, "algorithm"); ACVP_CIPHER alg_id; @@ -249,12 +248,6 @@ ACVP_RESU...
change argument placeholder for --tls-server-ca and adjust indent
@@ -117,7 +117,7 @@ static const char *kadnode_usage_str = "KadNode - A P2P name resolution daemon.\ #ifdef TLS " --tls-client-cert <path> Path to file or folder of CA root certificates.\n" " This option may occur multiple times.\n\n" -" --tls-server-cert <tuple> Add a comma separated tuple of server certificate file a...
Router: restoring listening sockets of the previous configuration.
@@ -382,6 +382,7 @@ static void nxt_router_conf_error(nxt_task_t *task, nxt_router_temp_conf_t *tmcf) { nxt_socket_t s; + nxt_router_t *router; nxt_queue_link_t *qlk; nxt_socket_conf_t *skcf; @@ -399,6 +400,11 @@ nxt_router_conf_error(nxt_task_t *task, nxt_router_temp_conf_t *tmcf) nxt_free(skcf->socket); } + router = ...
Adjust VMA_MIN() and VMA_MAX() macros to work despite NOMINMAX being defined or not.
@@ -116,10 +116,6 @@ available through VmaAllocatorCreateInfo::pRecordSettings. #define VMA_RECORDING_ENABLED 0 #endif -#if !defined(NOMINMAX) && defined(VMA_IMPLEMENTATION) - #define NOMINMAX // For windows.h -#endif - #if defined(__ANDROID__) && defined(VK_NO_PROTOTYPES) && VMA_STATIC_VULKAN_FUNCTIONS extern PFN_vkGe...
improve closing procedure for usrsctp
@@ -1215,7 +1215,7 @@ handle_sctp_event(neat_flow *flow, union sctp_notification *notfn) neat_log(ctx, NEAT_LOG_DEBUG, "Got SCTP shutdown event"); flow->eofSeen = 1; flow->readBufferMsgComplete = 1; - neat_notify_close(flow); + //neat_notify_close(flow); return READ_WITH_ZERO; break; case SCTP_ADAPTATION_INDICATION: @@...
UnjoinedResource: clean up design
import React, { useEffect, useMemo } from "react"; import { Association } from "~/types/metadata-update"; import { Box, Text, Button, Col, Center } from "@tlon/indigo-react"; -import RichText from '~/views/components/RichText'; +import RichText from "~/views/components/RichText"; import { Link, useHistory } from "react...
moved parameter to sign context
@@ -818,7 +818,6 @@ static const char *listener_setup_ssl_picotls(struct listener_config_t *listener .require_client_authentication = 0, .omit_end_of_early_data = 0, .server_cipher_preference = server_cipher_preference, - .async_handshake = 1, .encrypt_ticket = NULL, /* initialized later */ .save_ticket = NULL, /* init...
options/internal: Make sys_pread a weak function
@@ -63,7 +63,7 @@ int sys_read(int fd, void *buf, size_t count, ssize_t *bytes_read); #ifndef MLIBC_BUILDING_RTDL int sys_write(int fd, const void *buf, size_t count, ssize_t *bytes_written); - int sys_pread(int fd, void *buf, size_t n, off_t off, ssize_t *bytes_read); + [[gnu::weak]] int sys_pread(int fd, void *buf, s...
Override angular_pred to generic in travis as well. Assuming false positive from valgrind.
@@ -19,7 +19,7 @@ matrix: include: - compiler: clang - env: KVZ_TEST_VALGRIND=1 + env: KVZ_TEST_VALGRIND=1 KVAZAAR_OVERRIDE_angular_pred=generic - compiler: clang env: CFLAGS='-fsanitize=thread'
Enabled multi-thread compiling on Windows builds
@@ -103,10 +103,10 @@ if defined GitRev ( <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Nightly|Win32'"> <ClCompile> <CallingConvention>FastCall</CallingConvention> - <MinimalRebuild>true</MinimalRebuild> <PreprocessorDefinitions>_NIGHTLYBUILD;_MTNETWORK;_WIN32;%(PreprocessorDefinitions)</Preprocesso...
dts: Zero struct to avoid using uninitialised value
@@ -239,7 +239,7 @@ static int dts_read_core_temp_p9(uint32_t pir, struct dts *dts) static void dts_async_read_temp(struct timer *t __unused, void *data, u64 now __unused) { - struct dts dts; + struct dts dts = {0}; int rc, swkup_rc; struct cpu_thread *cpu = data; @@ -367,7 +367,7 @@ int64_t dts_sensor_read(u32 sensor_...
Remove a pointless "#ifndef" from bf_enc.c
@@ -60,8 +60,6 @@ void BF_encrypt(BF_LONG *data, const BF_KEY *key) data[0] = r & 0xffffffffU; } -#ifndef BF_DEFAULT_OPTIONS - void BF_decrypt(BF_LONG *data, const BF_KEY *key) { register BF_LONG l, r; @@ -175,5 +173,3 @@ void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, tin0 = tin1 = tout0 ...
Fix missing ;. Add custom event last
@@ -82,7 +82,8 @@ enum { /** Custom events of rotary*/ enum { - LV_EVENT_ROTARY_TOGGLED = _LV_EVENT_LAST + LV_EVENT_ROTARY_TOGGLED = _LV_EVENT_LAST, + _LV_EVENT_ROTARY_LAST }; typedef uint8_t lv_rotary_event_t; @@ -197,7 +198,7 @@ static inline void lv_rotary_set_rotation(lv_obj_t * rotary, uint16_t rotation_a * @param...
added counter on AKM defined (not recoverable) PMKIDs (e.g. WPA3)
@@ -238,6 +238,7 @@ static long int pmkidcount; static long int pmkidbestcount; static long int pmkidroguecount; static long int pmkiduselesscount; +static long int pmkidakmcount; static long int pmkidwrittenhcount; static long int pmkidwrittenjcountdeprecated; static long int pmkidwrittencountdeprecated; @@ -548,6 +54...
xive: Log the address of the boot time tables This can be handy when debugging
@@ -1692,6 +1692,7 @@ static bool xive_prealloc_tables(struct xive *x) } /* SBEs are initialized to 0b01 which corresponds to "ints off" */ memset(x->sbe_base, 0x55, SBE_SIZE); + xive_dbg(x, "SBE at %p size 0x%x\n", x->sbe_base, IVT_SIZE); /* EAS/IVT entries are 8 bytes */ x->ivt_base = local_alloc(x->chip_id, IVT_SIZE...
Fix TMP007 sensor readings for platform Simplelink
#define SWAP16(v) ((LO_UINT16(v) << 8) | (HI_UINT16(v) << 0)) -#define LSB16(v) (LO_UINT16(v)), (HI_UINT16(v)) -#define MSB16(v) (HI_UINT16(v)), (LO_UINT16(v)) +#define LSB16(v) (HI_UINT16(v)), (LO_UINT16(v)) +#define MSB16(v) (LO_UINT16(v)), (HI_UINT16(v)) /*------------------------------------------------------------...
Increase the size of VM group opcodes to 256 Currently there is almost 115 group opcodes so increasing the number of bits which reprent a group opcode has become actual. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik
* If VM_OC_GET_ARGS_INDEX(opcode) == VM_OC_GET_BRANCH, * this flag signals that the branch is a backward branch. */ -#define VM_OC_BACKWARD_BRANCH 0x4000 +#define VM_OC_BACKWARD_BRANCH (1 << 15) /** * Position of "get arguments" opcode. */ -#define VM_OC_GET_ARGS_SHIFT 7 +#define VM_OC_GET_ARGS_SHIFT 8 /** * Mask of "g...
Update changelog for v0.1.0
`hslua-module-paths` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +## 0.1.0 + +Released 2021-02-02. + +- Fixed `directory`. This was the same as normalize. +- Improved documentation. +- Added more tests. + ## 0.0.1 -* Initially created. +Released 2021-02-01. + +- Initially created. [1]: https://...
os/board/common/Kconfig : Fix typo typo : partiton -> partition
@@ -109,7 +109,7 @@ config AUTOMOUNT If enabled, mount userfs or romfs partition automatically at boot. config AUTOMOUNT_USERFS - bool "Automount userfs partiton" + bool "Automount userfs partition" default n depends on AUTOMOUNT depends on FS_SMARTFS @@ -121,7 +121,7 @@ config AUTOMOUNT_USERFS will be appended by "d1"...
fsplib: update to v14.0 [2019-08-16] only security fixes
@@ -423,8 +423,34 @@ FSP_SESSION * fsp_open_session(const char *host,unsigned short port,const char * else sprintf(port_s,"%hu",port); - if ( getaddrinfo(host,port_s,&hints,&res) ) + if ( (fd = getaddrinfo(host,port_s,&hints,&res)) != 0 ) { + if ( fd != EAI_SYSTEM ) + { + /* We need to set errno ourself */ + switch (fd...
Fix mistaken time scalar
@@ -628,7 +628,7 @@ void send_output_events(Oosc_dev* oosc_dev, Midi_mode const* midi_mode, Usz bpm, Susnote_list* susnote_list, Oevent const* events, Usz count) { Midi_mode_type midi_mode_type = midi_mode->any.type; - double bar_secs = (double)bpm / 60.0 * 4.0; + double bar_secs = (double)bpm / 60.0; enum { Midi_on_ca...
asurada: do not disable AP_EC_WATCHDOG_L irq at boot To correctly capture the signal. TEST=ensure EC receiving AP_EC_WATCHDOG_L signal when reboot in AP BRANCH=main
@@ -129,9 +129,7 @@ __override void board_hibernate_late(void) const struct power_signal_info power_signal_list[] = { {GPIO_PMIC_EC_PWRGD, POWER_SIGNAL_ACTIVE_HIGH, "PMIC_PWR_GOOD"}, {GPIO_AP_IN_SLEEP_L, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_S3_L"}, - {GPIO_AP_EC_WATCHDOG_L, - POWER_SIGNAL_ACTIVE_LOW | POWER_SIGNAL_DISABLE_A...
util/cbmem: const correctness
#include "os/mynewt.h" #include "cbmem/cbmem.h" -typedef void (copy_data_func_t) (void *dst, void *data, uint16_t len); +typedef void (copy_data_func_t) (void *dst, const void *data, uint16_t len); int cbmem_init(struct cbmem *cbmem, void *buf, uint32_t buf_len) @@ -75,7 +75,7 @@ err: static int -cbmem_append_internal(...
External: Improve description in ReadMe
-These are minimal examples how to applications -with elektra outside of elektra. +This folder contains examples on how to write applications +using Elektra outside of the Elektra source tree. [See how to build and run example](tests/shell/check_external.sh)
Web: Fix symbolic link creation Before this update CMake would print an error message in the configure step: > CMake Error: failed to create symbolic link > 'BUILD_DIRECTORY/bin/elektrad': no such file or directory .
@@ -50,14 +50,13 @@ else () COMMAND ${CMAKE_COMMAND} ARGS -E env GO111MODULE=on PKG_CONFIG_PATH=${CMAKE_CURRENT_BINARY_DIR}/elektrad ${GO_EXECUTABLE} build -o "${CMAKE_CURRENT_BINARY_DIR}/elektrad/elektrad" + COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_CURRENT_BINARY_DIR}/elektrad/elektrad" + "${CMAKE_BINARY_DI...
Add missing error case when editing environment variables
@@ -304,16 +304,25 @@ INT_PTR CALLBACK PhpProcessEnvironmentDlgProc( for (i = 0; i < numberOfIndices; i++) { item = PhItemArray(&environmentContext->Items, PtrToUlong(indices[i]) - 1); - PhSetEnvironmentVariableRemote(processHandle, &item->Name->sr, NULL, &timeout); + status = PhSetEnvironmentVariableRemote(processHand...
gpconfig: update docs with valid options
@@ -12,7 +12,7 @@ gpconfig -c <param_name> -v <value> [-m <master_value> | --masteronly] | -l [--skipvalidation] [--verbose] [--debug] -gpconfig -s <param_name> [--flag] [--verbose] [--debug] +gpconfig -s <param_name> [--file | --file-compare] [--verbose] [--debug] gpconfig --help
[SMT] bug fix : when deleting a node, don't rewrite default node value in db (updatedNodes)
@@ -373,10 +373,13 @@ func (s *SMT) interiorHash(left, right []byte, height uint64, oldRoot []byte, sh s.db.liveMux.Unlock() } // store new node in db + if !bytes.Equal(s.defaultHashes[height+1], h) { + // When deleting, don't rewrite a default hash in db s.db.updatedMux.Lock() s.db.updatedNodes[node] = kv s.db.updated...
fix po files
@@ -231,9 +231,7 @@ msgstr "Peticiones Estaticas" #: ../src/labels.h:116 msgid "Top static requests sorted by hits [, avgts, cumts, maxts, mthd, proto]" -msgstr "" -"Peticiones estaticas top ordenadas por hits [, avgts, cumts, maxts, mthd, " -"proto]" +msgstr "Peticiones estaticas top ordenadas por hits [, avgts, cumts...
apps/system/termcurses/tcurses_vt100.c: Fix an issue where the first curses 'getch()' call sometimes (usually) hangs waiting for a keypress. This bug was introduced when I fixed the keyboard 'paste' overflow error.
@@ -847,9 +847,10 @@ static int tcurses_vt100_getkeycode(FAR struct termcurses_s *dev, FAR int *speci for (x = 0; x < priv->keycount && keycode == -1; x++) { ch = priv->keybuf[x]; - if (ch == 0) + if (ch == 0 && x + 1 == priv->keycount) { - continue; + priv->keycount = 0; + return -1; } /* Test for escape sequence */
allow has-time in eval feature
@@ -66,10 +66,6 @@ int mode_eval_feature(int argc, const char* argv[]) { NPar::LocalExecutor().RunAdditionalThreads(catBoostOptions.SystemOptions->NumThreads - 1); TVector<TString> classNames = catBoostOptions.DataProcessingOptions->ClassNames; - CB_ENSURE( - !catBoostOptions.DataProcessingOptions->HasTimeFlag.Get(), -...
doc: fix style for lists in note Fix CSS style for lists inside a note. Previously the first list item would overlap in the note heading box.
@@ -73,8 +73,8 @@ div.non-compliant-code div.highlight { color: rgba(255,255,255,1); } -/* squish the space between a paragraph before a list */ -div > p + ul, div > p + ol { +/* squish the space between a paragraph before a list but not in a note */ +div:not(.admonition) > p + ul, div:not(.admonition) > p + ol { margi...
[bsp/hifive1]Fixed symbol error in interrupt.c Note that the symbol ';;' is wrong in 'return (rt_uint32_t)PLIC_claim_interrupt(&g_plic);;', so that ';;' should been replaced with ';'.
@@ -93,7 +93,7 @@ void rt_hw_interrupt_init(void) rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq) { - return (rt_uint32_t)PLIC_claim_interrupt(&g_plic);; + return (rt_uint32_t)PLIC_claim_interrupt(&g_plic); } void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id)
quic: Fix quic_echo event flags Type: fix
@@ -120,15 +120,15 @@ typedef enum STATE_DETACHED } connection_state_t; -typedef enum -{ - ECHO_EVT_START, /* app starts */ - ECHO_EVT_FIRST_QCONNECT, /* First connect Quic session sent */ - ECHO_EVT_LAST_QCONNECTED, /* All Quic session are connected */ - ECHO_EVT_FIRST_SCONNECT, /* First connect Stream session sent */...
Update ARMv81MML_DSP_DP_MVE_FP.h Added macros for: __PMU_PRESENT (set to 1 by default) __PMU_NUM_EVENTCNT (set to 31 by default - max for Armv8.1-M)
@@ -92,6 +92,8 @@ typedef enum IRQn #define __ARMv81MML_REV 0x0001U /* Core revision r0p1 */ #define __SAUREGION_PRESENT 1U /* SAU regions present */ #define __MPU_PRESENT 1U /* MPU present */ +#define __PMU_PRESENT 1U /* PMU present */ +#define __PMU_NUM_EVENTCNT 31U /* Number of PMU event counters */ #define __VTOR_P...
lisp: fix dangling references to bihash tables gid_ip4_table_t's and gid_ip6_table_t's are allocated from pools. They MUST NOT be listed on the clib_all_bihash list to avoid dangling references. Switch to the clib_bihash_init2 API, which has the required knob. Type: fix Ticket:
@@ -555,6 +555,7 @@ add_del_ip4_key (gid_ip4_table_t * db, u32 vni, ip_prefix_t * pref, u32 val, static void ip4_lookup_init (gid_ip4_table_t * db) { + BVT (clib_bihash_init2_args) _a, *a = &_a; uword i; clib_memset (db->ip4_prefix_len_refcount, 0, @@ -579,9 +580,18 @@ ip4_lookup_init (gid_ip4_table_t * db) if (db->ip4...
Added bg arc get functions
@@ -340,6 +340,34 @@ uint16_t lv_arc_get_angle_end(lv_obj_t * arc) return ext->arc_angle_end; } +/** + * Get the start angle of an arc background. + * @param arc pointer to an arc object + * @return the start angle [0..360] + */ +uint16_t lv_arc_get_bg_angle_start(lv_obj_t * arc) +{ + LV_ASSERT_OBJ(arc, LV_OBJX_NAME); ...
c++ is not used
@@ -12,7 +12,7 @@ Follow the installation steps [here](https://www.cee.studio/get_sdk.html). After ``` 2. For Orca, use these commands inside the above `packages` folder to install the libraries instead: ``` - CC=sfc CXX=sfc++ make bearssl curl + CC=sfc make bearssl curl ./install.sh ``` 3. To build Orca:
VERSION bump to version 1.4.130
@@ -46,7 +46,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 4) -set(SYSREPO_MICRO_VERSION 129) +set(SYSREPO_MICRO_VERSION 130) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
[libc][time] solve the problem which the os tick can be calculated wrongly because the local variable was not initialized.
@@ -689,7 +689,7 @@ int rt_timespec_to_tick(const struct timespec *time) { int tick; int nsecond, second; - struct timespec tp; + struct timespec tp = {0}; RT_ASSERT(time != RT_NULL);
OcMachoLib: Fix codestyle
@@ -1316,11 +1316,11 @@ MACH_X (MachoGetSymbolTable) ( IN OUT OC_MACHO_CONTEXT *Context, OUT CONST MACH_NLIST_X **SymbolTable, OUT CONST CHAR8 **StringTable OPTIONAL, - OUT CONST MACH_NLIST_X **LocalSymbols, OPTIONAL - OUT UINT32 *NumLocalSymbols, OPTIONAL - OUT CONST MACH_NLIST_X **ExternalSymbols, OPTIONAL - OUT UINT...
perf-tools/dimemas: set C99 std for icc
@@ -58,7 +58,7 @@ module load autotools module load boost ./bootstrap -LDFLAGS="-lstdc++" ./configure --prefix=%{install_path} --with-boost=$BOOST_DIR +CFLAGS="-std=c99" LDFLAGS="-lstdc++" ./configure --prefix=%{install_path} --with-boost=$BOOST_DIR make %{?_smp_mflags}
Add a check so that if ANDROID_KEYSTORE_PASS is not given, apksigner can still be invoked. This is done by omitting the --ks-pass argument completely
@@ -653,6 +653,10 @@ elseif(ANDROID) set(ANDROID_MANIFEST "${CMAKE_CURRENT_SOURCE_DIR}/src/resources/AndroidManifest_${MANIFEST}.xml" CACHE STRING "The AndroidManifest.xml file to use") + if (ANDROID_KEYSTORE_PASS) # Trick so that --ks-pass is not passed if no password is given. + set(ANDROID_APKSIGNER_KEYSTORE_PASS --...
OpenSSL detection...
@@ -38,7 +38,7 @@ unless ENV['NO_SSL'] else if have_library('crypto') && have_library('ssl') puts "Detected OpenSSL library, testing for version." - if try_compile("\#include <openssl/ssl.h>\r\#if OPENSSL_VERSION_AT_LEAST(1, 0)\r\#error \"OpenSSL version too small\"\r\#endif\rint main(void) { SSL_library_init(); }", "-...
peview: Add hex values for flags
@@ -35,6 +35,10 @@ PPH_STRING PvpGetPeGuardFlagsText( ) { PH_STRING_BUILDER stringBuilder; + WCHAR pointer[PH_PTR_STR_LEN_1]; + + if (GuardFlags == 0) + return PhCreateString(L"0x0"); PhInitializeStringBuilder(&stringBuilder, 10); @@ -62,6 +66,9 @@ PPH_STRING PvpGetPeGuardFlagsText( if (PhEndsWithString2(stringBuilder....
Initialize struct field by field Initializing with braces initializes the other fields to 0, which is not necessary.
@@ -36,14 +36,11 @@ static SDL_bool is_ctrl_down(void) { static void send_keycode(struct controller *controller, enum android_keycode keycode, const char *name) { // send DOWN event - struct control_event control_event = { - .type = CONTROL_EVENT_TYPE_KEYCODE, - .keycode_event = { - .action = AKEY_EVENT_ACTION_DOWN, - ...
Fix bug while clearing preexisting observer cbs Tested-by: IoTivity Jenkins
@@ -1239,10 +1239,9 @@ oc_ri_invoke_client_cb(void *response, oc_client_cb_t *cb, size_t uri_len = oc_string_len(cb->uri); while (dup_cb != NULL) { - if (dup_cb != cb && + if (dup_cb != cb && dup_cb->observe_seq != -1 && oc_string_len(dup_cb->uri) == uri_len && - strncmp(oc_string(dup_cb->uri), oc_string(cb->uri), - ur...
RichText: anchors display inline
@@ -37,7 +37,7 @@ const RichText = React.memo(({ disableRemoteContent, ...props }) => ( return <RemoteContent className="mw-100" url={linkProps.href} />; } - return <Anchor target='_blank' rel='noreferrer noopener' borderBottom='1px solid' remoteContentPolicy={remoteContentPolicy} {...linkProps}>{linkProps.children}</A...
fix(snapshot): add missing ASSERT checks
*/ uint32_t lv_snapshot_buf_size_needed(lv_obj_t * obj, lv_img_cf_t cf) { + LV_ASSERT_NULL(obj); switch(cf) { case LV_IMG_CF_TRUE_COLOR_ALPHA: case LV_IMG_CF_ALPHA_1BIT: @@ -81,8 +82,9 @@ uint32_t lv_snapshot_buf_size_needed(lv_obj_t * obj, lv_img_cf_t cf) */ lv_res_t lv_snapshot_take_to_buf(lv_obj_t * obj, lv_img_cf_t...
[Kernel] Add thread detach for system thread
@@ -193,6 +193,8 @@ void rt_thread_idle_excute(void) /* if it's a system object, not delete it */ if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE) { + /* detach this object */ + rt_object_detach((rt_object_t)thread); /* unlock scheduler */ rt_exit_critical();
Sockeye: Add check for self instantiation
@@ -21,7 +21,6 @@ module SockeyeChecker ( checkSockeye ) where import Data.List (nub) -import Data.Map (Map) import qualified Data.Map as Map import Data.Set (Set) import qualified Data.Set as Set @@ -45,6 +44,7 @@ data FailedCheckType | NoSuchParameter String | NoSuchVariable String | ParamTypeMismatch String AST.Modu...
Implement stat.Decl
@@ -408,7 +408,15 @@ generate_stat = function(stat) elseif tag == ast.Stat.Decl then - error("not implemented yet") + local exp_cstats, exp_cvalue = generate_exp(stat.exp) + return util.render([[ + ${STATS} + ${DECLARATION} = ${VALUE}; + ]], { + STATS = exp_cstats, + VALUE = exp_cvalue, + DECLARATION = c_declaration(ct...
ADDING FEC - better handling out of memory errors in rlc_fec_scheme
@@ -26,6 +26,7 @@ There are two options to do this in C. This program uses the first option. ********/ static __attribute__((always_inline)) void gaussElimination(picoquic_cnx_t *cnx, int m, int n, mpz_t **a, mpz_t x[m]){ + PROTOOP_PRINTF(cnx, "MALLOC FOR GAUSS\n"); mpz_t *tmps = my_malloc(cnx, 4*sizeof(mpz_t)); if (!t...
I forgot to update libtcod_version.h
#ifndef LIBTCOD_VERSION_H #define LIBTCOD_VERSION_H -#define TCOD_HEXVERSION 0x010604 -#define TCOD_STRVERSION "1.6.4" -#define TCOD_TECHVERSION 0x01060400 +#define TCOD_HEXVERSION 0x010605 +#define TCOD_STRVERSION "1.6.5" +#define TCOD_TECHVERSION 0x01060500 #define TCOD_STRVERSIONNAME "libtcod "TCOD_STRVERSION
add 'L' after _OPENSSL_VERSION_PRE_RELEASE literals, fixes
@@ -126,9 +126,9 @@ const char *OPENSSL_version_build_metadata(void); # if !OPENSSL_API_4 /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */ # ifdef OPENSSL_VERSION_PRE_RELEASE -# define _OPENSSL_VERSION_PRE_RELEASE 0x0 +# define _OPENSSL_VERSION_PRE_RELEASE 0x0L # else -# define _OPENSSL_VERSION_PRE_R...
Replace Uint32 by int to fix warnings in tinyxpm
@@ -40,15 +40,15 @@ SDL_Surface *read_xpm(char *xpm[]) { // *** No error handling, assume the XPM source is valid *** // (it's in our source repo) // Assertions are only checked in debug - Uint32 width = strtol(xpm[0], &endptr, 10); - Uint32 height = strtol(endptr + 1, &endptr, 10); - Uint32 colors = strtol(endptr + 1,...
test-drivers: Specify sources explicitly Do not use globs to avoid stale dependencies during incremental builds. TEST=zmake testall -c; no change in covered lines BRANCH=none
@@ -11,5 +11,48 @@ zephyr_include_directories("${CMAKE_CURRENT_SOURCE_DIR}") zephyr_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include") zephyr_include_directories("${PLATFORM_EC}/driver/ppc/") -FILE(GLOB_RECURSE test_sources src/*.c) -target_sources(app PRIVATE ${test_sources}) +target_sources(app PRIVATE + src/...
Prepare large enough string buffer Fixes Coverity CID
@@ -1259,7 +1259,8 @@ int h2o_configurator__do_parse_mapping(h2o_configurator_command_t *cmd, yoml_t * return -1; } if ((keys[j].type_mask & (1u << element->value->type)) == 0) { - char permitted_types[32] = ""; + char permitted_types[41] = ""; + assert(sizeof(permitted_types) >= strlen(" or a scalar or a sequence or a...
set env variable FC to find flang
@@ -93,14 +93,23 @@ cd $BUILD_DIR/build/flang_runtime # Need llvm-config to come from previous LLVM build export PATH=$AOMP_INSTALL_DIR/bin:$PATH +# Old CMAKE uses FC env variable to find fortran compiler +export FC=$AOMP_INSTALL_DIR/bin/flang if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then echo echo " -----Ru...
new app_host launcher binary
}, "app_host": { "formula": { - "sandbox_id": 601573276, + "sandbox_id": 603869687, "match": "app_host_launcher" }, "executable": {
CMSIS-Zone: Added first FreeMarker template example to Generator Data Model documentation.
@@ -10,9 +10,10 @@ template engine to generate arbitrary project files, see picture below.. \image html generator.png "FreeMarker Template Engine" -\section Data Model Structure +\section GenDataModel_Structure Data Model Structure -The class diagram below visualizes the overall structure of the <b>Generator Data Model...
fixes Undefined reference to nni_atomic_swap & nni_atomic_cas(Built by gcc 4.8.5 ).
@@ -284,6 +284,12 @@ nni_atomic_cas64(nni_atomic_u64 *v, uint64_t comp, uint64_t new) &v->v, &comp, new, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)); } +int +nni_atomic_swap(nni_atomic_int *v, int u) +{ + return (__atomic_exchange_n(&v->v, u, __ATOMIC_SEQ_CST)); +} + void nni_atomic_init(nni_atomic_int *v) { @@ -331,6 ...
[stm32f4xx][stdperiph driver] fix a typo in a wait loop
@@ -750,8 +750,7 @@ static void SetSysClock(void) RCC->CFGR |= RCC_CFGR_SW_PLL; /* Wait till the main PLL is used as system clock source */ - while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL); - { + while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL) { } } else
VERSION bump to version 1.4.127
@@ -46,7 +46,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 4) -set(SYSREPO_MICRO_VERSION 126) +set(SYSREPO_MICRO_VERSION 127) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
Clang warning: Value stored to 'v' during its initialization is never read
@@ -20,7 +20,7 @@ int main(int argc, char** argv) size_t i = 0, line_number = 0; char* str_key = NULL; char* str_units = NULL; - bufr_descriptor v = {0,}; + bufr_descriptor v; const size_t maxlen_keyName = sizeof(v.shortName); const size_t maxlen_units = sizeof(v.units);
Link Checker: Ignore version placeholder links
@@ -13,6 +13,8 @@ fi NUMTHREADS=10 check() { + # Ignore links that contain version placeholder + echo "$1" | grep -Eq 'doc/news/_preparation_next_release\.md.*<<VERSION>>' && return link=$(echo "$1" | grep -oE "(https|http|ftp):.*") if [ -z "$link" ]; then echo "check the link format of $1"
Added occupied heating setpoint default reporting for Bitron 902010/32
@@ -1183,6 +1183,23 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt) return sendConfigureReportingRequest(bt, {rq, rq2, rq3}) || // Use OR because of manuf. specific attributes sendConfigureReportingRequest(bt, {rq4, rq5}); } + else if (sensor && sensor->modelId() == QLatin1String("902010/32"...
pkcs12: check for zero length digest to avoid division by zero Fixes
@@ -64,7 +64,7 @@ static int pkcs12kdf_derive(const unsigned char *pass, size_t passlen, } vi = EVP_MD_get_block_size(md_type); ui = EVP_MD_get_size(md_type); - if (ui < 0 || vi <= 0) { + if (ui <= 0 || vi <= 0) { ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_DIGEST_SIZE); goto end; }
Allocate vga buffer from kernel virtual address space The vga buffer physical was being mapped to the identity virtual address which is in the user virtual address area. This change allocates a new virtual address from kernel virtual addresses to map to the vga buffer.
@@ -171,8 +171,8 @@ static void vga_console_write(void *_d, const char *s, bytes count) vga_set_cursor(d, d->cur_x, d->cur_y); } -closure_function(2, 1, boolean, vga_pci_probe, - heap, general, console_attach, a, +closure_function(3, 1, boolean, vga_pci_probe, + heap, general, console_attach, a, heap, virtual, pci_dev,...