message
stringlengths
6
474
diff
stringlengths
8
5.22k
out_forward: set upstream flags using instance flags
@@ -752,6 +752,7 @@ static int forward_config_simple(struct flb_forward *ctx, return -1; } ctx->u = upstream; + flb_output_upstream_set(ctx->u, ins); /* Shared Key */ tmp = flb_output_get_property("shared_key", ins);
freertos: added a FreeRTOS property returning "original" include path
@@ -31,6 +31,9 @@ idf_component_register(SRCS "${srcs}" REQUIRES app_trace PRIV_REQUIRES soc) +idf_component_get_property(COMPONENT_DIR freertos COMPONENT_DIR) +idf_component_set_property(freertos ORIG_INCLUDE_PATH "${COMPONENT_DIR}/include/freertos/") + if(CONFIG_FREERTOS_DEBUG_OCDAWARE) target_link_libraries(${COMPON...
refactor: remove redundant function from bot-channel.c
@@ -65,16 +65,6 @@ void on_delete( discord_delete_channel(client, msg->channel_id, NULL); } -void on_edit_permissions( - struct discord *client, - const struct discord_user *bot, - const struct discord_message *msg) -{ - if (msg->author->bot) return; - - discord_delete_channel(client, msg->channel_id, NULL); -} - int m...
switch synonym for eval_set
@@ -1743,10 +1743,10 @@ def train(params, pool=None, dtrain=None, logging_level=None, verbose=None, iter num_boost_round : int Synonym for iterations. Only one of these parameters should be set. - evals : Pool or tuple (X, y) + eval_set : Pool or tuple (X, y) Dataset for evaluation. - eval_set : Pool or tuple (X, y) + ...
kingler: print TCPC reset TEST=none BRANCH=none Tested-by: Eric Yilun Lin
@@ -228,6 +228,7 @@ __override int board_rt1718s_set_frs_enable(int port, int enable) void board_reset_pd_mcu(void) { + CPRINTS("Resetting TCPCs..."); /* reset C0 ANX3447 */ /* Assert reset */ gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(gpio_usb_c0_tcpc_rst), 1);
Fix crash in obt module. The time to free device resources was too short due to the use of HIGH_QOS queires. Tested-by: Kishen Maloor
@@ -874,7 +874,7 @@ obt_discovery_cb(const char *anchor, const char *uri, oc_string_array_t types, } memcpy(device->uuid.id, uuid.id, 16); device->endpoint = endpoint; - oc_set_delayed_callback(device, free_device, DISCOVERY_CB_DELAY + 2); + oc_set_delayed_callback(device, free_device, OBT_CB_TIMEOUT); if ((long)user_d...
[refactor] Remove duplicated codes
@@ -23,6 +23,13 @@ static int systemPrint(lua_State *L) return 0; } +static char *getDbKey(lua_State *L) +{ + lua_pushvalue(L, 1); /* prefix key */ + lua_concat(L, 2); /* dbKey(prefix..key) */ + return (char *)lua_tostring(L, -1); +} + int setItemWithPrefix(lua_State *L) { char *dbKey; @@ -36,9 +43,7 @@ int setItemWith...
Fix RouteMatchingRequest serialization
@@ -404,7 +404,7 @@ namespace carto { if (customParams.is<picojson::object>()) { json = customParams.get<picojson::object>(); } - json["locations"] = picojson::value(locations); + json["shape"] = picojson::value(locations); json["shape_match"] = picojson::value("map_snap"); json["costing"] = picojson::value(profile); j...
docs: update watermark for RC
% for non-released DRAFT - comment out for GA release \usepackage[firstpage]{draftwatermark} -\usepackage{draftwatermark} -\SetWatermarkText{Tech Preview} -\SetWatermarkScale{0.45} +%\usepackage{draftwatermark} +%\SetWatermarkText{Tech Preview} +%\SetWatermarkHorCenter{0.55\paperwidth} +\SetWatermarkVerCenter{0.6\paper...
Reduce the file size
@@ -4,7 +4,8 @@ use Net::EmptyPort qw(check_port empty_port); use Test::More; use t::Util; -plan skip_all => 'skipping for now'; +plan skip_all => 'nghttp not found' + unless prog_exists('nghttp'); my $upstream_port = empty_port(); @@ -24,7 +25,7 @@ hosts: proxy.reverse.url: http://127.0.0.1:$upstream_port EOT -my $hug...
Remove extra comma in man page example code
@@ -92,7 +92,7 @@ AES-256-CBC into a buffer: size_t datalen; ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, - OSSL_KEYMGMT_SELECT_KEYPAIR, + OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS, format, structure, NULL);
Fix player sprite type and num frames
@@ -330,13 +330,9 @@ void LoadScene(UINT16 index) triggers[i].events_ptr.offset = *(data_ptr++) + (*(data_ptr++) * 256); } - // Load collisions - - // Initialise player position - ReadBankedBankPtr(DATA_PTRS_BANK, &sprite_bank_ptr, &sprite_bank_ptrs[map_next_sprite]); - sprite_ptr = ((UWORD)bank_data_ptrs[sprite_bank_p...
LoongArch64: Fix dnrm2_tiny testcase failure
@@ -53,6 +53,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define s4 $f9 #define ALPHA $f4 #define max $f5 +#define INF $f6 PROLOGUE @@ -61,6 +62,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. LDINT INCX, 0(INCX) #endif + // Init INF + addi.d TEMP, $r0, 0...
Skip early data basic check temp
@@ -282,6 +282,9 @@ run_test "TLS 1.3: G->m: PSK: configured ephemeral only, good." \ 0 \ -s "key exchange mode: ephemeral$" +# skip the basic check now cause it will randomly trigger the anti-replay protection in gnutls_server +# Add it back once we fix the issue +skip_next_test requires_gnutls_tls1_3 requires_config_...
util: Remove unnecessary halt in gdbinit The reset on the line before is sufficient. BRANCH=none TEST=none
@@ -70,8 +70,6 @@ define target hookpost-remote load {EC_DIR}/build/{BOARD}/{BIN_DIR}/{BIN_NAME}.obj echo \ Resetting target monitor reset - echo \ Halting target - monitor halt echo \ Setting breakpoint on main b main end\n
sysdeps/managarm: Implement SETPROPERTY DRM ioctl
@@ -2116,6 +2116,39 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) { *result = 0; return 0; } + case DRM_IOCTL_MODE_SETPROPERTY: { + auto param = reinterpret_cast<drm_mode_connector_set_property *>(arg); + + managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAllocator()); + req.set_req_typ...
Gate memchr call behind a check on the lenght of the list This gets rid of an ASAN UB warning: ``` /build/src/main.c:445:16: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:93:34: note: nonnull attribute specified here ```
@@ -392,7 +392,8 @@ static int on_client_hello_ptls(ptls_on_client_hello_t *_self, ptls_t *tls, ptls } /* switch to raw public key context if requested and available */ - if (memchr(params->server_certificate_types.list, PTLS_CERTIFICATE_TYPE_RAW_PUBLIC_KEY, + if (params->server_certificate_types.count > 0 + && memchr(...
[LoongArch64] Also amend the tdep_init_done within `Gglobal.c`.
@@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "dwarf_i.h" HIDDEN define_lock (loongarch64_lock); -HIDDEN int tdep_init_done; +HIDDEN atomic_bool tdep_init_done; HIDDEN void tdep_init (void)
OpenCorePlatform: Fix partial platform data update
@@ -718,7 +718,6 @@ OcLoadPlatformSupport ( ExposeOem = (Config->Misc.Security.ExposeSensitiveData & OCS_EXPOSE_OEM_INFO) != 0; - if (ExposeOem || Config->PlatformInfo.UpdateSmbios) { Status = OcSmbiosTablePrepare (&SmbiosTable); if (!EFI_ERROR (Status)) { OcSmbiosExtractOemInfo ( @@ -731,8 +730,23 @@ OcLoadPlatformSup...
Fix name_filter limitation
@@ -1267,7 +1267,7 @@ Value name_filter(const Array& params, bool fHelp) oName.push_back(Pair("name", name)); string value = stringFromVch(txName.vchValue); - oName.push_back(Pair("value", limitString(value, 300, "\n...(value too large - use name_show to see full value)"))); + oName.push_back(Pair("value", limitString(...
Remove dead code We have a step to run gpinitstandby in mgmt_utils.py. Removing this code to make it more likely that we standardize on using the step in mgmt_utils.py.
@@ -4,20 +4,6 @@ import socket import inspect from gppylib.commands.base import Command -class GpInitStandby(Command): - """This is a wrapper for gpinitstandby.""" - def __init__(self, standby_host, mdd=None): - if not mdd: - mdd = os.getenv('MASTER_DATA_DIRECTORY') - cmd_str = 'export MASTER_DATA_DIRECTORY=%s; gpinits...
adjust environment variables to current Makefile
@@ -35,7 +35,7 @@ echo "ENV: " env | grep -i rpm echo "PWD" pwd -make install INSTALL_PATH=${RPM_BUILD_ROOT}/usr MAN_PATH=${RPM_BUILD_ROOT}/usr/share/man CONFIG_PATH=${RPM_BUILD_ROOT}/etc +make install BIN_PATH=${RPM_BUILD_ROOT}/usr MAN_PATH=${RPM_BUILD_ROOT}/usr/share/man CONFIG_PATH=${RPM_BUILD_ROOT}/etc %files %defa...
Reset default scroll and zoom in sample project
"startY": 0, "showCollisions": true, "showConnections": true, - "worldScrollX": 215, + "worldScrollX": 0, "worldScrollY": 0, - "zoom": 200, + "zoom": 100, "customColorsEnabled": true, "defaultBackgroundPaletteIds": [ "default-bg-1",
memleak: fix false positive on failed allocations memleak tool reports a failed allocation as a leak, because the NULL address is never freed.
@@ -209,10 +209,12 @@ static inline int gen_alloc_exit2(struct pt_regs *ctx, u64 address) { info.size = *size64; sizes.delete(&pid); + if (address != 0) { info.timestamp_ns = bpf_ktime_get_ns(); info.stack_id = stack_traces.get_stackid(ctx, STACK_FLAGS); allocs.update(&address, &info); update_statistics_add(info.stack_...
[chainmaker][#436]add tests test_03Contract_0008QueryFailureTxNull
@@ -141,12 +141,7 @@ START_TEST(test_03Contract_0003InvokeFailureContractNull) ck_assert_int_eq(result, BOAT_SUCCESS); result = BoatHlchainmakerContractInvoke(&tx_ptr, "save", NULL, true, &invoke_reponse); ; - ck_assert(result == BOAT_SUCCESS); - if (result == BOAT_SUCCESS) - { - ck_assert(invoke_reponse.code == BOAT_S...
improved warning: do not set monitor mode by third party tools (iwconfig, iw, airmon-ng)
@@ -7493,7 +7493,7 @@ printf("%s %s (C) %s ZeroBeat\n" " press GPIO button to terminate hcxdumptool\n" " hardware modification is necessary, read more:\n" " https://github.com/ZerBea/hcxdumptool/tree/master/docs\n" - " do not set monitor mode by third party tools\n" + " do not set monitor mode by third party tools (iwc...
[scripts] Also benchmark 2-Hive configuration
@@ -11,7 +11,7 @@ if [[ ! -f $app ]]; then fi # Run all three scenarios -scenarios=('Original' '1Hive' '4Hives') +scenarios=('Original' '1Hive' '2Hives' '4Hives') for scenario in "${scenarios[@]}"; do echo $scenario # Do some changes to get the correct HW state @@ -23,6 +23,8 @@ for scenario in "${scenarios[@]}"; do nu...
Fixed issue where restoring from disk would increment MAX.TS.
@@ -3001,6 +3001,18 @@ inc_cache_ii32 (GKHashStorage * store, GModule module, GSMetric metric, uint32_t return inc_ii32 (cache, ckey, kh_val (hash, k)); } +static int +ins_cache_iu64 (GKHashStorage * store, GModule module, GSMetric metric, uint32_t key, + uint32_t ckey) { + khash_t (iu64) * hash = get_hash_from_store (...
userintr: check passed cond id
@@ -43,9 +43,14 @@ int userintr_setHandler(unsigned int n, int (*f)(unsigned int, void *), void *ar if (p != NULL) { r->inth->pmap = &p->mapp->pmap; - if (cond > 0 && ((t = resource_get(p, cond)) != NULL)) + if (cond > 0) { + if ((t = resource_get(p, cond)) == NULL) { + resource_free(r); + return -EINVAL; + } r->inth->...
srpd_rotation BUGFIX string format check added
@@ -374,9 +374,15 @@ srpd_rotation_change_cb(sr_session_ctx_t *session, uint32_t sub_id, const char * } else if (!strcmp(node->schema->name, "output-dir")) { /* safe update of the output_folder (srpd_rotation_loop() reads output_folder!) */ temp = ATOMIC_PTR_LOAD_RELAXED(opts->output_folder); - dir_str = strdup(lyd_get...
options/elf: Add more typedefs and structs
@@ -24,6 +24,7 @@ typedef int32_t Elf64_Sword; typedef uint64_t Elf64_Xword; typedef int64_t Elf64_Sxword; typedef uint16_t Elf64_Section; +typedef Elf64_Half Elf64_Versym; typedef uint32_t Elf32_Addr; typedef uint32_t Elf32_Off; @@ -33,6 +34,7 @@ typedef int32_t Elf32_Sword; typedef uint64_t Elf32_Xword; typedef int64...
Add new quote fields to oecertdump output
@@ -305,14 +305,22 @@ oe_result_t output_sgx_report(const uint8_t* report, size_t report_size) printf(" cpusvn (hex): "); oe_hex_dump(report_body->cpusvn, OE_COUNTOF(report_body->cpusvn)); printf(" miscselect: 0x%x\n", report_body->miscselect); + printf(" isvextprodid (hex): "); + oe_hex_dump( + report_body->isvextprod...
Favorites API uses json body for delete Moved favorites delete API from using in URL ID to using a json body to provide the ID Favorite ID are URL and therefore are not suited to be passed through URLs.
@@ -55,7 +55,8 @@ public class Favorites { final JSONObject jsonResponse = new JSONObject(); final DatafariMainConfiguration config = DatafariMainConfiguration.getInstance(); if (config.getProperty(DatafariMainConfiguration.LIKESANDFAVORTES).contentEquals("false")) { - // Likes and favorites are not activated, build an...
mysqlclient-python was added
@@ -165,7 +165,8 @@ ALLOW yabs/amazon/cache_proxy -> contrib/python/toredis ALLOW yql/udfs/common/python/python_arc -> contrib/python/toredis DENY .* -> contrib/python/toredis -# contrib/python/MySQL-python dosen't support Python 3, use pymysql instead of this. +# contrib/python/MySQL-python dosen't support Python 3, u...
bn/bn_lib.c: make BN_bn2binpad computationally constant-time. "Computationally constant-time" means that it might still leak information about input's length, but only in cases when input is missing complete BN_ULONG limbs. But even then leak is possible only if attacker can observe memory access pattern with limb gran...
#include "internal/cryptlib.h" #include "bn_lcl.h" #include <openssl/opensslconf.h> +#include "internal/constant_time_locl.h" /* This stuff appears to be completely unused, so is deprecated */ #if OPENSSL_API_COMPAT < 0x00908000L @@ -416,24 +417,30 @@ BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret) /* i...
VERSION bump to version 1.4.28
@@ -31,7 +31,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 27) +set(SYSREPO_MICRO_VERSION 28) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
server: updated TLS usage and grouped TLS initialization in an instance safe way
#include <monkey/mk_scheduler.h> #include <monkey/mk_plugin.h> #include <monkey/mk_clock.h> +#include <monkey/mk_thread.h> #include <monkey/mk_mimetype.h> +#include <monkey/mk_http_thread.h> pthread_once_t mk_server_tls_setup_once = PTHREAD_ONCE_INIT; static void mk_set_up_tls_keys() { - MK_TLS_INIT(); - mk_thread_keys...
Fix celix cxx14/17 option in conanfile.py
@@ -163,8 +163,9 @@ class CelixConan(ConanFile): if opt.startswith('build_'): setattr(self.options, opt, True) if not self.options.celix_cxx14: - self.options.build_cxx_remote_service_admin = False + self.options.celix_cxx17 = false if not self.options.celix_cxx17: + self.options.build_cxx_remote_service_admin = False ...
Retry when we get a mixed up packet. There's better ways to do this, but we can fix that when we make this sanely multithreaded and get rid of the big lock.
@@ -325,14 +325,15 @@ const tquery = {srv, host, t const rquery = {srv, host, id var pktbuf : byte[1024] - var pkt - var pfd - var r, n + var pkt, pfd, giveup + var r, n, inf + giveup = std.now() + 1000*Timeout +:again pfd = [ [.fd=srv, .events=sys.Pollin, .revents=0] ][:] - r = sys.poll(pfd[:], Timeout) + r = sys.poll...
Add pss_rsae sig algs into test conf
@@ -263,12 +263,24 @@ int send_cb( void *ctx, unsigned char const *buf, size_t len ) #if defined(MBEDTLS_X509_CRT_PARSE_C) #if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_RSA_C) +#if defined(MBEDTLS_SSL_PROTO_TLS1_3) #define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_ECDSA), \ + ( 0x800 | hash ), \ ((...
decapitate peel:ut
*/ #include "all.h" - -/* logic -*/ u3_noun _cqfu_peel(u3_noun van, u3_noun sut, u3_noun way, - u3_noun met) + u3_noun axe) { - if ( c3__gold == met ) { - return u3nc(c3y, c3y); - } - else switch ( way ) { - default: return u3m_bail(c3__fail); + u3_noun von = u3i_molt(u3k(van), u3x_sam, u3k(sut), 0); + u3_noun gat = u3...
bleprph-emspi - Replace stub console with full.
@@ -37,7 +37,7 @@ pkg.deps: - net/nimble/host/services/gatt - net/nimble/host/store/config - net/nimble/transport/emspi - - sys/console/stub + - sys/console/full - sys/id - sys/log/full - sys/stats/full
Fix potentional problem with dummy persistence.
@@ -757,7 +757,7 @@ namespace Miningcore // register repositories builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly()) .Where(t => - t.Namespace.StartsWith(typeof(ShareRepository).Namespace)) + t?.Namespace?.StartsWith(typeof(ShareRepository).Namespace) == true) .AsImplementedInterfaces() .SingleInstance(); }...
Fix doc/benchmarks.md typos
@@ -163,7 +163,7 @@ The `full_init` vs `part_init` suffixes are whether is unset or set. The libgif library doesn't export any API for decode-to-BGRA or decode-to-RGBA, -so there are mimic numbers to compare to for the `bgra` suffix. +so there are no mimic numbers to compare to for the `bgra` suffix. name speed vs_mimi...
Calculate satd cost for whole non-square blocks as well.
@@ -1308,7 +1308,6 @@ static void search_pu_inter_bipred(inter_search_info_t *info, const image_list_t *const ref = info->state->frame->ref; uint8_t (*ref_LX)[16] = info->state->frame->ref_LX; const videoframe_t * const frame = info->state->tile->frame; - const int cu_width = LCU_WIDTH >> depth; const int x = info->ori...
config_tools: update clang-format file Remove the AlwaysBreakTemplateDeclarations setting in clang-format file to fix the issue about "make defconfig".
@@ -17,7 +17,6 @@ AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: MultiLine BinPackArguments: true BinPackParameters: true BraceWrapping:
Run go5 test several times
@@ -35,6 +35,8 @@ coroutine void dummy(void) { } int main() { + int i; + for(i = 0; i != 5; ++i) { /* Test go_mem. */ char *stack = malloc(65536); assert(stack); @@ -45,7 +47,7 @@ int main() { rc = hclose(cr); errno_assert(rc == 0); free(stack); - + } return 0; }
rework gui->set_scale()
@@ -50,7 +50,7 @@ static CLAP_CONSTEXPR const char CLAP_EXT_GUI[] = "clap.gui"; // embed using https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setparent static const CLAP_CONSTEXPR char CLAP_WINDOW_API_WIN32[] = "win32"; -// uses logical size +// uses logical size, don't call clap_plugin_gui->set_...
another round of +cue comments
@@ -89,13 +89,12 @@ u3qe_cue(u3_atom a) // u3_atom cur = 0; - // the bitwidth and produce from reading at cursor + // the bitwidth and product from reading at cursor // u3_atom wid, pro; // read from atom at cursor - // push on to the stack and continue (cell-head recursion) - // or set .wid and .pro and goto give + //...
warn harder, with snark
@@ -496,7 +496,8 @@ _dawn_come(u3_noun stars) c3_rand(eny_w); eny = u3i_words(16, eny_w); - fprintf(stderr, "boot: mining a comet. May take up to 30 minutes.\r\n"); + fprintf(stderr, "boot: mining a comet. May take up to an hour.\r\n"); + fprintf(stderr, "If you want to boot faster, get an Azimuth point.\r\n"); seed = ...
gitlab/ci: testing installation and linking
@@ -4,13 +4,16 @@ stages: [build, test] before_script: - apt-get -qq update && apt-get -qq install -y automake autoconf gcc g++ gcovr make valgrind time curl -# build from scratch -compile: +# build and install from scratch +install: stage: build script: - ./bootstrap.sh - ./configure --enable-strict - make -j4 + - mak...
hv: mmu: remove strict check for deleting page table mapping When we support PCI MSI-X table BAR remapping, we may re-delete the MSI-X table BAR region. This patch removes strict check for deleting page table mapping.
@@ -96,7 +96,7 @@ static void modify_or_del_pte(const uint64_t *pde, uint64_t vaddr_start, uint64_ for (; index < PTRS_PER_PTE; index++) { uint64_t *pte = pt_page + index; - if (mem_ops->pgentry_present(*pte) == 0UL) { + if ((mem_ops->pgentry_present(*pte) == 0UL) && (type == MR_MODIFY)) { ASSERT(false, "invalid op, pt...
[bsp/wch/arm/Libraries/ch32_drivers/drv_rtc_ch32f10x.c]: rename rtc ops.
@@ -106,8 +106,8 @@ const static struct rt_rtc_ops rtc_ops = .set_secs = ch32f1_set_secs, .get_alarm = RT_NULL, .set_alarm = RT_NULL, - .get_usecs = RT_NULL, - .set_usecs = RT_NULL}; + .get_timeval = RT_NULL, + .set_timeval = RT_NULL}; int rt_hw_rtc_init(void) {
publish: no-op on some other cases as well
?: ?=([@ ^] app-path) ~& [%assuming-ported-legacy-publish app-path] `[%'~' app-path] - ~| [%weird-publish app-path] - !! + ~&([%weird-publish app-path] ~) =/ resource-indices .^ (jug resource group-path) %gy =/ groups=(unit (set path)) (~(get by resource-indices) [%publish app-path]) ?~ groups ~ - `(snag 0 ~(tap in u.g...
Fix build issues for implicit declaration for `esp_fill_random`
#include <string.h> #include <stdio.h> #include <stdbool.h> -#include <esp_system.h> +#include <esp_random.h> /* ToDo - Remove this once appropriate solution is available. We need to define this for the file as ssl_misc.h uses private structures from mbedtls,
Pass the pointer to the factory
@@ -12,20 +12,20 @@ extern "C" { struct clap_plugin_factory { /* Get the number of plugins available. * [thread-safe] */ - uint32_t (*get_plugin_count)(void); + uint32_t (*get_plugin_count)(const struct clap_plugin_factory *factory); /* Retrieves a plugin descriptor by its index. * Returns null in case of error. * The ...
netutils/usrsock_rpmsg: Switch the nonblocking mode by psock_ioctl instead since it's more simpler than psock_ioctl
#include <nuttx/config.h> #include <errno.h> -#include <fcntl.h> #include <poll.h> #include <pthread.h> #include <string.h> #include <sys/eventfd.h> +#include <sys/ioctl.h> #include <nuttx/net/dns.h> #include <nuttx/net/net.h> @@ -212,14 +212,11 @@ static int usrsock_rpmsg_socket_handler(struct rpmsg_endpoint *ept, pth...
migration: correcting take-migrate ship
++ on-agent |= [=wire =sign:agent:gall] ^- (quip card _this) + ~& src.bol =^ cards state ?+ wire [- state]:(on-agent:def wire sign) [%pyre *] (take-pyre:gc t.wire sign) - [%gladio @ ~] (take-migrate:gc sign) + [%gladio @ ~] (take-migrate:gc (scot %p i.t.wire) sign) :: [%try-rejoin @ *] ?> ?=(%poke-ack -.sign) ^- (quip ...
Update pkg/grid/src/components/Checkbox.tsx
@@ -20,7 +20,6 @@ export const Checkbox: React.FC<RadixCheckbox.CheckboxProps> = ({ <div className="flex content-center space-x-2"> <RadixCheckbox.Root className={classNames('default-ring rounded-lg bg-white h-7 w-7', className)} - // style={{ width: 28, height: 28 }} checked={proxyChecked} onCheckedChange={proxyOnChec...
Enable bindings and attribute reporting for IKEA Fyrtur and Kadrilj devices
@@ -1906,6 +1906,8 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso sensor->modelId().startsWith(QLatin1String("S2")) || // IKEA sensor->modelId().startsWith(QLatin1String("TRADFRI")) || + sensor->modelId().startsWith(QLatin1String("FYRTUR")) || + sensor->modelId().startsWith(QLatin1S...
fix for ipv6 hosts if logout url is set
@@ -2455,6 +2455,7 @@ apr_byte_t oidc_validate_redirect_url(request_rec *r, oidc_cfg *c, apr_hash_index_t *hi = NULL; size_t i = 0; char *url = apr_pstrndup(r->pool, redirect_to_url, OIDC_MAX_URL_LENGTH); + char *url_ipv6_aware = NULL; // replace potentially harmful backslashes with forward slashes for (i = 0; i < strl...
docs(discord): improve discord_strerror() description
@@ -413,9 +413,9 @@ void discord_global_cleanup(); /** * @brief Return the meaning of ORCAcode - * @note client may be NULL, but this will give a generic error message + * @note if the client parameter is provided, the raw JSON error string will be given for ORCA_DISCORD_JSON_CODE code * @param code the ORCAcode to be ...
Fix Error: ascii/mbascii.c:118:25: error: unused variable 'ucLRC' [-Werror,-Wunused-variable]
@@ -115,7 +115,6 @@ static volatile eMBBytePos eBytePos; static volatile uint8_t *pucSndBufferCur; static volatile uint16_t usSndBufferCount; -static volatile uint8_t ucLRC; static volatile uint8_t ucMBLFCharacter; /**************************************************************************** @@ -130,11 +129,11 @@ stati...
rune/libenclave: Sanity check the returned error of rune exec If the returned error is empty, don't raise an error in any way.
@@ -302,7 +302,13 @@ func remoteExec(agentPipe *os.File, config *configs.InitEnclaveConfig, notifySig logrus.Debug("awaiting for signal forwarder exiting ...") <-sigForwarderExit logrus.Debug("signal forwarder exited") - return resp.Exec.ExitCode, fmt.Errorf(resp.Exec.Error) + + if resp.Exec.Error == "" { + err = nil +...
build: fix formatting of comments
@@ -15,7 +15,8 @@ check_binding_included ("swig_python" IS_INCLUDED SUBDIRECTORY "swig/python") if (IS_INCLUDED) add_subdirectory (python) else () - check_binding_included ("swig_python3" IS_INCLUDED SUBDIRECTORY "swig/python" SILENT) # rename swig_python3 to swig_python - TODO + # TODO rename swig_python3 to swig_pyth...
[DYNAREC] Refactored the printer generator (3)
@@ -28,7 +28,7 @@ def arr2hex(a, forceBin=False): return "0b" + ''.join(map(str, a)) else: al = len(a) - return int2hex(sum([v * 2**(al - i - 1) for i, v in enumerate(a)]), ceil(al / 4)) + return int2hex(sum(v * 2**(al - i - 1) for i, v in enumerate(a)), ceil(al / 4)) def sz2str(sz, forceBin=False): return int2hex(2 **...
support rocketchip longname from generator | extra comments | subprojects specify configs
@@ -26,15 +26,21 @@ SBT_PROJECT ?= $(PROJECT) TB ?= TestDriver TOP ?= RocketTop -# make it so that you only change 1 param to change most or all of them! +######################################################################################### +# subproject overrides +# description: +# - make it so that you only chang...
os/arch/arm/src/stm32l4: Configure GPIO pin : PC13 for EXTI interrupt
#include "up_internal.h" #include "stm32l4_rtc.h" #include <tinyara/rtc.h> +#include "stm32l4.h" +#include "stm32l4_gpio.h" +#include "stm32l4_userspace.h" +#include "stm32l4_start.h" +#include "stm32l4xx_hal_interface.h" /**************************************************************************** * Pre-processor Defi...
artik05x: add verify option into download script Conflicts: build/configs/artik05x/artik05x_download.sh
@@ -51,11 +51,13 @@ OPTIONS: For examples: `basename $0` --board=artik053 ALL - `basename $0` --board=artik055s BOOTLOADER + `basename $0` --board=artik053s --verify + `basename $0` --board=artik055s --secure Options: --board[="<board-name>"] select target board-name --secure choose secure mode + --verify verify downlo...
zuse: fix +del-span in +tab
?~ a a ?~ b a ?: =(key.n.a u.b) - a(l r.a) + r.a ?: (compare key.n.a u.b) - $(a a(l r.a)) + $(a r.a) a(l $(a l.a)) -- :: +tap: convert to list, smallest to largest
FIPS: Fix compiler errors in rsa_chk.c when building with `-DFIPS_MODE`
@@ -25,11 +25,9 @@ int RSA_check_key(const RSA *key) int RSA_check_key_ex(const RSA *key, BN_GENCB *cb) { #ifdef FIPS_MODE - if (!(rsa_sp800_56b_check_public(key) + return rsa_sp800_56b_check_public(key) && rsa_sp800_56b_check_private(key) - && rsa_sp800_56b_check_keypair(key, NULL, -1, RSA_bits(key)) - return 0; - + &...
oc_event_callback: fix double free memory We can't remove the currently processed delayed callback because when the callback returns OC_EVENT_DONE, a double release occurs. So we set up the flag to remove it, and when it's over, we've removed it.
@@ -83,6 +83,8 @@ OC_LIST(timed_callbacks); OC_MEMB(event_callbacks_s, oc_event_callback_t, 1 + OCF_D * OC_MAX_NUM_DEVICES + OC_MAX_APP_RESOURCES + OC_MAX_NUM_CONCURRENT_REQUESTS * 2); +static oc_event_callback_t *currently_processed_event_cb; +static bool currently_processed_event_cb_delete; OC_PROCESS(timed_callback_...
mesh: Fix confusing language in log messages Both "store" and "clear" are verbs, so putting them after each other is just confusing. Use "clean" consistently when clearing settings entries.
@@ -844,14 +844,26 @@ static void schedule_store(int flag) static void clear_iv(void) { - BT_DBG("Clearing IV"); - settings_save_one("bt_mesh/IV", NULL); + int err; + + err = settings_save_one("bt_mesh/IV", NULL); + if (err) { + BT_ERR("Failed to clear IV"); + } else { + BT_DBG("Cleared IV"); + } } static void clear_ne...
build: link to mbedtls-2.13.0
@@ -251,8 +251,8 @@ if(FLB_TLS) option(ENABLE_TESTING OFF) option(ENABLE_PROGRAMS OFF) option(INSTALL_MBEDTLS_HEADERS OFF) - add_subdirectory(lib/mbedtls-2.8.0 EXCLUDE_FROM_ALL) - include_directories(lib/mbedtls-2.8.0/include) + add_subdirectory(lib/mbedtls-2.13.0 EXCLUDE_FROM_ALL) + include_directories(lib/mbedtls-2.1...
build FEATURE add comment for sr_clean and shm_clean targets Refs
@@ -314,12 +314,14 @@ endif() add_custom_target(shm_clean COMMAND rm -rf /dev/shm/sr_* COMMAND rm -rf /dev/shm/srsub_* + COMMENT "Removing all volatile SHM files prefixed with \"sr\"" ) # phony target for clearing all sysrepo data add_custom_target(sr_clean COMMAND rm -rf ${REPO_PATH} DEPENDS shm_clean + COMMENT "Remov...
Don't use -O0 for unit test LD_PRELOAD Wuninitialized does not play nice with -O0 for some compilers.
@@ -23,7 +23,7 @@ include ../../s2n.mk CRUFT += $(wildcard *.so) -LD_PRELOAD_CFLAGS = -Wno-unreachable-code -O0 +LD_PRELOAD_CFLAGS = -Wno-unreachable-code $(OVERRIDES):: ${CC} ${DEFAULT_CFLAGS} ${DEBUG_CFLAGS} ${LD_PRELOAD_CFLAGS} -shared -fPIC $@.c -o $@.so -ldl
fix -s (response filter) to work
@@ -714,7 +714,7 @@ def handle_quic_event(cpu, data, size): if allowed_quic_event and ev.type != allowed_quic_event: return - if ev.type == "send_response_header": # HTTP-level events + if ev.type == "h2o__send_response_header": # HTTP-level events if not verbose: return if allowed_res_header_name and ev.h2o_header_nam...
Correct comments around MQTT
@@ -505,7 +505,7 @@ mqtt_process_incoming_message(esp_mqtt_client_p client) { /* Debug message */ ESP_DEBUGF(ESP_CFG_DBG_MQTT_STATE, - "[MQTT] Processing package type %s\r\n", mqtt_msg_type_to_str(msg_type)); + "[MQTT] Processing packet type %s\r\n", mqtt_msg_type_to_str(msg_type)); /* Check received packet type */ swi...
Update HttpClient_Curl.cpp Remove redundant variable
@@ -73,7 +73,6 @@ namespace ARIASDK_NS_BEGIN { auto curlOperation = std::make_shared<CurlHttpOperation>(curlRequest->m_method, curlRequest->m_url, callback, requestHeaders, curlRequest->m_body); curlRequest->SetOperation(curlOperation); - auto operationLifetime = std::weak_ptr<CurlHttpOperation>(curlOperation); // The ...
core: remove debug output
#include <kdbinternal.h> -// TODO: remove - -#include <unistd.h> - -void output_meta (Key * k) -{ - const Key * meta; - - keyRewindMeta (k); - while ((meta = keyNextMeta (k)) != 0) - { - ELEKTRA_LOG_DEBUG (", %s: %s", keyName (meta), (const char *) keyValue (meta)); - } - ELEKTRA_LOG_DEBUG ("\n"); -} - -void output_key...
proc: No need to use cycles, use only microsecond API JIRA:
@@ -416,11 +416,11 @@ static void _threads_updateWakeup(time_t now, thread_t *min) wakeup = t->wakeup - now; } else { - wakeup = hal_timerUs2Cyc(SYSTICK_INTERVAL); + wakeup = SYSTICK_INTERVAL; } - if (wakeup > hal_timerUs2Cyc(SYSTICK_INTERVAL + SYSTICK_INTERVAL / 8)) - wakeup = hal_timerUs2Cyc(SYSTICK_INTERVAL); + if (...
HTTP parser: relaxed checking of fields values. Allowing characters up to 0xFF doesn't conflict with RFC 7230. Particularly, this make it possible to pass unencoded data through HTTP headers, which can be useful.
@@ -699,8 +699,7 @@ nxt_http_lookup_field_end(u_char *p, u_char *end) #define nxt_field_end_test_char(ch) \ \ - /* Values below 0x20 become more than 0xDF. */ \ - if (nxt_slow_path((u_char) ((ch) - 0x20) > 0x5E)) { \ + if (nxt_slow_path((ch) < 0x20)) { \ return &(ch); \ }
profile: safely access status
@@ -84,7 +84,7 @@ export function Profile(props: any) { ) : null} <Text maxWidth='18rem' overflowX='hidden' textOverflow="ellipsis" whiteSpace="nowrap" - overflow="hidden" display="inline-block" verticalAlign="middle">{contact.status}</Text> + overflow="hidden" display="inline-block" verticalAlign="middle">{contact?.st...
dooly: add usb-c 1 port throttling dooly is puff variant but has usb-c 1 port, this patch adds usb-c 1 port throttling when OCP. BRANCH=puff TEST=make BOARD=dooly
@@ -1074,6 +1074,10 @@ static void power_monitor(void) ppc_set_vbus_source_current_limit(0, rp); tcpm_select_rp_value(0, rp); pd_update_contract(0); + + ppc_set_vbus_source_current_limit(1, rp); + tcpm_select_rp_value(1, rp); + pd_update_contract(1); } if (diff & THROT_TYPE_A) { int typea_bc = (new_state & THROT_TYPE_A...
dispatcher: fix build without gzip/bzip2, issue
@@ -75,8 +75,13 @@ typedef struct _connection { typedef struct _z_strm { int sock; union { +#ifdef HAVE_GZIP z_stream z; +#endif +#ifdef HAVE_BZIP2 bz_stream bz; +#endif + char dummy; } hdl; char ibuf[METRIC_BUFSIZ]; unsigned short ipos;
source greenplum_path as gpadmin On Ubuntu, env vars are not inherited during `su gpadmin -c "commands"` in the same way as Centos. The PATH was missing the gpdb install dir, and psql commands failed.
@@ -25,7 +25,7 @@ function make_cluster() { source "${GREENPLUM_INSTALL_DIR}/greenplum_path.sh" export DEFAULT_QD_MAX_CONNECT=150 pushd gpdb_src/gpAux/gpdemo - su gpadmin -c "make create-demo-cluster" + su gpadmin -c "source ${GREENPLUM_INSTALL_DIR}/greenplum_path.sh && make create-demo-cluster" popd }
Adding support for CGColorSpaceGetNumberOfComponents/kCGColorSpaceModelIndexed and fixing CGColorSpaceGetNumberOfComponents/kCGColorSpaceModelPattern to return base colorspace components.
@@ -162,20 +162,21 @@ CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef colorSpace) { @Status Caveat @Notes Doesn't support all colorSpaces */ -size_t CGColorSpaceGetNumberOfComponents(CGColorSpaceRef pSpace) { - RETURN_RESULT_IF_NULL(pSpace, 0); - CGColorSpaceModel colorSpaceModel = CGColorSpaceGetModel(colorSpac...
util/iteflash: Fix resource leak Found-by: Coverity Scan Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi
@@ -1134,6 +1134,7 @@ int write_flash2(struct ftdi_context *ftdi, const char *filename, if (res <= 0) { fprintf(stderr, "Cannot read %s\n", filename); free(buffer); + fclose(hnd); return -EIO; } fclose(hnd);
apps/system/utils: fix typo in utils_ps.c ARRARY -> ARRAY
#include "utils_proc.h" -#define STATENAMES_ARRARY_SIZE (sizeof(utils_statenames) / sizeof(utils_statenames[0])) +#define STATENAMES_ARRAY_SIZE (sizeof(utils_statenames) / sizeof(utils_statenames[0])) #define PS_BUFLEN 128 static const char *utils_statenames[] = { @@ -111,7 +111,7 @@ static void ps_print_values(char *b...
Remove unused struct members reserved_oids and global_reserved_oids
@@ -296,8 +296,6 @@ typedef struct char *db_ctype; int db_encoding; RelInfoArr rel_arr; /* array of all user relinfos */ - - char *reserved_oids; /* as a string */ } DbInfo; typedef struct @@ -381,8 +379,6 @@ typedef struct char major_version_str[64]; /* string PG_VERSION of cluster */ uint32 bin_version; /* version re...
Correct documented return value for BIO_get_mem_data() CLA: trivial
@@ -122,9 +122,12 @@ There should be an option to set the maximum size of a memory BIO. BIO_s_mem() and BIO_s_secmem() return a valid memory B<BIO_METHOD> structure. -BIO_set_mem_eof_return(), BIO_get_mem_data(), BIO_set_mem_buf() and BIO_get_mem_ptr() +BIO_set_mem_eof_return(), BIO_set_mem_buf() and BIO_get_mem_ptr() ...
Added threshold to joystick axis
#include "game/level/script.h" #define LEVEL_GRAVITY 1500.0f +#define JOYSTICK_THRESHOLD 1000 struct Level { @@ -274,9 +275,9 @@ int level_input(Level *level, player_move_left(level->player); } else if (keyboard_state[SDL_SCANCODE_D]) { player_move_right(level->player); - } else if (the_stick_of_joy && SDL_JoystickGetA...
gpio: Add migration guide notes for the gpio interrupt breaking change (61282cc5dd14d2f74868384067820a55e1deddd0)
@@ -31,7 +31,13 @@ ADC GPIO ---- -The previous Kconfig option `RTCIO_SUPPORT_RTC_GPIO_DESC` has been removed, thus the ``rtc_gpio_desc`` array is unavailable. Please use ``rtc_io_desc`` array instead. +- The previous Kconfig option `RTCIO_SUPPORT_RTC_GPIO_DESC` has been removed, thus the ``rtc_gpio_desc`` array is unav...
fix typo, add comment
@@ -54,6 +54,12 @@ int account_matchByState(const struct oidc_account* p1, return strcmp(state1, state2) == 0; } +/** + * reads the pubclient.conf file and updates the account struct if a public + * client is found for that issuer, also setting the redirect uris + * @param account the account struct to be updated + * @...
[build] Add WORKING_DIRECTORY for IDE
@@ -18,16 +18,20 @@ endif() add_custom_target(build ALL DEPENDS aergocli aergosvr aergoluac brick) -add_custom_target(aergocli GOBIN=${BIN_DIR} go install ${GCFLAGS} -ldflags \"${LDFLAGS} -X github.com/aergoio/aergo/cmd/aergocli/cmd.githash=`git rev-parse HEAD`\" ../cmd/aergocli/... +add_custom_target(aergocli GOBIN=${...
Travis: Do not preload ASAN library
@@ -232,12 +232,8 @@ before_script: script: - ninja - | - if [[ "$ASAN" = "ON" && "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then - # preload required libraries (LD_PRELOAD is a space separated list) - UBSAN_LIBRARY=$(find /usr/ -name '*libclang_rt.ubsan_standalone_cxx-x86_64.so') - LD_PRELOAD="$UBSAN_LIBRARY...
fixed transfer to incorrect address
@@ -175,7 +175,8 @@ int cheatcoin_do_xfer(void *outv, const char *amount, const char *address) { xfer.remains = cheatcoins2amount(amount); if (!xfer.remains) { if (out) fprintf(out, "Xfer: nothing to transfer.\n"); return 1; } if (xfer.remains > cheatcoin_get_balance(0)) { if (out) fprintf(out, "Xfer: balance too small...
Require ConBee/RaspBee firmware 0x26190500
@@ -63,7 +63,7 @@ DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \ # Minimum version of the RaspBee firmware # which shall be used in order to support all features for this software release (case sensitive) -DEFINES += GW_MIN_RPI_FW_VERSION=0x26160500 +DEFINES += GW_MIN_RPI_FW_VERSION=0x26190500 # Minimum version of the d...
Fix Windows 7 issue with PhCreatePipe
@@ -6208,7 +6208,7 @@ NTSTATUS PhCreatePipe( ) { NTSTATUS status; - PACL pipeAcl; + PACL pipeAcl = NULL; HANDLE pipeDirectoryHandle; HANDLE pipeReadHandle; HANDLE pipeWriteHandle; @@ -6253,7 +6253,6 @@ NTSTATUS PhCreatePipe( RtlCreateSecurityDescriptor(&securityDescriptor, SECURITY_DESCRIPTOR_REVISION); RtlSetDaclSecur...
make: use `shell` command to extract version string
@@ -329,7 +329,7 @@ endif ifeq ("$(wildcard ${IDF_PATH}/version.txt)","") IDF_VER_T := $(shell cd ${IDF_PATH} && git describe --always --tags --dirty) else -IDF_VER_T := `cat ${IDF_PATH}/version.txt` +IDF_VER_T := $(shell cat ${IDF_PATH}/version.txt) endif IDF_VER := $(shell echo "$(IDF_VER_T)" | cut -c 1-31)