message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fixup ctime test. | @@ -1000,6 +1000,7 @@ void testbound_selftest(void)
tb_assert( v && strcmp(v, "1ww2ww3") == 0);
free(v);
+#ifndef USE_WINSOCK
v = macro_process(store, NULL, "it is ${ctime 123456}");
tb_assert( v && strcmp(v, "it is Fri Jan 2 10:17:36 1970") == 0);
free(v);
@@ -1013,6 +1014,7 @@ void testbound_selftest(void)
v = macro_... |
flash_encryption: Fix next spi boot crypt counter value after a plaintext flash | @@ -264,8 +264,8 @@ static esp_err_t encrypt_flash_contents(uint32_t spi_boot_crypt_cnt, bool flash_
/* Set least significant 0-bit in spi_boot_crypt_cnt */
int ffs_inv = __builtin_ffs((~spi_boot_crypt_cnt) & 0x7);
/* ffs_inv shouldn't be zero, as zero implies spi_boot_crypt_cnt == 0xFF */
- uint32_t new_spi_boot_crypt... |
usb.h: define some stlink usb pid macros, stop copypasting.
ease v1/v2/v2.1/v3 identification and supported devices filtering | @@ -29,6 +29,24 @@ extern "C" {
#define STLINK_USB_PID_STLINK_V3S_PID 0x374f
#define STLINK_USB_PID_STLINK_V3_2VCP_PID 0x3753
+#define STLINK_V1_USB_PID(pid) ((pid) == STLINK_USB_PID_STLINK )
+
+#define STLINK_V2_USB_PID(pid) ((pid) == STLINK_USB_PID_STLINK_32L || \
+ (pid) == STLINK_USB_PID_STLINK_32L_AUDIO || \
+ (pi... |
TASH: Add cond and endcond for whole APIs
There is no testcase for TASH. But actually, user needs these APIs.
Before making testcase, let's mark cond..endcond. | * language governing permissions and limitations under the License.
*
****************************************************************************/
+///@cond
/**
* @defgroup TASH SHELL
* @brief Provides APIs for shell (TASH - TinyAra SHell)
@@ -88,7 +89,6 @@ int tash_cmd_install(const char *str, TASH_CMD_CALLBACK cb, i... |
doc: fix OPENSSL_VERSION_NUMBER length in the synopsis
The number has 8 digits (not 9). It is a single integer `0xMNN00PP0L`. | @@ -41,7 +41,7 @@ OpenSSL_version_num, OPENSSL_info
Deprecated:
/* from openssl/opensslv.h */
- #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
+ #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnL
/* from openssl/crypto.h */
unsigned long OpenSSL_version_num();
|
Move safer_memcmp to psa_crypto_core.h
Same change as made by Steven Cooreman, although not yet merged. | #include "mbedtls/gcm.h"
#include "mbedtls/error.h"
-/* Constant-time buffer comparison. This is duplication of code from
- * psa_crypto.c, but has nowhere private I can put it for the minute. Really
- belongs in the constant time module, when that gets implemented */
-static inline int safer_memcmp( const uint8_t *a, ... |
cache: add key for cache path | @@ -26,6 +26,7 @@ struct _cacheHandle
{
KeySet * modules;
Key * cacheParent;
+ Key * cachePath;
Plugin * resolver;
Plugin * cacheStorage;
};
@@ -40,17 +41,20 @@ int elektraCacheOpen (Plugin * handle, Key * errorKey ELEKTRA_UNUSED)
ch->modules = ksNew (0, KS_END);
elektraModulesInit (ch->modules, 0);
ch->cacheParent = k... |
chat-hook: fix another poke-import issue | =/ sty=state-10
:* %10
(remake-map ;;((tree [path ship]) +<.arc))
- ;;(? +<-.arc)
+ ;;(? +>-.arc)
(remake-map ;;((tree [path ?]) +>+.arc))
==
:_ sty
|
session_client DOC clarification | @@ -548,6 +548,8 @@ int nc_session_ntf_thread_running(const struct nc_session *session);
/**
* @brief Receive NETCONF RPC reply.
*
+ * @note This function can be called in a single thread only.
+ *
* @param[in] session NETCONF session from which the function gets data. It must be the
* client side session object.
* @pa... |
change incorrectly documented output types | @@ -21,6 +21,7 @@ _swaymsg_ [options...] [message]
*-p, --pretty*
Use pretty output even when not using a tty.
+ Not available for all message types.
*-q, --quiet*
Sends the IPC message but does not print the response from sway.
@@ -60,20 +61,20 @@ _swaymsg_ [options...] [message]
_swaymsg -- mark --add test_ instead o... |
dill: stop sending extra arvo move | [~ ..^$]
:: this lets lib/helm send %heft a la |mass
::
- =/ not=note-dill
- ?:(?=([%crud %hax-heft ~] p.task) [%heft ~] p.task)
- [[u.hey.all %slip %d not]~ ..^$]
+ =? p.task ?=([%crud %hax-heft ~] p.task) [%heft ~]
+ ::
+ $(hen u.hey.all, wrapped-task p.task)
:: a %sunk notification from %jail comes in on an unfamili... |
Catch error out on NULL condition for churl_init_download. | @@ -108,6 +108,8 @@ static void process_request(ClientContext* client_context, char *uri)
print_http_headers(client_context->http_headers);
client_context->handle = churl_init_download(uri, client_context->http_headers);
+ if (client_context->handle == NULL)
+ elog(ERROR, "Unsuccessful connection to uri: %s", uri);
mem... |
separate artifacts for each build_type | @@ -40,7 +40,7 @@ jobs:
- uses: actions/upload-artifact@v2
if: failure()
with:
- name: build-artifact-ubuntu18
+ name: build-artifact-ubuntu18-${{ matrix.build_type }}
path: builddir/meson-logs/
build_fedora:
@@ -79,7 +79,7 @@ jobs:
- uses: actions/upload-artifact@v2
if: failure()
with:
- name: build-artifact-fedora-la... |
I updated FAQ 23 with the latest list of compilers to use when building
VisIt. This resolves | </ul>
<h2>23. Which compilers can be used to build VisIt? </h2>
-<p>The following compilers can be used to build VisIt on the listed platforms, though this is not an exhaustive list and newer versions of these compilers often work. In general, any g++ 4.x series compiler will build VisIt just fine. Earlier versions of ... |
libcupsfilters: Small fixes on previous commit. | @@ -2650,7 +2650,7 @@ cfCreatePPDFromIPP2(char *buffer, /* I - Filename buffer */
cupsFilePrintf(fp, "*ColorModel RGB/%s: \"\"\n",
(human_readable2 ? human_readable2 : "Color"));
- if (!default_color)
+ if (!defattr)
default_color = "RGB";
/* Apparently some printers only advertise color support, so make sure
@@ -2669,... |
'h2o_multithread_send_request()' is not used, so remove it | typedef struct st_h2o_multithread_receiver_t h2o_multithread_receiver_t;
typedef struct st_h2o_multithread_queue_t h2o_multithread_queue_t;
-typedef struct st_h2o_multithread_request_t h2o_multithread_request_t;
typedef void (*h2o_multithread_receiver_cb)(h2o_multithread_receiver_t *receiver, h2o_linklist_t *messages);... |
Fixed rendering of %ire %url speeches to be slightly more consistent with regular %url. | $url
:_ ~
=+ ful=(apix:en-purl:html url.sep)
- =+ pef=(weld (fall pre "") "/")
+ =+ pef=(fall pre "")
+ :: clean up prefix if needed.
+ =? pef =((scag 1 (flop pef)) " ")
+ (scag (dec (lent pef)) pef)
+ =. pef (weld "/" pef)
=. wyd (sub wyd +((lent pef))) :: account for prefix.
:: if the full url fits, just render it.
?... |
Fix: get_min_convex_successor to return minimum convex successor that is directly connected to current scc | @@ -1660,7 +1660,9 @@ int *get_convex_successors(int scc_id, PlutoProg *prog,
num_successors = 0;
for (i = scc_id + 1; i < num_sccs; i++) {
+
if (is_convex_scc(scc_id, i, ddg, prog)) {
+ printf("SCC %d and %d are convex\n", scc_id, i);
if (convex_successors == NULL) {
convex_successors = (int *)malloc(num_sccs * sizeof... |
Removed clang compiler | @@ -5,10 +5,6 @@ os:
- linux
- osx
-compiler:
- - gcc
- - clang
-
addons:
apt:
packages:
@@ -20,7 +16,6 @@ addons:
- swig
- python3-numpy
-
# Installs system level dependencies
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
Zork: remove pd_snk_is_vbus_provided
Zork uses CONFIG_USB_PD_VBUS_DETECT_TCPC and ppc_is_vbus_present()
doesn't exist.
BRANCH=none
TEST=none | @@ -77,11 +77,6 @@ int pd_set_power_supply_ready(int port)
return EC_SUCCESS;
}
-int pd_snk_is_vbus_provided(int port)
-{
- return ppc_is_vbus_present(port);
-}
-
int board_vbus_source_enabled(int port)
{
return ppc_is_sourcing_vbus(port);
|
union BUGFIX clear invalid subvalues
Fixes | @@ -73,7 +73,11 @@ union_store_type(const struct ly_ctx *ctx, struct lysc_type *type, struct lyd_va
ret = type->plugin->store(ctx, type, value, value_len, 0, subvalue->format, subvalue->prefix_data, subvalue->hints,
subvalue->ctx_node, &subvalue->value, unres, err);
- LY_CHECK_RET((ret != LY_SUCCESS) && (ret != LY_EINC... |
Changed reverse for loop so it can deal with uint32_t. | @@ -2449,8 +2449,7 @@ ins_agent_key_val (GLogItem * logitem, uint32_t numdate) {
static int
clean_old_data_by_date (uint32_t numdate) {
uint32_t *dates = NULL;
- uint32_t len = 0;
- int idx;
+ uint32_t idx, len = 0;
if (ht_get_size_dates () < conf.keep_last)
return 1;
@@ -2459,7 +2458,7 @@ clean_old_data_by_date (uint3... |
[kernel] add a default allocation of _jacobianWrenchTwist since _jacobianMGyrtwist is always present. Correct the size of _jacobianMGyrtwist | @@ -400,8 +400,14 @@ void NewtonEulerDS::init()
_wrench.reset(new SiconosVector(_n));
_mGyr.reset(new SiconosVector(3,0.0));
+ /** The follwing jacobian are always allocated since we have always
+ * Gyroscopical forces that has non linear forces
+ * This should be remove if the integration is explicit or _nullifyMGyr(f... |
Flesh out changed_predicate_spec.
Discovered that there is no way for an image to transition from changed to not changed.
Added a test to document this behavior by saving an image and verifying that `changed?` still returns true. | RSpec.describe Magick::Image, "#changed?" do
- it "works" do
- skip 'image is initially changed'
+ it "returns true when a new image is instantiated" do
+ image = described_class.new(2, 2)
- image = described_class.new(20, 20)
+ expect(image.changed?).to be(true)
+ end
+
+ it "returns false after an image is loaded fro... |
GTest macros define a local 'listener' object that shadows the global listener object, rename it (and make it a function local). | @@ -19,7 +19,7 @@ using namespace std;
#define TOKEN "6d084bbf6a9644ef83f40a77c9e34580-c2d379e0-4408-4325-9b4d-2a7d78131e14-7322"
-EventDecoderListener listener;
+EventDecoderListener eventDecoderListener;
void Configure(ILogConfiguration& config)
{
@@ -73,10 +73,10 @@ void SendEvents(ILogger* pLogger, uint8_t eventCou... |
vcl: validate vep handle when copying sessions on fork
When copying sessions from parent on fork, we should validate vep handle
in order to EPOLL_CTL_DEL in vcl_session_cleanup correctly when child
exit.
Type: fix | @@ -800,6 +800,34 @@ vls_share_sessions (vls_worker_t * vls_parent_wrk, vls_worker_t * vls_wrk)
/* *INDENT-ON* */
}
+static void
+vls_validate_veps (vcl_worker_t *wrk)
+{
+ vcl_session_t *s;
+ u32 session_index, wrk_index;
+
+ pool_foreach (s, wrk->sessions)
+ {
+ if (s->vep.vep_sh != ~0)
+ {
+ vcl_session_handle_parse... |
Expand public doctype allocation test | @@ -143,6 +143,8 @@ static unsigned long dummy_handler_flags = 0;
#define DUMMY_UNPARSED_ENTITY_DECL_HANDLER_FLAG (1UL << 11)
#define DUMMY_START_NS_DECL_HANDLER_FLAG (1UL << 12)
#define DUMMY_END_NS_DECL_HANDLER_FLAG (1UL << 13)
+#define DUMMY_START_DOCTYPE_DECL_HANDLER_FLAG (1UL << 14)
+#define DUMMY_END_DOCTYPE_DECL... |
Fix edge case bug in numlen, dropping use of math.h functions
(Specifically, numlen when called with INT_MIN gave an incorrect
result, because abs(INT_MIN) == INT_MIN < 0.) | @@ -12,11 +12,12 @@ int wrap(int i, int max) {
}
int numlen(int n) {
- if (n == 0) {
- return 1;
+ int j = n <= 0 ? 1 : 0;
+ while (n) {
+ j++;
+ n /= 10;
}
- // Account for the '-' in negative numbers.
- return log10(abs(n)) + (n > 0 ? 1 : 2);
+ return j;
}
uint32_t parse_color(const char *color) {
|
Minor bug in Node Port installation. | @@ -138,6 +138,11 @@ set_target_properties(${target}
# Include directories
#
+execute_process(
+ COMMAND npm install
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
execute_process(
COMMAND node -p "require('node-addon-api').include"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
Removes RSA constants
This commit removes the RSA
constants MBEDTLS_RSA_PUBLIC
and MBEDTLS_RSA_PRIVATE because
they are now superfluous given
that the mode parameter has been
removed. | /*
* RSA constants
*/
-#define MBEDTLS_RSA_PUBLIC 0 /**< Request private key operation. */
-#define MBEDTLS_RSA_PRIVATE 1 /**< Request public key operation. */
#define MBEDTLS_RSA_PKCS_V15 0 /**< Use PKCS#1 v1.5 encoding. */
#define MBEDTLS_RSA_PKCS_V21 1 /**< Use PKCS#1 v2.1 encoding. */
|
Remove usage of clap-core | @@ -53,7 +53,7 @@ if (${CLAP_BUILD_TESTS})
macro(clap_compile_cpp SUFFIX EXT STDC STDCPP)
add_executable(clap-compile-${SUFFIX} EXCLUDE_FROM_ALL src/main.${EXT})
- target_link_libraries(clap-compile-${SUFFIX} clap-core)
+ target_link_libraries(clap-compile-${SUFFIX} clap)
set_target_properties(clap-compile-${SUFFIX} PR... |
doc: small formatting improvement in src/plugins/template/README.md | @@ -30,7 +30,7 @@ cd src/plugins
../../scripts/copy-template yourplugin
```
-Then update the README.md of your newly created plugin:
+Then update the `README.md` of your newly created plugin:
- enter your full name+email in `infos/author`
- make sure `status`, `placements`, and other clauses conform to
|
actions: enable jni plugin | @@ -8,8 +8,7 @@ env:
BUILD_TYPE: RelWithDebInfo
# Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740
# The curlget tests fail: https://github.com/ElektraInitiative/libelektra/issues/3382
- # The tests fail with jni: https://github.com/ElektraIniti... |
win32: AllocConsole if AttachConsole fails;
This may help retrieve stdout when running lovr outside of cmd. | @@ -42,9 +42,15 @@ void lovrPlatformSleep(double seconds) {
}
void lovrPlatformOpenConsole() {
- if (AttachConsole(ATTACH_PARENT_PROCESS)) {
+ if (!AttachConsole(ATTACH_PARENT_PROCESS)) {
+ if (GetLastError() != ERROR_ACCESS_DENIED) {
+ if (!AllocConsole()) {
+ return;
+ }
+ }
+ }
+
freopen("CONOUT$", "w", stdout);
fre... |
component/bt: Fix bug: AVRC remote_bda error when disconnect | @@ -201,7 +201,7 @@ static void handle_rc_disconnect (tBTA_AV_RC_CLOSE *p_rc_close)
btc_rc_vb.rc_handle = 0;
btc_rc_vb.rc_connected = FALSE;
- memset(btc_rc_vb.rc_addr, 0, sizeof(BD_ADDR));
+ memcpy(btc_rc_vb.rc_addr, p_rc_close->peer_addr, sizeof(BD_ADDR));
memset(btc_rc_vb.rc_notif, 0, sizeof(btc_rc_vb.rc_notif));
bt... |
Adapt telemetry to work with native configuration | @@ -16,10 +16,13 @@ luos_telemetry = {"telemetry_type": "luos_engine_build",
"system": sys.platform,
"unix_time": env.get("UNIX_TIME"),
"platform": env.get("PIOPLATFORM"),
- "mcu": env.get("BOARD_MCU"),
- "f_cpu": env.get("BOARD_F_CPU"),
"project_path": env.get("PROJECT_DIR")}
+if (env.get("BOARD_MCU") != None):
+ luos... |
Support format parameter in newTextureData; | @@ -113,7 +113,8 @@ int l_lovrDataNewTextureData(lua_State* L) {
if (lua_type(L, 1) == LUA_TNUMBER) {
int width = luaL_checknumber(L, 1);
int height = luaL_checknumber(L, 2);
- textureData = lovrTextureDataGetBlank(width, height, 0x0, FORMAT_RGBA);
+ TextureFormat format = luaL_checkoption(L, 3, "rgba", TextureFormats)... |
raspberrypi4-64.conf: Uboot configuration and drop armstub
We drop armstub configuration because the new firmware includes them. | @@ -19,10 +19,16 @@ RPI_KERNEL_DEVICETREE = " \
SDIMG_KERNELIMAGE ?= "kernel8.img"
SERIAL_CONSOLES ?= "115200;ttyS0"
-MACHINE_FEATURES_append = " armstub vc4graphics"
+UBOOT_MACHINE = "rpi_4_config"
+MACHINE_FEATURES_append = " vc4graphics"
+
VC4DTBO ?= "vc4-fkms-v3d"
-ARMSTUB ?= "armstub8-gic.bin"
+# When u-boot is en... |
Fix file handle leak (issue | @@ -206,6 +206,7 @@ char *ReadFromProcess(const char *command, unsigned timeout_ms)
/* Wait for data (or a timeout). */
rc = select(fds[0] + 1, &fs, NULL, &fs, &tv);
if(rc == 0) {
+ close(fds[0]);
/* Timeout */
Warning(_("timeout: %s did not complete in %u milliseconds"),
command, timeout_ms);
@@ -227,6 +228,7 @@ char ... |
Fix compilation in Visual studio | @@ -1099,9 +1099,9 @@ int LMS7_Device::SetNormalizedGain(bool dir_tx, size_t chan,double gain)
{
const int gain_total = 27 + 12 + 31;
if (dir_tx)
- SetGain(dir_tx,chan,63*gain+0.49);
+ return SetGain(dir_tx,chan,63*gain+0.49);
else
- SetGain(dir_tx,chan,gain*gain_total+0.49);
+ return SetGain(dir_tx,chan,gain*gain_tota... |
Move declarations of lapack_complex_custom types outside the extern C
fixes | #include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*----------------------------------------------------------------------------*/
-#ifndef lapack_int
-#define lapack_int int
-#endif
-
-#ifndef lapack_logical
-#define lapack_logical lapack_int
-#endif
-
-/* f2c, hence clapack and MacOS Accelerate, return... |
driver/mcpwm: add an option to capture on both edges.
However, The functionality of capturing on both edges is alternatively done with passing in the two flags ORed together: MCPWM_NEG_EDGE|MCPWM_POS_EDGE
closes
closes | @@ -83,4 +83,5 @@ typedef enum {
typedef enum {
MCPWM_NEG_EDGE = BIT(0), /*!<Capture the negative edge*/
MCPWM_POS_EDGE = BIT(1), /*!<Capture the positive edge*/
+ MCPWM_BOTH_EDGE = BIT(1)|BIT(0), /*!<Capture both edges*/
} mcpwm_capture_on_edge_t;
|
doc: update KMAC doc to not say that the `KEY\' parameter needs to be set before the init call | @@ -47,8 +47,10 @@ The default value is 0.
=back
-The "custom" and "key" parameters must be set before EVP_MAC_init().
+The "custom" parameter must be set as part of or before the EVP_MAC_init() call.
The "xof" and "size" parameters can be set at any time before EVP_MAC_final().
+The "key" parameter is set as part of t... |
Fix HttpClient SendRequestAsync bugs
* potential fix
potential fix
* pr feedback
* move to while loop
* pr feedback
* rename | @@ -32,6 +32,9 @@ class WinInetRequestWrapper
HINTERNET m_hWinInetRequest {nullptr};
SimpleHttpRequest* m_request;
BYTE m_buffer[1024] {0};
+ DWORD m_bufferUsed {0};
+ std::vector<uint8_t> m_bodyBuffer;
+ bool m_readingData {false};
bool isCallbackCalled {false};
bool isAborted {false};
public:
@@ -316,20 +319,15 @@ cl... |
cpeng: change to not add padding | @@ -92,17 +92,13 @@ public:
virtual int run(opae::afu_test::afu *afu, __attribute__((unused)) CLI::App *app)
{
log_ = spdlog::get(this->name());
- if (chunk_ % CACHELINE_SZ) {
- log_->error("chunk size must be cacheline aligned");
- return 1;
- }
ofs_cpeng cpeng;
// Initialize cpeng driver
ofs_cpeng_init(&cpeng, afu->h... |
io: redo cmake formatting | @@ -2,10 +2,7 @@ set (SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/io.c")
set (LIBRARY_NAME elektra-io)
-add_lib (io
- SOURCES ${SOURCES}
- LINK_ELEKTRA elektra-kdb elektra-invoke
-)
+add_lib (io SOURCES ${SOURCES} LINK_ELEKTRA elektra-kdb elektra-invoke)
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${LIBRARY_NAME}.pc.in" "${C... |
resgroup: remove a misplaced return command | @@ -1238,7 +1238,6 @@ ResourceGroupGetQueryMemoryLimit(void)
* RESGROUP_BYPASS_MODE_MEMORY_LIMIT_ON_QE chunk,
* we should make sure query_mem + misc mem <= chunk.
*/
- return bytesInChunk * RESGROUP_BYPASS_MODE_MEMORY_LIMIT_ON_QE / 2;
return Min(bytesInMB,
bytesInChunk * RESGROUP_BYPASS_MODE_MEMORY_LIMIT_ON_QE / 2);
}
|
parser xml BUGFIX check for empty input
Refs cesnet/netopeer2#1201 | @@ -979,6 +979,12 @@ lydxml_env_netconf_rpc(struct lyxml_ctx *xmlctx, struct lyd_node **envp, uint32_
assert(envp && !*envp);
+ if (xmlctx->status != LYXML_ELEMENT) {
+ /* nothing to parse */
+ assert(xmlctx->status == LYXML_END);
+ goto cleanup;
+ }
+
/* parse "rpc" */
r = lydxml_envelope(xmlctx, "rpc", "urn:ietf:para... |
Fixed input multi select | @@ -30,7 +30,7 @@ const ScriptEventBlock = ({ command, value = {}, onChange }) => {
if (updateFn) {
newValue = updateFn(newValue);
}
- if (Array.isArray(value[key])) {
+ if (Array.isArray(value[key]) && index !== undefined) {
return onChange({
[key]: value[key].map((v, i) => {
if (i !== index) {
@@ -76,7 +76,7 @@ const... |
Use rd instead rmdir
to avoid collision with rmdir.exe from cygwin or msys
Original idea by Mladen Turk | @@ -461,10 +461,10 @@ libclean:
-del /Q /F $(LIBS) libcrypto.* libssl.* ossl_static.pdb
clean: libclean
- -rmdir /Q /S $(HTMLDOCS1_BLDDIRS)
- -rmdir /Q /S $(HTMLDOCS3_BLDDIRS)
- -rmdir /Q /S $(HTMLDOCS5_BLDDIRS)
- -rmdir /Q /S $(HTMLDOCS7_BLDDIRS)
+ -rd /Q /S $(HTMLDOCS1_BLDDIRS)
+ -rd /Q /S $(HTMLDOCS3_BLDDIRS)
+ -rd ... |
filter_nightfall: capitalize flag in CMakeLists | @@ -213,7 +213,7 @@ option(FLB_FILTER_LUA_USE_MPACK "Enable mpack on the lua filter" Yes)
option(FLB_FILTER_RECORD_MODIFIER "Enable record_modifier filter" Yes)
option(FLB_FILTER_TENSORFLOW "Enable tensorflow filter" No)
option(FLB_FILTER_GEOIP2 "Enable geoip2 filter" Yes)
-option(FLB_FILTER_Nightfall "Enable Nightfall... |
mmapstorage: mmap to last known location in memory | @@ -523,7 +523,7 @@ static int readMmapHeader (FILE * fp, MmapHeader * mmapHeader)
static void updatePointers (MmapHeader * mmapHeader, char * dest)
{
char * source = mmapHeader->mmapAddr;
- ptrdiff_t ptrDiff = ((char *)dest - (char *)source); // TODO: might be problematic if larger than PTRDIFF_MAX
+ ssize_t ptrDiff =... |
sys/log: Fix endianess in CBOR pretty-printing | #include "base64/hex.h"
#if MYNEWT_VAL(LOG_VERSION) > 2
#include "tinycbor/cbor.h"
+#include "tinycbor/compilersupport_p.h"
#endif
#if MYNEWT_VAL(LOG_VERSION) > 2
@@ -66,7 +67,7 @@ log_shell_cbor_reader_get16(struct cbor_decoder_reader *d, int offset)
(void)log_read_body(cbr->log, cbr->dptr, &val, offset, sizeof(val));... |
Libunit: fixing read buffer leakage.
If shared queue is empty, allocated read buffer should be explicitly
released.
Found by Coverity (CID 363943).
The issue was introduced in | @@ -4948,6 +4948,7 @@ nxt_unit_dequeue_request(nxt_unit_ctx_t *ctx)
rc = nxt_unit_app_queue_recv(lib->shared_port, rbuf);
if (rc != NXT_UNIT_OK) {
+ nxt_unit_read_buf_release(ctx, rbuf);
goto done;
}
|
wifi test: Fix compile issue for wifi MQTT test | @@ -109,8 +109,8 @@ const char *testPublishMsg[MQTT_PUBLISH_TOTAL_MSG_COUNT] = {"Hello test",
};
static uWifiTestPrivate_t gHandles = { -1, -1, NULL, -1 };
-static const uint32_t gNetStatusMaskAllUp = U_WIFI_STATUS_MASK_IPV4_UP |
- U_WIFI_STATUS_MASK_IPV6_UP;
+static const uint32_t gNetStatusMaskAllUp = U_WIFI_NET_STAT... |
Declare callbacks static
It was a typo, "static" was missing. | @@ -330,7 +330,7 @@ scrcpy(const struct scrcpy_options *options) {
av_log_set_callback(av_log_callback);
- const struct stream_callbacks stream_cbs = {
+ static const struct stream_callbacks stream_cbs = {
.on_eos = stream_on_eos,
};
stream_init(&s->stream, s->server.video_socket, &stream_cbs, NULL);
|
fix: delete BoatIotSdkDeInit(); in test_001CreateWallet_0002CreateOneTimeWalletFailureNullConfig | @@ -115,7 +115,6 @@ START_TEST(test_001CreateWallet_0002CreateOneTimeWalletFailureNullConfig)
/* 3-2. verify the global variables that be affected */
ck_assert(g_boat_iot_sdk_context.wallet_list[0].is_used == false);
- BoatIotSdkDeInit();
}
END_TEST
|
Simplify process of retrieving hull noun from eth response. | ++ registry (map @p hull)
::
++ hull
- $: pilot=address
- child-count=@ud
- pub-key=@
- key-rev=@ud
+ $: owner=address
+ spawn-count=@ud
+ encryption-key=@
+ authentication-key=@
+ key-revision=@ud
sponsor=@p
escape=(unit @p)
+ spawn-proxy=address
+ transfer-proxy=address
==
::
-++ ship-state
- $% [%locked until=@da co... |
coverity API usage errors (PRINTF_ARGS) | @@ -397,7 +397,7 @@ int http_server_get_asn1_req(const ASN1_ITEM *it, ASN1_VALUE **preq,
log_message(prog, LOG_ERR, "Error parsing request");
} else if (ppath != NULL && (*ppath = OPENSSL_strdup(url)) == NULL) {
log_message(prog, LOG_ERR,
- "Out of memory allocating %d bytes", strlen(url) + 1);
+ "Out of memory allocat... |
Fix kconfig warnings
* quote string defaults for Kconfig values to eliminate warnings
* don't add \ in default for LV_TICK_CUSTOM_SYS_TIME_EXPR
(tho its needed on linux and MacOS) as I can't test on Windows | @@ -112,19 +112,19 @@ menu "LVGL configuration"
config LV_MEM_CUSTOM_INCLUDE
string
prompt "Header to include for the custom memory function"
- default stdlib.h
+ default "stdlib.h"
depends on LV_MEM_CUSTOM
config LV_MEM_CUSTOM_ALLOC
string
prompt "Wrapper to malloc"
- default malloc
+ default "malloc"
depends on LV_ME... |
Add new dependencies for source installation for debian and ubuntu. Ethan will have to translate these to redhat and sles when he attempts to build packages on next release | @@ -13,7 +13,9 @@ Build and install from sources is possible. However, the source build for AOMP
#### Debian or Ubuntu Packages
```
- sudo apt-get install cmake g++-5 g++ pkg-config libpci-dev libnuma-dev libelf-dev libffi-dev git python libopenmpi-dev gawk mesa-common-dev
+ sudo apt-get install cmake g++-5 g++ pkg-con... |
framesync64/autotest: checking that exactly 1 frame is received | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2022 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -35,23 +35,21 @@ static int callback(unsigned char * _header,... |
Calculate transaction hash with price and limit | @@ -254,6 +254,8 @@ func (tx *Tx) CalculateTxHash() []byte {
digest.Write(txBody.Recipient)
binary.Write(digest, binary.LittleEndian, txBody.Amount)
digest.Write(txBody.Payload)
+ binary.Write(digest, binary.LittleEndian, txBody.Limit)
+ binary.Write(digest, binary.LittleEndian, txBody.Price)
digest.Write(txBody.Sign)
... |
Add TLS 1.3 signing curve check | @@ -850,9 +850,18 @@ int tls12_check_peer_sigalg(SSL *s, uint16_t sig, EVP_PKEY *pkey)
}
#ifndef OPENSSL_NO_EC
if (pkeyid == EVP_PKEY_EC) {
+ EC_KEY *ec = EVP_PKEY_get0_EC_KEY(pkey);
+ if (SSL_IS_TLS13(s)) {
+ /* For TLS 1.3 check curve matches signature algorithm */
+ int curve = EC_GROUP_get_curve_name(EC_KEY_get0_gr... |
unescape: direct assignation for one byte, no need for memcpy() | @@ -209,6 +209,9 @@ int flb_unescape_string_utf8(const char *in_buf, int sz, char *out_buf)
out_buf[count_out] = ch;
esc_out = 1;
}
+ else if (esc_out == 1) {
+ out_buf[count_out] = temp[0];
+ }
else {
memcpy(&out_buf[count_out], temp, esc_out);
}
|
apps/bttester: Fix search attribute by handle | @@ -1884,7 +1884,7 @@ static u8_t foreach_get_attrs(u16_t handle,
struct gatt_attr *gatt_attr;
char uuid_buf[BLE_UUID_STR_LEN];
- if (handle < foreach->start_handle && handle > foreach->end_handle) {
+ if (handle < foreach->start_handle || handle > foreach->end_handle) {
return 0;
}
|
Try 32 bit and 64 bit builds for windows. | @@ -7,6 +7,7 @@ configuration:
- Debug
platform:
- x64
+- x86
environment:
matrix:
- arch: Win64
@@ -15,7 +16,7 @@ matrix:
# skip unsupported combinations
init:
- - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
+ - call "C:\Program Files (x86)\Microsoft Visual Stud... |
Do not check definition of a macro and use it in a single condition
The condition evaluation in #if conditions does not tolerate this
if the macro is not defined.
Fixes | #ifndef OPENSSL_NO_SECURE_MEMORY
# if defined(_WIN32)
# include <windows.h>
-# if defined(WINAPI_FAMILY_PARTITION) \
- && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
+# if defined(WINAPI_FAMILY_PARTITION)
+# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)... |
print additional warning if the capture file doesn't contain enough EAPOL M1 frames to calculate nonce-error-corrections | @@ -580,6 +580,13 @@ if(proberequestcount == 0)
"That makes it hard to recover the PSK.\n");
}
+if(eapolm1count <= 1)
+ {
+ printf("\nWarning: missing frames!\n"
+ "This dump file doesn't contain enough EAPOL M1 frames.\n"
+ "That makes it impossible to calculate nonce-error-correction values.\n");
+ }
+
if(zeroedtimes... |
Don't use legacy provider if not available in test_ssl_old
If we've been configured with no-legacy then we should not attempt to
load the legacy provider. | @@ -104,7 +104,12 @@ subtest 'test_ss' => sub {
};
note('test_ssl -- key U');
-testssl("keyU.ss", $Ucert, $CAcert, "default", srctop_file("test","default-and-legacy.cnf"));
+my $configfile = srctop_file("test","default-and-legacy.cnf");
+if (disabled("legacy")) {
+ $configfile = srctop_file("test","default.cnf");
+}
+
... |
Prevent incorrect "compiler does not support snmalloc" warning
The warning was unnecessarily being emitted when USE_SNMALLOC=on | @@ -70,9 +70,11 @@ if (OE_SGX)
add_subdirectory(switchless_worksleep)
add_subdirectory(switchless_one_tcs)
- if (COMPILER_SUPPORTS_SNMALLOC AND NOT USE_SNMALLOC)
+ if (COMPILER_SUPPORTS_SNMALLOC)
+ if (NOT USE_SNMALLOC)
# Do not build that test if we are already using snmalloc for all other tests
add_subdirectory(snmal... |
OcConfigurationLib: Fix incorrect default for SetApfsTrimTimeout | /// KernelSpace quirks.
///
#define OC_KERNEL_QUIRKS_FIELDS(_, __) \
- _(INT64 , SetApfsTrimTimeout , , FALSE , ()) \
+ _(INT64 , SetApfsTrimTimeout , , -1 , ()) \
_(BOOLEAN , AppleCpuPmCfgLock , , FALSE , ()) \
_(BOOLEAN , AppleXcpmCfgLock , , FALSE , ()) \
_(BOOLEAN , AppleXcpmExtraMsrs , , FALSE , ()) \
|
GA: Test CMake installation. | @@ -54,3 +54,16 @@ jobs:
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --target install
+
+ - name: Test CMake Installation
+ working-directory: ${{runner.workspace}}/test/pkg
+ shell: bash
+ run: |
+ mkdir build && cd build
+ if [ "$RUNNER_OS" == "Windows" ]; then
+ cmake -DCMAKE_PREF... |
fix double assignment by | @@ -142,7 +142,7 @@ static void mi_page_thread_free_collect(mi_page_t* page)
mi_thread_free_t tfree;
mi_thread_free_t tfreex;
do {
- tfreex = tfree = page->thread_free;
+ tfree = page->thread_free;
head = mi_tf_block(tfree);
tfreex = mi_tf_set_block(tfree,NULL);
} while (!mi_atomic_compare_exchange((volatile uintptr_t*... |
Update: narsese_to_english.py: removal of additional colon | @@ -59,7 +59,7 @@ def narseseToEnglish(line):
COLOR = MAGENTA
elif line.startswith("Input:"):
COLOR = GREEN
- elif line.startswith("Derived:") or line.startswith("Revised:")::
+ elif line.startswith("Derived:") or line.startswith("Revised:"):
COLOR = YELLOW
elif line.startswith("Answer:") or line.startswith("^") or "de... |
More edits to INSTALL. | @@ -29,7 +29,7 @@ simulate the examples in this repository.
> vplanet vpl.in
> python makeplot.py png
- These commands require less than 1 minute and to create 2 png figures
+ These commands require less than 1 minute and should create 2 png figures
identical to those in the examples/EarthInterior directory.
5. If you ... |
Add toggle for test case count in descriptions | @@ -43,6 +43,7 @@ class BaseTarget(metaclass=ABCMeta):
case_description: Short description of the test case. This may be
automatically generated using the class, or manually set.
dependencies: A list of dependencies required for the test case.
+ show_test_count: Toggle for inclusion of `count` in the test description.
... |
Fix diagnostics build | @@ -1396,9 +1396,10 @@ void compress_block(
#if !defined(ASTCENC_DIAGNOSTICS)
lowest_correl = prepare_block_statistics(bsd->texel_count, blk, ewb);
- block_skip_two_plane = lowest_correl > ctx.config.tune_two_plane_early_out_limit;
#endif
+ block_skip_two_plane = lowest_correl > ctx.config.tune_two_plane_early_out_limi... |
sse2: add WASM implementation oy simde_mm_{or,xor,sqrt}_pd
Partially fixes | @@ -996,6 +996,8 @@ simde_mm_xor_pd (simde__m128d a, simde__m128d b) {
#if defined(SIMDE_VECTOR_SUBSCRIPT_OPS)
r_.i32f = a_.i32f ^ b_.i32f;
+ #elif defined(SIMDE_WASM_SIMD128_NATIVE)
+ r_.wasm_v128 = wasm_v128_xor(a_.wasm_v128, b_.wasm_v128);
#elif defined(SIMDE_ARM_NEON_A32V7_NATIVE)
r_.neon_i64 = veorq_s64(a_.neon_i6... |
[autobuild] move some checks to the top
Moved some generic checks from the middle of the "feature checks" to the
top. | @@ -150,6 +150,29 @@ AC_CHECK_TYPES([socklen_t],
dnl Checks for library functions.
AC_FUNC_FORK
+dnl openssl on solaris needs -lsocket -lnsl
+AC_SEARCH_LIBS([socket], [socket])
+AC_SEARCH_LIBS([gethostbyname], [nsl socket])
+
+dnl On Haiku accept() and friends are in libnetwork
+AC_SEARCH_LIBS([accept], [network])
+
+d... |
client session BUFIX invalid read | @@ -1161,7 +1161,9 @@ parse_rpc_error(struct ly_ctx *ctx, struct lyxml_elem *xml, struct nc_err *err)
WRN("<rpc-error> <error-message> duplicated.");
} else {
err->message_lang = lyxml_get_attr(iter, "xml:lang", NULL);
- if (!err->message_lang) {
+ if (err->message_lang) {
+ err->message_lang = lydict_insert(ctx, err->... |
Get rid of Parser:pay_attention_to_indentation
Since this method can only be safely called in a single place, we should probably inline it instead. | @@ -43,15 +43,6 @@ function Parser:init(lexer)
self:advance(); self:advance()
end
-function Parser:pay_attention_to_suspicious_indentation(open_tok, close_tok)
- local d1 = assert(self.indent_of_token[open_tok])
- local d2 = assert(self.indent_of_token[close_tok])
- if d1 > d2 then
- table.insert(self.mismatched_indent... |
Configure: pick up options from older 'config'
These options were coded in util/perl/OpenSSL/config.pm, but that got
removed when the OpenSSL::config::main() function was removed. We're
not putting them back, but in 'Configure'. | @@ -205,6 +205,11 @@ my $apitable = {
"0.9.8" => 908,
};
+# For OpenSSL::config::get_platform
+my %guess_opts = ();
+
+my $dryrun = 0;
+
our %table = ();
our %config = ();
our %withargs = ();
@@ -834,6 +839,22 @@ while (@argvcopy)
# No longer an automatic choice
$auto_threads = 0 if ($1 eq "threads");
}
+ elsif (/^-d$/... |
Tweak the check that a ciphersuite has not changed since the HRR | @@ -1615,8 +1615,9 @@ static int tls_early_post_process_client_hello(SSL *s, int *pal)
al = SSL_AD_HANDSHAKE_FAILURE;
goto err;
}
- if (s->hello_retry_request && s->s3->tmp.new_cipher != NULL
- && s->s3->tmp.new_cipher->id != cipher->id) {
+ if (s->hello_retry_request
+ && (s->s3->tmp.new_cipher == NULL
+ || s->s3->tmp... |
Improve alignment of expected vs. got error test results.
It is easier to compare the error messages when they start at the same column. | <p>Test speed improvements. Mount <id>tmpfs</id> in <file>Vagrantfile</file> instead <file>test.pl</file>. Preserve contents of C unit test build directory between <file>test.pl</file> executions. Improve efficiency of code generation.</p>
</release-item>
+ <release-item>
+ <p>Improve alignment of expected vs. actual e... |
[stat_cache] FAM: improve handling modified file | @@ -169,6 +169,28 @@ static handler_t stat_cache_handle_fdevent(server *srv, void *_fce, int revent)
}
fam_dir_entry *fam_dir = scf->dirs->data;
+ if (fe.filename[0] != '/') {
+ switch(fe.code) {
+ case FAMCreated:
+ /* file created in monitored dir modifies dir */
+ ++fam_dir->version;
+ break;
+ case FAMChanged:
+ /*... |
Remove symlinks, newt should find packages | export PATH=$HOME/bin:$PATH
pwd
-ln -s ci/mynewt_targets targets
-ln -s ci/mynewt_keys keys
-
-for target in $(ls targets); do
+for target in $(ls ci/mynewt_targets); do
newt build $target
[[ $? -ne 0 ]] && exit 1
done
|
feat(kscan_mock): Increase max number of events
This is necessary for testing a large number of events (e.g. every key code) within a single build/pass.
The u8_t limitation became apparent during end-to-end testing of | @@ -18,7 +18,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
struct kscan_mock_data {
kscan_callback_t callback;
- u8_t event_index;
+ u32_t event_index;
struct k_delayed_work work;
struct device *dev;
};
|
opae.io: print raw value in dfh walk | @@ -169,7 +169,7 @@ class walk_action(base_action):
offset = 0 if args.offset is None else args.offset
for offset, dfh in utils.dfh_walk(offset=offset):
- print('offset: 0x{:04x}'.format(offset))
+ print('offset: 0x{:04x}, value: 0x{:04x}'.format(offset, dfh.value))
print(' dfh: {}'.format(dfh))
if args.show_uuid:
prin... |
vmm_clone_active_pdir() works when the parent is not the root vmm | @@ -1201,8 +1201,11 @@ vmm_page_directory_t* vmm_clone_active_pdir() {
VAS_PRINTF("vmm_clone_active_pdir [P 0x%08x] [V 0x%08x]\n", phys_new_pd, virt_new_pd);
uint32_t* new_page_tables = &virt_new_pd->table_pointers;
- // Copy the allocation state of the parent directory
- memcpy(_vmm_state_bitmap(virt_new_pd), _vmm_sta... |
Makefile.am: Add missing key in case openssl > 1.1.0
File: Makefile.am
Notes: fix missing test keys
Credit:
Laurent Stacul | @@ -30,6 +30,9 @@ EXTRA_DIST = \
key_dsa_wrong.pub \
key_ecdsa \
key_ecdsa.pub \
+ signed_key_ecdsa \
+ signed_key_ecdsa.pub \
+ signed_key_ecdsa-cert.pub \
key_ed25519 \
key_ed25519.pub \
key_ed25519_encrypted \
|
set /oc/con not observable | @@ -903,6 +903,9 @@ main(void)
if (init < 0)
return init;
+ oc_resource_t *con_resource = oc_core_get_resource_by_index(OCF_CON, 0);
+ oc_resource_set_observable(con_resource, false);
+
display_device_uuid();
PRINT("OCF server \"Rules Test Server\" running, waiting on incomming "
"connections.\n");
|
Update yfm for ya make to 2.13.7 | @@ -8,9 +8,9 @@ ENDIF()
DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE(
YFM_TOOL
- sbr:1463039419 FOR WIN32
- sbr:1463039076 FOR DARWIN
- sbr:1463038804 FOR LINUX
+ sbr:1465426870 FOR WIN32
+ sbr:1465426588 FOR DARWIN
+ sbr:1465426088 FOR LINUX
)
END()
|
Debugging aid for cmake variables | @@ -478,6 +478,12 @@ if( HAVE_FORTRAN )
)
endif()
+###############################################################################
+# Debugging aid. Print all known CMake variables
+# get_cmake_property(_variableNames VARIABLES)
+# foreach( _variableName ${_variableNames} )
+# ecbuild_info(" ${_variableName}=${${_varia... |
OpenAL fallback for Unix; | @@ -149,7 +149,13 @@ if (WIN32)
include_directories(deps/openal-soft/include)
set(LOVR_OPENAL OpenAL32)
elseif(NOT EMSCRIPTEN)
- pkg_search_module(OPENAL REQUIRED openal)
+ pkg_search_module(OPENAL openal-soft)
+ if (NOT OPENAL_FOUND)
+ pkg_search_module(OPENAL openal)
+ if (NOT OPENAL_FOUND)
+ message(FATAL_ERROR "Ope... |
poked github | @@ -210,7 +210,6 @@ int main(int argc,char **argv)
config.transfer_function_method=ccl_boltzmann_class;
ccl_parameters params = ccl_parameters_create(OC, OB, OK, NREL, NMAS, MNU, W0, WA, HH,
NORMPS, NS,-1,-1,-1,-1,NULL,NULL, &status);
- //printf("in sample run w0=%1.12f, wa=%1.12f\n", W0, WA);
// Initialize cosmology o... |
Add test-arena to make file. | @@ -29,6 +29,8 @@ yarac_SOURCES = args.c args.h common.h yarac.c
yarac_LDADD = -Llibyara/.libs -lyara
test_alignment_SOURCES = tests/test-alignment.c
+test_arena_SOURCES = tests/test-arena.c
+test_arena_LDADD = libyara/.libs/libyara.a
test_atoms_SOURCES = tests/test-atoms.c tests/util.c libyara/atoms.c
test_atoms_LDADD... |
Add coveralls support to TravisCI file | @@ -25,9 +25,12 @@ before_install:
# - dvipng
install: python setup.py install
script:
- - python tests/run_tests.py --debug --detailed-errors --verbose --process-restartworker
+ - python tests/run_tests.py --debug --detailed-errors --verbose --process-restartworker --with-coverage --cover-package=pyccl
- make check-cp... |
[core] perf: buffer_align_size() identity if align
use identity if requested size is already aligned to BUFFER_PIECE_SIZE | @@ -77,12 +77,11 @@ void buffer_move(buffer *b, buffer *src) {
tmp = *src; *src = *b; *b = tmp;
}
-#define BUFFER_PIECE_SIZE 64
+#define BUFFER_PIECE_SIZE 64uL /*(must be power-of-2)*/
static size_t buffer_align_size(size_t size) {
- size_t align = BUFFER_PIECE_SIZE - (size % BUFFER_PIECE_SIZE);
- /* overflow on unsing... |
[README.md] Fix blockquote in README.md
Blockquote in README.md misses a ` character. This commit fixes it. | @@ -125,7 +125,7 @@ To check all pre-defined configurations, type as follows:
##### 1.1 Additional Configuration (optional)
After basic configuration by [1. Configuration](#1-configuration), you can additionally modify your configuration with *menuconfig*.
-``bash
+```bash
./dbuild.sh menuconfig
```
> **Note**
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.