message
stringlengths
6
474
diff
stringlengths
8
5.22k
Clean up more stuff in 'tool' script
@@ -297,22 +297,16 @@ build_target() { if [ $protections_enabled != 1 ]; then add cc_flags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 case $cc_id in - gcc|clang) add cc_flags -fno-stack-protector;; + gcc|clang) add cc_flags -fno-stack-protector esac fi - case $os in - mac);; # todo some stripping option - *) - # -flto is go...
oc_oscore_engine:add Partial-IV to all responses
@@ -313,13 +313,10 @@ oc_oscore_send_message(oc_message_t *msg) * Else: * Return error * Else: (CoAP message is response) - * If notification response: * Use context->SSN as partial IV * Coompute nonce using partial IV and context->sendid - * Copy partial IV into incoming oc_message_t (*msg), if valid - * Else: (non-no...
Fix not clearing claims in session when setting claims to null
@@ -520,8 +520,10 @@ void oidc_session_set_filtered_claims(request_rec *r, oidc_session_t *z, void *iter = NULL; apr_byte_t is_allowed; - if (oidc_util_decode_json_object(r, claims, &src) == FALSE) + if (oidc_util_decode_json_object(r, claims, &src) == FALSE){ + oidc_session_set(r, z, session_key, NULL); return; + } ds...
phaser: add sku 5 for Laser Add new SKU that is also a convertible. BRANCH=firmware-octopus-11297.B TEST=builds Commit-Ready: Justin TerAvest Tested-by: Justin TerAvest
@@ -190,7 +190,8 @@ unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); static int board_is_convertible(void) { - return sku_id == 2 || sku_id == 3 || sku_id == 4 || sku_id == 255; + return sku_id == 2 || sku_id == 3 || sku_id == 4 || sku_id == 5 || \ + sku_id == 255; } static void board_update_sensor_config...
in_tcp: on json payload parse, check for -1 error
@@ -98,6 +98,9 @@ static ssize_t parse_payload_json(struct tcp_conn *conn) conn->pack_state.multiple = FLB_TRUE; return -1; } + else if (ret == -1) { + return -1; + } /* Process the packaged JSON and return the last byte used */ process_pack(conn, pack, out_size);
[core] init NSS lib for basic crypto algorithms basic algorithms fail if NSS library has not been init'd (WTH) lighttpd defers initialization of rand and crypto until first use to attempt to avoid long, blocking init at startup while waiting for sufficient system entropy to become available
@@ -571,12 +571,28 @@ SHA256_Update(SHA256_CTX *ctx, const void *data, size_t length) #elif defined(USE_NSS_CRYPTO) +/* basic algorithms fail if NSS library has not been init'd (WTH). + * lighttpd defers initialization of rand and crypto until first use + * to attempt to avoid long, blocking init at startup while waiti...
Use selects in compute_angular_endpoints_lwc
@@ -292,7 +292,7 @@ static void compute_angular_endpoints_for_quant_levels( // Check best error against record N vfloat4 best_result = best_results[idx_span]; - vfloat4 new_result = vfloat4(error[i], (float)i, 0.0f, 0.0f); + vfloat4 new_result = vfloat4(error[i], static_cast<float>(i), 0.0f, 0.0f); vmask4 mask1(best_re...
Build: Make packaging less strict to missing macserial
@@ -67,7 +67,11 @@ package() { cp -r "${selfdir}/Utilities/CreateVault" tmp/Utilities/ || exit 1 cp -r "${selfdir}/Utilities/LogoutHook" tmp/Utilities/ || exit 1 cp -r "${selfdir}/Utilities/macrecovery" tmp/Utilities/ || exit 1 + if [ -d "{selfdir}/Utilities/macserial/bin" ]; then cp -r "${selfdir}/Utilities/macserial/...
Remove extra allocation in s2n_cipher_suite_match_test.c
@@ -71,7 +71,6 @@ int main(int argc, char **argv) char *rsa_cert_chain_pem, *rsa_private_key_pem, *ecdsa_cert_chain_pem, *ecdsa_private_key_pem; struct s2n_cert_chain_and_key *rsa_cert, *ecdsa_cert; /* Allocate all of the objects and PEMs we'll need for this test. */ - EXPECT_NOT_NULL(conn = s2n_connection_new(S2N_SERV...
Makes setup.py fail if Python 3.x is being used, as we don't support it yet.
from distutils.core import * from distutils import sysconfig import os.path +import sys + +# Throw error if Python 3.x is being used +if sys.version_info.major == 3: + print("Python 3.x is not currently supported. Please use Python 2.") + sys.exit(1) # Get numpy include directory (works across versions) import numpy
Tests: "--unsafe" option introduced.
@@ -333,6 +333,13 @@ class TestUnit(unittest.TestCase): action='store_true', help='Save unit.log after the test execution', ) + parser.add_argument( + '-u', + '--unsafe', + dest='unsafe', + action='store_true', + help='Run unsafe tests', + ) return parser.parse_known_args() @@ -340,6 +347,7 @@ class TestUnit(unittest.T...
Dockerfile: remove jn516x toolchain
@@ -68,20 +68,6 @@ RUN wget -nv http://simonduq.github.io/resources/mspgcc-4.7.2-compiled.tar.bz2 & cp -f -r /tmp/msp430/* /usr/local/ && \ rm -rf /tmp/msp430 mspgcc*.tar.bz2 -# Install NXP toolchain (partial, with binaries excluded. Download from nxp.com) -RUN wget -nv http://simonduq.github.io/resources/ba-elf-gcc-4....
include/driver/accelgyro_lsm6dso_public.h: Format with clang-format BRANCH=none TEST=none
/* Absolute maximum rate for Acc and Gyro sensors */ #define LSM6DSO_ODR_MIN_VAL 13000 -#define LSM6DSO_ODR_MAX_VAL \ - MOTION_MAX_SENSOR_FREQUENCY(416000, 13000) +#define LSM6DSO_ODR_MAX_VAL MOTION_MAX_SENSOR_FREQUENCY(416000, 13000) #endif /* __CROS_EC_ACCELGYRO_LSM6DSO_PUBLIC_H */
javascript/library: Use Buffer.alloc() since new Buffer() is deprecated.
@@ -48,7 +48,7 @@ mergeInto(LibraryManager.library, { var mp_interrupt_char = Module.ccall('mp_hal_get_interrupt_char', 'number', ['number'], ['null']); var fs = require('fs'); - var buf = new Buffer(1); + var buf = Buffer.alloc(1); try { var n = fs.readSync(process.stdin.fd, buf, 0, 1); if (n > 0) {
exclude registryConnector.c from build sources on non windows
@@ -214,7 +214,7 @@ endif SOURCES := $(SRC_SOURCES) $(LIB_SOURCES) GENERAL_SOURCES := $(shell find $(SRCDIR)/utils -name "*.c") $(shell find $(SRCDIR)/account -name "*.c") $(shell find $(SRCDIR)/ipc -name "*.c") $(shell find $(SRCDIR)/defines -name "*.c") $(shell find $(SRCDIR)/api -name "*.c") -GENERAL_SOURCES := $(fi...
Simplify non-static injectEvent() implementation Just call the static version (having a displayId) from the non-static version (using the displayId field).
@@ -188,10 +188,7 @@ public final class Device { } public boolean injectKeyEvent(int action, int keyCode, int repeat, int metaState) { - long now = SystemClock.uptimeMillis(); - KeyEvent event = new KeyEvent(now, now, action, keyCode, repeat, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, 0, 0, - InputDevice.SOURCE_KEYBO...
travis: update to use newt upgrade
@@ -172,7 +172,7 @@ before_script: cp -R $HOME/ci/mynewt-core-project.yml project.yml mkdir -p targets cp -R $HOME/ci/mynewt-core-targets targets - newt install + newt upgrade # pass in the number of target sets $HOME/ci/prepare_test.sh $VM_AMOUNT fi
[numerics] mumps: set general symmetry for LDLt factorization
@@ -3474,7 +3474,7 @@ int NM_posv_expert(NumericsMatrix* A, double *b, unsigned keep) { /* the mumps instance is initialized (call with job=-1) */ NM_MUMPS_set_control_params(A); - NM_MUMPS_set_sym(A, 1); + NM_MUMPS_set_sym(A, 2); /* general symmetric */ NM_MUMPS(A, -1); NM_MUMPS_set_icntl(A, 24, 1); // Null pivot row ...
[GB] Fix memory offsets in DMA transfer
@@ -279,15 +279,16 @@ impl DmaController { (*self.dma_transfer_start_address_factor.borrow() as u16) * 0x100; let oam_base = 0xfe00; for i in 0..40 { - let a = mmu.read(source_address + i + 0); - let b = mmu.read(source_address + i + 1); - let c = mmu.read(source_address + i + 2); - let d = mmu.read(source_address + i ...
PS2 devicess handle EOI on their own
@@ -82,6 +82,9 @@ void irq_receive(register_state_t* regs) { printf("Unhandled IRQ: %d\n", int_no); } + if (int_no != INT_VECTOR_IRQ12 && int_no != INT_VECTOR_IRQ1) { + pic_signal_end_of_interrupt(int_no); + } return ret; }
c++utils: fix "random" class, remove porterr * c++utils: fix random class to return template type in generator Fix operator() to return template argument type (IntType) instead of `int` * Remove porterr from tools This will be added in a later commit
@@ -155,7 +155,7 @@ namespace utils /// @brief generates a random integer /// @returns a random number between range /// lo_ and hi_ - int operator()() + IntType operator()() { return dist_(gen_); }
esp_wifi: use prebuilt CMake util to add wifi libs
@@ -41,17 +41,12 @@ if(link_binary_libs) set(blobs coexist core espnow mesh net80211 pp rtc smartconfig ${phy}) foreach(blob ${blobs}) - add_library(${blob} STATIC IMPORTED) - set_property(TARGET ${blob} PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/lib/${target_name}/lib${blob}.a) + add_prebuilt_library(${blo...
GraphContent: use correct type for code content
@@ -13,7 +13,7 @@ import { Tr, Td } from '@tlon/indigo-react'; -import { Content } from '@urbit/api'; +import { Content, CodeContent } from '@urbit/api'; import _ from 'lodash'; import { BlockContent, Content as AstContent, Parent, Root } from 'ts-mdast'; import React from 'react'; @@ -23,7 +23,6 @@ import { PropFunc }...
fixed readme style
- infos = Information about the memoryvalue plugin is in keys below -- infos/author = Marcel Hauri @hesirui <firstname> [at] <lastname> .at +- infos/author = Marcel Hauri <firstname> [at] <lastname> .at - infos/licence = BSD - infos/needs = - infos/provides = - infos/recommends = -- infos/placements = -- infos/status =...
boards: esp32-devkitc: Update elf/defconfig Summary: This commit adds the following configs to elf/defconfig +CONFIG_DEBUG_FULLOPT=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_STACK_COLORATION=y Impact: None Testing: Tested with esp32-devkitc (QEMU and board)
@@ -23,6 +23,8 @@ CONFIG_BINFMT_CONSTRUCTORS=y CONFIG_BOARDCTL_ROMDISK=y CONFIG_BOARD_LOOPSPERMSEC=16717 CONFIG_BUILTIN=y +CONFIG_DEBUG_FULLOPT=y +CONFIG_DEBUG_SYMBOLS=y CONFIG_ELF=y CONFIG_ESP32_IRAM_HEAP=y CONFIG_ESP32_UART0=y @@ -53,6 +55,7 @@ CONFIG_SCHED_HPWORK=y CONFIG_SCHED_LPWORK=y CONFIG_SCHED_STARTHOOK=y CONF...
groups: prevents group names starting with digits fixes urbit/landscape#906
@@ -6,7 +6,7 @@ import { import { Enc, GroupPolicy } from '@urbit/api'; import { Form, Formik, FormikHelpers } from 'formik'; import React, { ReactElement, useCallback } from 'react'; -import { RouteComponentProps, useHistory } from 'react-router-dom'; +import { useHistory } from 'react-router-dom'; import * as Yup fro...
compiler-families/intel-compilers-devel: fix acronym, pxse -> psxe
@@ -52,11 +52,11 @@ install -D -m755 %{SOURCE2} $RPM_BUILD_ROOT/%{OHPC_ADMIN}/compat/modulegen/mod_ %pre -# Verify pxse compilers are installed. Punt if not detected. +# Verify psxe compilers are installed. Punt if not detected. icc_subpath="linux/bin/intel64/icc$" -echo "Checking for local PXSE compiler installation(s...
cmake/bitcode_rules.cmake: accept both relative & absolute paths
@@ -33,7 +33,11 @@ function(compile_c_to_bc FILENAME SUBDIR BC_FILE_LIST) get_filename_component(FNAME "${FILENAME}" NAME) set(BC_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SUBDIR}/${FNAME}.bc") set(${BC_FILE_LIST} ${${BC_FILE_LIST}} ${BC_FILE} PARENT_SCOPE) + if(IS_ABSOLUTE "${FILENAME}") + set(FULL_F_PATH "${FILENAME}") + e...
`redefine.sym` add `stat` -> `scopelibc_stat`
@@ -79,6 +79,7 @@ shutdown scopelibc_shutdown socket scopelibc_socket sprintf scopelibc_sprintf sscanf scopelibc_sscanf +stat scopelibc_stat stderr scopelibc_stderr strcasecmp scopelibc_strcasecmp strcat scopelibc_strcat
Release Python GIL when checking modification time of file.
@@ -3768,14 +3768,17 @@ static PyObject *wsgi_load_source(apr_pool_t *pool, request_rec *r, if (!r || strcmp(r->filename, filename)) { apr_finfo_t finfo; - if (apr_stat(&finfo, filename, APR_FINFO_NORM, - pool) != APR_SUCCESS) { + apr_status_t status; + + Py_BEGIN_ALLOW_THREADS + status = apr_stat(&finfo, filename, APR...
Calculate Neff from N_ur and N_ncdm in tests.
@@ -14,6 +14,9 @@ h = 0.7 A_s = 2.1e-9 n_s = 0.96 +def Neff(N_ur, N_ncdm): + Neff = N_ur + N_ncdm * ccl.ccllib.TNCDM**4 / (4./11.)**(4./3.) + models = OrderedDict( {"flat_nonu" : {"Omega_k" : 0.0, "Neff" : 3.0}, @@ -22,21 +25,21 @@ models = OrderedDict( "neg_curv_nonu" : {"Omega_k" : -0.01, "Neff" : 3.0}, "flat_massnu1...
fixed url to console component
This example demonstrates basic usage of [iperf](https://iperf.fr/) protocol to measure the throughout/bandwidth of Ethernet. -The cli environment in the example is based on the [console component](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/console.html). +The cli environment in the example is bas...
BugID:16627867: add explantion for topic data
@@ -24,7 +24,7 @@ char __device_secret[DEVICE_SECRET_LEN + 1]; #define TOPIC_UPDATE "/"PRODUCT_KEY"/"DEVICE_NAME"/update" #define TOPIC_ERROR "/"PRODUCT_KEY"/"DEVICE_NAME"/update/error" #define TOPIC_GET "/"PRODUCT_KEY"/"DEVICE_NAME"/get" -#define TOPIC_DATA "/"PRODUCT_KEY"/"DEVICE_NAME"/data" +#define TOPIC_DATA "/"PR...
adds expiration timer for ward listener
@@ -963,6 +963,7 @@ typedef struct _u3_proxy_client { */ typedef struct _u3_ward { uv_tcp_t tcp_u; // listener handle + uv_timer_t tim_u; // expiration timer u3_atom sip; // reverse proxy for ship c3_s por_s; // listening on port struct _u3_proxy_conn* con_u; // initiating connection @@ -1271,6 +1272,7 @@ _proxy_ward_f...
tests: fix test for mul_rot
@@ -45,7 +45,7 @@ TEST_IMPL(GLM_PREFIX, mul_rot) { glm_rotate(m1, drand48(), (vec3){drand48(), drand48(), drand48()}); glm_rotate(m2, drand48(), (vec3){drand48(), drand48(), drand48()}); - GLM(mul)(m1, m2, m3); + GLM(mul_rot)(m1, m2, m3); for (i = 0; i < 4; i++) { for (j = 0; j < 4; j++) { for (k = 0; k < 4; k++) @@ -5...
hammer: Adjust trackpad dimensions BRANCH=none TEST=Flash and boot hammer, no more trackpad dimension mismatch error. Commit-Ready: Nicolas Boichat Tested-by: Nicolas Boichat
#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1020 /* tenth of mm */ #define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 584 /* tenth of mm */ #elif defined(BOARD_HAMMER) -/* TODO(b:35582031): Adjust values to match hardware. */ -#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 2948 -#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MA...
travis: add -Wall to ICC flags This also disables error 16219, which is just warning us that certain features were disabled to save compile time.
@@ -111,7 +111,7 @@ jobs: env: - C_COMPILER=icc - CXX_COMPILER=icpc - - DIAGNOSTIC_FLAGS='-wd13200 -wd13203' + - DIAGNOSTIC_FLAGS='-wd13200 -wd13203 -wd16219 -Wall' install: - source /opt/intel/inteloneapi/compiler/latest/env/vars.sh addons:
Tidy-up handling of O_SYNC and O_DIRECT
#define MODE_SLIP 7 #define MODE_SLIP_HIDE 8 /*---------------------------------------------------------------------------*/ +#ifndef O_SYNC +#define O_SYNC 0 +#endif - +#define OPEN_FLAGS (O_RDWR | O_NOCTTY | O_NDELAY | O_SYNC) +/*---------------------------------------------------------------------------*/ static uns...
Port sprite-test to new API for
#include "sprite-test.hpp" -using namespace engine; -using namespace graphics; +using namespace blit; const uint16_t screen_width = 320; const uint16_t screen_height = 240; @@ -18,8 +17,8 @@ uint8_t __pb[screen_width * screen_height] __attribute__((section(".fb"))); /* create surfaces */ //surface fb((uint8_t *)__fb, s...
support '=' for format_opt_list
@@ -4937,12 +4937,20 @@ format_opt: format_opt_list: format_opt_item2 { - $$ = list_make1($1); + $$ = list_make1($1) + } + | format_opt_item2 '=' format_opt_item2 + { + $$ = list_make2($1,$3); } | format_opt_list format_opt_item2 { $$ = lappend($1, $2); } + | format_opt_list format_opt_item2 '=' format_opt_item2 + { + ...
Ensure table always updates if values change
@@ -1011,6 +1011,7 @@ static void refr_size(lv_obj_t * table) h += bg_top + bg_bottom; lv_obj_set_size(table, w + 1, h + 1); + lv_obj_invalidate(table); /*Always invalidate even if the size hasn't changed*/ } static lv_coord_t get_row_height(lv_obj_t * table, uint16_t row_id, const lv_font_t ** font,
Fixed the return code for RAND_egd_bytes. According to the documentation, the return code should be -1 when RAND_status does not return 1.
@@ -228,10 +228,10 @@ int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) int RAND_egd_bytes(const char *path, int bytes) { - int num, ret = 0; + int num, ret = -1; num = RAND_query_egd_bytes(path, NULL, bytes); - if (num < 1 || RAND_status() == 1) + if (RAND_status() == 1) ret = num; err: return ...
keyset: update docs
@@ -527,7 +527,7 @@ int ksClear (KeySet * ks) * of shared ownership. It is more similar to a shared lock, where the counter * is used to keep track of how many clients hold the lock. * - * Initially, the reference counter will be 0. This is can be interpreted as + * Initially, the reference counter will be 0. This can ...
It is important to be able to know ahead of time if a given api is supported
@@ -77,6 +77,10 @@ typedef struct clap_gui_window { // Size (width, height) is in pixels; the corresponding windowing system extension is // responsible to define if it is physical pixels or logical pixels. typedef struct clap_plugin_gui { + // Returns true if the requested gui api is supported + // [main-thread] + CLA...
docs/hw/pciid: Add TITAN RTX variant Reported in NVIDIA Driver README and pci-ids database.
@@ -1623,6 +1623,7 @@ TU102 ========== ======================================================== device id product ========== ======================================================== +``0x1e02`` TU102 [TITAN RTX] ``0x1e04`` TU102 [GeForce RTX 2080 Ti] ``0x1e07`` TU102 [GeForce RTX 2080 Ti] ``0x1e30`` TU102 [Quadro RTX 6...
simplify spi_ports header
#endif #define SPI_IDENT(channel) SPI_PORT##channel -#define SPI_PORT(channel, sck_pin, miso_pin, mosi_pin) SPI_IDENT(channel), - typedef enum { SPI_PORT_INVALID, - SPI_PORTS + SPI_PORT1, + SPI_PORT2, + SPI_PORT3, SPI_PORTS_MAX, } spi_ports_t; \ No newline at end of file - -#undef SPI_PORT \ No newline at end of file
grib_to_netcdf: fails compilation with NetCDF version 3
@@ -3058,12 +3058,16 @@ static int define_netcdf_dimensions(hypercube *h, fieldset *fs, int ncid, datase if (setup.deflate > -1) { +#ifdef NC_NETCDF4 stat = nc_def_var_chunking(ncid, var_id, NC_CHUNKED, chunks); check_err(stat, __LINE__, __FILE__); /* Set compression settings for a variable */ stat = nc_def_var_deflate...
added horizontal code scrolling with shift key
@@ -1657,12 +1657,18 @@ static void textEditTick(Code* code) { tic80_input* input = &code->tic->ram.input; - if(input->mouse.scrolly) + tic_point scroll = {input->mouse.scrollx, input->mouse.scrolly}; + + if(tic_api_key(tic, tic_key_shift)) + scroll.x = scroll.y; + + s32* val = scroll.x ? &code->scroll.x : scroll.y ? &...
kirby cookiezi skin fix
@@ -13,9 +13,11 @@ def newimg(fp, mode: str = "r"): return oldimg(fp, mode) except UnidentifiedImageError: a = cv2.imread(fp, -1) - cv2.imwrite("temp.png", a) - r = oldimg("temp.png", mode) - os.remove("temp.png") + # cv2.imwrite("temp.png", a) + # r = oldimg("temp.png", mode) + # os.remove("temp.png") + a = cv2.cvtCol...
Move DataViewerCollectionImpl's map to protected scope for unit test access.
@@ -26,11 +26,13 @@ namespace ARIASDK_NS_BEGIN { virtual bool AreAnyViewersEnabled() noexcept override; + protected: + std::map<const char*, std::unique_ptr<IDataViewer>> m_dataViewerCollection; + private: MATSDK_LOG_DECL_COMPONENT_CLASS(); std::recursive_mutex m_dataViewerMapLock; - std::map<const char*, std::unique_p...
reduce time, add optional bindings
"modelid": "SMARTPLUG/1", "product": "SMARTPLUG/1", "sleeper": false, - "status": "Bronze", + "status": "Silver", "path": "/devices/schneider.json", "subdevices": [ { { "at": "0x0000", "dt": "0x25", - "min": 300, - "max": 43200, + "min": 1, + "max": 60, "change": "0x00000001" } ] { "at": "0x050B", "dt": "0x29", - "min"...
[catboost/tutorials] resovle rest of issues
* [Export CatBoost Model in JSON format Tutorial](model_export_as_json_tutorial.ipynb) * Catboost model could be saved in JSON format and applied. -* [Apply CatBoost model from Java](catboost4j_prediction_tutorial.ipynb) - * Explore how to apply CatBoost model from Java application. \ No newline at end of file +* [Appl...
lis2dw12: freefall get bug
@@ -1351,7 +1351,7 @@ int lis2dw12_get_freefall(struct sensor_itf *itf, uint8_t *dur, uint8_t *ths) *dur = (ff_reg & LIS2DW12_FREEFALL_DUR) >> 3; *dur |= wake_reg & LIS2DW12_WAKE_DUR_FF_DUR ? (1 << 5) : 0; - *ths = wake_reg & LIS2DW12_FREEFALL_THS; + *ths = ff_reg & LIS2DW12_FREEFALL_THS; return 0; }
stm32/boards/pllvalues.py: Support wider range of PLL values for F413.
@@ -31,7 +31,17 @@ mcu_default = MCU( range_vco_out=range(192, 432 + 1), ) -mcu_h7 = MCU( +mcu_table = { + "stm32f413": MCU( + range_sysclk=range(2, 100 + 1, 2), + range_m=range(2, 63 + 1), + range_n=range(50, 432 + 1), + range_p=range(2, 8 + 1, 2), + range_q=range(2, 15 + 1), + range_vco_in=range(1, 2 + 1), + range_vc...
netkvm: Remove unused macros from osdep.h mb, rmb, wmb, min, max are not used anymore and can be deleted.
@@ -32,18 +32,6 @@ typedef struct _NETWORK_ADDRESS_IP6 { } NETWORK_ADDRESS_IP6, *PNETWORK_ADDRESS_IP6; #endif -#define mb() KeMemoryBarrier() -#define rmb() KeMemoryBarrier() -#define wmb() KeMemoryBarrier() - -#ifndef min -#define min(_a, _b) (((_a) < (_b)) ? (_a) : (_b)) -#endif - -#ifndef max -#define max(_a, _b) ((...
SOVERSION bump to version 2.20.31
@@ -66,7 +66,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 20) -set(LIBYANG_MICRO_SOVERSION 30) +set(LIBYANG_MICRO_SOVERSION 31) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG...
Improve scene cluster command client/server direction filtering
@@ -10289,7 +10289,7 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC if (zclFrame.isDefaultResponse()) { } - else if (zclFrame.commandId() == 0x06) // Get scene membership response + else if (zclFrame.commandId() == 0x06 && zclFrame.frameControl() & deCONZ::ZclFCDirectionServerToClie...
Remove library git hash and datapath processors from preview features They should not have been considered preview features anyway.
@@ -704,9 +704,9 @@ void #define QUIC_PARAM_GLOBAL_GLOBAL_SETTINGS 0x01000006 // QUIC_GLOBAL_SETTINGS #ifdef QUIC_API_ENABLE_PREVIEW_FEATURES #define QUIC_PARAM_GLOBAL_VERSION_SETTINGS 0x01000007 // QUIC_VERSION_SETTINGS +#endif #define QUIC_PARAM_GLOBAL_LIBRARY_GIT_HASH 0x01000008 // char[64] #define QUIC_PARAM_GLOBAL...
better england since mine sucks
@@ -4,7 +4,7 @@ class BeatmapNotFound(Exception): class NotAnBeatmap(Exception): def __repr__(self): - return "Please pick .osu file manually." + return ".osu File Not Found! Please select the .osu file manually when using Auto Replay." class ReplayNotFound(Exception): pass
fetching vram for amd gpus
using namespace std; -int gpuLoad = 0, gpuTemp = 0, cpuTemp = 0; -FILE *amdGpuFile = nullptr, *amdTempFile = nullptr, *cpuTempFile = nullptr; - +int gpuLoad = 0, gpuTemp = 0, cpuTemp = 0, gpuMemUsed = 0, gpuMemTotal = 0; +FILE *amdGpuFile = nullptr, *amdTempFile = nullptr, *cpuTempFile = nullptr, *amdGpuVramTotalFile =...
Tests: added test with "Transfer-Encoding" header in 204 response.
@@ -102,6 +102,23 @@ def application(environ, start_response): self.assertEqual(r.headers.pop('Server-Port'), '7080', 'Server-Port header') + @unittest.expectedFailure + def test_python_application_204_transfer_encoding(self): + code, name = """ + +def application(environ, start_response): + + start_response('204 No Co...
Move qp_to_lambda so it is defined before use. Change some tabs to spaces
@@ -637,6 +637,20 @@ static double get_ctu_bits(encoder_state_t * const state, vector2d_t pos) { return avg_bits; } +static double qp_to_lambda(encoder_state_t* const state, int qp) +{ + const int shift_qp = 12; + double lambda = 0.57 * pow(2.0, (qp - shift_qp) / 3.0); + + // NOTE: HM adjusts lambda for inter according...
abort when limited_free is called with an argument causing undefined behaviors
#include <cstdint> #include <cstdio> +#include <cstdlib> #include <unordered_map> #include "cbor.h" @@ -21,7 +22,7 @@ void *limited_malloc(size_t size) { void limited_free(void *ptr) { if (allocated_len_map.find(ptr) == allocated_len_map.end()) { - return; + abort(); } free(ptr); allocated_mem -= allocated_len_map[ptr]...
Fix uv5 compilation for Nordic Change the #elif defines without a condition to #else to fix nordic compilation with uvision.
@@ -569,7 +569,7 @@ static int32_t USART_Control (uint32_t control, uint32_t arg) { return ARM_DRIVER_ERROR_PARAMETER; } break; -#elif +#else return ARM_DRIVER_ERROR_UNSUPPORTED; #endif @@ -599,7 +599,7 @@ static int32_t USART_Control (uint32_t control, uint32_t arg) { return ARM_DRIVER_ERROR_PARAMETER; } break; -#elif...
Change ifndefs to ifneq
@@ -61,7 +61,7 @@ endif all1: $(all1targets) -ifndef CROSS +ifneq ($(CROSS), 1) ifeq ($(USE_OPENMP), 1) ifeq ($(BUILD_SINGLE),1) OMP_NUM_THREADS=2 ./xscblat1 @@ -106,7 +106,7 @@ endif all2: $(all2targets) -ifndef CROSS +ifneq ($(CROSS), 1) ifeq ($(USE_OPENMP), 1) ifeq ($(BUILD_SINGLE),1) OMP_NUM_THREADS=2 ./xscblat2 < ...
BugID:17854335:fix output dir change problem. aos make xx BUILD_DIR=out_test can work
@@ -75,7 +75,7 @@ $(eval COMP := $(1)) $(eval COMP_LOCATION := $(subst .,/,$(COMP))) $(eval COMP_MAKEFILE_NAME := $(notdir $(COMP_LOCATION))) # Find the component makefile in directory list -$(eval TEMP_MAKEFILE := $(strip $(wildcard $(foreach dir, $(if $(filter-out out, $(BUILD_DIR)),$(OUTPUT_DIR) $(OUTPUT_DIR)/syscal...
assert that http1_is_persistent to 0
@@ -414,6 +414,7 @@ static void send_bad_request(struct st_h2o_http1_conn_t *conn) "Bad Request")}; assert(conn->req.version == 0 && "request has not been parsed successfully"); + assert(conn->req.http1_is_persistent == 0); h2o_socket_write(conn->sock, (h2o_iovec_t *)&resp, 1, send_bad_request_on_complete); h2o_socket_...
Generate per-function ELF sections to enable --gc-sections Use diffirent directive syntax for ELF and Mach-O respectively
@@ -244,6 +244,17 @@ writeasm(FILE *fd, Isel *s, Func *fn) { size_t i, j; + switch (asmsyntax) { + case Gnugaself: + fprintf(fd, ".section .text.%s,\"ax\",@progbits\n", fn->name); + fprintf(fd, ".type %s, @function\n", fn->name); + break; + case Gnugasmacho: + fprintf(fd, ".section __TEXT,__text,regular\n"); + break; +...
OcXmlLib: Add support for comments closes cidanthera/bugtracker#1053
@@ -652,6 +652,8 @@ XmlParseTagOpen ( ) { CHAR8 Current; + CHAR8 Next; + BOOLEAN IsComment; XML_PARSER_INFO (Parser, "tag_open"); @@ -684,13 +686,63 @@ XmlParseTagOpen ( } // - // Skip the control sequence. + // A crazy XML comment may look like this: + // <!-- som>>><<<<ething --> + // + // '<' has already been consum...
sysdeps/managarm: Stub CLOCK_MONOTONIC_COARSE support in sys_clock_get
@@ -65,6 +65,11 @@ int sys_clock_get(int clock, time_t *secs, long *nanos) { HEL_CHECK(helGetClock(&tick)); *secs = tick / 1000000000; *nanos = tick % 1000000000; + }else if(clock == CLOCK_MONOTONIC_COARSE) { + mlibc::infoLogger() << "\e[31mmlibc: clock_gettime does not support CLOCK_MONOTONIC_COARSE" + "\e[39m" << frg...
hsa: do not drop the barrier when creating echo server Type: fix
@@ -468,19 +468,9 @@ echo_server_create_command_fn (vlib_main_t * vm, unformat_input_t * input, u8 server_uri_set = 0, *appns_id = 0; u64 tmp, appns_flags = 0, appns_secret = 0; char *default_uri = "tcp://0.0.0.0/1234"; - int rv, is_stop = 0, barrier_acq_needed = 0; + int rv, is_stop = 0; clib_error_t *error = 0; - /* ...
fixup: missed var replacements
@@ -848,8 +848,8 @@ def createDockerImageDesc(name, idFun, context, file, autobuild=true) { def idTesting(imageMap) { def cs = checksum(imageMap.file) def dateString = dateFormatter(NOW) - imageMap.id = "${image_map.name}:${dateString}-${cs}" - return image_map + imageMap.id = "${imageMap.name}:${dateString}-${cs}" + r...
[src][Kconfig]Open soft_timer by default
@@ -100,7 +100,7 @@ config IDLE_THREAD_STACK_SIZE config RT_USING_TIMER_SOFT bool "Enable software timer with a timer thread" - default n + default y help the timeout function context of soft-timer is under a high priority timer thread.
armv7: Fixed warning
@@ -91,7 +91,7 @@ int hal_cpuCreateContext(cpu_context_t **nctx, void *start, void *kstack, size_t ctx->lr = 0xeeeeeeee; ctx->pc = (u32)start; ctx->psr = 0x01000000; - ctx->fpuctx = &ctx->psr + 1; + ctx->fpuctx = (u32)(&ctx->psr + 1); #ifdef CPU_IMXRT ctx->fpscr = 0; #endif
Fix memory leaks in wbb_init() recovery path
@@ -559,19 +559,25 @@ wbb_init(struct wbb *wbb, void *nodev, uint max_pgc, uint *wbt_pgc) uint i; merr_t err = 0; - for (i = 0; i < KMD_CHUNKS; i++) - iov_base[i] = wbb->kmd_iov[i].iov_base; - + /* Save state that persists across "init" */ kst = wbb->cnode_key_stage; kst_pgc = wbb->cnode_key_stage_pgc; + for (i = 0; i ...
[numerics] up lmgc driver for gfc3d
#include "GlobalFrictionContactProblem.h" #include "gfc3d_Solvers.h" #include "NumericsSparseMatrix.h" -/* #define DEBUG_MESSAGES 1 */ +#include "numerics_verbose.h" +/* #define DEBUG_NOCOLOR */ +/* #define DEBUG_MESSAGES */ /* #define DEBUG_STDOUT */ #include "debug.h" @@ -62,11 +64,14 @@ int gfc3d_LmgcDriver(double *...
hide palette editor in the simple sprite editor mode
@@ -2000,6 +2000,9 @@ static void drawAdvancedButton(Sprite* sprite, s32 x, s32 y) if(checkMouseClick(&rect, tic_mouse_left)) sprite->advanced = !sprite->advanced; + + if(!sprite->advanced) + sprite->palette.edit = false; } enum {Size = 3, Gap = 1};
Check that client can send 0-RTT
@@ -699,7 +699,10 @@ int Client::tls_handshake(bool initial) { ERR_clear_error(); int rv; - if (initial && resumption_) { + /* Note that SSL_SESSION_get_max_early_data() and + SSL_get_max_early_data() return completely different value. */ + if (initial && resumption_ && + SSL_SESSION_get_max_early_data(SSL_get_session(...
improve modules_support/msvc.lua
@@ -130,19 +130,18 @@ function load(target) -- enable std modules if c++23 by defaults if target:values("c++.msvc.enable_std_import") == nil then - local languages = table.join({}, target:get("languages")) - local iscpp23 = false - for _, language in pairs(languages) do - if language:find("c++") or language:find("cxx")...
tools/ci/cibuild.sh: Move all pip3 installation into python-tools and keep the installation in alphabetical order
@@ -46,7 +46,7 @@ case ${os} in brew update --quiet ;; Linux) - install="python-tools codechecker clang_clang-tidy gen-romfs gperf kconfig-frontends rust arm-clang-toolchain arm-gcc-toolchain arm64-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain rx-gcc-toolchain sparc-gcc-toolchain c-cac...
Don't warn on C++ unused local typedefs because of Boost warnings
@@ -78,6 +78,13 @@ elseif(COMPILER_SUPPORTS_CXX0X) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") endif() +# Disable some warnings that fire in system libraries +check_cxx_compiler_flag("-Wno-unused-local-typedefs" + CXX_SUPPORTS_NO_LOCAL_TYPEDEFS) +if (CXX_SUPPORTS_NO_LOCAL_TYPEDEFS) + set(CMAKE_CXX_FLAGS "${CMA...
[cmd] Generate constructor and default function to the ABI
@@ -29,6 +29,25 @@ static int kpt_lua_Writer(struct lua_State *L, const void *p, size_t sz, void *u return (fwrite(p, sz, 1, (FILE *)u) != 1) && (sz != 0); } +#define GEN_ABI() \ + do { \ + if (lua_pcall(L, 0, 0, 0) != 0) { \ + return lua_tostring(L, -1); \ + } \ + lua_getfield(L, LUA_GLOBALSINDEX, "abi"); \ + lua_getf...
examples BUGFIX support arbitrary-length module names
@@ -144,10 +144,13 @@ print_current_config(sr_session_ctx_t *session, const char *module_name) sr_val_t *values = NULL; size_t count = 0; int rc = SR_ERR_OK; - char xpath[128]; + char *xpath; - sprintf(xpath, "/%s:*//.", module_name); + if (asprintf(&xpath, "/%s:*//.", module_name) == -1) { + return SR_ERR_NO_MEMORY; +...
Cellular change only: move to using internal module profile ID 0 since the up-coming SARA_R422 requires that.
@@ -47,9 +47,9 @@ extern "C" { #endif #ifndef U_CELL_NET_PROFILE_ID -/** The module profile ID to use. +/** The module profile ID to use: has to be zero for SARA-R4. */ -# define U_CELL_NET_PROFILE_ID 1 +# define U_CELL_NET_PROFILE_ID 0 #endif /** The maximum number of PDP contexts that can be exist
Add BlueMicro52840 to build matrix.
@@ -8,7 +8,7 @@ jobs: name: Build Test strategy: matrix: - board: [proton_c, nice_nano] + board: [proton_c, nice_nano, bluemicro52840_v1] shield: - corne_left - corne_right
Avoid potential memory leak Resolves
@@ -539,8 +539,11 @@ static int append_ia5(STACK_OF(OPENSSL_STRING) **sk, return 0; emtmp = OPENSSL_strndup((char *)email->data, email->length); - if (emtmp == NULL) + if (emtmp == NULL) { + X509_email_free(*sk); + *sk = NULL; return 0; + } /* Don't add duplicates */ if (sk_OPENSSL_STRING_find(*sk, emtmp) != -1) {
[numerics] fix memory bug at free
@@ -499,7 +499,8 @@ int variationalInequality_FixedPointProjection_setDefaultSolverOptions(SolverOpt options->dSize = 10; options->iparam = (int *)calloc(options->iSize, sizeof(int)); options->dparam = (double *)calloc(options->dSize, sizeof(double)); - options->dWork = NULL; + solver_options_nullify(options); + option...
zephyr: Add GPIO_DT_FROM_{NODE,ALIAS} macros Add GPIO_DT_FROM_NODE and GPIO_DT_FROM_ALIAS macro. Similar to GPIO_DT_FROM_NODELABEL, but references the spec from a node or alias, not a node label. TEST=zmake testall BRANCH=none
@@ -83,21 +83,29 @@ BUILD_ASSERT(GPIO_COUNT < GPIO_LIMIT); * enum-name = "GPIO_WP_L"; * }; * + * aliases { + * other_name = &gpio_ec_wp_l; + * }; + * * The following methods can all be used to access the GPIO: * * inp = gpio_get_level(GPIO_WP_L); // Legacy access * inp = gpio_pin_get_dt(DT_GPIO_LID_OPEN); // Zephyr API...
[finsh]Fixed a bug may cause stackover flow add code: if (line_buf == RT_NULL) return -RT_ENOMEM;
@@ -101,6 +101,7 @@ int msh_exec_script(const char *cmd_line, int size) int length; line_buf = (char *) rt_malloc(RT_CONSOLEBUF_SIZE); + if (line_buf == RT_NULL) return -RT_ENOMEM; /* read line by line and then exec it */ do
skeleton/running_skeleton_with_tls_server.md: fix the url error
@@ -133,7 +133,7 @@ The following method to run skeleton bundle with rune is usually provided for de ### Run TLS server by OCI bundle -Assuming you have an OCI bundle according to [previous steps](skeleton#create-skeleton-bundle), please add config into config.json as following: +Assuming you have an OCI bundle accordi...
tests: internal: ra: add testcase for slash and dot
@@ -469,9 +469,74 @@ void cb_dash_key() msgpack_unpacked_destroy(&result); } +void cb_dot_and_slash_key() +{ + int len; + int ret; + int type; + size_t off = 0; + char *out_buf; + size_t out_size; + char *json; + char *fmt; + char *fmt_out; + flb_sds_t str; + msgpack_unpacked result; + msgpack_object map; + struct flb_...
add more weak pass (reversed ESSID)
@@ -975,6 +975,18 @@ if(removeflag == true) return; } /*===========================================================================*/ +void reverse(uint8_t len, uint8_t *bufferin, uint8_t *bufferout) +{ +int pi; +int po = 0; +for(pi = len -1; pi >= 0; pi--) + { + bufferout[po] = bufferin[pi]; + po++; + } +return; +} +/...
Remove a print-to-log line in OfflineRoom.java that crashes on main thread
@@ -117,12 +117,6 @@ public class OfflineRoom implements AutoCloseable { pageCount = c.getLong(0); } } - Log.i("MAE", String.format("Opened %s: %d records, %d settings, page size %d, %d pages", - name, - m_srDao.totalRecordCount(), - m_settingDao.totalSettingCount(), - m_pageSize, - pageCount)); } public long[] storeRe...
Reset use of "build" in appveyor
@@ -27,12 +27,12 @@ environment: # configuration: Debug # OPENSSL64DIR: C:\OpenSSL-v11-Win64 -# build: - # parallel: true - # project: picoquic.sln +build: + parallel: true + project: picoquic.sln -build_script: - - ps: ci\build_picoquic.ps1 +#build_script: + # - ps: ci\build_picoquic.ps1 before_build: - ps: ci\build_p...
Ruby plugin: fix docu for Ruby plugin
@@ -53,7 +53,8 @@ Kdb::Plugin.define :somename do # - -1 : error during initialization def open(errorKey) - # generally it is save to simply throw an exception. This has the same + # perform plugin initialization + # if an error occurs it is save to simply throw an exception. This has the same # semantic as returning -...
bio/bss_log.c: on DJGPP syslog facility is part of sockets library. In other words no-sock DJGPP build should suppress syslogging.
@@ -39,6 +39,8 @@ void *_malloc32(__size_t); # endif /* __INITIAL_POINTER_SIZE == 64 */ # endif /* __INITIAL_POINTER_SIZE && defined * _ANSI_C_SOURCE */ +#elif defined(__DJGPP__) && defined(OPENSSL_NO_SOCK) +# define NO_SYSLOG #elif (!defined(MSDOS) || defined(WATT32)) && !defined(OPENSSL_SYS_VXWORKS) && !defined(NO_SY...
refactor(Warning): resolve "Warning(demo_quorum_private_storeread.c) : warning: passing 'char [32]' to parameter of type 'BUINT8 *'"
@@ -207,7 +207,7 @@ BOAT_RESULT quorum_call_ReadStore(BoatQuorumWallet *wallet_ptr) BoatLog(BOAT_LOG_NORMAL, "BoatQuorumTxInit fails."); return BOAT_ERROR_WALLET_INIT_FAIL; } - char set_data[32] = {0}; + BUINT8 set_data[32] = {0}; set_data[0]= 9; result_str = SimpleStorage_set(&tx_ctx, set_data);
dprint: remove chapter-id from %chapter item redundant with the name
docs=what sut=type con=coil - chapter-id=term == == :: ?~ tom (make-arm i.t.topics sut ~) ?~ t.t.topics - `[%chapter (trip i.t.topics) p.u.tom sut q.sut i.t.topics] + `[%chapter (trip i.t.topics) p.u.tom sut q.sut] (make-arm i.t.t.topics sut tom) :: [%face *] :: :> returns an overview of the arms in a specific chapter ...
Replace `SIGTERM` with `SIGKILL` in signal test use signal variant which cannot be blocked, ignored or handled
@@ -543,7 +543,7 @@ if ! ps -p $SCOPE_PID > /dev/null; then fi while kill -0 ${SCOPE_PID} &> /dev/null; do - kill -SIGTERM ${SCOPE_PID} + kill -SIGKILL ${SCOPE_PID} sleep 1 done @@ -573,7 +573,7 @@ if ! ps -p ${SCOPE_PID} > /dev/null; then fi while kill -0 ${SCOPE_PID} &> /dev/null; do - kill -SIGTERM ${SCOPE_PID} + ki...
vcl: fix packetdrill test error Type: fix
@@ -1988,7 +1988,7 @@ vppcom_session_read_internal (uint32_t session_handle, void *buf, int n, u8 is_ct; if (PREDICT_FALSE (!buf)) - return VPPCOM_EINVAL; + return VPPCOM_EFAULT; s = vcl_session_get_w_handle (wrk, session_handle); if (PREDICT_FALSE (!s || (s->flags & VCL_SESSION_F_IS_VEP)))