message
stringlengths
6
474
diff
stringlengths
8
5.22k
interface: clean dir before webpack build
const path = require('path'); // const HtmlWebpackPlugin = require('html-webpack-plugin'); -// const { CleanWebpackPlugin } = require('clean-webpack-plugin'); +const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = { mode: 'production', @@ -49,7 +49,7 @@ module.exports = { // historyApiFallbac...
Improve tilting gesture handling on Windows platforms
@@ -357,6 +357,8 @@ namespace carto { if (deltaY > GUESS_MAX_DELTA_Y_INCHES) { _gestureMode = DUAL_POINTER_FREE; } else { + float prevSwipe1Length = cglib::length(_swipe1); + float prevSwipe2Length = cglib::length(_swipe2); // Calculate swipe vectors cglib::vec2<float> tempSwipe1(screenPos1.getX() - _prevScreenPos1.get...
fix the my_realloc
@@ -215,10 +215,12 @@ void *my_realloc(picoquic_cnx_t *cnx, void *ptr, unsigned int size) { } /* Case 1a and 1b */ unsigned int old_size = ptr_metadata->size; + /* This case is broken... if (size <= old_size) { ptr_metadata->size = size; return ptr; } + */ /* This is clearly not the most optimized way, but it will alwa...
nimble/host: Remove log_init call log_init() is already called by sysinit with prio 100, so before ble_hs_init() is called so this does not seem to be necessary here.
@@ -660,8 +660,6 @@ ble_hs_init(void) /* Ensure this function only gets called by sysinit. */ SYSINIT_ASSERT_ACTIVE(); - log_init(); - /* Create memory pool of OS events */ rc = os_mempool_init(&ble_hs_hci_ev_pool, BLE_HS_HCI_EVT_COUNT, sizeof (struct os_event), ble_hs_hci_os_event_buf,
fix crash observed in musl on (alpine distro)
@@ -5088,7 +5088,7 @@ pthread_create(pthread_t *thread, const pthread_attr_t *attr, * The addition of libssl and libcrypto pull in these * glibc internal funcs. */ -EXPORTON int +EXPORTOFF int __fprintf_chk(FILE *stream, int flag, const char *format, ...) { va_list ap; @@ -5100,7 +5100,7 @@ __fprintf_chk(FILE *stream, ...
fix for exit status propagation when running bats with Junit format output enabled.
@@ -183,12 +183,14 @@ if [ "$formatter" == "tap-to-junit-xml" ]; then # also, add mktemp_flag set +e exec "$command" $count_flag $extended_syntax_flag "${filenames[@]}" | tee >(cat >&2) | tee "${baseName}.log" | "$formatter" --cmt $JUNIT_GROUP --output "${baseName}.log.xml" + status=$? set -e # john.a.westlund@intel.co...
Avoid using types.Integer as an invalid type We should use types.Invalid instead
@@ -174,8 +174,8 @@ local function checkfor(node, st, errors) if ftype._tag ~= "TypeInteger" and ftype._tag ~= "TypeFloat" then typeerror(errors, "type of for control variable " .. node.decl.name .. " must be integer or float", node.decl._pos) - node.decl._type = types.Integer() - ftype = types.Integer() + node.decl._t...
add version number to software descriptor in upload-to-pskreporter.c
#include <arpa/inet.h> const char name[] = "report.pskreporter.info"; -const char soft[] = "Red Pitaya FT8 TRX"; +const char soft[] = "Red Pitaya FT8 TRX 1.0"; int32_t read_int(char **pointer, int32_t *value) {
tcpm: Do not include gpio.h This removes the inclusion of gpio.h from tcpm.h. There's really nothing GPIO related in this file. BRANCH=none TEST=buildall passes
#include "common.h" #include "ec_commands.h" -#include "gpio.h" #include "i2c.h" #include "usb_pd_tcpm.h" #include "util.h" @@ -410,7 +409,7 @@ static inline int tcpm_set_frs_enable(int port, int enable) } #endif /* defined(CONFIG_USB_PD_FRS_TCPC) */ -#else +#else /* CONFIG_USB_PD_TCPC */ /** * Initialize TCPM driver a...
Remove fixed TID workaround
@@ -746,8 +746,7 @@ VOID PhpThreadProviderUpdate( { for (i = 0; i < numberOfThreads; i++) { - // Assign max TID since some handles have low IDs on windows 10 (dmex) - threads[i].ClientId.UniqueThread = UlongToHandle(-(LONG)i - 2); + threads[i].ClientId.UniqueThread = UlongToHandle(i); } }
chat: fixes dancing timestamps fixes
@@ -283,7 +283,7 @@ export default class VirtualScroller extends PureComponent<VirtualScrollerProps, const indexesToRender = Array.from(visibleItems.keys()); - const transform = origin === 'top' ? 'scaleY(1)' : 'scaleY(-1)'; + const transform = origin === 'top' ? 'scale3d(1, 1, 1)' : 'scale3d(1, -1, 1)'; const render =...
apps/bttester: Fix enable subscription implementation
@@ -1660,7 +1660,8 @@ int tester_gatt_subscribe_ev(u16_t conn_handle, u16_t attr_handle, u8_t reason, static int enable_subscription(u16_t conn_handle, u16_t ccc_handle, u16_t value) { - u8_t op, status; + u8_t op; + SYS_LOG_DBG(""); op = (uint8_t) (value == 0x0001 ? GATT_CFG_NOTIFY : @@ -1670,16 +1671,13 @@ static int...
CMSIS_DAP: Update DAP UART documentation extend DAP_UART_Transport command with Transport None
@@ -1421,8 +1421,9 @@ Sets the UART transport mode for receiving and transmitting data. \endcode - <b>Transport</b>: - - 0 - Transport data via USB COM Port (default). - - 1 - Transport data via DAP commands. + - 0 - None (default, if transport via USB COM Port is not implemented). + - 1 - Transport data via USB COM Po...
[Readme] Add log_interval param
@@ -142,6 +142,7 @@ A partial list of parameters are below. See the config file for a complete list. | `arch` | Show if the application is 32 or 64 bit | | `histogram` | Change fps graph to histogram | | `cpu_text`<br>`gpu_text` | Override CPU and GPU text | +| `log_interval` | Change the default log interval, `100` is...
docs - specify ipfragmentation sysctl.conf settings in install topic
@@ -168,6 +168,9 @@ net.ipv4.tcp_syncookies = 1 net.ipv4.conf.default.accept_source_route = 0 net.ipv4.tcp_max_syn_backlog = 4096 net.ipv4.conf.all.arp_filter = 1 +net.ipv4.ipfrag_high_thresh = 41943040 +net.ipv4.ipfrag_low_thresh = 31457280 +net.ipv4.ipfrag_time = 60 net.core.netdev_max_backlog = 10000 net.core.rmem_m...
Fix bw estimate for local ack delay
@@ -2041,6 +2041,12 @@ void picoquic_compute_ack_gap_and_delay(picoquic_cnx_t* cnx, uint64_t rtt, uint6 if (nb_packets < 2) { nb_packets = 2; } + return_data_rate = cnx->path[0]->bandwidth_estimate; +#if 1 + if (cnx->client_mode) { + DBG_PRINTF("Watch"); + } +#endif } if (return_data_rate > 0) { /* Estimate of ACK size...
Add windows implementation for piping.
@@ -418,12 +418,18 @@ static Janet os_proc_kill(int32_t argc, Janet *argv) { static JanetFile *make_pipes(JanetHandle *handle, int reverse) { JanetHandle handles[2]; #ifdef JANET_WINDOWS - bool result = CreatePipe(handles, handles + 1, NULL, 0); - if (result) { - - } else { - + if (!CreatePipe(handles, handles + 1, NUL...
hslua-module-text: relax upper bound for hslua-packaging
@@ -33,7 +33,7 @@ common common-options default-language: Haskell2010 build-depends: base >= 4.8 && < 5 , hslua-core >= 2.0 && < 2.1 - , hslua-packaging >= 2.0 && < 2.1 + , hslua-packaging >= 2.0 && < 2.2 , text >= 1.0 && < 1.3 ghc-options: -Wall -Wincomplete-record-updates
OcXmlLib: Fix parsing negative integers Resolves issues with parsing MinVersion/MinDate in APFS section
@@ -1531,15 +1531,36 @@ PlistIntegerValue ( ) { UINT64 Temp; + CONST CHAR8 *TempStr; + BOOLEAN Negate; if (PlistNodeCast (Node, PLIST_NODE_TYPE_INTEGER) == NULL) { return FALSE; } + TempStr = XmlNodeContent (Node); + + while (*TempStr == ' ' || *TempStr == '\t') { + ++TempStr; + } + + Negate = *TempStr == '-'; + + if (...
Add include of stdarg.h to host_varfn_function.c
#include <stdio.h> #include <omp.h> #include <hostrpc.h> - +#include <stdarg.h> // This user variable function returns a uint so declare function // as hostrpc_varfn_uint_t . hostrpc_varfn_uint_t my3argfn;
sysdeps/linux: Implement sys_getrandom
@@ -775,4 +775,12 @@ int sys_fdatasync(int fd) { return 0; } +int sys_getrandom(void *buffer, size_t length, int flags, ssize_t *bytes_written) { + auto ret = do_syscall(NR_getrandom, buffer, length, flags); + if (int e = sc_error(ret); e) + return e; + *bytes_written = sc_int_result<ssize_t>(ret); + return 0; +} + } /...
odyssey: do not force to have git around. fix
@@ -5,8 +5,15 @@ project(odyssey C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) -execute_process(COMMAND git describe --always OUTPUT_VARIABLE OD_VERSION_GIT - OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND git describe --always + OUTPUT_VARIABLE OD_VERSION_GIT + RESULT_VAR...
Updated Badge to match CodeCov
<a href="https://travis-ci.com/VirtualPlanetaryLaboratory/vplanet"><img src="https://travis-ci.com/VirtualPlanetaryLaboratory/vplanet.svg?token=jABaFLLgJNHTWSqkT7CM&branch=master"></a> <a href="tests"><img src = "https://img.shields.io/badge/tests-46-darkorange.svg?style=flat"></a> <img src = "https://img.shields.io/ba...
VERSION bump to version 0.10.10
@@ -28,7 +28,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 10) -set(LIBNETCONF2_MICRO_VERSION 9) +set(LIBNETCONF2_MICRO_VERSION 10) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LI...
If the old protocol exists, we're already attached.
@@ -1111,7 +1111,7 @@ static int facil_attach_state(intptr_t uuid, protocol_s *protocol, spn_unlock(&uuid_data(uuid).lock); if (old_protocol) defer(deferred_on_close, (void *)uuid, old_protocol); - if (evio_isactive()) + else if (evio_isactive()) evio_add(sock_uuid2fd(uuid), (void *)uuid); return 0; }
Component/bt: add_params_check_in_prefer_conn_params()
@@ -240,7 +240,8 @@ esp_err_t esp_ble_gap_set_prefer_conn_params(esp_bd_addr_t bd_addr, if (ESP_BLE_IS_VALID_PARAM(min_conn_int, ESP_BLE_CONN_INT_MIN, ESP_BLE_CONN_INT_MAX) && ESP_BLE_IS_VALID_PARAM(max_conn_int, ESP_BLE_CONN_INT_MIN, ESP_BLE_CONN_INT_MAX) && ESP_BLE_IS_VALID_PARAM(supervision_tout, ESP_BLE_CONN_SUP_TO...
sensors: occ: Skip GPU sensors for non-gpu systems
@@ -553,6 +553,7 @@ void occ_sensors_init(void) struct proc_chip *chip; struct dt_node *sg, *exports; int occ_num = 0, i; + bool has_gpu = false; /* OCC inband sensors is only supported in P9 */ if (proc_gen != proc_gen_p9) @@ -576,6 +577,9 @@ void occ_sensors_init(void) dt_add_property_cells(sg, "#address-cells", 1); ...
update adc_recorder
@@ -128,7 +128,7 @@ cell xilinx.com:ip:axis_broadcaster bcast_0 { } { S_AXIS adc_0/M_AXIS aclk pll_0/clk_out1 - aresetn rst_0/peripheral_aresetn + aresetn slice_0/dout } # Create cic_compiler @@ -177,7 +177,7 @@ cell xilinx.com:ip:axis_combiner comb_0 { S00_AXIS cic_0/M_AXIS_DATA S01_AXIS cic_1/M_AXIS_DATA aclk pll_0/c...
adds failing test case for invalid JWS
test-rs256 test-jwk test-jws - test-jws-fail + test-jws-2 test-csr == ?~(out this ((slog out) this)) :- exp-ws (en-base64url (swp 3 (~(sign rs256 k) inp-ws))) == - :: XX this test should fail, but doesn't. - :: XX fix the bug and make it fail. :: - :: urn:ietf:params:acme:error:malformed - :: JWS verification error - :...
fix list append
@@ -335,12 +335,17 @@ void searches_add_addr(struct search_t *search, const IP *addr) { struct result_t *cur; struct result_t *new; + struct result_t *last; int count; // Check if result already exists + // or maximum result count is reached count = 0; + last = NULL; cur = search->results; while (cur) { + last = cur; +...
added to warning: only one single M2 from a client is required
@@ -167,7 +167,7 @@ You must use wlandump-ng and wlanresponse only on networks you have permission t * wlandump-ng/wlanresponse are able to capture handshakes from not connected clients (only one single M2 from the client is required) -* wlandump-ng/wlanresponse are able to capture handshakes from 5GHz clients on 2.4GH...
hv: implement configuration space operations of ivshmem device Implement read_vdev_cfg/write_vdev_cfg operations for ivshmem deivce v2: read_vdev_cfg/write_vdev_cfg always return zero, the ivshmem device only emulated in HV. Acked-by: Eddie Dong
@@ -54,23 +54,52 @@ static struct ivshmem_shm_region *find_shm_region(const char *name) static int32_t read_ivshmem_vdev_cfg(const struct pci_vdev *vdev, uint32_t offset, uint32_t bytes, uint32_t *val) { - /* Implementation in next patch */ - (void) vdev; - (void) offset; - (void) bytes; - (void) val; + if (cfg_header_...
Duplicate earlier Clang 9.0.0 workaround for corresponding Apple Clang version As discussed on the original PR the "Apple Clang 11.0.3" that appears to be based the same LLVM release produces the same miscompilation of this file.
@@ -36,7 +36,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #if defined(__clang_patchlevel__) && __clang_major__ == 9 && __clang_minor__ == 0 && __clang_patchlevel__ == 0 #pragma clang optimize off #endif - +#if defined(__apple_build_version__) && __clang_major__ == 11 && __clang_minor__ ...
Prepare ymake.core.conf for a new FriendlyCore arm64 platform
@@ -6662,11 +6662,13 @@ when ($MAPSMOBI_BUILD_TARGET && $OS_DARWIN) { when ($MAPSMOBI_BUILD_TARGET && $OS_IOS) { CFLAGS+=-DIOS -stdlib=libc++ -fvisibility=hidden } -when ($MAPSMOBI_BUILD_TARGET && $OS_LINUX) { +when ($MAPSMOBI_BUILD_TARGET && $OS_LINUX && $ARCH_AARCH64 != "yes") { QT_REQUIRED=yes + OPENGL_REQUIRED=yes ...
[core] check for __builtin_expect() availability
#define __has_attribute(x) 0 #endif +#ifndef __has_builtin /* clang */ +#define __has_builtin(x) 0 +#endif + #ifdef __GNUC__ #ifndef __GNUC_PREREQ # ifdef __GNUC_PREREQ__ #define __GNUC_PREREQ(maj,min) 0 #endif +#ifndef __builtin_expect +#if !__has_builtin(__builtin_expect) \ + && !__GNUC_PREREQ(2,96) +#define __builti...
stack: increase the reallocation ratio This change increases the reallocation ratio from 1.5 to 1.6.
#include <stdio.h> #include "internal/cryptlib.h" #include "internal/numbers.h" +#include "internal/safe_math.h" #include <openssl/stack.h> #include <errno.h> #include <openssl/e_os2.h> /* For ossl_inline */ +OSSL_SAFE_MATH_SIGNED(int, int) + /* * The initial number of nodes in the array. */ @@ -138,32 +141,35 @@ OPENS...
Issue fix for a bug detect color number of 1x1 image as 0
@@ -737,7 +737,7 @@ computeHistogram(unsigned char const /* in */ *data, goto end; } - for (i = 0; i < length - depth; i += step) { + for (i = 0; i < length; i += step) { bucket_index = computeHash(data + i, 3); if (histogram[bucket_index] == 0) { *ref++ = bucket_index;
mtd/Kconfig: add missing Kconfig entry, MTD_PROGMEM This commit adds a Kconfig entry, MTD_PROGMEM, which enables the progmem that provides the upper-half implementation for on-chip flash memories.
@@ -51,6 +51,14 @@ config MTD_PARTITION_NAMES file system interface. This adds an API which must be called to specify the partition name. +config MTD_PROGMEM + bool "Enable on-chip program FLASH MTD device" + default n + ---help--- + Enable to support an MTD device that supports the on-chip + FLASH using the interfaces...
clarify download for windows users
@@ -12,7 +12,7 @@ These tools have been implemented using C++11. ## Download -We recommend using the [latest release](https://github.com/EBIvariation/vcf-validator/releases) for the most stable experience using vcf-validator. Along with the release notes, you will find the executables `vcf_validator`, `vcf_assembly_che...
subproc: cast time_t to long
@@ -411,7 +411,7 @@ void subproc_checkTimeLimit(run_t* run) { if ((diffMillis > (run->global->timing.tmOut * 1000)) && !run->tmOutSignaled) { run->tmOutSignaled = true; LOG_W("PID %d took too much time (limit %ld s). Killing it with %s", run->pid, - run->global->timing.tmOut, run->global->timing.tmoutVTALRM ? "SIGVTALR...
opengl: Init compareMode for native textures;
@@ -1462,6 +1462,7 @@ Texture* lovrTextureInitFromHandle(Texture* texture, uint32_t handle, TextureTyp texture->type = type; texture->id = handle; texture->target = convertTextureTarget(type); + texture->compareMode = COMPARE_NONE; texture->native = true; int width, height;
BUFR: The 'count' key works differently from GRIB
@@ -800,6 +800,7 @@ grib_handle* gts_new_from_file( grib_context* c, FILE* f,int *error ) gl->product_kind = PRODUCT_GTS; grib_context_increment_handle_file_count(c); grib_context_increment_handle_total_count(c); + if (gl->offset == 0) grib_context_set_handle_file_count(c,1); return gl; } @@ -838,6 +839,7 @@ grib_handl...
BIO_set_prefix: fix return check
@@ -242,7 +242,7 @@ static int setup(void) progname, idx, amount - 1); return 0; } - if (!BIO_set_prefix(chain[idx], colon)) { + if (BIO_set_prefix(chain[idx], colon) <= 0) { BIO_printf(bio_err, "%s: failed setting prefix: %s", progname, arg); return 0;
Add mynewt option for generating new format images
@@ -31,3 +31,9 @@ which might exist. To configure **mcuboot** check all the options available in ``boot/mynewt/mcuboot_config/syscfg.yml``. + +Also, **mcuboot** uses a different image header struct as well as slightly +different TLV structure, so images created by **newt** have to be generated +in this new format. That...
stm32/adc: Support 16-bit ADC configuration on H7 MCUs.
@@ -677,6 +677,9 @@ void adc_init_all(pyb_adc_all_obj_t *adc_all, uint32_t resolution, uint32_t en_m case 8: resolution = ADC_RESOLUTION_8B; break; case 10: resolution = ADC_RESOLUTION_10B; break; case 12: resolution = ADC_RESOLUTION_12B; break; + #if defined(STM32H7) + case 16: resolution = ADC_RESOLUTION_16B; break; ...
Change default velocity to be 127
@@ -305,7 +305,12 @@ BEGIN_OPERATOR(midi) Usz channel_num = index_of(channel_g); if (channel_num > 15) channel_num = 15; - Usz vel_num = index_of(velocity_g); + Usz vel_num; + if (velocity_g == '.') { + // If no velocity is specified, set it to full. + vel_num = 127; + } else { + vel_num = index_of(velocity_g); // MIDI...
NVMe: Setting rcache to 0x2
@@ -748,7 +748,7 @@ module nvme_top ( DDR_RADDR: begin DDR_arburst <= 2'b01; /* 00 FIXED, 01 INCR burst mode */ DDR_arlen <= 8'h0; /* 1 only */ - DDR_arcache <= 4'b0000; /* do not allow merging */ + DDR_arcache <= 4'b0010; /* allow merging */ DDR_arprot <= 4'b0000; /* no protection bits */ DDR_arsize <= 3'b100; /* 16 b...
testing if error in both avx2 functions
@@ -874,8 +874,8 @@ static void inter_recon_bipred_avx2(const int hi_prec_luma_rec0, kvz_pixel* temp_lcu_u, kvz_pixel* temp_lcu_v) { - - if (hi_prec_luma_rec0 == 0 && hi_prec_luma_rec1 == 0 && hi_prec_chroma_rec0 == 0 && hi_prec_chroma_rec1 == 0) + bool test = false; + if (test) //hi_prec_luma_rec0 == 0 && hi_prec_luma...
Fix TCP checksum. Set TCP checksum to zero, before calculate the TCP checksum.
@@ -181,7 +181,10 @@ calc_checksums (vlib_main_t * vm, vlib_buffer_t * b) if (b->flags & VNET_BUFFER_F_OFFLOAD_IP_CKSUM) ip4->checksum = ip4_header_checksum (ip4); if (b->flags & VNET_BUFFER_F_OFFLOAD_TCP_CKSUM) + { + th->checksum = 0; th->checksum = ip4_tcp_udp_compute_checksum (vm, b, ip4); + } if (b->flags & VNET_BU...
Increase RPS latency storage XDP is getting dangerously close to the hardcoded RPS limit for latency data, and some times has gone over, causing a crash
@@ -26,7 +26,7 @@ Abstract: #define TPUT_DEFAULT_IDLE_TIMEOUT (1 * 1000) #define RPS_MAX_CLIENT_PORT_COUNT 256 -#define RPS_MAX_REQUESTS_PER_SECOND 1500000 // 1.5 million RPS max as a guess +#define RPS_MAX_REQUESTS_PER_SECOND 2000000 // 1.5 million RPS max as a guess #define RPS_DEFAULT_RUN_TIME (10 * 1000) #define RP...
fcrypt: fix error message macro
@@ -284,7 +284,7 @@ static int fcryptEncrypt (KeySet * pluginConfig, Key * parentKey) if (recipientCount == 0 && signatureCount == 0) { - ELEKTRA_SET_VALIDATION_SEMANTIC_ERROR ( + ELEKTRA_SET_VALIDATION_SEMANTIC_ERRORF ( parentKey, "Missing GPG recipient key (specified as %s) or GPG signature key (specified as %s) in p...
zephyr: Add a fake CONFIG_CRC8 Add this to reduce the CONFIG delta between Zephyr and ECOS. It is not actually used with Zephyr. BRANCH=none TEST=none
#undef CONFIG_RW_ROM_RESIDENT_MEM_OFF #undef CONFIG_RW_ROM_RESIDENT_SIZE +/* + * This not used by the Zephyr code since we always make cros_crc8() available. + * Define it here to reduce the delta from the ECOS CONFIG. + */ +#undef CONFIG_CRC8 +#define CONFIG_CRC8 + /* EC chipset configuration */ #define HOOK_TICK_INTE...
Add missing cipher mode translations for PSA
@@ -51,6 +51,9 @@ static inline psa_key_type_t mbedtls_psa_translate_cipher_type( case MBEDTLS_CIPHER_AES_128_CCM: case MBEDTLS_CIPHER_AES_192_CCM: case MBEDTLS_CIPHER_AES_256_CCM: + case MBEDTLS_CIPHER_AES_128_CCM_STAR_NO_TAG: + case MBEDTLS_CIPHER_AES_192_CCM_STAR_NO_TAG: + case MBEDTLS_CIPHER_AES_256_CCM_STAR_NO_TAG...
Adventure scene stop player from walking though actors (not perfect)
@@ -139,13 +139,17 @@ void Update_Adventure() { // Actor Collisions hit_actor = ActorOverlapsPlayer(FALSE); - if (hit_actor && hit_actor != NO_ACTOR_COLLISON && player_iframes == 0) { + if (hit_actor && hit_actor != NO_ACTOR_COLLISON) { + if (hit_actor == ActorInFrontOfPlayer()) { + player.moving = FALSE; + } + if (pla...
Doc: Replace reference to pg_stat_wal_receiver.received_lsn by flushed_lsn Oversight in where the view's column has been renamed. Reported-by: Fujii Masao Discussion:
@@ -906,7 +906,7 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass' On a hot standby, the status of the WAL receiver process can be retrieved via the <xref linkend="pg-stat-wal-receiver-view"/> view. A large difference between <function>pg_last_wal_replay_lsn</function> and the - view's <lite...
doc: prettify OPAL_GET_MSI_[32|64]
+=================================== OPAL_GET_MSI_32 and OPAL_GET_MSI_64 =================================== -:: + +.. code-block:: c + + #define OPAL_GET_MSI_32 39 + #define OPAL_GET_MSI_64 40 + + int64_t opal_get_msi_32(uint64_t phb_id, uint32_t mve_number, + uint32_t xive_num, uint8_t msi_range, + uint32_t *msi_addr...
Add comment clarifying gnutls output parsing
@@ -73,6 +73,7 @@ def try_gnutls_handshake(endpoint, port, priority_str, mfl_extension_test, enter for line in range(0 , 100): output = gnutls_cli.stdout.readline().decode("utf-8") gnutls_initial_stdout_str += output + "\n" + # Once we see this string, we have read enough output to determine which signature algorithm w...
framework/ble_manager: fix BLE build warnings fix build warnings in BLE example
@@ -447,7 +447,8 @@ int ble_rmc_main(int argc, char *argv[]) if (argc == 4 && strncmp(argv[2], "del", 4) == 0) { int cnt = 0; - uint8_t mac[BLE_BD_ADDR_MAX_LEN] = { 0, }; + ble_addr addr[1] = { 0, }; + uint8_t *mac = addr->mac; char *ptr = strtok(argv[3], ":"); while (ptr != NULL) { @@ -455,7 +456,7 @@ int ble_rmc_main...
[ctr/lua] Fix compile failed on windows
@@ -922,7 +922,7 @@ func LuaRandom(L *LState, service C.int) C.int { luaPushStr(L, "system.random: the maximum value must be greater than zero") return -1 } - C.lua_pushinteger(L, C.long(stateSet.seed.Intn(int(n))) + C.long(1)) + C.lua_pushinteger(L, C.lua_Integer(stateSet.seed.Intn(int(n))) + C.lua_Integer(1)) default...
libc: Replace frigg::Hashmap by frg::hash_map
#include <string.h> #include <pthread.h> -#include <frigg/traits.hpp> -#include <frigg/hashmap.hpp> #include <hel.h> #include <hel-syscalls.h> #include <bits/ensure.h> #include <frg/allocation.hpp> +#include <frg/hash_map.hpp> #include <mlibc/allocator.hpp> #include <mlibc/debug.hpp> -// TODO: move this to a - static b...
Bugfix: make wTotalLength uint16_t to avoid truncation
@@ -155,7 +155,7 @@ typedef struct { enum_stage_t stage; /**< Current enumeration stage */ int expect_num_bytes; /**< Expected number of bytes for IN transfers stages. Set to 0 for OUT transfer */ uint8_t bMaxPacketSize0; /**< Max packet size of the device's EP0. Read from bMaxPacketSize0 field of device descriptor */ ...
version 1.1.0 and 2.0.0 has been release already
-kadnode (2.0.0) UNRELEASED; urgency=medium +kadnode (2.0.0) unstable; urgency=medium * refactor most code * IPv4 and IPv6 works at the same time @@ -7,7 +7,7 @@ kadnode (2.0.0) UNRELEASED; urgency=medium -- mwarning <moritzwarning@web.de> Tue, 14 Aug 2017 00:56:45 +0100 -kadnode (1.1.0) UNRELEASED; urgency=medium +kad...
pass debug flag to nvcc
@@ -300,6 +300,7 @@ TARGETS = bart $(XTARGETS) ifeq ($(DEBUG),1) CPPFLAGS += -g CFLAGS += -g +NVCCFLAGS += -g endif ifeq ($(UBSAN),1) @@ -372,7 +373,7 @@ endif # sm_20 no longer supported in CUDA 9 GPUARCH_FLAGS ?= -NVCCFLAGS = -DUSE_CUDA -Xcompiler -fPIC -Xcompiler -fopenmp -O3 $(GPUARCH_FLAGS) -I$(srcdir)/ -m64 -ccbi...
Fix for gcc7 When building VPP code with gcc7 a warning (threated as error) is encountered and the build fails. This patch addressed the compilation issue.
@@ -1316,7 +1316,7 @@ sse2_pol_convert_hw_to_cfg_params (sse2_qos_pol_hw_params_st * hw, } if ((hw->rfc == IPE_RFC_RFC4115) && - !(hw->peak_rate_man << hw->rate_exp) && !(hw->extd_bkt_limit_man)) + (hw->peak_rate_man << hw->rate_exp) == 0 && !(hw->extd_bkt_limit_man)) { /* * For a 1R2C, we set EIR = 0, EB = 0
sse: remove unused but set variable This is no lnger necessary since we use simde_mm_cvtss_f32 to load the value instead of relying on the private union member.
@@ -1555,8 +1555,7 @@ simde_mm_cmpord_ss (simde__m128 a, simde__m128 b) { #else simde__m128_private r_, - a_ = simde__m128_to_private(a), - b_ = simde__m128_to_private(b); + a_ = simde__m128_to_private(a); r_.u32[0] = (isnan(simde_mm_cvtss_f32(a)) || isnan(simde_mm_cvtss_f32(b))) ? UINT32_C(0) : ~UINT32_C(0); SIMDE__VE...
expand scope
@@ -1442,6 +1442,7 @@ static void on_handshake_fail_complete(h2o_socket_t *sock, const char *err) static void proceed_handshake(h2o_socket_t *sock, const char *err); +#ifdef PTLS_OPENSSL_HAVE_ASYNC struct async_data { h2o_socket_t *async_sock; struct { @@ -1500,7 +1501,6 @@ static void async_on_close(void *data) free(a...
Do not mislead MS VS code parsers: quote path only, not full argument Pull-request for branch users/somov/fix_ide_msvs
@@ -1925,8 +1925,8 @@ when ($MSVC_INLINE_OPTIMIZED == "no") { ucrt_include = os.path.join(self.tc.kit_includes, 'ucrt') if not self.tc.ide_msvs else "$(UniversalCRT_IncludePath.Split(';')[0])" - append('CFLAGS', '"/DY_UCRT_INCLUDE=%s"' % ucrt_include) - append('CFLAGS', '"/DY_MSVC_INCLUDE=%s"' % vc_include) + append('C...
update ya tool arc get / set xattrs for mutable entries support a/c/m times checkout tree entry Dropping TStringBuf::c_str usage
}, "arc": { "formula": { - "sandbox_id": [376680307], + "sandbox_id": [377950593], "match": "arc" }, "executable": {
readme: point arvo URL at subtree [ci skip] This one was still pointing at the deprecated arvo repository.
@@ -11,7 +11,7 @@ A personal server operating function. [azim]: https://etherscan.io/address/0x223c067f8cf28ae173ee5cafea60ca44c335fecb [aens]: https://etherscan.io/address/azimuth.eth [brid]: https://github.com/urbit/bridge/releases -[arvo]: https://github.com/urbit/arvo/ +[arvo]: https://github.com/urbit/urbit/tree/m...
Fix the compiler detection logic
@@ -30,19 +30,6 @@ elseif (WIN32) set(OE_ASM ASM_MASM) endif () -# If CC environment variable has been specified or if CMAKE_C_COMPILER -# cmake variable has been passed to cmake, use the C compiler that has -# been specified. Otherwise, prefer clang. Same for C++ compiler. -# This must be done before `project` command...
Rewrite glibc version check
@@ -73,8 +73,17 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "common.h" -#if defined(USE_TLS) && ( !defined(__GLIBC_PREREQ) || (defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2,20))) -#warning "using tls version of memory.c" +#if defined(USE_TLS) +#define COMPILE_TLS +#if defined(__GL...
BugID:18756778: fix the problem of AT input error to send data
@@ -103,7 +103,7 @@ char *strtok(char *str, const char * delim) do { ch = *str++; if (ch == '\0') { - return NULL; + return ret; } } while (ch != *delim); @@ -114,15 +114,10 @@ char *strtok(char *str, const char * delim) int hex2bin(const char *hex, uint8_t *bin, uint16_t bin_length) { - uint16_t hex_length = strlen(he...
acl-plugin: Stale classify table after deleting macip ACL Classify table for output node should be cleaned up after deleting macip ACL.
@@ -1852,6 +1852,24 @@ macip_destroy_classify_tables (acl_main_t * am, u32 macip_acl_index) 0); a->l2_table_index = ~0; } + if (a->out_ip4_table_index != ~0) + { + acl_classify_add_del_table_small (cm, 0, ~0, ~0, ~0, + &a->out_ip4_table_index, 0); + a->out_ip4_table_index = ~0; + } + if (a->out_ip6_table_index != ~0) +...
Ensure multiplication proceeds division in case OS_TICKS_PER_SEC<1000
@@ -194,7 +194,7 @@ os_time_ms_to_ticks(uint32_t ms, uint32_t *out_ticks) _Static_assert(OS_TICKS_PER_SEC <= UINT32_MAX, "OS_TICKS_PER_SEC must be <= UINT32_MAX"); - ticks = (uint64_t)ms * OS_TICKS_PER_SEC / 1000; + ticks = ((uint64_t)ms * OS_TICKS_PER_SEC) / 1000; if (ticks > UINT32_MAX) { return OS_EINVAL; }
Improve timeout mechanism for pg_rewind tests We've seen frequent pg_rewind test failures due to promotion timeout. We should increase the timeout. Also, add code to error out on timeout.
@@ -98,10 +98,12 @@ function wait_for_promotion { retry=150 until [ $retry -le 0 ] do - PGOPTIONS=${PGOPTIONS_UTILITY} ${1} -c "select 1;" && break + PGOPTIONS=${PGOPTIONS_UTILITY} ${1} -c "select 'promotion is done';" && return 0 retry=$[$retry-1] - sleep 0.2 + sleep 0.5 done + echo "error: timeout, promotion is not d...
phb4: Disable device config space access when fenced On DD2 you can't access device config space when fenced, so just disable access whenever we are fenced.
@@ -430,6 +430,8 @@ static int64_t phb4_pcicfg_read(struct phb4 *p, uint32_t bdfn, if (p->flags & PHB4_AIB_FENCED) { if (!(p->flags & PHB4_CFG_USE_ASB)) return OPAL_HARDWARE; + if (bdfn != 0) + return OPAL_HARDWARE; use_asb = true; } else if ((p->flags & PHB4_CFG_BLOCKED) && bdfn != 0) { return OPAL_HARDWARE; @@ -521,6...
Make libuv optional
@@ -87,7 +87,7 @@ if(NOT BUILD_SDL) endif() if(NOT N3DS AND NOT EMSCRIPTEN AND NOT BAREMETALPI) - set(USE_LIBUV TRUE) + set(USE_LIBUV TRUE CACHE STRING "Enable libuv") endif() message("BUILD_SDLGPU: ${BUILD_SDLGPU}")
fixed typo in travis.ymal
@@ -38,5 +38,5 @@ script: after_success: # - if [ "$TRAVIS_BRANCH" = "master" ]; then source .ci/build-docs.sh; fi - if [ "$TRAVIS_BRANCH" = "master" ]; then bash <(curl -s https://codecov.io/bash); fi - - source .ci/build-docs.sh; fi + - source .ci/build-docs.sh # bash <(curl -s https://codecov.io/bash);
swaybar: fix cairo_font_options leak
@@ -813,9 +813,7 @@ void render_frame(struct swaybar_output *output) { output->width * output->scale, output->height * output->scale); if (!output->current_buffer) { - cairo_surface_destroy(recorder); - cairo_destroy(cairo); - return; + goto cleanup; } cairo_t *shm = output->current_buffer->cairo; @@ -840,6 +838,7 @@ v...
linux-cp: fix lcp_itf_pair_create()'s memory leak need free args.error if args.rv < 0 Type: fix
@@ -979,6 +979,8 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name, .tx_ring_sz = 256, .host_if_name = host_if_name, .host_namespace = 0, + .rv = 0, + .error = NULL, }; ethernet_interface_t *ei; u32 host_sw_mtu_size; @@ -1017,6 +1019,7 @@ lcp_itf_pair_create (u32 phy_sw_if_index, u8 *host_if_name, { LCP_ITF...
mesh: Group resends in proxy nodes Resend transport segments for groups on the advertiser interface, even if a connected proxy node holds the group. this is port of
@@ -762,7 +762,8 @@ int bt_mesh_net_resend(struct bt_mesh_subnet *sub, struct os_mbuf *buf, } if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY) && - bt_mesh_proxy_relay(buf, dst)) { + bt_mesh_proxy_relay(buf, dst) && + BT_MESH_ADDR_IS_UNICAST(dst)) { send_cb_finalize(cb, cb_data); } else { bt_mesh_adv_send(buf, cb, cb_data);
Sockeye TN: adapt example to syntax changes
-device1 -device2 are device accept [0x0/12] +device{[1..2]} are device accept [0x0/12] RAM is memory accept [0x0/16] Interconnect is map [ - 0x00000/12 to device1 at 0 - 0x02000/12 to device2 at 0 - 0x10000/16 to RAM at 0 + 0x00000/12 to device1 + 0x02000/12 to device2 + 0x10000/16 to RAM ] -CPU is over Interconnect \...
sysdeps/lyre: fix timeout passed from sys_poll to sys_ppoll
@@ -93,7 +93,7 @@ int sys_poll(struct pollfd *fds, nfds_t count, int timeout, int *num_events) { struct timespec ts; ts.tv_sec = timeout / 1000; ts.tv_nsec = (timeout % 1000) * 1000000; - return sys_ppoll(fds, count, &ts, NULL, num_events); + return sys_ppoll(fds, count, timeout < 0 ? NULL : &ts, NULL, num_events); } i...
fix(png): fix file leaks
@@ -385,9 +385,11 @@ static unsigned lodepng_buffer_file(unsigned char * out, size_t size, const char uint32_t br; res = lv_fs_read(&f, out, size, &br); + lv_fs_close(&f); + if(res != LV_FS_RES_OK) return 78; if(br != size) return 78; - lv_fs_close(&f); + return 0; }
out_forward: if secure forward handshake fails do a proper exit
@@ -517,6 +517,11 @@ void cb_forward_flush(void *data, size_t bytes, if (ctx->secured == FLB_TRUE) { ret = secure_forward_handshake(u_conn, ctx); flb_debug("[out_fw] handshake status = %i", ret); + if (ret == -1) { + flb_upstream_conn_release(u_conn); + msgpack_sbuffer_destroy(&mp_sbuf); + FLB_OUTPUT_RETURN(FLB_RETRY);...
tools/mpy-tool.py: List frozen modules in MICROPY_FROZEN_LIST_ITEM.
@@ -916,6 +916,17 @@ def freeze_mpy(base_qstrs, raw_codes): print(" &raw_code_%s," % rc.escaped_name) print("};") + # If a port defines MICROPY_FROZEN_LIST_ITEM then list all modules wrapped in that macro. + print("#ifdef MICROPY_FROZEN_LIST_ITEM") + for rc in raw_codes: + module_name = rc.source_file.str + if module_n...
mi/match: fix internal compiler error There could be more than one frontiers for each match arm.
@@ -980,7 +980,7 @@ gendtree(Node *m, Node *val, Node **lbl, size_t nlbl) for (i = 0; i < nfrontier; i++) if (frontier[i]->final->refcnt == 0) - fatal(pat[i], "pattern matched by earlier case"); + fatal(pat[frontier[i]->i], "pattern matched by earlier case"); if (debugopt['M'] || getenv("M")) { dbgloc = strdup(getenv("...
Added a patch to allow yml comment line
@@ -70,6 +70,8 @@ def read_nids(): for line_no, line in enumerate(readlines(d)): line = line.strip() k, v = line.split(':')[:3] + if k[0] == "#": # It a comment + continue if not v.strip(): SECTION = k continue
Retain the same semantics for connection error on connection timeout This ensures that a disconnect occurs. This commit also ensures that disconnects will clean the socket even if the user is in no-auto-free mode
} while(0) #define _EL_CLEANUP(ctx) do { \ if ((ctx)->ev.cleanup) (ctx)->ev.cleanup((ctx)->ev.data); \ + ctx->ev.cleanup = NULL; \ } while(0); static void refreshTimeout(redisAsyncContext *ctx) { @@ -359,6 +360,10 @@ static void __redisAsyncDisconnect(redisAsyncContext *ac) { c->flags |= REDIS_DISCONNECTING; } + /* cle...
core: modify ossl_provider_forall_loaded() to avoid locking for the callbacks To avoid recursive lock issues, a copy is taken of the provider list and the callbacks are made without holding the store lock. Fixes
@@ -726,36 +726,6 @@ void *ossl_provider_ctx(const OSSL_PROVIDER *prov) return prov->provctx; } - -static int provider_forall_loaded(struct provider_store_st *store, - int *found_activated, - int (*cb)(OSSL_PROVIDER *provider, - void *cbdata), - void *cbdata) -{ - int i; - int ret = 1; - int num_provs; - - num_provs = ...
Fix typo in SSL_CTX_set_dh_auto
@@ -11,7 +11,7 @@ SSL_set_tmp_dh_callback, SSL_set_tmp_dh #include <openssl/ssl.h> - long SSL_CTX_set_dh_auto(SSL *s, int onoff); + long SSL_CTX_set_dh_auto(SSL_CTX *ctx, int onoff); long SSL_set_dh_auto(SSL *s, int onoff); int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey); int SSL_set0_tmp_dh_pkey(SSL *s, E...
zephyr/test/drivers/src/integration/usbc/usb.c: Format with clang-format BRANCH=none TEST=none
@@ -122,14 +122,12 @@ ZTEST(integration_usb, test_attach_drp) /* Attach emulated sink */ tcpci_partner_init(&my_drp, PD_REV20); - my_drp.extensions = - tcpci_drp_emul_init( + my_drp.extensions = tcpci_drp_emul_init( &drp_ext, &my_drp, PD_ROLE_SINK, tcpci_src_emul_init(&src_ext, &my_drp, NULL), tcpci_snk_emul_init(&snk_...
Fizz: Log DP mode entry and exit This helps us tell whether a monitor lost picture because the EC exited the DisplayPort mode or other reason. BRANCH=none TEST=boot Fizz
@@ -325,6 +325,8 @@ static int svdm_enter_dp_mode(int port, uint32_t mode_caps) { /* Only enter mode if device is DFP_D capable */ if (mode_caps & MODE_DP_SNK) { + pd_log_event(PD_EVENT_VIDEO_DP_MODE, + PD_LOG_PORT_SIZE(port, 0), 1, NULL); svdm_safe_dp_mode(port); return 0; } @@ -401,6 +403,8 @@ static void svdm_exit_d...
Fix userspace tag and tagof functions for riscv Use the x86 style tag functions for userspace runtime.
@@ -96,20 +96,15 @@ __bswap64(u64 _x) #define le64toh(x) (x) #endif -#ifndef KERNEL -#define VA_TAG_BASE 0 -#define VA_TAG_OFFSET USER_VA_TAG_OFFSET -#define VA_TAG_WIDTH USER_VA_TAG_WIDTH -#else +typedef void *value; +typedef u8 value_tag; + +#ifdef KERNEL #define KMEM_BASE 0xffff800000000000ull #define USER_LIMIT 0x0...
BugID:23836185: buf_queue_dyn_create args type is not used
@@ -139,7 +139,7 @@ static kstat_t buf_queue_dyn_create(kbuf_queue_t **queue, const name_t *name, } stat = buf_queue_create(queue_obj, name, queue_obj->buf, size, max_msg, - K_OBJ_DYN_ALLOC, RINGBUF_TYPE_DYN); + K_OBJ_DYN_ALLOC, type); if (stat != RHINO_SUCCESS) { krhino_mm_free(queue_obj->buf);
Exclude "doc" directory from Python checks The doc directory contains python scripts generated from other tools, so we skip checking them for now.
@@ -4,9 +4,14 @@ pushd $(dirname $0)/.. PYCODESTYLE=$(which pycodestyle) PYLINT=$(which pylint) -FILES=$(find . -iname "*.py" -not -name "cpplint.py") +FILES=$(find . -iname "*.py" -not -name "cpplint.py" -not -path "./doc/*") FILES+=" " -FILES+=$(grep -rl "^#./usr/bin.*python" ./* | grep -v cpplint.py) +FILES+=$(grep ...
Make sure standard URI schemes are added (Issue
@@ -425,6 +425,14 @@ papplDeviceIsSupported( if (!strcmp(scheme, "file")) return (!access(resource, W_OK)); + // Make sure schemes are added... + if (!device_schemes) + { + _papplDeviceAddFileScheme(); + _papplDeviceAddNetworkSchemes(); + _papplDeviceAddUSBScheme(); + } + // Otherwise try to lookup the URI scheme... pt...
don't clear name
@@ -215,7 +215,7 @@ static void cycle_gettable(t_cycle *x) x->x_nameset = 0; if(warn) pd_error(x, "[cycle~]: using cosine table"); } - x->x_name = 0; + //x->x_name = 0; x->x_cycle_tabsize = COS_TABSIZE; } } @@ -527,9 +527,7 @@ static void *cycle_new(t_symbol *s, int argc, t_atom *argv) cycle_phase(x, phaseoff); x->x_ou...
O365 Exchange connector : fix duplicated libs in MCF
<copy flatten="true" toDir="${linux.dist.dir}/mcf/mcf_home/connector-lib" overwrite="true" force="true"> <fileset dir="${share.connector.src.dir}"> <include name="*.jar" /> - </fileset> - </copy> - <copy flatten="true" toDir="${linux.dist.dir}/mcf/mcf_home/connector-common-lib" overwrite="true" force="true"> - <fileset...
[BSP] add -nostartfiles in efm32 bsp
@@ -60,7 +60,7 @@ if PLATFORM == 'gcc': DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' CFLAGS = DEVICE AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' - LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-efm32.map,-cref,-u,__cs3_reset -T' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthrea...