message
stringlengths
6
474
diff
stringlengths
8
5.22k
[mechanics] support older Bullet btConvexHull::addPoint API.
@@ -823,7 +823,11 @@ void SiconosBulletCollisionManager_impl::createCollisionObject( btch.reset(new btConvexHullShape); for (int i=0; i < shrinkCH.vertices.size(); i++) { const btVector3 &v(shrinkCH.vertices[i]); +#if defined(BT_BULLET_VERSION) && (BT_BULLET_VERSION <= 281) + btch->addPoint(v); +#else btch->addPoint(v, false); +#endif } ch->setInsideMargin(shrunkBy / _options.worldScale); }
Fix improper size_t type usage
@@ -1175,10 +1175,15 @@ oe_result_t oe_gen_custom_x509_cert( // Write a built up certificate to a X509 DER structure Note: data // is written at the end of the buffer! Use the return value to // determine where you should start using the buffer. - *bytes_written = (size_t)mbedtls_x509write_crt_der( + ret = mbedtls_x509write_crt_der( &x509cert, buff, cert_buf_size, mbedtls_ctr_drbg_random, ctr_drbg); - if (*bytes_written <= 0) - OE_RAISE_MSG(OE_CRYPTO_ERROR, "bytes_written = 0x%x ", *bytes_written); + if (ret < 0) + OE_RAISE_MSG(OE_CRYPTO_ERROR, "ret = 0x%x ", ret); + else + { + *bytes_written = (size_t)ret; + ret = 0; + } OE_CHECK(oe_memcpy_s( (void*)cert_buf,
Border router CI test: check that all ping replies are received
@@ -9,6 +9,9 @@ BASENAME=$2 # Destination IPv6 IPADDR=$3 +# ICMP request-reply count +COUNT=5 + # Start simulation echo "Starting Cooja simulation $BASENAME.csc" java -Xshare:on -jar $CONTIKI/tools/cooja/dist/cooja.jar -nogui=$BASENAME.csc -contiki=$CONTIKI > $BASENAME.coojalog & @@ -28,9 +31,10 @@ sleep 5 # Do ping echo "Pinging" -ping6 $IPADDR -c 5 | tee $BASENAME.scriptlog +ping6 $IPADDR -c $COUNT | tee $BASENAME.scriptlog # Fetch ping6 status code (not $? because this is piped) STATUS=${PIPESTATUS[0]} +REPLIES=`grep -c 'icmp_seq=' $BASENAME.scriptlog` echo "Closing simulation and tunslip6" sleep 1 @@ -40,7 +44,7 @@ sleep 1 rm COOJA.testlog rm COOJA.log -if [ $STATUS -eq 0 ] ; then +if [ $STATUS -eq 0 ] && [ $REPLIES -eq $COUNT ] ; then printf "%-32s TEST OK\n" "$BASENAME" | tee $BASENAME.testlog; else echo "==== $BASENAME.coojalog ====" ; cat $BASENAME.coojalog;
gall: use spore tag for +molt subscription killing WIP: kiln crashes after upgrade with a ! kiln: %base not installed
:: pupal gall core, on upgrade :: =< =* adult-gate . + =| spore-tag=@tas =| =spore |= [now=@da eny=@uvJ rof=roof] =* pupal-gate . $(apps t.apps, mo-core ap-abet:ap-core) :: kill subscriptions when upgrading to gall request queue fix :: - =. mo-core + =? mo-core (lth spore-tag %9) |- ^+ mo-core ?~ apps mo-core + ~> %slog.[0 leaf+"gall: +ap-kill-down {<dap.i.apps>}"] =/ ap-core (ap-abut:ap:mo-core i.apps) - =? ap-core (lth -.spore %9) - ~> %slog.[0 leaf+"gall: running +ap-kill-down"] + =. ap-core =/ boats=(list [=wire =dock]) ~(tap in ~(key by boat.egg.i.apps)) |- ^+ ap-core :: ++ load |^ |= old=spore-any + =. spore-tag `@tas`-.old =? old ?=(%7 -.old) (spore-7-to-8 old) =? old ?=(%8 -.old) (spore-8-to-9 old) ?> ?=(%9 -.old)
http3: Correctly reject extra bytes after GOAWAY
@@ -80,12 +80,13 @@ int h2o_http3_decode_goaway_frame(h2o_http3_goaway_frame_t *frame, const uint8_t { const uint8_t *src = payload, *end = src + len; - /* quicly_decodev below will reject len == 0 case */ - if (len > PTLS_ENCODE_QUICINT_CAPACITY) + if ((frame->stream_or_push_id = quicly_decodev(&src, end)) == UINT64_MAX) goto Fail; - if ((frame->stream_or_push_id = quicly_decodev(&src, end)) == UINT64_MAX) + if (src != end) { + /* there was an extra byte(s) after a valid QUIC variable-length integer */ goto Fail; + } return 0;
Add %t formatter to janet. Was not present in printf and family.
@@ -955,6 +955,9 @@ void janet_buffer_format( janet_description_b(b, argv[arg]); break; } + case 't': + janet_buffer_push_cstring(b, typestr(argv[arg])); + break; case 'M': case 'm': case 'N':
Increase lib/cgozstd buffer size from 4K to 64K
@@ -161,7 +161,7 @@ func (c *ReaderRecycler) Close() error { // // The zero value is not usable until Reset is called. type Reader struct { - buf [4096]byte + buf [65536]byte i, j uint32 r io.Reader @@ -315,7 +315,7 @@ func (c *WriterRecycler) Close() error { // // The zero value is not usable until Reset is called. type Writer struct { - buf [4096]byte + buf [65536]byte j uint32 w io.Writer level compression.Level
pbio/motorpoll: stop control on reset This ensures that motors don't turn back on after we stop them. We call these instead of calling pbio_servo/drivebase_stop() so we are sure to stop control even if the device became disconnected.
// Copyright (c) 2018-2020 Laurens Valk // Copyright (c) 2020 LEGO System A/S +#include <pbio/control.h> #include <pbio/drivebase.h> #include <pbio/motorpoll.h> #include <pbio/servo.h> @@ -32,9 +33,17 @@ pbio_error_t pbio_motorpoll_get_drivebase(pbio_drivebase_t **db) { void _pbio_motorpoll_reset_all(void) { - int i; - for (i = 0; i < PBDRV_CONFIG_NUM_MOTOR_CONTROLLER; i++) { - servo[i].port = PBIO_PORT_A + i; + + // Set control status to passive + for (int i = 0; i < PBDRV_CONFIG_NUM_MOTOR_CONTROLLER; i++) { + pbio_control_stop(&servo[i].control); + } + pbio_control_stop(&drivebase.control_distance); + pbio_control_stop(&drivebase.control_heading); + + // Physically stop the motors and set status to no device + for (int i = 0; i < PBDRV_CONFIG_NUM_MOTOR_CONTROLLER; i++) { + servo[i].port = PBIO_PORT_A + i; // FIXME: drop port dependency for getting get dc and tacho within setup below servo_err[i] = pbio_servo_setup(&servo[i], PBIO_DIRECTION_CLOCKWISE, fix16_one); } }
Jb/issue 1613 fixed issue that CPathMapper() receives null as path when trying to get data from NSUserDefaults changed manual convertion of mutable string to charactes into using of native representation of url's path
@@ -182,19 +182,24 @@ static CFURLRef _preferencesDirectoryForUserHostSafetyLevel(CFStringRef userName #if DEPLOYMENT_TARGET_WINDOWS CFURLRef url = NULL; +Boolean success = false; CFMutableStringRef completePath = _CFCreateApplicationRepositoryPath(alloc, CSIDL_APPDATA); if (completePath) { // append "Preferences\" and make the CFURL CFStringAppend(completePath, CFSTR("Preferences\\")); url = CFURLCreateWithFileSystemPath(alloc, completePath, kCFURLWindowsPathStyle, true); - _CFCreateDirectory(CFStringGetCStringPtr(completePath, kCFStringEncodingUTF8)); // WINOBJC: ensure directory exists - CFRelease(completePath); + + char cPath[CFMaxPathSize]; + if (CFURLGetFileSystemRepresentation(url, true, (unsigned char *)cPath, CFMaxPathSize)) { + success = _CFCreateDirectory(cPath); } + CFRelease(completePath); +} // Can't find a better place? Home directory then? -if (url == NULL) +if (!success) url = CFCopyHomeDirectoryURLForUser((userName == kCFPreferencesCurrentUser) ? NULL : userName); return url;
Fix typo Fix typo in the name of test ([arc::pullid] 5330a217-4aedf6bf-acf0c0bf-c7e598fe)
@@ -147,7 +147,7 @@ Y_UNIT_TEST_SUITE(SplitStringTest) { TestDelimiterOnRange<TContainerConvertingConsumer>(good, data.data(), data.end(), delim); } - Y_UNIT_TEST(TestCharSkipEmty) { + Y_UNIT_TEST(TestCharSkipEmpty) { TString data("qw ab qwabcab "); TString canonic[] = {"qw", "ab", "qwabcab"}; TVector<TString> good(canonic, canonic + 3);
improved POW/POS check
@@ -633,7 +633,8 @@ namespace MiningCore.Blockchain.Bitcoin if (!validateAddressResponse.IsMine) logger.ThrowLogPoolStartupException($"Daemon does not own pool-address '{poolConfig.Address}'", LogCat); - isPoS = difficultyResponse.Values().Any(x => x.Path == "proof-of-stake"); + isPoS = difficultyResponse.Values().Any(x => x.Path == "proof-of-stake") && + !difficultyResponse.Values().Any(x => x.Path == "proof-of-work"); // Create pool address script from response if (isPoS)
chip/ish/system.c: Format with clang-format BRANCH=none TEST=none
@@ -57,8 +57,7 @@ uint32_t chip_read_reset_flags(void) * Used when the watchdog timer exceeds max retries and we want to * disable ISH completely. */ -noreturn -static void system_halt(void) +noreturn static void system_halt(void) { cflush(); @@ -66,8 +65,7 @@ static void system_halt(void) disable_all_interrupts(); WDT_CONTROL = 0; CCU_TCG_EN = 1; - __asm__ volatile ( - "cli\n" + __asm__ volatile("cli\n" "hlt\n"); } } @@ -90,8 +88,8 @@ void system_reset(int flags) if (flags & SYSTEM_RESET_AP_WATCHDOG) { save_flags |= EC_RESET_FLAG_WATCHDOG; ish_persistent_data.watchdog_counter += 1; - if (ish_persistent_data.watchdog_counter - >= CONFIG_WATCHDOG_MAX_RETRIES) { + if (ish_persistent_data.watchdog_counter >= + CONFIG_WATCHDOG_MAX_RETRIES) { CPRINTS("Halting ISH due to max watchdog resets"); system_halt(); } @@ -180,14 +178,8 @@ void system_set_image_copy(enum ec_image copy) #define AGENT_STS 0x28 #define ERROR_LOG 0x58 -static uint16_t hbw_ia_offset[] = { - 0x1000, - 0x3400, - 0x3800, - 0x5000, - 0x5800, - 0x6000 -}; +static uint16_t hbw_ia_offset[] = { 0x1000, 0x3400, 0x3800, + 0x5000, 0x5800, 0x6000 }; static inline void clear_register(uint32_t reg) {
add the correct sha256 value for the 0.7-5 source tarball
@@ -12,9 +12,10 @@ class Aomp(MakefilePackage): """ llvm openmp compiler from AMD""" homepage = "https://github.com/ROCm-Developer-Tools/aomp" - url = "https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_0.7-3/aomp-0.7-3.tar.gz" + url = "https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_0.7-5/aomp-0.7-5.tar.gz" + + version('0.7-5', sha256='8f3b20e57bf2032d388879429f29b729ce9a46bee5e7ba76976fc77ea48707a7') - version('0.7-3', sha256='9a4971df847a0b0d9913ced5ba19e6574e8823d5b74aaac725945f7360402be1') family = 'compiler' def edit(self, spec, prefix):
BugID: [udev] add info in README
@@ -25,6 +25,7 @@ The `aos ota` command upgrade remote devices quickly: ![](https://img.alicdn.com/tfs/TB1GINADwTqK1RjSZPhXXXfOFXa-919-571.gif) +> need to update `aos-cube` to 0.3.0 or later. ##### udev architecture Overview
Remove senseless pointer arithmetic (issue
@@ -2089,15 +2089,20 @@ XML_GetBuffer(XML_Parser parser, int len) parser->m_bufferPtr = parser->m_buffer + keep; } else { - parser->m_bufferEnd = newBuf + (parser->m_bufferEnd - parser->m_bufferPtr); + /* This must be a brand new buffer with no data in it yet */ + parser->m_bufferEnd = newBuf; parser->m_bufferPtr = parser->m_buffer = newBuf; } #else if (parser->m_bufferPtr) { memcpy(newBuf, parser->m_bufferPtr, parser->m_bufferEnd - parser->m_bufferPtr); FREE(parser, parser->m_buffer); - } parser->m_bufferEnd = newBuf + (parser->m_bufferEnd - parser->m_bufferPtr); + } + else { + /* This must be a brand new buffer with no data in it yet */ + parser->m_bufferEnd = newBuf; + } parser->m_bufferPtr = parser->m_buffer = newBuf; #endif /* not defined XML_CONTEXT_BYTES */ }
Utilities: Fuzzy match for HFS+ filesystem driver in ocvalidate
@@ -130,7 +130,7 @@ CheckUEFI ( BOOLEAN HasOpenRuntimeEfiDriver; BOOLEAN HasOpenUsbKbDxeEfiDriver; BOOLEAN HasPs2KeyboardDxeEfiDriver; - BOOLEAN HasHfsPlusEfiDriver; + BOOLEAN HasHfsEfiDriver; BOOLEAN HasAudioDxeEfiDriver; BOOLEAN IsConnectDriversEnabled; BOOLEAN IsRequestBootVarRoutingEnabled; @@ -161,7 +161,7 @@ CheckUEFI ( HasOpenRuntimeEfiDriver = FALSE; HasOpenUsbKbDxeEfiDriver = FALSE; HasPs2KeyboardDxeEfiDriver = FALSE; - HasHfsPlusEfiDriver = FALSE; + HasHfsEfiDriver = FALSE; HasAudioDxeEfiDriver = FALSE; IsConnectDriversEnabled = UserUefi->ConnectDrivers; IsRequestBootVarRoutingEnabled = UserUefi->Quirks.RequestBootVarRouting; @@ -234,8 +234,12 @@ CheckUEFI ( HasPs2KeyboardDxeEfiDriver = TRUE; IndexPs2KeyboardDxeEfiDriver = Index; } - if (AsciiStrCmp (Driver, "HfsPlus.efi") == 0) { - HasHfsPlusEfiDriver = TRUE; + // + // There are several HFS Plus drivers, including HfsPlus, VboxHfs, etc. + // Here only "hfs" (case-insensitive) is matched. + // + if (OcAsciiStriStr (Driver, "hfs") != NULL) { + HasHfsEfiDriver = TRUE; } if (AsciiStrCmp (Driver, "AudioDxe.efi")) { HasAudioDxeEfiDriver = TRUE; @@ -295,8 +299,8 @@ CheckUEFI ( } if (!IsConnectDriversEnabled) { - if (HasHfsPlusEfiDriver) { - DEBUG ((DEBUG_WARN, "HfsPlus.efi is loaded, but UEFI->ConnectDrivers is not enabled!\n")); + if (HasHfsEfiDriver) { + DEBUG ((DEBUG_WARN, "HFS+ filesystem driver is loaded, but UEFI->ConnectDrivers is not enabled!\n")); ++ErrorCount; } if (HasAudioDxeEfiDriver) {
Removed unnecessary GeoIP include from header file.
#ifndef GEOLOCATION_H_INCLUDED #define GEOLOCATION_H_INCLUDED -#ifdef HAVE_LIBGEOIP -#include <GeoIP.h> -#endif - #include "commons.h" #define CITY_LEN 28 /* max string length for a city */
tools/pydfu.py: Use getfullargspec instead of getargspec for newer pyusb pyusb v1.0.2 warns about `getargspec` as being deprecated.
@@ -62,7 +62,7 @@ __verbose = None __DFU_INTERFACE = 0 import inspect -if 'length' in inspect.getargspec(usb.util.get_string).args: +if 'length' in inspect.getfullargspec(usb.util.get_string).args: # PyUSB 1.0.0.b1 has the length argument def get_string(dev, index): return usb.util.get_string(dev, 255, index)
Update index_board_Arduino_HandBit.html add text blocks
</shadow> </value> </block> +<block type="substring"> + <value name="name"> + <shadow type="text"> + <field name="TEXT">substring</field> + </shadow> +</value> +<value name="Start"> + <shadow type="math_number"> + <field name="NUM">0</field> + </shadow> +</value> +<value name="end"> + <shadow type="math_number"> + <field name="NUM">3</field> + </shadow> +</value> +</block> +<block type="decimal_places"> + <value name="numeral"> + <shadow type="math_number"> + <field name="NUM">6.666</field> + </shadow> + </value> + <value name="decimal_places"> + <shadow type="math_number"> + <field name="NUM">2</field> + </shadow> + </value> +</block> +<block type="letter_conversion"> + <value name="String"> + <shadow type="math_number"> + <field name="NUM">String</field> + </shadow> + </value> +</block> +<block type="data_replacement"> + <value name="String"> + <shadow type="math_number"> + <field name="NUM">String</field> + </shadow> + </value> + <value name="source_data"> + <shadow type="text"> + <field name="TEXT">s</field> + </shadow> +</value> +<value name="replace"> + <shadow type="text"> + <field name="TEXT">Q</field> +</shadow> +</value> +</block> +<block type="eliminate"> + <value name="String"> + <shadow type="math_number"> + <field name="NUM">String</field> + </shadow> + </value> +</block> +<block type="first_and_last"> + <value name="String"> + <shadow type="text"> + <field name="TEXT">substring</field> + </shadow> +</value> +<value name="String1"> + <shadow type="text"> + <field name="TEXT">substring</field> +</shadow> +</value> +</block> +<block type="type_conversion"> + <value name="variable"> + <shadow type="text"> + <field name="TEXT">substring</field> + </shadow> +</value> +</block> <block type="ascii_to_char"> <value name="VAR"> <shadow type="math_number">
options/ansi: add %r for strftime
@@ -254,6 +254,18 @@ size_t strftime(char *__restrict dest, size_t max_size, return 0; p += chunk; c += 2; + }else if(*(c + 1) == 'r') { + int hour = tm->tm_hour; + if(!hour) + hour = 12; + if(hour > 12) + hour -= 12; + auto chunk = snprintf(p, space, "%.2i:%.2i:%.2i %s", hour, tm->tm_min, tm->tm_sec, + nl_langinfo((tm->tm_hour < 12) ? AM_STR : PM_STR)); + if(chunk >= space) + return 0; + p += chunk; + c += 2; }else if(*(c + 1) == '%') { auto chunk = snprintf(p, space, "%%"); if(chunk >= space)
sparse: symbols in imc.c weren't declared, Should they be static? Yes, a bunch of these should be.
-/* Copyright 2016 IBM Corp. +/* Copyright 2016-2019 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * imc_chip_avl_vector(in struct imc_chip_cb, look at include/imc.h). * nest_pmus[] is an array containing all the possible nest IMC PMU node names. */ -char const *nest_pmus[] = { +static char const *nest_pmus[] = { "powerbus0", "mcs0", "mcs1", @@ -89,7 +89,7 @@ char const *nest_pmus[] = { * in the debug mode (which will be supported by microcode in the future). * These will be advertised only when OPAL provides interface for the it. */ -char const *debug_mode_units[] = { +static char const *debug_mode_units[] = { "mcs0", "mcs1", "mcs2", @@ -116,7 +116,7 @@ static struct combined_units_node cu_node[] = { static char *compress_buf; static size_t compress_buf_size; const char **prop_to_fix(struct dt_node *node); -const char *props_to_fix[] = {"events", NULL}; +static const char *props_to_fix[] = {"events", NULL}; static bool is_nest_mem_initialized(struct imc_chip_cb *ptr) { @@ -136,13 +136,13 @@ static bool is_nest_mem_initialized(struct imc_chip_cb *ptr) * SCOM port addresses in the arrays below, each for Hardware Trace Macro (HTM) * mode and PDBAR. */ -unsigned int pdbar_scom_index[] = { +static unsigned int pdbar_scom_index[] = { 0x1001220B, 0x1001230B, 0x1001260B, 0x1001270B }; -unsigned int htm_scom_index[] = { +static unsigned int htm_scom_index[] = { 0x10012200, 0x10012300, 0x10012600,
esp32/README.md: Add note about btree submodule initialization.
@@ -83,6 +83,14 @@ this repository): $ make -C mpy-cross ``` +The ESP32 port has a dependency on Berkeley DB, which is an external +dependency (git submodule). You'll need to have git initialize that +module using the commands: +```bash +$ git submodule init lib/berkeley-db-1.xx +$ git submodule update +``` + Then to build MicroPython for the ESP32 run: ```bash $ cd esp32
Fix bug in which ENOACK was not correctly being returned.
@@ -327,7 +327,14 @@ int ieee802154_send(unsigned short addr, err = command(RADIO_DRIVER, COMMAND_SEND, (unsigned int) addr, 0); if (err < 0) return err; yield_for(&tx_done); + if (tx_result != TOCK_SUCCESS) { return tx_result; + } else if (tx_acked == 0) { + return TOCK_ENOACK; + } else { + return TOCK_SUCCESS; + } + } // Internal callback for receive
[catboost/java] javadocs and sources to final artifacts This fixes one of the maven central requirements
<encoding>utf-8</encoding> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>2.2.1</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.3</version> <configuration> - <show>protected</show> - <nohelp>true</nohelp> - <encoding>utf-8</encoding> + <encoding> + utf-8 + </encoding> </configuration> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
fixed typo in create_ip: set BLOCK_RAM depth to 8192
@@ -76,7 +76,7 @@ if { $ddr3_used == TRUE } { if { $bram_used == TRUE } { #create BlockRAM create_ip -name blk_mem_gen -vendor xilinx.com -library ip -version 8.3 -module_name block_RAM -dir $ip_dir - set_property -dict [list CONFIG.Interface_Type {AXI4} CONFIG.Write_Width_A {256} CONFIG.AXI_ID_Width $axi_id_width CONFIG.Write_Depth_A {8129} CONFIG.Use_AXI_ID {true} CONFIG.Memory_Type {Simple_Dual_Port_RAM} CONFIG.Use_Byte_Write_Enable {true} CONFIG.Byte_Size {8} CONFIG.Assume_Synchronous_Clk {true} CONFIG.Read_Width_A {256} CONFIG.Operating_Mode_A {READ_FIRST} CONFIG.Write_Width_B {256} CONFIG.Read_Width_B {256} CONFIG.Operating_Mode_B {READ_FIRST} CONFIG.Enable_B {Use_ENB_Pin} CONFIG.Register_PortA_Output_of_Memory_Primitives {false} CONFIG.Use_RSTB_Pin {true} CONFIG.Reset_Type {ASYNC} CONFIG.Port_B_Clock {100} CONFIG.Port_B_Enable_Rate {100}] [get_ips block_RAM] + set_property -dict [list CONFIG.Interface_Type {AXI4} CONFIG.Write_Width_A {256} CONFIG.AXI_ID_Width $axi_id_width CONFIG.Write_Depth_A {8192} CONFIG.Use_AXI_ID {true} CONFIG.Memory_Type {Simple_Dual_Port_RAM} CONFIG.Use_Byte_Write_Enable {true} CONFIG.Byte_Size {8} CONFIG.Assume_Synchronous_Clk {true} CONFIG.Read_Width_A {256} CONFIG.Operating_Mode_A {READ_FIRST} CONFIG.Write_Width_B {256} CONFIG.Read_Width_B {256} CONFIG.Operating_Mode_B {READ_FIRST} CONFIG.Enable_B {Use_ENB_Pin} CONFIG.Register_PortA_Output_of_Memory_Primitives {false} CONFIG.Use_RSTB_Pin {true} CONFIG.Reset_Type {ASYNC} CONFIG.Port_B_Clock {100} CONFIG.Port_B_Enable_Rate {100}] [get_ips block_RAM] set_property generate_synth_checkpoint false [get_files $ip_dir/block_RAM/block_RAM.xci] generate_target {instantiation_template} [get_files $ip_dir/block_RAM/block_RAM.xci] generate_target all [get_files $ip_dir/block_RAM/block_RAM.xci]
edit sync function
@@ -585,12 +585,10 @@ void DynamixelDriver::addSyncWrite(const char *item_name) syncWriteHandler_[sync_write_handler_cnt_].cti = cti; - syncWriteHandler_[sync_write_handler_cnt_].groupSyncWrite = new dynamixel::GroupSyncWrite(portHandler_, + syncWriteHandler_[sync_write_handler_cnt_++].groupSyncWrite = new dynamixel::GroupSyncWrite(portHandler_, packetHandler_, cti->address, cti->data_length); - - sync_write_handler_cnt_++; } bool DynamixelDriver::syncWrite(const char *item_name, int32_t *data) @@ -607,8 +605,7 @@ bool DynamixelDriver::syncWrite(const char *item_name, int32_t *data) { if (!strncmp(syncWriteHandler_[index].cti->item_name, item_name, strlen(item_name))) { - swh.groupSyncWrite = syncWriteHandler_[index].groupSyncWrite; - swh.cti = syncWriteHandler_[index].cti; + swh = syncWriteHandler_[index]; } } @@ -647,12 +644,10 @@ void DynamixelDriver::addSyncRead(const char *item_name) syncReadHandler_[sync_read_handler_cnt_].cti = cti; - syncReadHandler_[sync_read_handler_cnt_].groupSyncRead = new dynamixel::GroupSyncRead(portHandler_, + syncReadHandler_[sync_read_handler_cnt_++].groupSyncRead = new dynamixel::GroupSyncRead(portHandler_, packetHandler_, cti->address, cti->data_length); - - sync_read_handler_cnt_++; } bool DynamixelDriver::syncRead(const char *item_name, int32_t *data) @@ -669,8 +664,7 @@ bool DynamixelDriver::syncRead(const char *item_name, int32_t *data) { if (!strncmp(syncReadHandler_[index].cti->item_name, item_name, strlen(item_name))) { - srh.groupSyncRead = syncReadHandler_[index].groupSyncRead; - srh.cti = syncReadHandler_[index].cti; + srh = syncReadHandler_[index]; } } @@ -876,7 +870,7 @@ int32_t DynamixelDriver::convertVelocity2Value(uint8_t id, float velocity) float DynamixelDriver::convertValue2Velocity(uint8_t id, int32_t value) { - int32_t velocity = 0; + float velocity = 0; int8_t factor = getToolsFactor(id); velocity = value / tools_[factor].getVelocityToValueRatio();
include page anchor in url ref to silo manual
@@ -101,7 +101,7 @@ GetExodusReadOptions(void) "holding material-specific values given the name of a non-material-specific variable. " "For more information on nameschemes, please consult the description of DBMakeNamescheme " "in the <a href=\"https://wci.llnl.gov/content/assets/docs/simulation/computer-codes/" - "silo/LLNL-SM-654357.pdf\">Silo user's manual</a>. The nameschemes used here are identical " + "silo/LLNL-SM-654357.pdf#page=226\">Silo user's manual</a>. The nameschemes used here are identical " "to those described in the Silo user's manual with one extension. The conversion specifier %%V " "is used to denote the basename (non-material-specific) name of a set of scalar variables " "holding material specific values."
Fixing index error in test
@@ -22,7 +22,7 @@ BOOST_AUTO_TEST_SUITE (test_analysis) BOOST_FIXTURE_TEST_CASE(test_anlys_getoption, FixtureOpenClose) { int i; - double array[13]; + double array[12]; std::vector<double> test; std::vector<double> ref = {40.0, 0.001, 0.01, 0.5, 1.0, 0.0, 0.0, 0.0, 75.0, 0.0, 0.0, 0.0}; @@ -39,7 +39,7 @@ BOOST_FIXTURE_TEST_CASE(test_anlys_getoption, FixtureOpenClose) BOOST_REQUIRE(error == 0); } - test.assign(array, array + 13); + test.assign(array, array + 12); BOOST_CHECK_EQUAL_COLLECTIONS(ref.begin(), ref.end(), test.begin(), test.end()); error = EN_getoption(ph, 18, &array[0]);
pbio/button: document SPIKE Prime butons
@@ -46,6 +46,7 @@ typedef enum _pbio_button_flags_t { * |----------------------|--------------- * | Powered UP hub | *invalid* * | Powered UP remote | Lefthand red button + * | SPIKE Prime hub | Left button * | EV3 Brick | Left button * | EV3 IR remote | *invalid* * | NXT brick | Left arrow button @@ -54,6 +55,7 @@ typedef enum _pbio_button_flags_t { * |----------------------|--------------- * | Powered UP hub | Green button * | Powered UP remote | Green button + * | SPIKE Prime hub | Center button * | EV3 Brick | Center button * | EV3 IR remote | *invalid* * | NXT brick | Orange button @@ -62,6 +64,7 @@ typedef enum _pbio_button_flags_t { * |----------------------|--------------- * | Powered UP hub | *invalid* * | Powered UP remote | Righthand red button + * | SPIKE Prime hub | Right button * | EV3 Brick | Right button * | EV3 IR remote | *invalid* * | NXT brick | Right arrow button @@ -86,6 +89,7 @@ typedef enum _pbio_button_flags_t { * |----------------------|--------------- * | Powered UP hub | *invalid* * | Powered UP remote | Righthand '+' button + * | SPIKE Prime hub | Bluetooth button * | EV3 Brick | *invalid* * | EV3 IR remote | Righthand up button (blue bar) * | NXT brick | *invalid*
VERSION bump to version 2.0.196
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 195) +set(LIBYANG_MICRO_VERSION 196) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library set(LIBYANG_MAJOR_SOVERSION 2)
[fix] miss arguments when invoke dist_handle Use this command: `scons --dist-strip` to detach project. but it aborted with error: "TypeError: dist_handle() takes exactly 2 arguments (1 given):"
@@ -218,7 +218,7 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env): if 'dist_handle' in Env: print("=> start dist handle") dist_handle = Env['dist_handle'] - dist_handle(BSP_ROOT) + dist_handle(BSP_ROOT, dist_dir) # get all source files from program for item in program:
Add missing entries in ssl_mac_pkey_id Fixes
@@ -171,6 +171,8 @@ static int ssl_mac_pkey_id[SSL_MD_NUM_IDX] = { EVP_PKEY_HMAC, EVP_PKEY_HMAC, EVP_PKEY_HMAC, NID_undef, /* GOST2012_512 */ EVP_PKEY_HMAC, + /* MD5/SHA1, SHA224, SHA512 */ + NID_undef, NID_undef, NID_undef }; static size_t ssl_mac_secret_size[SSL_MD_NUM_IDX];
dpdk: fix vlan creation on ixgbe Type: fix VLAN programming is currently enabled for IXGBE. However, that is only supported for IXGBE_VF. With this fix, disable VLAN programming for IXGBE.
@@ -30,7 +30,6 @@ static dpdk_driver_t dpdk_drivers[] = { { .drivers = DPDK_DRIVERS ({ "net_ixgbe", "Intel 82599" }), .enable_rxq_int = 1, - .program_vlans = 1, .supported_flow_actions = supported_flow_actions_intel, .use_intel_phdr_cksum = 1, },
Oops. flipmask for font should be nonzero Note to self : don't skip testing on other carts.
@@ -789,7 +789,7 @@ s32 tic_api_font(tic_mem* memory, const char* text, s32 x, s32 y, u8 chromakey, // Compatibility : flip top and bottom of the spritesheet // to preserve tic_api_font's default target u8 segment = memory->ram.vram.blit.segment >> 1; - u8 flipmask = 0; while (segment >>= 1) flipmask<<=1; + u8 flipmask = 1; while (segment >>= 1) flipmask<<=1; tic_tilesheet font_face = getTileSheetFromSegment(memory, memory->ram.vram.blit.segment ^ flipmask); return drawText((tic_machine*)memory, &font_face, text, x, y, w, h, fixed, mapping, scale, alt);
fix(my_bot): update to latest
#include <stdio.h> #include "discord.h" -void on_ready(struct discord* client, const struct discord_user* bot) +void on_ready(struct discord* client) { + const struct discord_user *bot = discord_get_self(client); log_info("Logged in as %s!", bot->username); }
Extract Volume::open() class method
@@ -29,6 +29,7 @@ from .shared import OcfErrorCode, Uuid from ..ocf import OcfLib from ..utils import print_buffer, Size as S from .data import Data +from .queue import Queue class VolumeCaps(Structure): @@ -136,13 +137,7 @@ class Volume: print("{}".format(Volume._uuid_)) return -1 - if volume.opened: - return -OcfErrorCode.OCF_ERR_NOT_OPEN_EXC - - Volume._instances_[ref] = volume - volume.handle = ref - - return volume.do_open() + return Volume.open(ref, volume) @VolumeOps.CLOSE def _close(ref): @@ -172,6 +167,16 @@ class Volume: return Volume._ops_[cls] + @staticmethod + def open(ref, volume): + if volume.opened: + return -OcfErrorCode.OCF_ERR_NOT_OPEN_EXC + + Volume._instances_[ref] = volume + volume.handle = ref + + return volume.do_open() + @classmethod def get_io_ops(cls): return IoOps(_set_data=cls._io_set_data, _get_data=cls._io_get_data)
abis/mlibc: Match signal constants to linux.
@@ -30,46 +30,45 @@ extern "C" { #define SIG_DFL ((__sighandler)(void *)(-2)) #define SIG_IGN ((__sighandler)(void *)(-3)) -#define SIGABRT 1 -#define SIGFPE 2 -#define SIGILL 3 -#define SIGINT 4 -#define SIGSEGV 5 -#define SIGTERM 6 -#define SIGPROF 7 -#define SIGIO 9 -#define SIGPWR 10 -#define SIGRTMIN 11 -#define SIGRTMAX 12 +#define SIGHUP 1 +#define SIGINT 2 +#define SIGQUIT 3 +#define SIGILL 4 +#define SIGTRAP 5 +#define SIGABRT 6 +#define SIGBUS 7 +#define SIGFPE 8 +#define SIGKILL 9 +#define SIGUSR1 10 +#define SIGSEGV 11 +#define SIGUSR2 12 +#define SIGPIPE 13 +#define SIGALRM 14 +#define SIGTERM 15 +#define SIGSTKFLT 16 +#define SIGCHLD 17 +#define SIGCONT 18 +#define SIGSTOP 19 +#define SIGTSTP 20 +#define SIGTTIN 21 +#define SIGTTOU 22 +#define SIGURG 23 +#define SIGXCPU 24 +#define SIGXFSZ 25 +#define SIGVTALRM 26 +#define SIGPROF 27 +#define SIGWINCH 28 +#define SIGPOLL 29 +#define SIGPWR 30 +#define SIGSYS 31 // TODO: replace this by uint64_t typedef long sigset_t; -#ifdef __MLIBC_POSIX_OPTION - -#define SIGALRM 8 -#define SIGBUS 13 -#define SIGCHLD 14 -#define SIGCONT 15 -#define SIGHUP 16 -#define SIGKILL 17 -#define SIGPIPE 18 -#define SIGQUIT 19 -#define SIGSTOP 20 -#define SIGTSTP 21 -#define SIGTTIN 22 -#define SIGTTOU 23 -#define SIGUSR1 24 -#define SIGUSR2 25 -#define SIGSYS 26 -#define SIGTRAP 27 -#define SIGURG 28 -#define SIGVTALRM 29 -#define SIGXCPU 30 -#define SIGXFSZ 31 -#define SIGWINCH 32 #define SIGUNUSED SIGSYS +#ifdef __MLIBC_POSIX_OPTION + #define SA_NOCLDSTOP (1 << 0) #define SA_ONSTACK (1 << 1) #define SA_RESETHAND (1 << 2)
Fix typos and improve if/when-let macros In clojure when-let and if-let accept at most two forms and must both be true for the evaluatioh to take place. The implementation here does the same but can bind more forms
-(defn- reverse-array [t] +(defn- reverse-array + "Reverses the order of the elements in a given array" + [t] (var n (dec (length t)) ) (var reversed []) (while (>= n 0) reversed) -(defn- reverse-tuple [t] +(defn- reverse-tuple + "Reverses the order of the elements of a given tuple" + [t] (def max (length t)) (var n 0) (var reversed (tuple)) exp-2)) (defmacro when-not -"Sorthand for (if (not ... " +"Sorthand for (when (not ... " [condition exp-1] (tuple 'when (tuple 'not condition) exp-1)) + + (defmacro if-let +"Takes the first one or two forms in vector and if true binds + all the forms with let and evaluates first expression else + evaluates the second" [bindings then else] (def head (ast-unwrap1 bindings)) (tuple 'let head - (tuple 'if (get head 1) + (tuple 'if (and (get head 1) (if (get head 2) (get head 3) true)) then else))) (defmacro when-let - [bindings & then] +"Takes the first one or two forms in vector and if true binds + all the forms with let and evaluates body " + [bindings & body] (def head (ast-unwrap1 bindings)) (tuple 'let head (tuple 'when - (get head 1) (apply tuple (array-concat ['do] (ast-unwrap1 then))) ))) + (and (get head 1) (if (get head 2) (get head 3) true)) + (apply tuple (array-concat ['do] (ast-unwrap1 body))) ))) -(defn comp0- +(defn- comp0 "Compose two functions. Second function must accept only one argument)" [f g] (fn [x] (f (g x)))) (do (def f (get functions 0)) (def g (get functions 1)) - (apply comp (comp0- f g) (array-slice functions 2 -1))) ))) + (apply comp (comp0 f g) (array-slice functions 2 -1))) )))
NimBLE: Update the link to NimBLE upstream documentation
@@ -3,7 +3,7 @@ NimBLE-based host APIs Overview ======== -Apache MyNewt NimBLE is a highly configurable and BT SIG qualifiable BLE stack providing both host and controller functionalities. ESP-IDF supports NimBLE host stack which is specifically ported for ESP32 platform and FreeRTOS. The underlying controller is still the same (as in case of Bluedroid) providing VHCI interface. Refer to `NimBLE user guide <http://mynewt.apache.org/latest/network/docs/index.html#>`_ for a complete list of features and additional information on NimBLE stack. Most features of NimBLE including BLE Mesh are supported by ESP-IDF. The porting layer is kept cleaner by maintaining all the existing APIs of NimBLE along with a single ESP-NimBLE API for initialization, making it simpler for the application developers. +Apache MyNewt NimBLE is a highly configurable and BT SIG qualifiable BLE stack providing both host and controller functionalities. ESP-IDF supports NimBLE host stack which is specifically ported for ESP32 platform and FreeRTOS. The underlying controller is still the same (as in case of Bluedroid) providing VHCI interface. Refer to `NimBLE user guide <http://mynewt.apache.org/latest/network/index.html#>`_ for a complete list of features and additional information on NimBLE stack. Most features of NimBLE including BLE Mesh are supported by ESP-IDF. The porting layer is kept cleaner by maintaining all the existing APIs of NimBLE along with a single ESP-NimBLE API for initialization, making it simpler for the application developers. Architecture ============ @@ -36,7 +36,7 @@ Typical programming sequence with NimBLE stack consists of the following steps: * Perform application specific tasks/initialization * Run the thread for host stack using ``nimble_port_freertos_init`` -This documentation does not cover NimBLE APIs. Refer to `NimBLE tutorial <https://mynewt.apache.org/latest/network/docs/index.html#ble-user-guide>`_ for more details on the programming sequence/NimBLE APIs for different scenarios. +This documentation does not cover NimBLE APIs. Refer to `NimBLE tutorial <https://mynewt.apache.org/latest/network/index.html#ble-user-guide>`_ for more details on the programming sequence/NimBLE APIs for different scenarios. API Reference =============
Remove dead code from pk_parse_key_pkcs8_unencrypted_der pk_get_pk_alg will either return 0 or a pk error code. This means that the error code will always be a high level module ID and so we just return ret.
@@ -1041,14 +1041,7 @@ static int pk_parse_key_pkcs8_unencrypted_der( if( ( ret = pk_get_pk_alg( &p, end, &pk_alg, &params ) ) != 0 ) { - if( ret >= -0x007F ) - { - return( MBEDTLS_ERROR_ADD( MBEDTLS_ERR_PK_KEY_INVALID_FORMAT, ret ) ); - } - else - { - return ret; - } + return( ret ); } if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, MBEDTLS_ASN1_OCTET_STRING ) ) != 0 )
Fix ksceCtrlSetAnalogEmulation parameters
@@ -256,23 +256,23 @@ int ksceCtrlSetButtonEmulation(unsigned int port, unsigned char slot, * @param port Use 0 * @param slot The slot used to set the custom values. Between 0 - 3. If multiple slots are used, * their settings are combined. - * @param lX New emulated value for the left joystick's X-axis. Between 0 - 0xFF. - * @param lY New emulate value for the left joystick's Y-axis. Between 0 - 0xFF. - * @param rX New emulated value for the right joystick's X-axis. Between 0 - 0xFF. - * @param rY New emulate value for the right joystick's Y-axis. Between 0 - 0xFF. - * @param lT New emulated value for the left trigger (L2) Between 0 - 0xFF. - * @param rT New emulated value for the right trigger (R2) Between 0 - 0xFF. - * @param unk0 Unknown - * @param unk1 Unknown + * @param user_lX New emulated value for the left joystick's X-axis (userspace). Between 0 - 0xFF. + * @param user_lY New emulate value for the left joystick's Y-axis (userspace). Between 0 - 0xFF. + * @param user_rX New emulated value for the right joystick's X-axis (userspace). Between 0 - 0xFF. + * @param user_rY New emulate value for the right joystick's Y-axis (userspace). Between 0 - 0xFF. + * @param kernel_lX New emulated value for the left joystick's X-axis (kernelspace). Between 0 - 0xFF. + * @param kernel_lY New emulate value for the left joystick's Y-axis (kernelspace). Between 0 - 0xFF. + * @param kernel_rX New emulated value for the right joystick's X-axis (kernelspace). Between 0 - 0xFF. + * @param kernel_rY New emulate value for the right joystick's Y-axis (kernelspace). Between 0 - 0xFF. * @param uiMake Specifies the duration of the emulation. Meassured in sampling counts. * * @return 0 on success. */ int ksceCtrlSetAnalogEmulation(unsigned int port, unsigned char slot, - unsigned char lX, unsigned char lY, - unsigned char rX, unsigned char rY, - unsigned char lT, unsigned char rT, - unsigned char unk0, unsigned char unk1, + unsigned char user_lX, unsigned char user_lY, + unsigned char user_rX, unsigned char user_rY, + unsigned char kernel_lX, unsigned char kernel_lY, + unsigned char kernel_rX, unsigned char kernel_rY, unsigned int uiMake); #ifdef __cplusplus
document quantized:// datasets
@@ -229,6 +229,7 @@ class Pool(_PoolBase): If FeaturesData - see FeaturesData description for details, 'cat_features' and 'feature_names' parameters must be equal to None in this case If string, giving the path to the file with data in catboost format. + If path starts with "quantized://", the file has to contain quantized dataset saved with Pool.save(). label : list or numpy.arrays or pandas.DataFrame or pandas.Series, optional (default=None) Label of the training data.
Add fallback functionality for async crypto
@@ -187,7 +187,7 @@ void do_encryption_async(packet_descriptor_t* pd, lookup_table_t** tables, parse debug(T4LIT(Cannot find the context. We cannot do an async operation!,error) "\n"); } #else - do_async_op(pd, ASYNC_OP_ENCRYPT); + do_encryption(pd,tables,pstate); #endif } @@ -199,8 +199,8 @@ void do_decryption_async(packet_descriptor_t* pd, lookup_table_t** tables, parse }else{ debug(T4LIT(Cannot find the context. We cannot do an async operation!,error) "\n"); } - #else - do_async_op(pd, ASYNC_OP_DECRYPT); + #elif ASNY_MODE == ASYNC_MODE_OFF + do_decryption(pd,tables,pstate); #endif }
Update osr2mp4/ImageProcess/Animation/alpha.py
@@ -63,7 +63,7 @@ def list_fade_(imgs: [Image], start: float, end: float, duration: float, easing: for img in imgs: fade_val = easing(cur_time, start, end, duration) - res += [imageproc.newalpha(img, fade_val)] + res.append(imageproc.newalpha(img, fade_val)) cur_time += delta return res @@ -78,4 +78,3 @@ def fade(imgs: Image, start: float, end: float, duration: float, settings: 'sett return img_fade_(imgs, start, end, delta, duration, easing) -
Add source paths for OCW from CMake
@@ -159,6 +159,7 @@ function(afr_write_metadata) set(3rdparty_list "") set(src_all "") + set(src_ocw "") set(inc_all "") foreach(module IN LISTS AFR_MODULES_ENABLED) @@ -195,6 +196,7 @@ function(afr_write_metadata) list(APPEND 3rdparty_list ${dep}) endif() endforeach() + list(REMOVE_DUPLICATES 3rdparty_list) list(APPEND src_all ${src_list}) list(APPEND inc_all ${inc_list}) @@ -246,8 +248,11 @@ function(afr_write_metadata) endif() # Add third party data - list(REMOVE_DUPLICATES 3rdparty_list) + set(src_ocw ${src_all}) foreach(3rdparty_target IN LISTS 3rdparty_list) + string(LENGTH "3rdparty::" len) + string(SUBSTRING "${3rdparty_target}" ${len} -1 3rdparty_name) + list(APPEND src_ocw "${AFR_3RDPARTY_DIR}/${3rdparty_name}") get_target_property(lib_type ${3rdparty_target} TYPE) if("${lib_type}" STREQUAL "INTERFACE_LIBRARY") set(prop_prefix "INTERFACE_") @@ -265,17 +270,26 @@ function(afr_write_metadata) endforeach() # Write all sources and include dirs. - file(WRITE "${ide_dir}/source_files.txt" "${src_all}") - file(WRITE "${ide_dir}/include_files.txt" "${inc_all}") + string(REPLACE ";" "\n" src_ocw "${src_ocw}") + string(REPLACE ";" "\n" src_all "${src_all}") + string(REPLACE ";" "\n" inc_all "${inc_all}") + file(WRITE "${ocw_dir}/source_paths.txt" "${src_ocw}") + file(WRITE "${ide_dir}/source_paths.txt" "${src_all}") + file(WRITE "${ide_dir}/include_paths.txt" "${inc_all}") + file( + GENERATE + OUTPUT "${ocw_dir}/source_paths.txt" + INPUT "${ocw_dir}/source_paths.txt" + ) file( GENERATE - OUTPUT "${ide_dir}/source_files.txt" - INPUT "${ide_dir}/source_files.txt" + OUTPUT "${ide_dir}/source_paths.txt" + INPUT "${ide_dir}/source_paths.txt" ) file( GENERATE - OUTPUT "${ide_dir}/include_files.txt" - INPUT "${ide_dir}/include_files.txt" + OUTPUT "${ide_dir}/include_paths.txt" + INPUT "${ide_dir}/include_paths.txt" ) endfunction()
libbpf-tools: Add verbose option to statsnoop Support verbose mode and set custom libbpf print callback in statsnoop.
@@ -23,6 +23,7 @@ static volatile sig_atomic_t exiting = 0; static pid_t target_pid = 0; static bool trace_failed_only = false; static bool emit_timestamp = false; +static bool verbose = false; const char *argp_program_version = "statsnoop 0.1"; const char *argp_program_bug_address = @@ -42,6 +43,7 @@ static const struct argp_option opts[] = { { "pid", 'p', "PID", 0, "Process ID to trace" }, { "failed", 'x', NULL, 0, "Only show failed stats" }, { "timestamp", 't', NULL, 0, "Include timestamp on output" }, + { "verbose", 'v', NULL, 0, "Verbose debug output" }, { NULL, 'h', NULL, OPTION_HIDDEN, "Show the full help" }, {}, }; @@ -66,6 +68,9 @@ static error_t parse_arg(int key, char *arg, struct argp_state *state) case 't': emit_timestamp = true; break; + case 'v': + verbose = true; + break; case 'h': argp_state_help(state, stderr, ARGP_HELP_STD_HELP); break; @@ -75,6 +80,13 @@ static error_t parse_arg(int key, char *arg, struct argp_state *state) return 0; } +static int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args) +{ + if (level == LIBBPF_DEBUG && !verbose) + return 0; + return vfprintf(stderr, format, args); +} + static void sig_int(int signo) { exiting = 1; @@ -124,6 +136,7 @@ int main(int argc, char **argv) return err; libbpf_set_strict_mode(LIBBPF_STRICT_ALL); + libbpf_set_print(libbpf_print_fn); obj = statsnoop_bpf__open(); if (!obj) {
options/internal: Fix type limits warning
@@ -32,7 +32,7 @@ charset *current_charset(); // The property if a character is a control character is locale-independent. inline bool generic_is_control(codepoint c) { - return (c >= 0x00 && c <= 0x1F) || (c == 0x7F) || (c >= 0x80 && c <= 0x9F); + return (c <= 0x1F) || (c == 0x7F) || (c >= 0x80 && c <= 0x9F); } } // namespace mlibc
Decrease fuzzing time to 4h to avoid GH timeout
@@ -15,7 +15,7 @@ jobs: uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master with: oss-fuzz-project-name: 'libcbor' - fuzz-seconds: 21600 # 6 hours + fuzz-seconds: 14400 # 4 hours dry-run: false - name: Upload Crash uses: actions/upload-artifact@v1
Show owning process for ALPC handles
@@ -389,6 +389,17 @@ VOID PhpUpdateHandleGeneralListViewGroups( L"Port Context", NULL ); + + if (WindowsVersion >= WINDOWS_10_19H2) + { + Context->ListViewRowCache[PH_HANDLE_GENERAL_INDEX_MUTANTOWNER] = PhAddListViewGroupItem( + Context->ListViewHandle, + PH_HANDLE_GENERAL_CATEGORY_ALPC, + PH_HANDLE_GENERAL_INDEX_MUTANTOWNER, + L"Owner", + NULL + ); + } } else if (PhEqualString2(Context->HandleItem->TypeName, L"EtwRegistration", TRUE)) { @@ -699,6 +710,30 @@ VOID PhpUpdateHandleGeneral( PhSetListViewSubItem(Context->ListViewHandle, Context->ListViewRowCache[PH_HANDLE_GENERAL_INDEX_PORTCONTEXT], 1, string); } + if (WindowsVersion >= WINDOWS_10_19H2) + { + ALPC_SERVER_SESSION_INFORMATION serverInfo; + + if (NT_SUCCESS(NtAlpcQueryInformation( + alpcPortHandle, + AlpcServerSessionInformation, + &serverInfo, + sizeof(ALPC_SERVER_SESSION_INFORMATION), + NULL + ))) + { + CLIENT_ID clientId; + PPH_STRING name; + + clientId.UniqueProcess = UlongToHandle(serverInfo.ProcessId); + clientId.UniqueThread = 0; + + name = PhStdGetClientIdName(&clientId); + PhSetListViewSubItem(Context->ListViewHandle, Context->ListViewRowCache[PH_HANDLE_GENERAL_INDEX_MUTANTOWNER], 1, name->Buffer); + PhDereferenceObject(name); + } + } + NtClose(alpcPortHandle); } #endif
Drivers: int32_t for all encoder counts, rates, and accelerations
typedef struct _pbio_encmotor_settings_t { float_t counts_per_unit; /**< Encoder counts per output unit. Counts per degree for rotational motors, counts per cm for a linear motor. */ float_t counts_per_output_unit; /**< Encoder counts per output unit, including optional gear train. Equals counts_per_unit*gear_ratio. */ - int16_t max_speed; /**< Soft limit on the reference speed in all run commands */ - int16_t tolerance; /**< Allowed deviation (deg) from target before motion is considered complete */ - int16_t acceleration_start; /**< Acceleration when beginning to move. Positive value in degrees per second per second */ - int16_t acceleration_end; /**< Deceleration when stopping. Positive value in degrees per second per second */ + int32_t max_speed; /**< Soft limit on the reference speed in all run commands */ + int32_t tolerance; /**< Allowed deviation (deg) from target before motion is considered complete */ + int32_t acceleration_start; /**< Acceleration when beginning to move. Positive value in degrees per second per second */ + int32_t acceleration_end; /**< Deceleration when stopping. Positive value in degrees per second per second */ int16_t tight_loop_time_ms; /**< When a run function is called twice in this interval, assume that the user is doing their own speed control. */ int32_t offset; /**< Virtual zero point of the encoder */ int16_t pid_kp; /**< Proportional position control constant (and integral speed control constant) */
cjoin: Initial update of the Join Message implementation compliant with minimal-security-06
#include "idmanager.h" #include "IEEE802154E.h" #include "IEEE802154_security.h" -#include "cbor.h" +#include "cojp_cbor.h" #include "eui64.h" #include "neighbors.h" @@ -126,7 +126,7 @@ owerror_t cjoin_receive(OpenQueueEntry_t* msg, coap_option_iht* coap_outgoingOptions, uint8_t* coap_outgoingOptionsLen) { - join_response_t join_response; + cojp_configuration_object_t configuration; owerror_t ret; opentimers_cancel(cjoin_vars.timerId); // cancel the retransmission timer @@ -135,12 +135,17 @@ owerror_t cjoin_receive(OpenQueueEntry_t* msg, return E_FAIL; } - ret = cbor_parse_join_response(&join_response, msg->payload, msg->length); + ret = cojp_cbor_decode_configuration_object(msg->payload, msg->length, &configuration); if (ret == E_FAIL) { return E_FAIL; } + if (configuration.keyset.num_keys == 1 && + configuration.keyset.key[0].key_usage == COJP_KEY_USAGE_6TiSCH_K1K2_ENC_MIC32) { // set the L2 keys as per the parsed value - IEEE802154_security_setBeaconKey(join_response.keyset.key[0].kid[0], join_response.keyset.key[0].k); - IEEE802154_security_setDataKey(join_response.keyset.key[0].kid[0], join_response.keyset.key[0].k); + IEEE802154_security_setBeaconKey(configuration.keyset.key[0].key_index, configuration.keyset.key[0].key_value); + IEEE802154_security_setDataKey(configuration.keyset.key[0].key_index, configuration.keyset.key[0].key_value); + } else { + // TODO not supported for now + } cjoin_setIsJoined(TRUE); // declare join is over
Doc: dev: data-structures: OPMPHM fix inconsistencies
@@ -364,19 +364,21 @@ Continue reading [with the error handling](error-handling.md). ## Order Preserving Minimal Perfect Hash Map (aka OPMPHM) -All structs are defined in [opmphm.h](/src/include/kdbopmphm.h). - -The OPMPHM is a randomized hash map of the Las Vegas type, that creates an index over the elements, +The OPMPHM is a non dynamic randomized hash map of the Las Vegas type, that creates an index over the elements, to gain O(1) access. -The OPMPHM represent an arbitrary index over your elements arranged in an array. -The desired index of an element, also known as the order is set in `OpmphmGraph->edges[i].order`. -Where `i` is the i-th element in your array. -Since you can assign arbitrary values as the order, the array of your elements can have gaps and even -have equal orders for two different elements. -Those orders must be specified before inserting all elements in the OPMPHM, also known as build. +The elements must be arranged in an array and each element must have a unique name, to identify the elements. +The source can be found in [kdbopmphm.h](/src/include/kdbopmphm.h) and [opmphm.c](/src/libs/elektra/opmphm.c) +and works also outside of Elektra. + +The OPMPHM does not store any buckets, your array of elements are the buckets and the OPMPHM represent an arbitrary +index over those. The desired index of an element, also known as the order, is set in `OpmphmGraph->edges[i].order`, +where `i` is the i-th element in your array. When the orders should represent the array indices, the default order +can be applied during the assignment step. When the orders are not the default order, `OpmphmGraph->edges[i].order` +should be set before the assignment step. -Once the OPMPHM is build, every: +The OPMPHM is non dynamic, there are no insert and delete operations. The OPMPHM gets build for a static set of +elements, once the OPMPHM is build, every: * change of at least one indexed element name * addition of a new element @@ -422,8 +424,7 @@ construct the random acyclic r-uniform r-partite hypergraph, this might not succ #### Assignment The `opmphmAssignment ()` function assigns either your order (set at `OpmphmGraph->edges[i].order`) or a default order. -The default order is the order of `OpmphmInit->data`. The `defaultOrder` parameter indicates the behavior. -When the OPMPHM is build with the default order, `OpmphmGraph->edges[i].order` must not be set. +The `defaultOrder` parameter indicates the behavior. After the build the OpmphmInit and OpmphmGraph should be freed. The OPMPHM is now ready for constant lookups with the `opmphmLookup ()`.
dbug: fix type error from nonce change
'ship'^(ship s) 'path'^(path p) == + :: TODO: display subscription nonce :: ++ outgoing |= =boat:gall ^- json :- %a %+ turn ~(tap by boat) - |= [[w=wire s=^ship t=term] [a=? p=^path]] + |= [[w=wire s=^ship t=term] [a=? p=^path nonce=@]] %- pairs :~ 'wire'^(path w) 'ship'^(ship s)
print final stats
@@ -152,6 +152,16 @@ static void setupSignalsMainThread(void) { } } +static void printSummary(honggfuzz_t* hfuzz) { + uint64_t exec_per_sec = 0; + uint64_t elapsed_sec = time(NULL) - hfuzz->timing.timeStart; + if (elapsed_sec) { + exec_per_sec = hfuzz->cnts.mutationsCnt / elapsed_sec; + } + LOG_I("Summary iterations:%zu time:%" PRIu64 " speed:%" PRIu64, hfuzz->cnts.mutationsCnt, + elapsed_sec, exec_per_sec); +} + int main(int argc, char** argv) { /* * Work around CygWin/MinGW @@ -260,13 +270,7 @@ int main(int argc, char** argv) { cleanupSocketFuzzer(); } - uint64_t exec_per_sec = 0; - uint64_t elapsed_sec = time(NULL) - hfuzz.timing.timeStart; - if (elapsed_sec) { - exec_per_sec = hfuzz.cnts.mutationsCnt / elapsed_sec; - } - LOG_I("Summary: iters:%zu time:%" PRIu64 " execs/s:%" PRIu64, hfuzz.cnts.mutationsCnt, - elapsed_sec, exec_per_sec); + printSummary(&hfuzz); return EXIT_SUCCESS; }
Fix menus links for Datafari CE
@@ -124,7 +124,7 @@ AjaxFranceLabs.HeaderMenusWidget = AjaxFranceLabs.AbstractWidget.extend({ } var getUrl = window.location; - var mcfUrl = "@GET-MCF-IP@"; + var mcfUrl = getUrl.protocol + "//" + getUrl.hostname + ":9080" + "/" + "datafari-mcf-crawler-ui/"; linkDOMElement.prop('href', mcfUrl); linkDOMElement.prop('target', 'blank'); }
Sprite static changed bitwise & to logical &&
@@ -587,7 +587,7 @@ void SceneUpdateActors_b() { if (ACTOR_ANIM_SPEED(ptr) == 4 || (ACTOR_ANIM_SPEED(ptr) == 3 && IS_FRAME_16) || (ACTOR_ANIM_SPEED(ptr) == 2 && IS_FRAME_32) || (ACTOR_ANIM_SPEED(ptr) == 1 && IS_FRAME_64) || (ACTOR_ANIM_SPEED(ptr) == 0 && IS_FRAME_128)) { - if ((ACTOR_MOVING(ptr) & actors[i].sprite_type != SPRITE_STATIC) || ACTOR_ANIMATE(ptr)) + if ((ACTOR_MOVING(ptr) && actors[i].sprite_type != SPRITE_STATIC) || ACTOR_ANIMATE(ptr)) { if (ACTOR_FRAME(ptr) == ACTOR_FRAMES_LEN(ptr) - 1) {
Mark non-used functions in overwrite only mode
@@ -667,11 +667,13 @@ impl Images { fails > 0 } + #[cfg(not(feature = "overwrite-only"))] fn trailer_sz(&self) -> usize { c::boot_trailer_sz(self.align) as usize } // FIXME: could get status sz from bootloader + #[cfg(not(feature = "overwrite-only"))] fn status_sz(&self) -> usize { self.trailer_sz() - (16 + 24) }
Fix missing handle type when NtQueryObject has been hooked by kernel
@@ -625,6 +625,19 @@ VOID PhHandleProviderUpdate( NULL ); + // HACK: Some security products block NtQueryObject with ObjectTypeInformation and return an invalid type + // so we need to lookup the TypeName using the TypeIndex. We should improve PhGetHandleInformationEx for this case + // but for now we'll preserve backwards compat by doing the lookup here. (dmex) + if (PhIsNullOrEmptyString(handleItem->TypeName)) + { + PPH_STRING typeName; + + if (typeName = PhGetObjectTypeName(handleItem->TypeIndex)) + { + PhMoveReference(&handleItem->TypeName, typeName); + } + } + if (handleItem->TypeName && PhEqualString2(handleItem->TypeName, L"File", TRUE) && KphIsConnected()) { KPH_FILE_OBJECT_INFORMATION objectInfo;
ci: specific gcc explicitly on the basic-gcc CI build GitHub Actions default to clang not gcc so this is necessary now.
@@ -61,7 +61,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: config - run: ./config --banner=Configured enable-fips --strict-warnings && perl configdata.pm --dump + run: CC=gcc ./config --banner=Configured enable-fips --strict-warnings && perl configdata.pm --dump - name: make run: make -s -j4 - name: make test
add tilt mode since in sentinel info Sentinel shows tilt mode boolean in info, now it'll show an indication of how long ago it started.
@@ -3919,11 +3919,13 @@ void sentinelInfoCommand(client *c) { "# Sentinel\r\n" "sentinel_masters:%lu\r\n" "sentinel_tilt:%d\r\n" + "sentinel_tilt_since_seconds:%jd\r\n" "sentinel_running_scripts:%d\r\n" "sentinel_scripts_queue_length:%ld\r\n" "sentinel_simulate_failure_flags:%lu\r\n", dictSize(sentinel.masters), sentinel.tilt, + sentinel.tilt ? (intmax_t)((mstime()-sentinel.tilt_start_time)/1000) : -1, sentinel.running_scripts, listLength(sentinel.scripts_queue), sentinel.simfailure_flags);
singAll: Update command line for new version of signtool
@echo off call "%~dp0\SetVsEnv.bat" x86 -for /r "%~dp0\..\" %%i in (*.sys) do "signtool.exe" sign /f "%~dp0\VirtIOTestCert.pfx" "%%i" -for /r "%~dp0\..\" %%i in (*.cat) do "signtool.exe" sign /f "%~dp0\VirtIOTestCert.pfx" "%%i" +for /r "%~dp0\..\" %%i in (*.sys) do "signtool.exe" sign /fd SHA256 /f "%~dp0\VirtIOTestCert.pfx" "%%i" +for /r "%~dp0\..\" %%i in (*.cat) do "signtool.exe" sign /fd SHA256 /f "%~dp0\VirtIOTestCert.pfx" "%%i"
test: Add CreateOneTimeWalletSuccess case
@@ -67,6 +67,38 @@ BoatPlatONWalletConfig get_platon_wallet_settings() return wallet_config; } +START_TEST(test_001CreateWallet_0001CreateOneTimeWalletSuccess) +{ + BSINT32 rtnVal; + BoatPlatONWallet *g_platon_wallet_ptr = NULL; + BoatPlatONWalletConfig wallet = get_platon_wallet_settings(); + extern BoatIotSdkContext g_boat_iot_sdk_context; + + /* 1. execute unit test */ + rtnVal = BoatWalletCreate(BOAT_PROTOCOL_PLATON, NULL, &wallet, sizeof(BoatPlatONWalletConfig)); + + /* 2. verify test result */ + /* 2-1. verify the return value */ + ck_assert_int_eq(rtnVal, 0); + + /* 1. execute unit test */ + rtnVal = BoatWalletCreate(BOAT_PROTOCOL_PLATON, NULL, &wallet, sizeof(BoatPlatONWalletConfig)); + + /* 2. verify test result */ + /* 2-1. verify the return value */ + ck_assert_int_eq(rtnVal, 1); + + /* 2-2. verify the global variables that be affected */ + ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == true); + ck_assert(g_boat_iot_sdk_context.wallet_list[1].is_used == true); + + g_platon_wallet_ptr = BoatGetWalletByIndex(rtnVal); + ck_assert(g_platon_wallet_ptr != NULL); + ck_assert(check_platon_wallet(g_platon_wallet_ptr) == BOAT_SUCCESS); + BoatIotSdkDeInit(); +} +END_TEST + Suite *make_wallet_suite(void) { /* Create Suite */ @@ -78,7 +110,7 @@ Suite *make_wallet_suite(void) /* Add a test case to the Suite */ suite_add_tcase(s_wallet, tc_wallet_api); /* Test cases are added to the test set */ - // tcase_add_test(tc_wallet_api, test_001CreateWallet_0001CreateOneTimeWalletSuccess); + tcase_add_test(tc_wallet_api, test_001CreateWallet_0001CreateOneTimeWalletSuccess); return s_wallet; } \ No newline at end of file
Added AlienVault to Who's using YARA
@@ -49,6 +49,7 @@ helpful extension to YARA developed and open-sourced by Bayshore Networks. * [ActiveCanopy](https://activecanopy.com/) * [Adlice](http://www.adlice.com/) +* [AlienVault] (https://otx.alienvault.com/) * [BAE Systems](http://www.baesystems.com/home?r=ai) * [Bayshore Networks, Inc.](http://www.bayshorenetworks.com) * [BinaryAlert](https://github.com/airbnb/binaryalert)
adds missing semicolon in coap.c This change is necessary for compiling the codebase with arm-none-eabi-gcc. The compiler expects a statement after the `leave_notify_observers` label, and the semicolon provides that without altering the behaviour of the program.
@@ -716,6 +716,7 @@ coap_notify_observers(oc_resource_t *resource, obs = obs->next; } // iterate over observers leave_notify_observers: + ; #ifdef OC_DYNAMIC_ALLOCATION if (buffer) { free(buffer);
threads: reschedule conditionally in thread*Yield
@@ -1144,23 +1144,37 @@ void proc_threadBroadcast(thread_t **queue) void proc_threadWakeupYield(thread_t **queue) { hal_spinlockSet(&threads_common.spinlock); - if (*queue != NULL && *queue != (void *)(-1)) + if (*queue != NULL && *queue != (void *)(-1)) { _proc_threadWakeup(queue); - else - (*queue) = (void *)(-1); hal_cpuReschedule(&threads_common.spinlock); + } + else { + (*queue) = (void *)(-1); + hal_spinlockClear(&threads_common.spinlock); + } return; } void proc_threadBroadcastYield(thread_t **queue) { + int yield = 0; + hal_spinlockSet(&threads_common.spinlock); - if (*queue != (void *)-1) { + if (*queue != (void *)-1 && *queue != NULL) { + yield = 1; while (*queue != NULL) _proc_threadWakeup(queue); } + else { + *queue = (void *)(-1); + } + + if (yield) hal_cpuReschedule(&threads_common.spinlock); + else + hal_spinlockClear(&threads_common.spinlock); + return; }
[sbp] prevent redundant block queueing
@@ -52,6 +52,7 @@ type SimpleBlockFactory struct { quit chan interface{} sdb *state.ChainStateDB ca types.ChainAccessor + prevBlock *types.Block } // New returns a SimpleBlockFactory. @@ -88,6 +89,11 @@ func (s *SimpleBlockFactory) Ticker() *time.Ticker { // QueueJob send a block triggering information to jq. func (s *SimpleBlockFactory) QueueJob(now time.Time, jq chan<- interface{}) { if b, _ := s.ca.GetBestBlock(); b != nil { + if s.prevBlock != nil && s.prevBlock.BlockNo() == b.BlockNo() { + logger.Debug().Msg("previous block not connected. skip to generate block") + return + } + s.prevBlock = b jq <- b } }
Wait until DAO has been sent.
@@ -144,11 +144,9 @@ void cjoin_task_cb() { return; } -/* if (icmpv6rpl_daoSent() == FALSE) { + if (icmpv6rpl_daoSent() == FALSE) { return; } -*/ - opentimers_stop(cjoin_vars.startupTimerId); cjoin_sendPut(NUMBER_OF_EXCHANGES-1);
Check that sk_SSL_CIPHER_value returns non-NULL value. Fixes openssl#19162.
@@ -226,6 +226,10 @@ int ciphers_main(int argc, char **argv) if (!verbose) { for (i = 0; i < sk_SSL_CIPHER_num(sk); i++) { const SSL_CIPHER *c = sk_SSL_CIPHER_value(sk, i); + + if (!ossl_assert(c != NULL)) + continue; + p = SSL_CIPHER_get_name(c); if (p == NULL) break; @@ -241,6 +245,9 @@ int ciphers_main(int argc, char **argv) c = sk_SSL_CIPHER_value(sk, i); + if (!ossl_assert(c != NULL)) + continue; + if (Verbose) { unsigned long id = SSL_CIPHER_get_id(c); int id0 = (int)(id >> 24);
Fix build error from add of fs.read, fs.write.
@@ -1408,7 +1408,7 @@ preadv64v2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags) doRecv(fd, rc); } else if (g_fsinfo && (fd <= g_cfg.numFSInfo) && (g_fsinfo[fd].fd == fd)) { doFSMetric(FS_DURATION, fd, EVENT_BASED, "preadv64v2", 0); - doFSMetric(FS_READ_SIZE, fd, EVENT_BASED, "preadv64v2", rc); + doFSMetric(FS_SIZE_READ, fd, EVENT_BASED, "preadv64v2", rc); } }
Fix import order lint warning
@@ -2,8 +2,8 @@ import glob from "glob"; import { promisify } from "util"; import uuidv4 from "uuid/v4"; import sizeOf from "image-size"; -import { spriteTypeFromNumFrames } from "../helpers/gbstudio"; import Path from "path"; +import { spriteTypeFromNumFrames } from "../helpers/gbstudio"; const FRAME_SIZE = 16;
expand +test-alien-encounter to get keys
:: =/ lane-foo=lane:alef [%| `@ux``@`%lane-foo] :: + =/ =message:alef [/g/talk [%first %post]] + :: + =/ =shut-packet:alef + :* sndr-life=4 + rcvr-life=3 + bone=1 + message-num=1 + [%& num-fragments=1 fragment-num=0 (jam message)] + == + :: =/ =packet:alef :* [sndr=~bus rcvr=~doznec-doznec] encrypted=%.y origin=~ - content=%double-secret + content=(encrypt:alef alice-sym shut-packet) == :: =/ =blob:alef (encode-packet:alef packet) =^ moves1 bob (call bob ~[//unix] %hear lane-foo blob) + =^ moves2 bob + =/ =point:alef + :* rift=1 + life=4 + crypto-suite=1 + encryption-key=`@`alice-pub + authentication-key=`@`0 + sponsor=`~bus + == + %- take + :^ bob /alien ~[//unix] + ^- sign:alef + [%j %public-keys %full [n=[~bus point] ~ ~]] :: ;: weld %+ expect-eq !> moves1 :: %+ expect-eq - !> [%alien [lane-foo packet]~ ~ ~] - !> (~(got by peers.ames-state.bob) ~bus) + !> [~[//unix] %pass /bone/~bus/1 %g %memo ~bus /g/talk [%first %post]]~ + !> moves2 == :: ++ test-message-flow ^- tang
YAML Smith: Fix calculation of relative key name
@@ -175,10 +175,10 @@ void writeYAML (ofstream & output, CppKeySet & keys, CppKey const & parent) string indent; bool sameOrBelowLast = sameLevelOrBelow (last, keys.current ()); auto relative = relativeKeyIterator (keys.current (), parent); - auto baseName = keys.current ().rbegin (); - CppKey current{ keys.current ().getName (), KEY_END }; + auto baseName = --keys.current ().end (); + CppKey current{ parent.getName (), KEY_END }; - while (*relative != *baseName) + while (relative != baseName) { current.addBaseName (*relative); ELEKTRA_LOG_DEBUG ("Current name: %s", current.getName ().c_str ());
Updated RHELINSTALL doc to properly reference 0.7-0
@@ -6,12 +6,12 @@ sudo yum install perl-Digest-MD5 ``` ### Download and Install ``` -wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_0.6-5/aomp_REDHAT_7-0.6-5.x86_64.rpm -sudo rpm -i aomp_REDHAT_7-0.6-5.x86_64.rpm +wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_0.7-0/aomp_REDHAT_7-0.7-0.x86_64.rpm +sudo rpm -i aomp_REDHAT_7-0.7-0.x86_64.rpm ``` If CUDA is not installed the installation may cancel, to bypass this: ``` -sudo rpm -i --nodeps aomp_REDHAT_7-0.6-5.x86_64.rpm. +sudo rpm -i --nodeps aomp_REDHAT_7-0.7-0.x86_64.rpm. ``` Confirm AOMP environment variable is set: ```
Add riscv scalar crypto extension capability
@@ -22,6 +22,16 @@ RISCV_DEFINE_CAP(ZBA, 0, 0) RISCV_DEFINE_CAP(ZBB, 0, 1) RISCV_DEFINE_CAP(ZBC, 0, 2) RISCV_DEFINE_CAP(ZBS, 0, 3) +RISCV_DEFINE_CAP(ZBKB, 0, 4) +RISCV_DEFINE_CAP(ZBKC, 0, 5) +RISCV_DEFINE_CAP(ZBKX, 0, 6) +RISCV_DEFINE_CAP(ZKND, 0, 7) +RISCV_DEFINE_CAP(ZKNE, 0, 8) +RISCV_DEFINE_CAP(ZKNH, 0, 9) +RISCV_DEFINE_CAP(ZKSED, 0, 10) +RISCV_DEFINE_CAP(ZKSH, 0, 11) +RISCV_DEFINE_CAP(ZKR, 0, 12) +RISCV_DEFINE_CAP(ZKT, 0, 13) /* * In the future ...
removed wrappers from releases
@@ -44,7 +44,7 @@ copy "%DXSDK_DIR%\Utilities\bin\x86\PIXWin.exe" ".\Scarface.GenericFix\PIXWin.ex rem Creating archives FOR /d %%X IN (*) DO ( -7za a -tzip "Archives\%%X.zip" "%%X\" -r -xr^^!Archives -x^^!*.pdb -x^^!*.db -x^^!*.ipdb -x^^!*.iobj -x^^!*.tmp -x^^!*.iobj -x^^!*.ual +7za a -tzip "Archives\%%X.zip" "%%X\" -r -xr^^!Archives -x^^!*.pdb -x^^!*.db -x^^!*.ipdb -x^^!*.iobj -x^^!*.tmp -x^^!*.iobj -x^^!*.ual -x^^!*.iobj -x^^!*.wrapper ) EXIT
Gmake2: Clean Makefile tests
function suite.setup() wks, prj = test.createWorkspace() + kind "Makefile" end local function prepare() - local cfg = test.getconfig(prj, "Debug") - kind "Makefile" - gmake2.cpp.allRules(cfg) + prj = test.getproject(wks, 1) + gmake2.makefile.configs(prj) end -- function suite.makefile_configs_empty() - kind "Makefile" - - prj = test.getproject(wks, 1) - gmake2.makefile.configs(prj) + prepare() test.capture [[ ifeq ($(config),debug) TARGETDIR = bin/Debug @@ -63,10 +60,6 @@ endif end function suite.makefile_configs_commands() - kind "Makefile" - - prj = test.getproject(wks, 1) - buildcommands { "touch source" } @@ -75,8 +68,7 @@ endif "rm -f source" } - - gmake2.makefile.configs(prj) + prepare() test.capture [[ ifeq ($(config),debug) TARGETDIR = bin/Debug
fix sysTickMillisecond to _systick_ms of drv_common.c in stm32 bsp
@@ -29,7 +29,7 @@ MSH_CMD_EXPORT(reboot, Reboot System); #endif /* RT_USING_FINSH */ extern __IO uint32_t uwTick; -static uint32_t sysTickMillisecond = 1; +static uint32_t _systick_ms = 1; /* SysTick configuration */ void rt_hw_systick_init(void) @@ -38,9 +38,9 @@ void rt_hw_systick_init(void) NVIC_SetPriority(SysTick_IRQn, 0xFF); - sysTickMillisecond = 1000u / RT_TICK_PER_SECOND; - if(sysTickMillisecond == 0) - sysTickMillisecond = 1; + _systick_ms = 1000u / RT_TICK_PER_SECOND; + if(_systick_ms == 0) + _systick_ms = 1; } /** @@ -71,7 +71,7 @@ uint32_t HAL_GetTick(void) void HAL_IncTick(void) { - uwTick += sysTickMillisecond; + uwTick += _systick_ms; } void HAL_SuspendTick(void)
network: Removed fragile test and added comment for it
@@ -76,6 +76,8 @@ static void testPorts (void) testPortAny ("22d", -1); testPortAny ("myInvalidServiceName", -1); - // These tests aren't portable I guess - testListenPortAny ("62493", 1); + // Tests for ListenPort are not portable, even system ports in a range from 1-1000 can some short time be reachable + // https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers + // Use such tests only locally if you are certain that some ports are actually in use +// testListenPortAny ("22", 1); }
out_cloudwatch: Fix integer overflow on 32 bit systems when converting tv_sec to millis
@@ -437,7 +437,7 @@ int process_event(struct flb_cloudwatch *ctx, struct cw_flush *buf, event = &buf->events[buf->event_index]; event->json = tmp_buf_ptr; event->len = written; - event->timestamp = (unsigned long long) (tms->tm.tv_sec * 1000 + + event->timestamp = (unsigned long long) (tms->tm.tv_sec * 1000ull + tms->tm.tv_nsec/1000000); }
Fix Markdown links in SUPPORT.md Add link to CONTRIBUTING and fix (presumably broken?) link to Github issues CLA: trivial
@@ -55,7 +55,7 @@ particular the manual pages, can be reported as issues. The fastest way to get a bug fixed is to fix it yourself ;-). If you are experienced in programming and know how to fix the bug, you can open a -pull request. The details are covered in the [Contributing](#contributing) section. +pull request. The details are covered in the [Contributing][contributing] section. Don't hesitate to open a pull request, even if it's only a small change like a grammatical or typographical error in the documentation. @@ -89,3 +89,5 @@ anymore, the searchable archive may still contain useful information. [openssl-announce]: https://mta.openssl.org/mailman/listinfo/openssl-announce [openssl-project]: https://mta.openssl.org/mailman/listinfo/openssl-project [openssl-dev]: https://mta.openssl.org/mailman/listinfo/openssl-dev +[github-issues]: https://github.com/openssl/openssl/issues/new/choose +[contributing]: https://github.com/openssl/openssl/blob/master/CONTRIBUTING.md
usb_serial_jtag: remove the strict condition check in esp_phy
#include "esp_rom_crc.h" #include "esp_rom_sys.h" -#if CONFIG_ESP_PHY_ENABLE_USB -#include "hal/usb_serial_jtag_ll.h" -#endif - #include "soc/rtc_cntl_reg.h" #if CONFIG_IDF_TARGET_ESP32C3 #include "soc/syscon_reg.h" @@ -660,13 +656,7 @@ void esp_phy_load_cal_and_init(void) #endif #if CONFIG_ESP_PHY_ENABLE_USB -#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG || CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG - if (usb_serial_jtag_ll_txfifo_writable() == 1) -#endif // Only check usb_jtag status with usb_jtag related config options enabled. - { - // If the USB_SEIRAL_JTAG is really in use. phy_bbpll_en_usb(true); - } #endif #ifdef CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
Use canonical include format
#include <Zydis/Mnemonic.h> #include <Zydis/Register.h> #include <Zydis/SharedTypes.h> -#include "Zydis/DecoderTypes.h" +#include <Zydis/DecoderTypes.h> #ifdef __cplusplus extern "C" {
Remove extraneous va_end
@@ -412,7 +412,6 @@ static void add_value(request *r, const char *parname, const char *fmt, ...) va_end(list); put_value(r, parname, buffer, TRUE, FALSE, FALSE); - va_end(list); } static void _reqmerge2(request *a, const request *b)
docs/reference/speed_python: Update that read-only buffers are accepted. As allowed by recent
@@ -293,9 +293,11 @@ microseconds. The rules for casting are as follows: * The argument to a bool cast must be integral type (boolean or integer); when used as a return type the viper function will return True or False objects. * If the argument is a Python object and the cast is ``ptr``, ``ptr``, ``ptr16`` or ``ptr32``, - then the Python object must either have the buffer protocol with read-write capabilities - (in which case a pointer to the start of the buffer is returned) or it must be of integral - type (in which case the value of that integral object is returned). + then the Python object must either have the buffer protocol (in which case a pointer to the + start of the buffer is returned) or it must be of integral type (in which case the value of + that integral object is returned). + +Writing to a pointer which points to a read-only object will lead to undefined behaviour. The following example illustrates the use of a ``ptr16`` cast to toggle pin X1 ``n`` times:
graph-validator-post: reject invalid input
:: +notification-kind: no notifications for now :: ++ notification-kind ~ + ++ transform-add-nodes + |= [=index =post =atom was-parent-modified=?] + ^- [^index ^post] + =- [- post(index -)] + ?~ index !! + ?: ?=([@ ~] index) + [atom ~] + ?: was-parent-modified + ~|(%cannot-submit-parents-with-prepopulated-children !!) + `^index`(snoc `^index`(snip index) atom) -- ++ grab |%
apps : include platform/gnu Kconfig This patch adds support to source missing gnu/Kconfig It is required to include CONFIG_HAVE_CXXINITIALIZE in the build configuration
@@ -14,4 +14,7 @@ config PLATFORM_CONFIGDATA storage mechanism is not visible to applications so underlying non- volatile storage can be used: A file, EEPROM, hardcoded values in FLASH, etc. + +source "$APPSDIR/platform/gnu/Kconfig" + endmenu
doccords: flop order of +print-arm results
|= [name=tape adoc=what pdoc=what cdoc=what gen=hoon sut=type] ^- tang ~? >> debug %print-arm + %- flop ;: weld (print-header name adoc) `tang`[[%leaf ""] [%leaf "product:"] ~]
decisions: clarify to have open mind for drafts
@@ -18,7 +18,7 @@ Additionally, decision that are not yet "Decided" can be become "Rejected" or "D ## Drafts -> This step is recommended if the problem is not yet clear to the core developers. +> This step is highly recommended and it is even required if the problem is not yet clear to all the core developers. The first step is to create a PR with: @@ -26,6 +26,15 @@ The first step is to create a PR with: - a link from [README.md](../README.md) from the "Drafts" section to this decision. - optional backlinks from related decisions. +This step is very important: + +- it is brainstorming for completely new ideas. +- it clarifies the scope of the decision. +- it clarifies relation to other problems. + +Decisions will have much smoother further steps if this step is done carefully without prejudice. +It is especially important that one shouldn't have a fixed mind-set about a preferred solution from the beginning. + > Everyone must agree that the problem exists so that a decision PR in "Drafts" step can be merged. > At least the problem must be clear to everyone involved before the decision can leave the "Drafts" step. > It must be so clear that everyone would be able to describe a test case that shows if a solution fixes the problem.
peview: Fix section sizes, update tab layout
@@ -117,6 +117,17 @@ VOID PvPeProperties( ); PvAddPropPage(propContext, newPage); + // Load Config page + if (NT_SUCCESS(PhGetMappedImageDataEntry(&PvMappedImage, IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG, &entry)) && entry->VirtualAddress) + { + newPage = PvCreatePropPageContext( + MAKEINTRESOURCE(IDD_PELOADCONFIG), + PvpPeLoadConfigDlgProc, + NULL + ); + PvAddPropPage(propContext, newPage); + } + // Imports page if ((NT_SUCCESS(PhGetMappedImageImports(&imports, &PvMappedImage)) && imports.NumberOfDlls != 0) || (NT_SUCCESS(PhGetMappedImageDelayImports(&imports, &PvMappedImage)) && imports.NumberOfDlls != 0)) @@ -140,17 +151,6 @@ VOID PvPeProperties( PvAddPropPage(propContext, newPage); } - // Load Config page - if (NT_SUCCESS(PhGetMappedImageDataEntry(&PvMappedImage, IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG, &entry)) && entry->VirtualAddress) - { - newPage = PvCreatePropPageContext( - MAKEINTRESOURCE(IDD_PELOADCONFIG), - PvpPeLoadConfigDlgProc, - NULL - ); - PvAddPropPage(propContext, newPage); - } - // CLR page if (NT_SUCCESS(PhGetMappedImageDataEntry(&PvMappedImage, IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR, &entry)) && entry->VirtualAddress && @@ -554,10 +554,9 @@ INT_PTR CALLBACK PvpPeGeneralDlgProc( lvItemIndex = PhAddListViewItem(lvHandle, MAXINT, sectionName, NULL); PhPrintPointer(pointer, UlongToPtr(PvMappedImage.Sections[i].VirtualAddress)); - PhSetListViewSubItem(lvHandle, lvItemIndex, 1, pointer); - PhPrintPointer(pointer, UlongToPtr(PvMappedImage.Sections[i].SizeOfRawData)); - PhSetListViewSubItem(lvHandle, lvItemIndex, 2, pointer); + PhSetListViewSubItem(lvHandle, lvItemIndex, 1, pointer); + PhSetListViewSubItem(lvHandle, lvItemIndex, 2, PhaFormatSize(PvMappedImage.Sections[i].SizeOfRawData, -1)->Buffer); } } }
Update lib/http3/server.c
@@ -1238,7 +1238,7 @@ static int handle_input_expect_headers(struct st_h2o_http3_server_stream_t *stre /* validate semantic requirement */ if (!h2o_req_validate_pseudo_headers(&stream->req)) { - *err_desc = "Invalid pseudo headers"; + *err_desc = "invalid pseudo headers"; return H2O_HTTP3_ERROR_GENERAL_PROTOCOL; }
'hawq stop cluster' failed when rps.sh have some path errors (e.g. CATALINA_HOME)
@@ -964,8 +964,8 @@ class HawqStop: if self.hawq_acl_type == 'ranger': self.stop_rps() if self.hawq_acl_type == 'unknown': - logger.warning("try to stop RPS when hawq_acl_type is unknown") - self.stop_rps() + logger.warning("Try to stop RPS when hawq_acl_type is unknown") + self.stop_rps(check_ret = False) # Execute segment stop command on each node. segments_return_flag = self._stopAllSegments() @@ -1046,9 +1046,11 @@ class HawqStop: result = remote_ssh(cmd_str, self.master_host_name, self.user) return result - def stop_rps(self): + def stop_rps(self, check_ret = True): logger.info("Stop Ranger plugin service") - check_return_code(self._stop_rps(), logger, \ + result = self._stop_rps() + if check_ret: + check_return_code(result, logger, \ "Ranger plugin service stop failed, exit", "Ranger plugin service stopped successfully") def run(self): @@ -1058,8 +1060,8 @@ class HawqStop: if self.hawq_acl_type == 'ranger': self.stop_rps() if self.hawq_acl_type == 'unknown': - logger.warning("try to stop RPS when hawq_acl_type is unknown") - self.stop_rps() + logger.warning("Try to stop RPS when hawq_acl_type is unknown") + self.stop_rps(check_ret = False) elif self.node_type == "standby": if self.standby_host_name.lower() not in ('', 'none'): check_return_code(self._stop_standby(), logger, \
build: fixing trivial typo in global header
@@ -5594,7 +5594,7 @@ extern const char * liquid_window_str[LIQUID_WINDOW_NUM_FUNCTIONS][2]; // Print compact list of existing and available windowing functions void liquid_print_windows(); -// returns modulation_scheme based on input string +// returns window type based on input string liquid_window_type liquid_getopt_str2window(const char * _str); // Kaiser-Bessel derived window (single sample)
fixing tx already in mempool errors in test
@@ -310,7 +310,6 @@ class RestrictedAssetsTest(RavenTestFramework): assert_raises_rpc_error(None, "Invalid Raven change address", n0.addtagtoaddress, tag, address, "garbagechangeaddress") n0.addtagtoaddress(tag, address, change_address) - n0.addtagtoaddress(tag, address, change_address) # redundant tagging ok if consistent n0.generate(1) assert_raises_rpc_error(-32600, "add-qualifier-when-already-assigned", n0.addtagtoaddress, tag, address, change_address) @@ -361,7 +360,6 @@ class RestrictedAssetsTest(RavenTestFramework): assert_raises_rpc_error(None, "Invalid Raven change address", n0.removetagfromaddress, tag, address, "garbagechangeaddress") n0.removetagfromaddress(tag, address, change_address) - n0.removetagfromaddress(tag, address, change_address) # redundant untagging ok if consistent n0.generate(1) assert_raises_rpc_error(-32600, "removing-qualifier-when-not-assigned", n0.removetagfromaddress, tag, address, change_address) @@ -435,7 +433,6 @@ class RestrictedAssetsTest(RavenTestFramework): assert_raises_rpc_error(None, "Invalid Raven change address", n0.freezeaddress, asset_name, address, "garbagechangeaddress") n0.freezeaddress(asset_name, address, rvn_change_address) - n0.freezeaddress(asset_name, address, rvn_change_address) # redundant freezing ok if consistent n0.generate(1) assert_raises_rpc_error(-32600, "freeze-address-when-already-frozen", n0.freezeaddress, asset_name, address, rvn_change_address) @@ -458,7 +455,6 @@ class RestrictedAssetsTest(RavenTestFramework): assert_raises_rpc_error(None, "Invalid Raven change address", n0.unfreezeaddress, asset_name, address, "garbagechangeaddress") n0.unfreezeaddress(asset_name, address, rvn_change_address) - n0.unfreezeaddress(asset_name, address, rvn_change_address) # redundant unfreezing ok if consistent n0.generate(1) assert_raises_rpc_error(-32600, "unfreeze-address-when-not-frozen", n0.unfreezeaddress, asset_name, address, rvn_change_address)
Fix treeview dark theme
@@ -638,9 +638,11 @@ BOOLEAN CALLBACK PhpThemeWindowEnumChildWindows( switch (PhpThemeColorMode) { case 0: // New colors + PhSetControlTheme(WindowHandle, L"explorer"); PhSetControlTheme(tooltipWindow, L""); break; case 1: // Old colors + PhSetControlTheme(WindowHandle, L"DarkMode_Explorer"); PhSetControlTheme(tooltipWindow, L"DarkMode_Explorer"); break; }
[chainmaker][#436]add test_02InitSetTxParam_0006setTxParamFailureOddParam
@@ -141,6 +141,17 @@ START_TEST(test_02InitSetTxParam_0005setTxParamFailureLongParam) } END_TEST +START_TEST(test_02InitSetTxParam_0006setTxParamFailureOddParam) +{ + BSINT32 rtnVal; + BoatHlchainmakerTx tx_ptr; + + rtnVal = BoatHlchainmakerAddTxParam(&tx_ptr, 9, "key1", "vlaue1", "key2", "vlaue2", "key3", "vlaue3", + "key4", "vlaue4", "key5"); + ck_assert_int_eq(rtnVal, -100); +} +END_TEST + Suite *make_parameters_suite(void) @@ -159,6 +170,7 @@ Suite *make_parameters_suite(void) tcase_add_test(tc_paramters_api, test_02InitSetTxParam_0003SetTxParamSuccess); tcase_add_test(tc_paramters_api, test_02InitSetTxParam_0004setTxParamFailureShortParam); tcase_add_test(tc_paramters_api, test_02InitSetTxParam_0005setTxParamFailureLongParam); + tcase_add_test(tc_paramters_api, test_02InitSetTxParam_0006setTxParamFailureOddParam); return s_paramters; }
FIx syntax style
@@ -377,8 +377,8 @@ esp_pbuf_memcmp(const esp_pbuf_p pbuf, const void* data, size_t len, size_t offs uint8_t el; const uint8_t* d = data; - if (pbuf == NULL || data == NULL || len == 0 || /* Input parameters check */ - pbuf->tot_len < (offset + len)) { /* Check of valid ranges */ + if (pbuf == NULL || data == NULL || len == 0/* Input parameters check */ + || pbuf->tot_len < (offset + len)) { /* Check of valid ranges */ return ESP_SIZET_MAX; /* Invalid check here */ }
Documentation cleanup for man1/nseq.pod
@@ -34,11 +34,11 @@ option is not specified. =item B<-out filename> -specifies the output filename or standard output by default. +Specifies the output filename or standard output by default. =item B<-toseq> -normally a Netscape certificate sequence will be input and the output +Normally a Netscape certificate sequence will be input and the output is the certificates contained in it. With the B<-toseq> option the situation is reversed: a Netscape certificate sequence is created from a file of certificates. @@ -62,7 +62,7 @@ The B<PEM> encoded form uses the same headers and footers as a certificate: -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- -A Netscape certificate sequence is a Netscape specific form that can be sent +A Netscape certificate sequence is a Netscape specific format that can be sent to browsers as an alternative to the standard PKCS#7 format when several certificates are sent to the browser: for example during certificate enrollment. It is used by Netscape certificate server for example. @@ -74,7 +74,7 @@ output files and allowing multiple certificate files to be used. =head1 COPYRIGHT -Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy
Changed release detection to use grep to work on more environments
@@ -7,11 +7,7 @@ Group: *Development/Libraries* URL: http://e2epi.internet2.edu/owamp/ Source: %{name}-%{version}.tar.gz Packager: Aaron Brown <[email protected]> -%if 0%{?el7} BuildRequires: libtool, I2util, libcap-devel, openssl-devel, systemd, selinux-policy-devel -%else -BuildRequires: libtool, I2util, libcap-devel, openssl-devel -%endif Requires: owamp-client, owamp-server, I2util BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Remove 'noxsave' bootarg in dm sample script xsave feature is enabled in hv and exposed to uos
@@ -22,7 +22,7 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 3,virtio-blk,/root/clear-21260-kvm.img \ -s 4,virtio-net,tap0 \ -k /usr/lib/kernel/org.clearlinux.pk414-standard.4.14.23-19 \ - -B "root=/dev/vda3 rw rootwait noxsave maxcpus=$2 nohpet console=tty0 console=hvc0 \ + -B "root=/dev/vda3 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \ console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \ consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \ i915.enable_hangcheck=0 i915.nuclear_pageflip=1" $vm_name
Fix multiple statements on code completion
@@ -666,7 +666,7 @@ fileprivate func parseArgs(_ args: inout [String]) { PyInputHelper.userInput = [ "from _codecompletion import suggestForCode", "source = '''", - text, + text.replacingOccurrences(of: "'", with: "\\'"), "'''", "suggestForCode(source, '\(document?.fileURL.path ?? "")')" ].joined(separator: ";")