message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
Simple INI: Use properties format in info/provides
This commit closes | - infos = Information about simpleini plugin is in keys below
- infos/author = Markus Raab <[email protected]>
- infos/licence = BSD
-- infos/provides = storage/ini
+- infos/provides = storage/properties
- infos/needs = code binary
- infos/placements = getstorage setstorage
- infos/status = maintained unittest nodep concept obsolete 3000
-- infos/description = Very simple storage which writes out in a basic ini format.
+- infos/description = Very simple storage plugin which stores data in a basic properties file format
## Introduction
|
Re-baseline some test suite results and run test suite with 2 processes. | @@ -401,7 +401,7 @@ echo "Starting tests:\`date\`"
# Run the tests, consolidating the results in one directory
cd ../src/test
-rm -rf 2019-??-??-??:?? py_src output *.pyc
+rm -rf 2022-??-??-??:?? py_src output *.pyc
mkdir \$dateTag output
for m in \$modes; do
theMode=\`echo \$m | tr ',' '_'\`
@@ -415,7 +415,7 @@ for m in \$modes; do
# Run the test
- python ../../src/test/visit_test_suite.py --parallel-launch "srun" -b ../../test/baseline -d ../../build/testdata -e ../../build/bin/visit -o \$resDir -m "\$m" -n 1 --cmake $cmakeCmd >> ../../../buildlog 2>&1
+ python ../../src/test/visit_test_suite.py --parallel-launch "srun" -b ../../test/baseline -d ../../build/testdata -e ../../build/bin/visit -o \$resDir -m "\$m" -n 2 --cmake $cmakeCmd >> ../../../buildlog 2>&1
mv \$resDir/html \$dateTag/\$theMode
# Move the results to the consolidation directory
|
c impl for table | -- define module: table
local table = table or {}
--- clear the table
-function table.clear(self)
- for k in next, self do
- rawset(self, k, nil)
- end
-end
+-- import jit function
+table.clear = require("table.clear")
+table.new = require("table.new")
-- join all objects and tables
function table.join(...)
|
Fix some batching edge cases;
Reduce size of vertex buffer by one to account for primitive restart.
Always write to the draw ID buffer to prevent it from going out of sync with the vertex buffer and prevent a potential problem with geometry reuse. | @@ -31,7 +31,7 @@ static void onResizeWindow(int width, int height) {
}
static const size_t BUFFER_COUNTS[] = {
- [STREAM_VERTEX] = 1 << 16,
+ [STREAM_VERTEX] = 1 << 16 - 1,
[STREAM_INDEX] = 1 << 16,
[STREAM_DRAW_ID] = 1 << 16,
[STREAM_DRAW_DATA] = 256 * MAX_BATCHES * 2
@@ -730,13 +730,11 @@ void lovrGraphicsFlush() {
batch->indexCount = cached->indexCount = indexCount * n;
flushGeometry = true;
- if (!instanced) {
uint8_t* ids = lovrGraphicsMapBuffer(STREAM_DRAW_ID, batch->vertexCount);
for (int i = 0; i < n; i++) {
memset(ids, i, vertexCount * sizeof(uint8_t));
ids += vertexCount;
}
- }
state.cursors[STREAM_VERTEX] += batch->vertexCount;
state.cursors[STREAM_INDEX] += batch->indexCount;
|
Yan LR: Update documentation about limitations | @@ -83,5 +83,7 @@ sudo kdb umount user/tests/yanlr
## Limitations
-- The plugin only reads the most basic YAML key-value pairs
+- The plugin does **not support key-value pairs with empty key**, such as `key:`
+- The plugin currently does not react properly to invalid or unsupported input. Instead of printing a descriptive error message, the plugin
+ will fail with a **segmentation fault**.
- Yan LR does not provide write support for data
|
print rssi and customize tx packet payload (for scum) | @@ -31,7 +31,7 @@ end of frame event), it will turn on its error LED.
#define TIMER_PERIOD (0xffff>>4) ///< 0xffff = 2s@32kHz
#define ID 0x99 ///< byte sent in the packets
-uint8_t stringToSend[] = "+002 Ptest.24.00.12\n";
+uint8_t stringToSend[] = "+002 Ptest.24.00.12.-010\n";
//=========================== variables =======================================
@@ -206,7 +206,24 @@ int mote_main(void) {
stringToSend[i++] = ' ';
stringToSend[i++] = 'P';
- memcpy(&stringToSend[i],&app_vars.packet[0],sizeof(stringToSend)-i-1);
+ memcpy(&stringToSend[i],&app_vars.packet[0],14);
+ i += 14;
+
+ sign = (app_vars.rxpk_rssi & 0x80) >> 7;
+ if (sign){
+ read = 0xff - (uint8_t)(app_vars.rxpk_rssi) + 1;
+ } else {
+ read = app_vars.rxpk_rssi;
+ }
+
+ if (sign) {
+ stringToSend[i++] = '-';
+ } else {
+ stringToSend[i++] = '+';
+ }
+ stringToSend[i++] = '0'+read/100;
+ stringToSend[i++] = '0'+read/10;
+ stringToSend[i++] = '0'+read%10;
stringToSend[sizeof(stringToSend)-2] = '\r';
stringToSend[sizeof(stringToSend)-1] = '\n';
@@ -247,8 +264,13 @@ int mote_main(void) {
// prepare packet
app_vars.packet_len = sizeof(app_vars.packet);
- for (i=0;i<app_vars.packet_len;i++) {
- app_vars.packet[i] = ID;
+ i = 0;
+ app_vars.packet[i++] = 't';
+ app_vars.packet[i++] = 'e';
+ app_vars.packet[i++] = 's';
+ app_vars.packet[i++] = 't';
+ while (i<app_vars.packet_len) {
+ app_vars.packet[i++] = ID;
}
// start transmitting packet
|
Fixed sqlite3 variable entries | @@ -155,7 +155,6 @@ modules:
sqlite3_step: 0xCA8755B7
sqlite3_stmt_status: 0xF7ABF5FA
sqlite3_strnicmp: 0x12E2FC18
- sqlite3_temp_directory: 0x1AEC1F74
sqlite3_test_control: 0x324D4EFD
sqlite3_thread_cleanup: 0x173C9C0B
sqlite3_threadsafe: 0xA3B818DA
@@ -176,8 +175,10 @@ modules:
sqlite3_value_text16be: 0x3B89AA8D
sqlite3_value_text16le: 0x014863A6
sqlite3_value_type: 0xC5EEBB5D
- sqlite3_version: 0xB80D43C7
sqlite3_vfs_find: 0x0C6DD8C3
sqlite3_vfs_register: 0x65F53B9C
sqlite3_vfs_unregister: 0x69CF4171
sqlite3_vmprintf: 0xC6372184
+ variables:
+ sqlite3_temp_directory: 0x1AEC1F74
+ sqlite3_version: 0xB80D43C7
|
[stm32] add missing void | @@ -164,7 +164,7 @@ void rt_hw_us_delay(rt_uint32_t us)
/**
* This function will initial STM32 board.
*/
-RT_WEAK void rt_hw_board_init()
+RT_WEAK void rt_hw_board_init(void)
{
#ifdef BSP_SCB_ENABLE_I_CACHE
/* Enable I-Cache---------------------------------------------------------*/
|
snort: fix epoll_wait unsigned return value
When epoll_wait return -1, access array epoll_events[i] out of bound
and lead to segmentation fault.
1. Change return value to signed return value
2. Skip non fatal error e.g. EINTR
Type: fix | @@ -562,7 +562,8 @@ vpp_daq_msg_receive (void *handle, const unsigned max_recv,
{
VPP_Context_t *vc = (VPP_Context_t *) handle;
uint32_t n_qpairs_left = vc->num_qpairs;
- uint32_t n, n_events, n_recv = 0;
+ uint32_t n, n_recv = 0;
+ int32_t n_events;
/* If the receive has been interrupted, break out of loop and return. */
if (vc->interrupted)
@@ -606,9 +607,14 @@ vpp_daq_msg_receive (void *handle, const unsigned max_recv,
n_events = epoll_wait (vc->epoll_fd, vc->epoll_events, vc->num_qpairs, 1000);
- if (n_events < 1)
+ if (n_events == 0)
{
- *rstat = n_events == -1 ? DAQ_RSTAT_ERROR : DAQ_RSTAT_TIMEOUT;
+ *rstat = DAQ_RSTAT_TIMEOUT;
+ return 0;
+ }
+ if (n_events < 0)
+ {
+ *rstat = errno == EINTR ? DAQ_RSTAT_TIMEOUT : DAQ_RSTAT_ERROR;
return 0;
}
|
docs: update centos/aarch recipe for centos7.4 | \input{vc.tex}
% Define Base OS and other local macros
-\newcommand{\baseOS}{CentOS7.3}
-\newcommand{\OSRepo}{CentOS\_7.3}
+\newcommand{\baseOS}{CentOS7.4}
+\newcommand{\OSRepo}{CentOS\_7.4}
\newcommand{\OSTree}{CentOS\_7}
\newcommand{\OSTag}{el7}
-\newcommand{\baseos}{centos7.3}
+\newcommand{\baseos}{centos7.4}
\newcommand{\baseosshort}{centos7}
\newcommand{\provisioner}{Warewulf}
\newcommand{\rms}{SLURM}
\thispagestyle{empty}
% Title Page --------------------------------------------------------
-\input{common/title_preview}
+\input{common/title}
% Disclaimer
\input{common/legal}
|
loadmess: hacky, very bad fix | @@ -60,7 +60,10 @@ static void loadmess_bang(t_loadmess *x)
static void loadmess_loadbang(t_loadmess *x, t_floatarg action)
{
- if(!sys_noloadbang && action == LB_LOAD) {
+ //original: subbing out for 0 is HACKY and BAD and we need to
+ //fix this later - DK
+ //if(!sys_noloadbang && action == LB_LOAD) {
+ if(!sys_noloadbang && action == 0) {
if(!x->defer)
{
loadmess_bang(x);
|
Fix overiding of return value.
If MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED is defined, then the return value will be overridden by the extra code running after the removed return instruction. | @@ -1734,6 +1734,7 @@ int main( int argc, char *argv[] )
psa_algorithm_t alg = 0;
psa_key_handle_t psk_slot = 0;
#endif /* MBEDTLS_USE_PSA_CRYPTO */
+ int psk_free_ret = 0;
unsigned char psk[MBEDTLS_PSK_MAX_LEN];
size_t psk_len = 0;
psk_entry *psk_info = NULL;
@@ -4301,8 +4302,8 @@ exit:
sni_free( sni_info );
#endif
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
- if( ( ret = psk_free( psk_info ) ) != 0 )
- mbedtls_printf( "Failed to list of opaque PSKs - error was %d\n", ret );
+ if( ( psk_free_ret = psk_free( psk_info ) ) != 0 )
+ mbedtls_printf( "Failed to list of opaque PSKs - error was %d\n", psk_free_ret );
#endif
#if defined(MBEDTLS_DHM_C) && defined(MBEDTLS_FS_IO)
mbedtls_dhm_free( &dhm );
|
[io] comment explaining previous commit | @@ -85,6 +85,7 @@ typedef std::string bytes;
boost::archive::xml_oarchive ar(ss);
siconos_io_register_ ## COMPONENT(ar);
ar << ::boost::serialization::make_nvp(BOOST_PP_STRINGIZE(CLASS),(*($self)));
+ // ar must go out of scope to force flush to stringstream before ss.str!
}
return ss.str();
}
|
docs: drop support for v3.x grammar | Migrate Build System to ESP-IDF 5.0
===================================
+Migrating from make to cmake
+----------------------------
+
Please follow the :ref:`build system <migrating_from_make>` guide for migrating make-based projects no longer supported in ESP-IDF v5.0.
+
+Update fragment file grammar
+----------------------------
+
+Please follow the :ref:`migrate linker script fragment files grammar<ldgen-migrate-lf-grammar>` chapter for migrating v3.x grammar to the new one.
|
classify: fix sesssion details api
We were not allocating space for the
variable length payload in the response
message.
Type: fix | @@ -667,7 +667,7 @@ send_classify_session_details (vl_api_registration_t * reg,
{
vl_api_classify_session_details_t *rmp;
- rmp = vl_msg_api_alloc (sizeof (*rmp));
+ rmp = vl_msg_api_alloc (sizeof (*rmp) + match_length);
clib_memset (rmp, 0, sizeof (*rmp));
rmp->_vl_msg_id =
ntohs (REPLY_MSG_ID_BASE + VL_API_CLASSIFY_SESSION_DETAILS);
|
out_null: use proper event type name | @@ -108,7 +108,7 @@ static void cb_null_flush(struct flb_event_chunk *event_chunk,
#ifdef FLB_HAVE_METRICS
/* Check if the event type is metrics, just return */
- if (event_chunk->type == FLB_EVENT_TYPE_METRIC) {
+ if (event_chunk->type == FLB_EVENT_TYPE_METRICS) {
FLB_OUTPUT_RETURN(FLB_OK);
}
#endif
|
changes for handling request/response buffers directly | @@ -822,13 +822,6 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer,
entity_too_large = true;
bad_request = true;
}
-
-#if defined(OC_BLOCK_WISE)
- /* Free request_state cause it isn't used any more
- */
- oc_blockwise_free_request_buffer(*request_state);
- *request_state = NULL;
-#endif
}
oc_resource_t *resource, *cur_resource = NULL;
@@ -967,6 +960,11 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer,
}
}
+
+#if defined(OC_BLOCK_WISE)
+ oc_blockwise_free_request_buffer(*request_state);
+#endif
+
if (request_obj.request_payload) {
/* To the extent that the request payload was parsed, free the
* payload structure (and return its memory to the pool).
|
pkg/gadgets/profile/block-io: remove "C" dependency | package tracer
-// #include <linux/types.h>
-// #include "./bpf/biolatency.h"
-import "C"
-
import (
"encoding/json"
"fmt"
@@ -28,13 +24,14 @@ import (
"github.com/cilium/ebpf"
"github.com/cilium/ebpf/link"
+ "github.com/moby/moby/pkg/parsers/kernel"
+
"github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets"
"github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets/profile/block-io/types"
- "github.com/moby/moby/pkg/parsers/kernel"
)
-//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -target $TARGET -cc clang biolatency ./bpf/biolatency.bpf.c -- -I./bpf/ -I../../../../${TARGET}
-//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -target $TARGET -cc clang biolatencyBefore ./bpf/biolatency.bpf.c -- -I./bpf/ -I../../../../${TARGET} -DKERNEL_BEFORE_5_11
+//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -target $TARGET -type hist -type hist_key -cc clang biolatency ./bpf/biolatency.bpf.c -- -I./bpf/ -I../../../../${TARGET}
+//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -target $TARGET -type hist -type hist_key -cc clang biolatencyBefore ./bpf/biolatency.bpf.c -- -I./bpf/ -I../../../../${TARGET} -DKERNEL_BEFORE_5_11
type Tracer struct {
objs biolatencyObjects
@@ -59,21 +56,21 @@ func getReport(histMap *ebpf.Map) (types.Report, error) {
ValType: "usecs",
}
- key := C.struct_hist_key{}
+ key := biolatencyHistKey{}
err := histMap.NextKey(nil, unsafe.Pointer(&key))
if err != nil {
return types.Report{}, fmt.Errorf("error getting next key: %w", err)
}
- hist := C.struct_hist{}
+ hist := biolatencyHist{}
if err := histMap.Lookup(key, unsafe.Pointer(&hist)); err != nil {
return types.Report{}, err
}
data := []types.Data{}
indexMax := 0
- for i, val := range hist.slots {
+ for i, val := range hist.Slots {
if val > 0 {
indexMax = i
}
|
Update BIST to use new 'fpgaconf' arguments
The command line interface for 'fpgaconf' changed with commit
so the BIST tool also needs updates to perform its PR operation. | @@ -96,7 +96,7 @@ def get_mode_from_path(gbs_path):
def load_gbs(gbs_file, bus_num):
print "Attempting Partial Reconfiguration:"
- cmd = "{} -b 0x{} -v {}".format('fpgaconf', bus_num, gbs_file)
+ cmd = "{} -B 0x{} -V {}".format('fpgaconf', bus_num, gbs_file)
try:
subprocess.check_call(cmd, shell=True)
except subprocess.CalledProcessError as e:
|
Load jimage files before janet source files.
This should allow precompiled files to be placed
right next to the source files in the file system with
the expected behavior. | path. The filter can be a string or a predicate function, and
is often a file extension, including the period."
@[# Relative to (dyn :current-file "./."). Path must start with .
+ [":cur:/:all:.jimage" :image check-.]
[":cur:/:all:.janet" :source check-.]
[":cur:/:all:/init.janet" :source check-.]
- [":cur:/:all:.jimage" :image check-.]
[(string ":cur:/:all:" nati) :native check-.]
# As a path from (os/cwd)
+ [":all:.jimage" :image not-check-.]
[":all:.janet" :source not-check-.]
[":all:/init.janet" :source not-check-.]
- [":all:.jimage" :image not-check-.]
[(string ":all:" nati) :native not-check-.]
# System paths
+ [":sys:/:all:.jimage" :image not-check-.]
[":sys:/:all:.janet" :source not-check-.]
[":sys:/:all:/init.janet" :source not-check-.]
- [":sys:/:all:.jimage" :image not-check-.]
[(string ":sys:/:all:" nati) :native not-check-.]])
(setdyn :syspath (process/opts "JANET_PATH"))
|
changed init logic of redis backend as per review request | @@ -130,12 +130,12 @@ redis_init(struct module_env* env, struct cachedb_env* cachedb_env)
redis_reply_type = rep->type;
freeReplyObject(rep);
switch (redis_reply_type) {
- case REDIS_REPLY_ERROR:
+ case REDIS_REPLY_STATUS:
+ break;
+ default:
/** init failed, setex command not supported */
log_err("redis_init: failed to init redis, the redis-expire-records option requires the SETEX command (redis >= 2.0.0)");
return 0;
- default:
- break;
}
}
|
Fixed indirection warnings when using only one track of music | @@ -283,13 +283,12 @@ const compile = async (
.join(`\n`) +
`\n` +
`const unsigned char * music_tracks[] = {\n` +
- (music.map(track => track.dataName + "_Data").join(", ") || "0, 0") +
- (music.length === 1
- ? "," + music.map(track => track.dataName + "_Data").join(", ")
- : "") + // Needed for windows??
+ (music.map(track => track.dataName + "_Data").join(", ") || "0") +
+ ", 0" +
`\n};\n\n` +
`const unsigned char music_banks[] = {\n` +
- (music.map(track => track.bank).join(", ") || "0, 0") +
+ (music.map(track => track.bank).join(", ") || "0") +
+ ", 0" +
`\n};\n\n` +
`unsigned char script_variables[${precompiled.variables.length +
1}] = { 0 };\n`;
|
[bsp] fixed gcc warning: value computed is not used | @@ -78,7 +78,7 @@ void mem_test(uint32_t address, uint32_t size )
for(i=0; i<size/sizeof(uint32_t); i++)
{
*p_uint32_t = (uint32_t)p_uint32_t;
- *p_uint32_t++;
+ p_uint32_t++;
}
p_uint32_t = (uint32_t *)address;
|
[hardware] Fix the cache flushing handshake | @@ -46,19 +46,19 @@ module snitch_icache_lookup #(
logic [CFG.COUNT_ALIGN:0] init_count_q;
logic init_phase;
+ // We are always ready to flush
+ assign flush_ready_o = 1'b1;
+ assign init_phase = init_count_q != $unsigned(CFG.LINE_COUNT);
// Initialization and flush FSM
always_ff @(posedge clk_i, negedge rst_ni) begin
if (!rst_ni)
init_count_q <= '0;
- else if (flush_valid_i)
- init_count_q <= '0;
else if (init_count_q != $unsigned(CFG.LINE_COUNT))
init_count_q <= init_count_q + 1;
+ else if (flush_valid_i)
+ init_count_q <= '0;
end
- assign init_phase = init_count_q != $unsigned(CFG.LINE_COUNT);
- assign flush_ready_o = flush_valid_i & (init_count_q == $unsigned(CFG.LINE_COUNT));
-
// --------------------------------------------------
// Tag stage
// --------------------------------------------------
|
Export pushAny, safePeekAny from Foreign.Lua
Those are the main functions intended for library users. | @@ -46,7 +46,7 @@ tests = testGroup "Userdata"
assertEqual "" "HSLUA_Data.Word.Word64" (metatableName (0 :: Word64))
]
- , testGroup "pushAsUserdata"
+ , testGroup "pushAny"
[ "metatable is named Dummy" =:
(Just "HSLUA_Dummy") `shouldBeResultOf` do
pushAny (Dummy 23 "Nichts ist wie es scheint")
@@ -60,6 +60,23 @@ tests = testGroup "Userdata"
Lua.tostring' Lua.stackTop
]
+ , testGroup "toAny"
+ [ "get back pushed value" =:
+ Just (Dummy 0 "zero") `shouldBeResultOf` do
+ pushAny (Dummy 0 "zero")
+ toAny Lua.stackTop
+
+ , "fail on boolean" =:
+ (Nothing :: Maybe Dummy) `shouldBeResultOf` do
+ Lua.pushboolean False
+ toAny Lua.stackTop
+
+ , "fail on wrong userdata" =:
+ (Nothing :: Maybe Dummy) `shouldBeResultOf` do
+ pushAny (0 :: Word64)
+ toAny Lua.stackTop
+ ]
+
, testGroup "Peekable & Pushable"
[ "push and peek" =:
Dummy 5 "sum of digits" `shouldBeResultOf` do
|
Added my username to email list | # Alister Maguire, Thu Sep 14 14:26:07 PDT 2017
# Added case for userid "alister"
#
+# Edward Rusu, Fri Jun 29 8:35:26 PDT 2018
+# Added case for userid "rusu1"
+#
# *****************************************************************************
@@ -231,6 +234,10 @@ case $1 in
"alister")
[email protected]
;;
+ # Edward Rusu
+ "rusu1")
+ [email protected]
+ ;;
*)
[email protected]
;;
|
install: fix reinstallation of driverless and foomatic-rip
Use "ln -s -r -f" to ensure that existing symlinks are overritten. | @@ -57,7 +57,7 @@ else
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s -r conf$$.file conf$$ 2>/dev/null; then
- as_ln_srf='ln -s -r'
+ as_ln_srf='ln -s -r -f'
elif ln -s conf$$.file conf$$ 2>/dev/null; then
as_ln_srf='./ln-srf'
# ... but there are two gotchas:
@@ -81,9 +81,9 @@ rmdir conf$$.dir 2>/dev/null
# AC_PROG_LN_SRF
# --------------------------------
AC_DEFUN([AC_PROG_LN_SRF],
-[AC_MSG_CHECKING([whether ln -s -r works])
+[AC_MSG_CHECKING([whether ln -s -r -f works])
AC_SUBST([LN_SRF], [$as_ln_srf])dnl
-if test "$LN_SRF" = "ln -s -r"; then
+if test "$LN_SRF" = "ln -s -r -f"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no, using $LN_SRF])
|
Fix pipeline.yml file to have proper input to storage test. | @@ -471,7 +471,7 @@ jobs:
- get: gpdb_src
params: {submodules: none}
passed: [compile_gpdb_centos6]
- - get: bin_gpdb_centos6
+ - get: bin_gpdb
resource: bin_gpdb_centos6
passed: [compile_gpdb_centos6]
trigger: true
|
options/posix: Implement execvp() | #include <errno.h>
#include <stdarg.h>
-#include <bits/ensure.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <bits/ensure.h>
+#include <mlibc/allocator.hpp>
#include <mlibc/arch-defs.hpp>
#include <mlibc/debug.hpp>
#include <mlibc/sysdeps.hpp>
@@ -52,18 +54,17 @@ int execl(const char *path, const char *arg0, ...) {
argv[0] = const_cast<char *>(arg0);
va_list args;
- va_start(args, arg0);
-
int n = 1;
+ va_start(args, arg0);
while(true) {
- __ensure(n < 16);
+ __ensure(n < 15);
auto argn = va_arg(args, const char *);
argv[n++] = const_cast<char *>(argn);
if(!argn)
break;
}
-
va_end(args);
+ argv[n] = nullptr;
return execve(path, argv, environ);
}
@@ -79,10 +80,51 @@ int execv(const char *, char *const []) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
-int execvp(const char *, char *const[]) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+
+int execvp(const char *file, char *const argv[]) {
+ frg::string_view dirs;
+ if(const char *pv = getenv("PATH"); pv) {
+ dirs = pv;
+ }else{
+ dirs = "/bin:/usr/bin";
+ }
+
+ size_t p = 0;
+ int res = ENOENT;
+ while(p < dirs.size()) {
+ size_t s; // Offset of next colon or end of string.
+ if(size_t cs = dirs.find_first(':', p); cs != size_t(-1)) {
+ s = cs;
+ }else{
+ s = dirs.size();
}
+
+ frg::string<MemoryAllocator> path{getAllocator()};
+ path += dirs.sub_string(p, s - p);
+ path += "/";
+ path += file;
+
+ mlibc::infoLogger() << "mlibc: execvp() tries '" << path.data() << "'" << frg::endlog;
+ int e = mlibc::sys_execve(path.data(), argv, environ);
+ switch(e) {
+ case ENOENT:
+ case ENOTDIR:
+ break;
+ case EACCES:
+ res = EACCES;
+ break;
+ default:
+ errno = e;
+ return -1;
+ }
+
+ p = s + 1;
+ }
+
+ errno = res;
+ return -1;
+}
+
int faccessat(int, const char *, int, int) {
__ensure(!"Not implemented");
__builtin_unreachable();
|
build/agc: adding object description | @@ -114,6 +114,9 @@ typedef enum {
// T : primitive data type
// TC : input/output data type
#define LIQUID_AGC_DEFINE_API(AGC,T,TC) \
+ \
+/* Automatic gain control (agc) for level correction and signal */ \
+/* detection */ \
typedef struct AGC(_s) * AGC(); \
\
/* Create automatic gain control object. */ \
|
Upgrade VC project to ruby 2.7.2 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>C:\msys64\usr\local\ruby-2.7.1vc\include\ruby-2.7.0;C:\msys64\usr\local\ruby-2.7.1vc\include\ruby-2.7.0\x64-mswin64_140;C:\msys64\mingw64\include\libxml2;C:\msys64\mingw64\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>C:\msys64\usr\local\ruby-2.7.2vc\include\ruby-2.7.0;C:\msys64\usr\local\ruby-2.7.2vc\include\ruby-2.7.0\x64-mswin64_140;C:\msys64\mingw64\include\libxml2;C:\msys64\mingw64\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBXML_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<Link>
<AdditionalDependencies>x64-vcruntime140-ruby270.lib;libxml2.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>C:\msys64\usr\local\ruby-2.7.1vc\lib;C:\msys64\mingw64\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ <AdditionalLibraryDirectories>C:\msys64\usr\local\ruby-2.7.2vc\lib;C:\msys64\mingw64\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
Use Cortex-M memory barriers (CC2538) | /*---------------------------------------------------------------------------*/
/* Path to CMSIS header */
#define CMSIS_CONF_HEADER_PATH "cc2538_cm3.h"
+#define MEMORY_BARRIER_CONF_ARCH_HEADER_PATH "memory-barrier-cortex.h"
/*---------------------------------------------------------------------------*/
#endif /* CC2538_DEF_H_ */
/*---------------------------------------------------------------------------*/
|
Added vAsserCalled back into main | @@ -274,6 +274,34 @@ void vApplicationIdleHook( void )
/*-----------------------------------------------------------*/
+void vAssertCalled( const char * pcFile,
+ uint32_t ulLine )
+{
+ const uint32_t ulLongSleep = 1000UL;
+ volatile uint32_t ulBlockVariable = 0UL;
+ volatile char * pcFileName = ( volatile char * ) pcFile;
+ volatile uint32_t ulLineNumber = ulLine;
+
+ ( void ) pcFileName;
+ ( void ) ulLineNumber;
+
+ printf( "vAssertCalled %s, %ld\n", pcFile, ( long ) ulLine );
+ fflush( stdout );
+
+ /* Setting ulBlockVariable to a non-zero value in the debugger will allow
+ * this function to be exited. */
+ taskDISABLE_INTERRUPTS();
+ {
+ while( ulBlockVariable == 0UL )
+ {
+ Sleep( ulLongSleep );
+ }
+ }
+ taskENABLE_INTERRUPTS();
+}
+
+/*-----------------------------------------------------------*/
+
static void prvSaveTraceFile( void )
{
FILE * pxOutputFile;
|
Add WINDOWS_10_22H2 | @@ -33,6 +33,7 @@ extern ULONG WindowsVersion;
#define WINDOWS_10_20H2 110 // October, 2020
#define WINDOWS_10_21H1 111 // May, 2021
#define WINDOWS_10_21H2 112 // November, 2021
+#define WINDOWS_10_22H2 112 // October, 2022
#define WINDOWS_11 113 // October, 2021
#define WINDOWS_11_22H1 114 // February, 2022
#define WINDOWS_NEW ULONG_MAX
|
Use read_line for checking cpu sched | @@ -611,8 +611,7 @@ void init_system_info(){
trim(os);
gpu = exec("lspci | grep VGA | head -n1 | awk -vRS=']' -vFS='[' '{print $2}' | sed '/^$/d' | tail -n1");
trim(gpu);
- cpusched = exec ("cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor");
- trim (cpusched);
+ cpusched = read_line("/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor");
const char* mangohud_recursion = getenv("MANGOHUD_RECURSION");
if (!mangohud_recursion) {
|
apps/bttester: Fix error handling when doing GATT Discovery
Previously we would respond to the BTP Tester with a
list of attributes that were discovered before receiving an error.
Now we just respond with a failure if we receive an error. | @@ -1038,7 +1038,14 @@ static int disc_prim_uuid_cb(uint16_t conn_handle,
SYS_LOG_DBG("");
- if (error->status != 0) {
+ if (error->status != 0 && error->status != BLE_HS_EDONE) {
+ tester_rsp(BTP_SERVICE_ID_GATT, opcode,
+ CONTROLLER_INDEX, BTP_STATUS_FAILED);
+ discover_destroy();
+ return 0;
+ }
+
+ if (error->status == BLE_HS_EDONE) {
tester_send(BTP_SERVICE_ID_GATT, opcode,
CONTROLLER_INDEX, gatt_buf.buf, gatt_buf.len);
discover_destroy();
@@ -1086,7 +1093,14 @@ static int disc_all_desc_cb(uint16_t conn_handle,
SYS_LOG_DBG("");
- if (error->status != 0) {
+ if (error->status != 0 && error->status != BLE_HS_EDONE) {
+ tester_rsp(BTP_SERVICE_ID_GATT, GATT_DISC_ALL_DESC,
+ CONTROLLER_INDEX, BTP_STATUS_FAILED);
+ discover_destroy();
+ return 0;
+ }
+
+ if (error->status == BLE_HS_EDONE) {
tester_send(BTP_SERVICE_ID_GATT, GATT_DISC_ALL_DESC,
CONTROLLER_INDEX, gatt_buf.buf, gatt_buf.len);
discover_destroy();
@@ -1198,7 +1212,14 @@ static int find_included_cb(uint16_t conn_handle,
SYS_LOG_DBG("");
- if (error->status != 0) {
+ if (error->status != 0 && error->status != BLE_HS_EDONE) {
+ tester_rsp(BTP_SERVICE_ID_GATT, GATT_FIND_INCLUDED,
+ CONTROLLER_INDEX, BTP_STATUS_FAILED);
+ discover_destroy();
+ return 0;
+ }
+
+ if (error->status == BLE_HS_EDONE) {
tester_send(BTP_SERVICE_ID_GATT, GATT_FIND_INCLUDED,
CONTROLLER_INDEX, gatt_buf.buf, gatt_buf.len);
discover_destroy();
@@ -1249,7 +1270,14 @@ static int disc_chrc_cb(uint16_t conn_handle,
SYS_LOG_DBG("");
- if (error->status != 0) {
+ if (error->status != 0 && error->status != BLE_HS_EDONE) {
+ tester_rsp(BTP_SERVICE_ID_GATT, btp_opcode,
+ CONTROLLER_INDEX, BTP_STATUS_FAILED);
+ discover_destroy();
+ return 0;
+ }
+
+ if (error->status == BLE_HS_EDONE) {
tester_send(BTP_SERVICE_ID_GATT, btp_opcode,
CONTROLLER_INDEX, gatt_buf.buf, gatt_buf.len);
discover_destroy();
|
wpa-sec over https and link directly to MP table | @@ -13,7 +13,7 @@ Support for hashcat hash-modes: 2500, 2501, 4800, 5500, 12000, 16100
Support for John the Ripper hash-modes: WPAPSK-PMK, PBKDF2-HMAC-SHA1, chap, netntlm, tacacs-plus
After capturing, upload the "uncleaned" cap here
-(http://wpa-sec.stanev.org/?submit) to see if your ap or the client is vulnerable
+(https://wpa-sec.stanev.org/?submit) to see if your ap or the client is vulnerable
by using common wordlists. Convert the cap to hccapx and check if wlan-key
or plainmasterkey was transmitted unencrypted.
@@ -52,7 +52,7 @@ Detailed description
| wlancow2hcxpmk | Converts pre-computed cowpatty hashfiles for use with hashcat hash-mode 2501 |
| wlanhcx2john | Converts hccapx to format expected by John the Ripper |
| wlanhcx2psk | Calculates candidates for hashcat based on the hccapx file |
-| wlancap2wpasec | Upload multiple caps to http://wpa-sec.stanev.org |
+| wlancap2wpasec | Upload multiple caps to https://wpa-sec.stanev.org |
| whoismac | Show vendor information and/or download oui reference list |
@@ -136,11 +136,11 @@ Most output files will be appended to existing files (with the exception of .cap
Bitmask message pair field (hcxpcaptool)
--------------
-0: MP info (https://hashcat.net/wiki/doku.php?id=hccapx)
+0: MP info (https://hashcat.net/wiki/doku.php?id=hccapx#message_pair_table)
-1: MP info (https://hashcat.net/wiki/doku.php?id=hccapx)
+1: MP info (https://hashcat.net/wiki/doku.php?id=hccapx#message_pair_table)
-2: MP info (https://hashcat.net/wiki/doku.php?id=hccapx)
+2: MP info (https://hashcat.net/wiki/doku.php?id=hccapx#message_pair_table)
3: x unused
|
Commented out events to match default behavior. | @@ -49,14 +49,14 @@ event:
# Creates events from data written to files.
# Designed for monitoring log files, but capable of capturing
# any file writes.
- - type: file
- name: .*log.* # whitelist ex regex describing log file names
- value: .* # whitelist ex regex describing field values
+# - type: file
+# name: .*log.* # whitelist ex regex describing log file names
+# value: .* # whitelist ex regex describing field values
# Creates events from data written to stdout, stderr, or both.
# May be most useful for capturing debug output from processes
# running in containerized environments.
- - type: console
+# - type: console
# name: stdout
# value: .*
@@ -64,10 +64,10 @@ event:
# most useful for data which could overwhelm metric aggregation
# servers, either due to data volumes or dimensions (tags) with
# high cardinality.
- - type: metric
- name: .* # (net.*)|(.*err.*)
- field: ^[^h]+ # whitelist ex regex describing field names
- value: .*
+# - type: metric
+# name: .* # (net.*)|(.*err.*)
+# field: ^[^h]+ # whitelist ex regex describing field names
+# value: .*
libscope:
transport:
|
stb_image sets srgb flag properly; | @@ -1141,6 +1141,7 @@ static Image* loadKTX2(Blob* blob) {
static Image* loadSTB(Blob* blob) {
void* data;
+ uint32_t flags;
TextureFormat format;
int width, height, channels;
if (stbi_is_16_bit_from_memory(blob->data, (int) blob->size)) {
@@ -1151,12 +1152,14 @@ static Image* loadSTB(Blob* blob) {
case 4: format = FORMAT_RGBA16; break;
default: lovrThrow("Unsupported channel count for 16 bit image: %d", channels);
}
+ flags = IMAGE_SRGB;
} else if (stbi_is_hdr_from_memory(blob->data, (int) blob->size)) {
data = stbi_loadf_from_memory(blob->data, (int) blob->size, &width, &height, NULL, 4);
format = FORMAT_RGBA32F;
} else {
data = stbi_load_from_memory(blob->data, (int) blob->size, &width, &height, NULL, 4);
format = FORMAT_RGBA8;
+ flags = IMAGE_SRGB;
}
if (!data) {
@@ -1168,6 +1171,7 @@ static Image* loadSTB(Blob* blob) {
Image* image = calloc(1, sizeof(Image));
lovrAssert(image, "Out of memory");
image->ref = 1;
+ image->flags = flags;
image->width = width;
image->height = height;
image->format = format;
|
README: fix filepath examples
Use snake case instead of pascal case. | @@ -271,7 +271,7 @@ Windows). All examples below are for [POSIX systems].
Remove last extension, and the `.` preceding it.
```lua
-dropExtension("/directory/path.ext") == "/directory/path"
+drop_extension("/directory/path.ext") == "/directory/path"
```
Parameters:
@@ -292,8 +292,8 @@ This function wraps [System.FilePath.dropExtension].
Does the given filename have an extension?
```lua
-hasExtension("/directory/path.ext") == true
-hasExtension("/directory/path") == false
+has_extension("/directory/path.ext") == true
+has_extension("/directory/path") == false
```
Parameters:
@@ -333,9 +333,9 @@ This function wraps [System.FilePath.isAbsolute].
Is a path relative, or is it fixed to the root?
```lua
-isRelative("test/path") == true
-isRelative("/test") == false
-isRelative("/") == false
+is_relative("test/path") == true
+is_relative("/test") == false
+is_relative("/") == false
```
Parameters:
@@ -357,7 +357,7 @@ This function wraps [System.FilePath.isRelative].
Join path elements back together by the directory separator.
```lua
-joinPath({"/","directory/","file.ext"}) == "/directory/file.ext"
+join_path({"/","directory/","file.ext"}) == "/directory/file.ext"
```
Parameters:
@@ -396,9 +396,9 @@ This function wraps [System.FilePath.normalise].
Split a path by the directory separator.
```lua
-splitDirectories("/directory/file.ext") == {"/","directory","file.ext"}
-splitDirectories("test/file") == {"test","file"}
-splitDirectories("/test/file") == {"/","test","file"}
+split_directories("/directory/file.ext") == {"/","directory","file.ext"}
+split_directories("test/file") == {"test","file"}
+split_directories("/test/file") == {"/","test","file"}
```
Parameters:
@@ -419,8 +419,8 @@ This function wraps [System.FilePath.splitDirectories].
Get the directory name, move up one level.
```lua
-takeDirectory("/foo/bar/baz") == "/foo/bar"
-takeDirectory("/foo/bar/baz/") == "/foo/bar/baz"
+take_directory("/foo/bar/baz") == "/foo/bar"
+take_directory("/foo/bar/baz/") == "/foo/bar/baz"
```
Parameters:
@@ -441,8 +441,8 @@ This function wraps [System.FilePath.takeDirectory].
Get all extensions.
```lua
-takeExtensions("/directory/path.ext") == ".ext"
-takeExtensions("file.tar.gz") == ".tar.gz"
+take_extensions("/directory/path.ext") == ".ext"
+take_extensions("file.tar.gz") == ".tar.gz"
```
Parameters:
@@ -463,8 +463,8 @@ This function wraps [System.FilePath.takeExtensions].
Get the file name.
```lua
-takeFileName("/directory/file.ext") == "file.ext"
-takeFileName("test/") == ""
+take_filename("/directory/file.ext") == "file.ext"
+take_filename("test/") == ""
```
Parameters:
|
Add extra filter manager ioctls | @@ -53,9 +53,15 @@ typedef struct _FILTER_PORT_EA
} FILTER_PORT_EA, *PFILTER_PORT_EA;
#define FLT_PORT_EA_NAME "FLTPORT"
+#define FLT_CTL_CREATE CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 3, METHOD_NEITHER, FILE_READ_ACCESS)
+#define FLT_CTL_ATTACH CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 4, METHOD_BUFFERED, FILE_WRITE_ACCESS)
+#define FLT_CTL_DETATCH CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 5, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define FLT_CTL_SEND_MESSAGE CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 6, METHOD_NEITHER, FILE_WRITE_ACCESS)
#define FLT_CTL_GET_MESSAGE CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 7, METHOD_NEITHER, FILE_READ_ACCESS)
#define FLT_CTL_REPLY_MESSAGE CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 8, METHOD_NEITHER, FILE_WRITE_ACCESS)
+#define FLT_CTL_FIND_FIRST CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 9, METHOD_BUFFERED, FILE_READ_ACCESS)
+#define FLT_CTL_FIND_NEXT CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 10, METHOD_BUFFERED, FILE_READ_ACCESS)
+#define FLT_CTL_QUERY_INFORMATION CTL_CODE(FILE_DEVICE_DISK_FILE_SYSTEM, 11, METHOD_BUFFERED, FILE_READ_ACCESS)
/**
* \brief Wrapper which is essentially FilterpDeviceIoControl.
|
Fix FLS-PP lp light names in deCONZ node view | @@ -1163,11 +1163,6 @@ static int sqliteLoadLightNodeCallback(void *user, int ncols, char **colval , ch
if (!name.isEmpty())
{
lightNode->setName(name);
-
- if (lightNode->node())
- {
- lightNode->node()->setUserDescriptor(lightNode->name());
- }
}
QStringList::const_iterator gi = groupIds.begin();
|
HV: update kernel name
updated kernel name from kernel-org.clearlinux.pk414-sos.4.14.52-63 to kernel-org.clearlinux.iot-lts2018-sos.4.19.0-16 for v0.3 release | title The ACRN Service OS
-linux /EFI/org.clearlinux/kernel-org.clearlinux.pk414-sos.4.14.52-63
+linux /EFI/org.clearlinux/kernel-org.clearlinux.iot-lts2018-sos.4.19.0-16
options pci_devices_ignore=(0:18:1) console=tty0 console=ttyS2 i915.nuclear_pageflip=1 root=PARTUUID=<UUID of rootfs partition> rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.tsd_init=7 i915.tsd_delay=2000 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_guc_loading=0 i915.enable_guc_submission=0 i915.enable_preemption=1 i915.context_priority_mode=2 i915.enable_gvt=1 i915.enable_initial_modeset=1 i915.enable_guc=0 hvlog=2M@0x1FE00000
|
Reset model_shrink_rate to zero when baseline is present. | @@ -201,23 +201,24 @@ static void UpdateAndValidateMonotoneConstraints(
}
}
-static void WarnIfBaselineUsedWithModelShrinkage(
+static void DropModelShrinkageIfBaselineUsed(
const NCB::TDataMetaInfo& trainDataMetaInfo,
bool learningContinuation,
- const NCatboostOptions::TCatBoostOptions* catBoostOptions
+ NCatboostOptions::TCatBoostOptions* catBoostOptions
) {
- if (catBoostOptions->GetTaskType() == ETaskType::CPU) {
- if (catBoostOptions->BoostingOptions->ModelShrinkRate.Get() != 0.0f) {
- CB_ENSURE(
- trainDataMetaInfo.BaselineCount == 0,
- "Usage of model_shrink_rate option in combination with baseline column is not implemented yet."
- );
- CB_ENSURE(
- !learningContinuation,
- "Usage of model_shrink_rate option in combination with learning continuation is not implemented."
- );
+ if (catBoostOptions->GetTaskType() == ETaskType::CPU &&
+ catBoostOptions->BoostingOptions->ModelShrinkRate.Get() != 0.0f
+ ) {
+ if (trainDataMetaInfo.BaselineCount != 0) {
+ CATBOOST_WARNING_LOG << "Model shrinkage in combination with baseline column " <<
+ "is not implemented yet. Reset model_shrink_rate to 0." << Endl;
+ catBoostOptions->BoostingOptions->ModelShrinkRate.Set(0);
+ }
+ if (learningContinuation) {
+ CATBOOST_WARNING_LOG << "Model shrinkage in combination with learning continuation " <<
+ "is not implemented yet. Reset model_shrink_rate to 0." << Endl;
+ catBoostOptions->BoostingOptions->ModelShrinkRate.Set(0);
}
-
}
}
@@ -247,5 +248,5 @@ void SetDataDependentDefaults(
);
UpdateLeavesEstimationIterations(trainDataMetaInfo, catBoostOptions);
UpdateAndValidateMonotoneConstraints(*trainDataMetaInfo.FeaturesLayout.Get(), catBoostOptions);
- WarnIfBaselineUsedWithModelShrinkage(trainDataMetaInfo, learningContinuation, catBoostOptions);
+ DropModelShrinkageIfBaselineUsed(trainDataMetaInfo, learningContinuation, catBoostOptions);
}
|
acvp_test: Fix incorrect parenthesis | @@ -1227,10 +1227,10 @@ static int rsa_sigver_test(int id)
|| !TEST_ptr(md_ctx = EVP_MD_CTX_new())
|| !TEST_true(EVP_DigestVerifyInit_ex(md_ctx, &pkey_ctx,
tst->digest_alg, libctx, NULL,
- pkey, NULL)
+ pkey, NULL))
|| !TEST_true(EVP_PKEY_CTX_set_params(pkey_ctx, params))
|| !TEST_int_eq(EVP_DigestVerify(md_ctx, tst->sig, tst->sig_len,
- tst->msg, tst->msg_len), tst->pass)))
+ tst->msg, tst->msg_len), tst->pass))
goto err;
ret = 1;
err:
|
Stats: Updated wrong slot on new vector | @@ -115,7 +115,6 @@ vlib_stats_pop_heap (void *cm_arg, void *oldheap, stat_directory_type_t type)
strncpy (e.name, stat_segment_name, 128 - 1);
e.type = type;
vec_add1 (sm->directory_vector, e);
- vector_index++;
}
stat_segment_directory_entry_t *ep = &sm->directory_vector[vector_index];
|
Fix compilation with MSVC. | @@ -336,7 +336,7 @@ tsError ts_bspline_set_knot_at(tsBSpline *spline, size_t index, tsReal knot,
tsStatus *status)
{
tsReal *knots = NULL;
- tsReal oldKnot;
+ tsReal oldKnot = 0.f;
tsError err;
TS_TRY(try, err, status)
TS_CALL(try, err, ts_int_bspline_access_knot_at(
|
Build CuTest and testutils as static library. | ###############################################################################
### Build CuTest.
###############################################################################
-add_library(cutest "cutest/CuTest.c")
+add_library(cutest STATIC "cutest/CuTest.c")
target_include_directories(cutest PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/cutest")
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
# Disable the warnings about sprintf.
@@ -13,7 +13,7 @@ endif()
###############################################################################
### Build testutils.
###############################################################################
-add_library(testutils "testutils.c")
+add_library(testutils STATIC "testutils.c")
target_include_directories(cutest PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(testutils PUBLIC cutest tinyspline)
|
ultra lazy fix for hitresult with particles
now hitresult shows up with particles (but not animated) | @@ -74,6 +74,7 @@ def prepare_particles(scale, settings):
frames = {}
for hit in [50, 100]:
yimg = YImage(particleprefix + str(hit), settings, scale)
+ yimg2 = YImage(hitprefix + str(hit), settings, scale)
if yimg.imgfrom == ImageFrom.DEFAULT_X or yimg.imgfrom == ImageFrom.DEFAULT_X2 or yimg.imgfrom == ImageFrom.BLANK:
continue
@@ -89,10 +90,12 @@ def prepare_particles(scale, settings):
pos[1] += y * scale
pos[2] -= max(1, (abs(x) + abs(y)) * 1.25)
imageproc.add(yimg.img, background, pos[0], pos[1], alpha=max(0.0, min(1.0, pos[2]/100)), channel=4)
+ imageproc.add(yimg2.img, background, 30, 30)
if z > 3:
fr.append(background)
# background.save(f"test{z}.png")
frames[hit] = fr
+
return frames
|
Fix home screen shortcuts when app is not running | @@ -88,6 +88,11 @@ import SwiftUI_Views
return
}
+ if let item = connectionOptions.shortcutItem, let windowScene = scene as? UIWindowScene {
+ self.windowScene(windowScene, performActionFor: item, completionHandler: { _ in })
+ return
+ }
+
if let restorationActivity = session.stateRestorationActivity {
if let console = restorationActivity.userInfo?["replConsole"] as? String {
@@ -153,13 +158,38 @@ import SwiftUI_Views
@available(iOS 13.0, *)
func windowScene(_ windowScene: UIWindowScene, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
+ func open() {
if shortcutItem.type == "PyPi" {
let vc = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "pypi")
let navVC = UINavigationController(rootViewController: vc)
navVC.modalPresentationStyle = .formSheet
windowScene.windows.first?.topViewController?.present(navVC, animated: true, completion: nil)
+ completionHandler(true)
} else if shortcutItem.type == "REPL" {
windowScene.windows.first?.topViewController?.present(UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "repl"), animated: true, completion: nil)
+ completionHandler(true)
+ } else {
+ completionHandler(false)
+ }
+ }
+
+ if documentBrowserViewController == nil {
+ _ = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true, block: { (timer) in
+
+ var otherCondition = true
+ if shortcutItem.type == "REPL" {
+ otherCondition = Python.shared.isSetup
+ }
+
+ if self.documentBrowserViewController != nil && otherCondition {
+
+ open()
+
+ timer.invalidate()
+ }
+ })
+ } else {
+ open()
}
}
|
Do not override default teimeout by default | @@ -3147,7 +3147,9 @@ picoquic_cnx_t* picoquic_create_cnx(picoquic_quic_t* quic,
picoquic_init_transport_parameters(&cnx->local_parameters, cnx->client_mode);
cnx->local_parameters.enable_loss_bit = quic->default_lossbit_policy;
cnx->local_parameters.enable_multipath = quic->default_multipath_option;
+ if (quic->default_idle_timeout != 0) {
cnx->local_parameters.idle_timeout = quic->default_idle_timeout;
+ }
/* Apply the defined MTU MAX instead of default, if specified */
if (cnx->quic->mtu_max > 0)
{
|
jenkins: Add -Werror | @@ -88,6 +88,7 @@ CMAKE_FLAGS_ASAN = ['ENABLE_ASAN': 'ON']
CMAKE_FLAGS_DEBUG = ['ENABLE_DEBUG': 'ON']
CMAKE_FLAGS_LOGGER = ['ENABLE_LOGGER': 'ON']
CMAKE_FLAGS_OPTIMIZATIONS_OFF = ['ENABLE_OPTIMIZATIONS': 'OFF']
+CMAKE_FLAGS_WERROR = ['COMMON_FLAGS': "-Werror"]
// CMAKE_FLAGS_BUILD_SHARED = ['BUILD_SHARED': 'ON'] is ON per default
CMAKE_FLAGS_BUILD_FULL = ['BUILD_FULL': 'ON']
@@ -431,6 +432,7 @@ def generateMainBuildStages() {
CMAKE_FLAGS_BUILD_ALL +
CMAKE_FLAGS_BUILD_FULL +
CMAKE_FLAGS_BUILD_STATIC +
+ CMAKE_FLAGS_WERROR +
CMAKE_FLAGS_COVERAGE
,
[TEST.ALL, TEST.MEM, TEST.NOKDB, TEST.INSTALL]
|
tests: runtime: out_forward: Follow option order for fluent_signal | @@ -143,8 +143,8 @@ static void cb_check_forward_mode(void *ctx, int ffd,
TEST_CHECK(root.via.map.size == 2);
/* Record */
- key = root.via.map.ptr[0].key;
- val = root.via.map.ptr[0].val;
+ key = root.via.map.ptr[1].key;
+ val = root.via.map.ptr[1].val;
ret = strncmp(key.via.str.ptr, "fluent_signal", 13);
TEST_CHECK(ret == 0);
|
Fix error message for replica-serve-stale-data in redis.conf doc
seems that his piece of doc was always wrong (no such error in the code) | @@ -518,8 +518,9 @@ dir ./
# still reply to client requests, possibly with out of date data, or the
# data set may just be empty if this is the first synchronization.
#
-# 2) If replica-serve-stale-data is set to 'no' the replica will reply with
-# an error "SYNC with master in progress" to all commands except:
+# 2) If replica-serve-stale-data is set to 'no' the replica will reply with error
+# "MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'"
+# to all data access commands, excusing commands such as :
# INFO, REPLICAOF, AUTH, PING, SHUTDOWN, REPLCONF, ROLE, CONFIG, SUBSCRIBE,
# UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, COMMAND, POST,
# HOST and LATENCY.
|
Addition of Policy and Caution to Porting Guide | # Porting Guide
## Contents
-> [Policy & Causion](policy--causion)
+> [Policy & Caution](policy--caution)
> [Kernel & System](#kernel--system)
> [File System](#file-system)
> [Network](#network)
> [Audio](#audio)
> [Confirmation of Porting](#confirmation-of-porting)
-## Policy & Causion
-1. Use driver, framework and system call APIs.
+## Policy & Caution
+1. Driver Implementation Recommendation
+Instead of hooking the default driver interface code (which is a part of SoC package) to the platform,
+it is advisable to include the drivers according the TizenRT platform driver model.
+
+2. New Application Inclusion
+It is a good practise to add the Kconfig entry. All application configurations and dependencies should be included properly.
+
+3. Use driver, framework and system call APIs
Don't call architecture codes from application directly. When protected build enables, it will be blocked.
+Application must call TizenRT driver interface to talk to underlying driver.
+
+4. Maintain TizenRT Code Structure
+It is not advised if addition of peripherals, new interfaces, new open source code etc are done by aligning to default board package structure.
+Understanding the TizenRT code structure and adhering to the structure helps in better architecture desgin and portability.
+
## Kernel & System
1. [How to add new board](HowToAddnewBoard.md)
|
ci: Add inspektor-gadget.yaml as release artifact.
This file can be used by kubectl apply to deploy inspektor gadget and the trace
CRD.
The version deployed correspond to that of the release. | @@ -685,6 +685,21 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
+ - id: set-repo-determine-image-tag
+ uses: ./.github/actions/set-container-repo-and-determine-image-tag
+ with:
+ registry: ${{ env.REGISTRY }}
+ container-image: ${{ env.CONTAINER_REPO }}
+ co-re: false
+ - name: Build release YAML
+ run: |
+ export IMAGE_TAG=${{ steps.set-repo-determine-image-tag.outputs.image-tag }}
+ export IMAGE="${{ env.REGISTRY }}/${{ env.RELEASE_CONTAINER_REPO }}:${IMAGE_TAG}"
+
+ # Use echo of cat to avoid printing a new line between files.
+ echo "$(cat pkg/resources/manifests/deploy.yaml) $(cat pkg/resources/crd/bases/gadget.kinvolk.io_traces.yaml) > inspektor-gadget.yaml
+
+ perl -pi -e 's@(image:) ".+\"@$1 "$ENV{IMAGE}"@; s@"latest"@"$ENV{IMAGE_TAG}"@;' inspektor-gadget-${GITHUB_REF_NAME}.yaml
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
@@ -705,6 +720,12 @@ jobs:
pattern: "*-gadget-*-*-tar-gz/*-gadget-*-*.tar.gz"
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ steps.create_release.outputs.upload_url }}
+ - name: Upload YAML
+ uses: csexton/release-asset-action@v2
+ with:
+ file: inspektor-gadget-${GITHUB_REF_NAME}.yaml
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ release-url: ${{ steps.create_release.outputs.upload_url }}
- name: Update new version in krew-index
if: github.repository == 'inspektor-gadget/inspektor-gadget'
uses: rajatjindal/[email protected]
|
Should have compiled before pushing ;) | @@ -434,7 +434,7 @@ ldns_udp_bgsend(ldns_buffer *qbin,
const struct sockaddr_storage *to , socklen_t tolen,
struct timeval timeout)
{
- s = ldns_udp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
+ int s = ldns_udp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
return s > 0 ? s : 0;
}
|
Issue with globality | @@ -292,8 +292,12 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
for (i=0;i<row_count;i++) {
if(iter->e >= iter->nv){
- grib_context_log(h->context,GRIB_LOG_ERROR, "Failed to initialise reduced Gaussian iterator (global)");
- return GRIB_WRONG_GRID;
+ //grib_context_log(h->context,GRIB_LOG_ERROR, "Failed to initialise reduced Gaussian iterator (global)");
+ //return GRIB_WRONG_GRID;
+ //Try now as NON-global
+ ret = iterate_reduced_gaussian_subarea_wrapper(iter, h, lat_first, lon_first, lat_last, lon_last, lats, pl, plsize);
+ if (ret !=GRIB_SUCCESS) grib_context_log(h->context,GRIB_LOG_ERROR, "Failed to initialise reduced Gaussian iterator (global)");
+ goto finalise;
}
self->los[iter->e]=(i*360.0)/row_count;
@@ -303,6 +307,7 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
}
}
+finalise:
iter->e = -1;
grib_context_free(h->context,lats);
grib_context_free(h->context,pl);
|
server_queuereader: avoid SIGPIPE warning on some platforms (like Darwin) | @@ -410,10 +410,13 @@ server_queuereader(void *d)
&self->sockbufsize, sizeof(self->sockbufsize)) != 0)
; /* ignore */
#ifdef SO_NOSIGPIPE
- if (self->ctype == CON_TCP || self->ctype == CON_UDP)
- if (setsockopt(self->fd, SOL_SOCKET, SO_NOSIGPIPE, NULL, 0) != 0)
+ if (self->ctype == CON_TCP || self->ctype == CON_UDP) {
+ int enable = 1;
+ if (setsockopt(self->fd, SOL_SOCKET, SO_NOSIGPIPE,
+ (void *)&enable, sizeof(enable)) != 0)
logout("warning: failed to ignore SIGPIPE on socket: %s\n",
strerror(errno));
+ }
#endif
}
|
cmake: fixed openssl library paths on Mac OS when OPENSSL_ROOT_DIR is not already specified | @@ -9,16 +9,16 @@ project(xdag)
# usually avoid this by using environment variables:
# mkdir build-gcc && cd build-gcc && CC=gcc-7 CXX=g++-7 cmake ..
-enable_language(
- C
- ASM
-)
+enable_language(C ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_FLAGS "-std=gnu11 -O3 -g -Wall -Wmissing-prototypes -Wno-unused-result")
-set(OPENSSL_ROOT_DIR "/opt/openssl/")
+if (APPLE AND NOT DEFINED ENV{OPENSSL_ROOT_DIR})
+ set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl" "/usr/local/ssl/*" "/usr/local/Cellar/openssl/*")
+ set(OPENSSL_LIBRARIES "/usr/local/opt/openssl/lib" "/usr/local/ssl/*/lib" "/usr/local/Cellar/openssl/*/lib")
+endif()
file(GLOB_RECURSE DAGGER_SOURCES
client/*.c
|
Add tests for CodeLite workspace folders | </CodeLite_Workspace>
]])
end
+
+
+ function suite.onGroupedProjects()
+ wks.projects = {}
+ project "MyGrouplessProject"
+ group "MyGroup"
+ project "MyGroupedProject"
+ group "My/Nested/Group"
+ project "MyNestedGroupedProject"
+ prepare()
+ test.capture([[
+<?xml version="1.0" encoding="UTF-8"?>
+<CodeLite_Workspace Name="MyWorkspace" Database="" SWTLW="No">
+ <VirtualDirectory Name="My">
+ <VirtualDirectory Name="Nested">
+ <VirtualDirectory Name="Group">
+ <Project Name="MyNestedGroupedProject" Path="MyNestedGroupedProject.project"/>
+ </VirtualDirectory>
+ </VirtualDirectory>
+ </VirtualDirectory>
+ <VirtualDirectory Name="MyGroup">
+ <Project Name="MyGroupedProject" Path="MyGroupedProject.project"/>
+ </VirtualDirectory>
+ <Project Name="MyGrouplessProject" Path="MyGrouplessProject.project"/>
+ <BuildMatrix>
+ <WorkspaceConfiguration Name="Debug" Selected="yes">
+ <Project Name="MyNestedGroupedProject" ConfigName="Debug"/>
+ <Project Name="MyGroupedProject" ConfigName="Debug"/>
+ <Project Name="MyGrouplessProject" ConfigName="Debug"/>
+ </WorkspaceConfiguration>
+ <WorkspaceConfiguration Name="Release" Selected="yes">
+ <Project Name="MyNestedGroupedProject" ConfigName="Release"/>
+ <Project Name="MyGroupedProject" ConfigName="Release"/>
+ <Project Name="MyGrouplessProject" ConfigName="Release"/>
+ </WorkspaceConfiguration>
+ </BuildMatrix>
+</CodeLite_Workspace>
+ ]])
+ end
|
[mod_webdav] fix fallback if linkat() fails
fix fallback if linkat() fails
check at startup if /proc/self/fd is present on systems with O_TMPFILE
(containers might not mount /proc)
x-ref:
"mod_webdav - PUT files with < 64kb Content-Length reults in zero length file" | #include "plugin.h"
+#if (defined(__linux__) || defined(__CYGWIN__)) && defined(O_TMPFILE)
+static int has_proc_self_fd;
+#endif
+
#define http_status_get(r) ((r)->http_status)
#define http_status_set_fin(r, code) ((r)->resp_body_finished = 1,\
(r)->handler_module = NULL, \
@@ -538,6 +542,11 @@ SETDEFAULTS_FUNC(mod_webdav_set_defaults) {
mod_webdav_merge_config(&p->defaults, cpv);
}
+ #if (defined(__linux__) || defined(__CYGWIN__)) && defined(O_TMPFILE)
+ struct stat st;
+ has_proc_self_fd = (0 == stat("/proc/self/fd", &st));
+ #endif
+
return HANDLER_GO_ON;
}
@@ -4222,8 +4231,10 @@ mod_webdav_write_single_file_chunk (request_st * const r, chunkqueue * const cq)
/*assert(cq->first->next != NULL);*/
chunk * const c = cq->first;
cq->first = c->next;
+ const off_t len = chunkqueue_length(cq);
if (mod_webdav_write_cq(r, cq, c->file.fd)) {
/*assert(cq->first == NULL);*/
+ c->file.length = len;
c->next = NULL;
cq->first = cq->last = c;
return 1;
@@ -4383,6 +4394,7 @@ static int
mod_webdav_put_linkat_rename (request_st * const r,
const char * const pathtemp)
{
+ if (!has_proc_self_fd) return 0;
chunkqueue * const cq = r->reqbody_queue;
chunk *c = cq->first;
|
ipp.c:replace cupsBackendDeviceURi() | @@ -128,7 +128,7 @@ get_printer_attributes3(http_t *http_printer,
int debug,
int* driverless_info)
{
- const char *uri;
+
int have_http, uri_status, host_port, i = 0, total_attrs = 0, fallback,
cap = 0;
char scheme[10], userpass[1024], host_name[1024], resource[1024];
@@ -182,10 +182,8 @@ get_printer_attributes3(http_t *http_printer,
get_printer_attributes_log[0] = '\0';
- /* Convert DNS-SD-service-name-based URIs to host-name-based URIs */
- uri = resolve_uri(raw_uri);
/* Extract URI componants needed for the IPP request */
- uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, uri,
+ uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, raw_uri,
scheme, sizeof(scheme),
userpass, sizeof(userpass),
host_name, sizeof(host_name),
@@ -195,7 +193,7 @@ get_printer_attributes3(http_t *http_printer,
/* Invalid URI */
log_printf(get_printer_attributes_log,
"get-printer-attributes: Cannot parse the printer URI: %s\n",
- uri);
+ raw_uri);
return NULL;
}
@@ -207,7 +205,7 @@ get_printer_attributes3(http_t *http_printer,
HTTP_ENCRYPT_IF_REQUESTED, 1, 3000, NULL)) == NULL) {
log_printf(get_printer_attributes_log,
"get-printer-attributes: Cannot connect to printer with URI %s.\n",
- uri);
+ raw_uri);
return NULL;
}
} else
@@ -241,7 +239,7 @@ get_printer_attributes3(http_t *http_printer,
sizeof(pattrs_cap_fallback[0]);
}
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL,
- uri);
+ raw_uri);
ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
"requested-attributes", pattrs_size,
NULL, pattrs);
@@ -252,7 +250,7 @@ get_printer_attributes3(http_t *http_printer,
if (response) {
log_printf(get_printer_attributes_log,
"Requested IPP attributes (get-printer-attributes) for printer with URI %s\n",
- uri);
+ raw_uri);
/* Log all printer attributes for debugging and count them */
if (debug)
log_printf(get_printer_attributes_log,
@@ -310,7 +308,7 @@ get_printer_attributes3(http_t *http_printer,
} else {
log_printf(get_printer_attributes_log,
"Request for IPP attributes (get-printer-attributes) for printer with URI %s failed: %s\n",
- uri, cupsLastErrorString());
+ raw_uri, cupsLastErrorString());
log_printf(get_printer_attributes_log, "get-printer-attributes IPP request failed:\n");
log_printf(get_printer_attributes_log, " - No response\n");
}
|
core/nds32/panic.c: Format with clang-format
BRANCH=none
TEST=none | @@ -139,14 +139,14 @@ static void print_panic_information(uint32_t *regs, uint32_t itype,
uint32_t ipc, uint32_t ipsw)
{
panic_printf("=== EXCEP: ITYPE=%x ===\n", itype);
- panic_printf("R0 %08x R1 %08x R2 %08x R3 %08x\n",
- regs[0], regs[1], regs[2], regs[3]);
- panic_printf("R4 %08x R5 %08x R6 %08x R7 %08x\n",
- regs[4], regs[5], regs[6], regs[7]);
- panic_printf("R8 %08x R9 %08x R10 %08x R15 %08x\n",
- regs[8], regs[9], regs[10], regs[11]);
- panic_printf("FP %08x GP %08x LP %08x SP %08x\n",
- regs[12], regs[13], regs[14], regs[15]);
+ panic_printf("R0 %08x R1 %08x R2 %08x R3 %08x\n", regs[0], regs[1],
+ regs[2], regs[3]);
+ panic_printf("R4 %08x R5 %08x R6 %08x R7 %08x\n", regs[4], regs[5],
+ regs[6], regs[7]);
+ panic_printf("R8 %08x R9 %08x R10 %08x R15 %08x\n", regs[8], regs[9],
+ regs[10], regs[11]);
+ panic_printf("FP %08x GP %08x LP %08x SP %08x\n", regs[12],
+ regs[13], regs[14], regs[15]);
panic_printf("IPC %08x IPSW %05x\n", ipc, ipsw);
if ((ipsw & PSW_INTL_MASK) == (2 << PSW_INTL_SHIFT)) {
/* 2nd level exception */
|
BugID:19136832: Fix overflow of report_Id. | @@ -100,7 +100,7 @@ void awss_report_token_reply(void *pcontext, void *pclient, void *msg)
int ret, len;
char *payload;
char *id = NULL;
- char reply_id = 0;
+ uint8_t reply_id = 0;
uint32_t payload_len;
ret = awss_cmp_mqtt_get_payload(msg, &payload, &payload_len);
@@ -114,7 +114,7 @@ void awss_report_token_reply(void *pcontext, void *pclient, void *msg)
if (id == NULL)
return;
- reply_id = atoi(id);
+ reply_id = (uint8_t)atoi(id);
if (reply_id + 1 < awss_report_id)
return;
|
mention the known issue, description pending | @@ -4,6 +4,15 @@ title: Known Issues
# Known Issues
+## AppScope 1.2.0
+
+2022-11-09 - Feature Release
+
+As of this AppScope release, known issues include:
+
+- [#1055](https://github.com/criblio/appscope/issues/1055) <description TBD>.
+ - **Fix:** Planned for 1.2.1
+
## AppScope 1.1.0
2022-06-29 - Maintenance Release
|
chat: invite search style fix | @@ -93,7 +93,6 @@ export class InviteSearch extends Component {
return e.toLowerCase().includes(searchTerm);
});
if (match.length > 0) {
- console.log("found")
if (!(contact in shipMatches)) {
shipMatches.push(contact);
}
@@ -249,7 +248,7 @@ export class InviteSearch extends Component {
classes="mix-blend-diff v-mid"
/>
<span className="v-mid ml2 mw5 truncate dib">{"~" + ship}</span>
- <span class="absolute right-1 di truncate mw4 inter f9 pt1">{nicknames}</span>
+ <span className="absolute right-1 di truncate mw4 inter f9 pt1">{nicknames}</span>
</li>
);
});
|
Update wheel build setting | requires = ["setuptools", "wheel", "numpy"]
[tool.cibuildwheel]
-skip = ["pp*", "*-win32", "*-manylinux_i686"]
+skip = ["pp*", "*-win32", "*-manylinux_i686", "*-musllinux*"]
+manylinux-x86_64-image = "manylinux2014"
+manylinux-aarch64-image = "manylinux2014"
|
User: Disable Sydr exit timeout and increase solving timeouts | @@ -268,10 +268,8 @@ sydr-fuzz: $(PROJECT).sydr$(SUFFIX) $(PROJECT)$(SUFFIX) FORCE
@$(MKDIR) $(FUZZ_DIR)
@rm -rf sydr-fuzz-out
@cat <<- EOF > sydr-fuzz.toml
- exit-on-time = 7200
-
[sydr]
- args = "-s 90 -j $(FUZZ_JOBS)"
+ args = "--solving-timeout 60 -s 900 -j $(FUZZ_JOBS)"
target = "$(PROJECT).sydr$(SUFFIX) @@"
jobs = 1
|
should not release this memory at this stage | @@ -104,14 +104,14 @@ file_open(
if (NULL == pFp)
{
ReturnCode = EFI_OUT_OF_RESOURCES;
- goto Finish;
+ goto Error;
}
*pFp = gFileProtocol;
pFp->Revision = (UINT64)AllocateZeroPool(sizeof(FILE_CONTEXT));
if (0 == pFp->Revision)
{
ReturnCode = EFI_OUT_OF_RESOURCES;
- goto Finish;
+ goto Error;
}
pFc = cast_to_file_context_ptr(pFp->Revision);
@@ -146,25 +146,29 @@ file_open(
if (-1 == pFc->fd)
{
ReturnCode = get_last_error();
- goto Finish;
+ goto Error;
}
+
*NewHandle = pFp;
+ goto Finish;
-Finish:
+Error:
FREE_POOL_SAFE(pFc);
+ FREE_POOL_SAFE(pFp);
+Finish:
return ReturnCode;
}
EFI_STATUS
file_close(
- IN EFI_FILE_PROTOCOL *This
+ IN EFI_FILE_PROTOCOL *pFp
)
{
FILE_CONTEXT *pFc;
- if (This != &gFileProtocol)
+ if (pFp != &gFileProtocol)
{
- pFc = cast_to_file_context_ptr(This->Revision);
+ pFc = cast_to_file_context_ptr(pFp->Revision);
if (NULL != pFc && 0 != pFc->fd)
{
_close(pFc->fd);
@@ -174,9 +178,12 @@ file_close(
if (NULL != pFc)
{
FreePool(pFc);
- This->Revision = 0x0;
+ pFp->Revision = 0x0;
}
+
+ FreePool(pFp);
}
+
return EFI_SUCCESS;
}
|
replace 1'd0 with 1'b0 in axi_sts_register.v | @@ -93,10 +93,9 @@ module axi_sts_register #
assign s_axi_rdata = int_rdata_reg;
assign s_axi_rvalid = int_rvalid_reg;
- // Patch for opt_design errors due to trimming of unused paths
+ assign s_axi_awready = 1'b0;
+ assign s_axi_wready = 1'b0;
assign s_axi_bresp = 2'd0;
- assign s_axi_awready = 1'd0;
- assign s_axi_bvalid = 1'd0;
- assign s_axi_wready = 1'd0;
+ assign s_axi_bvalid = 1'b0;
endmodule
|
X509_REQ_get_extensions: add error queue entry on ill-formed extensions attribute | @@ -154,8 +154,10 @@ STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req)
}
if (ext == NULL) /* no extensions is not an error */
return sk_X509_EXTENSION_new_null();
- if (ext->type != V_ASN1_SEQUENCE)
+ if (ext->type != V_ASN1_SEQUENCE) {
+ ERR_raise(ERR_LIB_X509, X509_R_WRONG_TYPE);
return NULL;
+ }
p = ext->value.sequence->data;
return (STACK_OF(X509_EXTENSION) *)
ASN1_item_d2i(NULL, &p, ext->value.sequence->length,
|
Remove obsolete FAQ entry
Issue had been fixed in v1.14 by | @@ -114,16 +114,6 @@ In developer options, enable:
[simulating input]: https://github.com/Genymobile/scrcpy/issues/70#issuecomment-373286323
-### Mouse clicks at wrong location
-
-On MacOS, with HiDPI support and multiple screens, input location are wrongly
-scaled. See [#15].
-
-[#15]: https://github.com/Genymobile/scrcpy/issues/15
-
-Open _scrcpy_ directly on the monitor you use it.
-
-
### Special characters do not work
Injecting text input is [limited to ASCII characters][text-input]. A trick
|
Typo in stride_low desc in sceGxmTexture struct. | @@ -1051,7 +1051,7 @@ typedef struct SceGxmTexture {
uint32_t mip_filter : 1; //!< Mip filter for a non LINEAR_STRIDED texture
uint32_t min_filter : 2; //!< Min filter for a non LINEAR_STRIDED texture)
};
- uint32_t stride_low : 3; //!< Internal stride lower bits for a non LINEAR_STRIDED texture
+ uint32_t stride_low : 3; //!< Internal stride lower bits for a LINEAR_STRIDED texture
};
uint32_t mag_filter : 2; //!< Mag Filter (and Min filter if LINEAR_STRIDED texture)
uint32_t unk1 : 3; //!< Unknown field
|
FIPS provider modifications | #include "prov/seeding.h"
#include "self_test.h"
#include "crypto/context.h"
+#include "internal/core.h"
static const char FIPS_DEFAULT_PROPERTIES[] = "provider=fips,fips=yes";
static const char FIPS_UNAPPROVED_PROPERTIES[] = "provider=fips,fips=no";
@@ -36,6 +37,22 @@ static OSSL_FUNC_provider_gettable_params_fn fips_gettable_params;
static OSSL_FUNC_provider_get_params_fn fips_get_params;
static OSSL_FUNC_provider_query_operation_fn fips_query;
+/* Locale object accessor functions */
+#ifdef OPENSSL_SYS_MACOSX
+# include <xlocale.h>
+#else
+# include <locale.h>
+#endif
+
+#if defined OPENSSL_SYS_WINDOWS
+# define locale_t _locale_t
+# define freelocale _free_locale
+#endif
+static locale_t loc;
+
+static int fips_init_casecmp(void);
+static void fips_deinit_casecmp(void);
+
#define ALGC(NAMES, FUNC, CHECK) { { NAMES, FIPS_DEFAULT_PROPERTIES, FUNC }, CHECK }
#define ALG(NAMES, FUNC) ALGC(NAMES, FUNC, NULL)
@@ -478,6 +495,23 @@ static const OSSL_ALGORITHM *fips_query(void *provctx, int operation_id,
return NULL;
}
+void *ossl_c_locale() {
+ return (void *)loc;
+}
+
+static int fips_init_casecmp(void) {
+# ifdef OPENSSL_SYS_WINDOWS
+ loc = _create_locale(LC_COLLATE, "C");
+# else
+ loc = newlocale(LC_COLLATE_MASK, "C", (locale_t) 0);
+# endif
+ return (loc == (locale_t) 0) ? 0 : 1;
+}
+
+static void fips_deinit_casecmp(void) {
+ freelocale(loc);
+}
+
static void fips_teardown(void *provctx)
{
OSSL_LIB_CTX_free(PROV_LIBCTX_OF(provctx));
@@ -490,6 +524,7 @@ static void fips_intern_teardown(void *provctx)
* We know that the library context is the same as for the outer provider,
* so no need to destroy it here.
*/
+ fips_deinit_casecmp();
ossl_prov_ctx_free(provctx);
}
@@ -539,6 +574,8 @@ int OSSL_provider_init_int(const OSSL_CORE_HANDLE *handle,
memset(&selftest_params, 0, sizeof(selftest_params));
+ if (!fips_init_casecmp())
+ return 0;
if (!ossl_prov_seeding_from_dispatch(in))
return 0;
for (; in->function_id != 0; in++) {
|
bootstrap-t4p4s.sh fixed
Fixed P4C git submodule cloning in bootstrap-t4p4s.sh | @@ -33,7 +33,7 @@ git clone --recursive -b "${PROTOBUF_BRANCH}" https://github.com/google/protobuf
WAITPROC_PROTOBUF="$!"
[ $PARALLEL_INSTALL -ne 0 ] || wait "$WAITPROC_PROTOBUF"
-git clone --recursive https://github.com/p4lang/p4c && cd p4c && git checkout $P4C_COMMIT && git submodule update --recursive &
+git clone --recursive https://github.com/p4lang/p4c && cd p4c && git checkout $P4C_COMMIT && git submodule update --init --recursive &
WAITPROC_P4C="$!"
[ $PARALLEL_INSTALL -ne 0 ] || wait "$WAITPROC_P4C"
|
Fix bind BIND_ANIMATION_FRAME_REMOVE option. Previously the bind entity would kill itself instantly regardless of frames. | @@ -21999,7 +21999,7 @@ void adjust_bind(entity *e)
{
// If we don't have the frame and frame kill flag is
// set, kill ourselves.
- if (e->animation[e->animnum].numframes < frame)
+ if (e->animation->numframes < frame)
{
if (e->binding.match & BIND_ANIMATION_FRAME_REMOVE)
|
pg_dump: Fix failing test on ubuntu 18
perl 5.26 packaged with ubuntu 18 didn't like some newly introduced regex,
this fixes the failing test for that platform.
Failed test 'should dump CREATE EXTERNAL WEB TABLE dump_test.dummy_ext_tab`
Authored-by: Brent Doil | @@ -1569,7 +1569,7 @@ my %tests = (
\n\QOPTIONS (\E
\n\s+\Qcommand 'echo foo',\E
\n\s+\Qdelimiter '\E\s+\Q',\E
- \n\s+\Qencoding '6',\E
+ \n\s+\Qencoding '\E\d\Q',\E
\n\s+\Qescape E'\\',\E
\n\s+\Qexecute_on 'ALL_SEGMENTS',\E
\n\s+\Qformat 'text',\E
|
add scePsmDrmGetRifKey and psm license struct
* add scePsmDrmGetRifKey and psm license struct
Maybe should goto a separate psmdrm.h, not sure.
* fix return
* make match what princess of sleeping and KuromeSan said
* Update npdrm.h
* correct npdrm.h | @@ -37,6 +37,24 @@ typedef struct SceNpDrmLicense { // size is 0x200
char rsa_signature[0x100];
} SceNpDrmLicense;
+typedef struct ScePsmDrmLicense {
+ char magic[0x8];
+ SceUInt32 unk1;
+ SceUInt32 unk2;
+ SceUInt64 account_id;
+ SceUInt32 unk3;
+ SceUInt32 unk4;
+ SceUInt64 start_time;
+ SceUInt64 expiration_time;
+ SceUInt8 activation_checksum[0x20];
+ char content_id[0x30];
+ SceUInt8 unk5[0x80];
+ SceUInt8 unk6[0x20];
+ SceUInt8 key[0x10];
+ SceUInt8 signature[0x1D0];
+ SceUInt8 rsa_signature[0x100];
+} ScePsmDrmLicense;
+
/**
* Get rif name
*
@@ -72,6 +90,19 @@ int _sceNpDrmGetFixedRifName(char *rif_name, uint64_t aid);
*/
int _sceNpDrmGetRifNameForInstall(char *rif_name, const void *rif_data, int unk);
+/**
+ * Get PSM rif key
+ *
+ * @param[in] license_buf - RIF buffer (1024 bytes)
+ *
+ * @param[out] keydata - Decrypted key data
+ *
+ * @param[in] flags - Unknown
+ *
+ * @return 0 on success, < 0 on error
+*/
+int scePsmDrmGetRifKey(const ScePsmDrmLicense *license_buf, char *keydata, int flags);
+
#ifdef __cplusplus
}
#endif
|
Replace hardcoded 'share/' by datadir variable
Meson defines a variable for the data directory.
PR <https://github.com/Genymobile/scrcpy/pull/3351> | @@ -223,14 +223,17 @@ executable('scrcpy', src,
install: true,
c_args: [])
+# <https://mesonbuild.com/Builtin-options.html#directories>
+datadir = get_option('datadir') # by default 'share'
+
install_man('scrcpy.1')
install_data('data/icon.png',
rename: 'scrcpy.png',
- install_dir: 'share/icons/hicolor/256x256/apps')
+ install_dir: join_paths(datadir, 'icons/hicolor/256x256/apps'))
install_data('data/zsh-completion/_scrcpy',
- install_dir: 'share/zsh/site-functions')
+ install_dir: join_paths(datadir, 'zsh/site-functions'))
install_data('data/bash-completion/scrcpy',
- install_dir: 'share/bash-completion/completions')
+ install_dir: join_paths(datadir, 'bash-completion/completions'))
### TESTS
|
king: Started implementing multi-tenet HTTP. | set -e
-stack test urbit-king --fast
+(cd pkg/hs; stack test urbit-king --fast)
pkg=$(nix-build nix/ops -A test --no-out-link "$@")
|
misc: update package counts | @@ -23,11 +23,11 @@ pre-packaged binary RPMs available per architecture type are summarized as follo
Base OS | aarch64 | x86_64 | noarch
:---: | :---: | :---: | :---:
-CentOS 7.5 | 407 | 723 | 45
-SLES 12 SP3 | 414 | 727 | 45
+CentOS 7.6 | 408 | 724 | 45
+SLES 12 SP4 | 415 | 728 | 45
A list of all available components is available on the OpenHPC
-[wiki](https://github.com/openhpc/ohpc/wiki/Component-List-v1.3.6), and
+[wiki](https://github.com/openhpc/ohpc/wiki/Component-List-v1.3.7), and
specific versioning details can be found in the "Package Manifest" appendix
located in each of the companion install guide documents. A list of updated
packages can be found in the [release
|
bootloader_support(esp32c2): Fix esp_secure_boot_cfg_verify_release_mode API
When FE and SB keys are set then:
128 low bits are read protected
128 hi bits are readable | @@ -363,7 +363,11 @@ bool esp_secure_boot_cfg_verify_release_mode(void)
}
#endif
++num_keys;
+#if SOC_EFUSE_CONSISTS_OF_ONE_KEY_BLOCK
+ secure = !esp_efuse_read_field_bit(ESP_EFUSE_RD_DIS_KEY0_HI);
+#else
secure = !esp_efuse_get_key_dis_read(block);
+#endif // !SOC_EFUSE_CONSISTS_OF_ONE_KEY_BLOCK
result &= secure;
if (!secure) {
ESP_LOGE(TAG, "Secure boot key in BLOCK%d must NOT be read-protected (can not be used)", block);
|
Sharpen nogame screen; | @@ -36,7 +36,7 @@ local function nogame()
}
uv.x -= clamp(uv.x, -2., 0.);
float sdf = -length(uv) * sign(uv.y) - .5;
- float w = fwidth(sdf);
+ float w = fwidth(sdf) * .5;
float alpha = smoothstep(.22 + w, .22 - w, sdf);
vec3 color = mix(vec3(.094, .662, .890), vec3(.913, .275, .6), clamp(y * 1.5 - .25, 0., 1.));
color = mix(color, vec3(.2, .2, .24), smoothstep(-.12 + w, -.12 - w, sdf));
|
dm: types: add container_of macro
Add standard container_of macro to access
the parent struct pointer.
Acked-by: Wang, Yu1 | @@ -18,6 +18,11 @@ typedef uint64_t cap_ioctl_t;
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
+#define container_of(ptr, type, member) ({ \
+ const typeof(((type *)0)->member) * __mptr = (ptr); \
+ (type *)((char *)__mptr - (offsetof(type, member))); \
+})
+
#define __aligned(x) __attribute__((aligned(x)))
#define __section(x) __attribute__((__section__(x)))
#define __MAKE_SET(set, sym) \
|
doc: add iofs release1 install and setup
- command to enable virtual fpga functions
- bind pci-vfio to virtual functions
- command to run Host Exerciser Loopback tool | @@ -393,6 +393,79 @@ Done
```
+## Setup IOFS Release1 Bitstream on FPGA PCIe card ##
+
+Program IOFS Release1 bitstream on FPGA D5005 or N6010 cards and reboot system.
+
+Run command: lspci | grep acc
+
+```3b:00.0 Processing accelerators: Intel Corporation Device af00 (rev 01)```
+
+Number of virtual functions supported by bitstream
+
+```
+ cat /sys/bus/pci/devices/0000\:3b\:00.0/sriov_numvfs
+ output: 3
+```
+
+Enable FPGA virtual functions
+
+```
+ sudo sh -c "echo 3 > /sys/bus/pci/devices/0000\:3b\:00.0/sriov_numvfs"
+```
+
+List of FPGA PF and VF's
+
+```
+3b:00.0 Processing accelerators: Intel Corporation Device af00 (rev 01)
+3b:00.1 Processing accelerators: Intel Corporation Device af01 (rev 01)
+3b:00.2 Processing accelerators: Intel Corporation Device af01 (rev 01)
+3b:00.3 Processing accelerators: Intel Corporation Device af01 (rev 01)
+```
+
+FPGA VF1/3b:00.1/Host exerciser loopback Accelerator guid 56E203E9-864F-49A7-B94B-12284C31E02B
+
+FPGA VF2/3b:00.2/Host exerciser memory Accelerator guid 8568AB4E-6bA5-4616-BB65-2A578330A8EB
+
+FPGA VF3/3b:00.3/Host exerciser hssi Accelerator guid 43425ee6-92b2-4742-b03a-bd8d4a533812
+
+
+
+
+Bind pcie-vfio dirver to FPGA virtual functions
+
+```
+ sudo opaevfio -i 0000:3b:00.1 -u userid -g userid
+```
+
+Unbind pcie-vfio dirver to FPGA virtual functions
+
+```
+ sudo opaevfio -r 0000:3b:00.1 -d None
+```
+
+
+Host Exerciser Loopback (HE-LBK) AFU can move data between host memory and FPGA.
+
+```
+ host_exerciser lpbk
+
+ [lpbk] [info] starting test run, count of 1
+ Input Config:0
+ Allocate SRC Buffer
+ Allocate DST Buffer
+ Allocate DSM Buffer
+ Start Test
+ Test Completed
+ Host Exerciser swtest msg:0
+ Host Exerciser numReads:32
+ Host Exerciser numWrites:32
+ Host Exerciser numPendReads:0
+ Host Exerciser numPendWrites:0
+ [lpbk] [info] Test lpbk(1): PASS
+
+```
+
```eval_rst
.. note::
|
examples: text: Fixed text example | @@ -32,24 +32,24 @@ func run() int {
defer window.Destroy()
if font, err = ttf.OpenFont("../../assets/test.ttf", 32); err != nil {
- fmt.Fprint(os.Stderr, "Failed to open font: %s\n", err)
+ fmt.Fprintf(os.Stderr, "Failed to open font: %s\n", err)
return 4
}
defer font.Close()
- if solid, err = font.RenderUTF8Solid("Hello, World!", sdl.Color{255, 0, 0, 255}); err != nil {
- fmt.Fprint(os.Stderr, "Failed to render text: %s\n", err)
+ if solid, err = font.RenderUTF8_Solid("Hello, World!", sdl.Color{255, 0, 0, 255}); err != nil {
+ fmt.Fprintf(os.Stderr, "Failed to render text: %s\n", err)
return 5
}
defer solid.Free()
if surface, err = window.GetSurface(); err != nil {
- fmt.Fprint(os.Stderr, "Failed to get window surface: %s\n", err)
+ fmt.Fprintf(os.Stderr, "Failed to get window surface: %s\n", err)
return 6
}
if err = solid.Blit(nil, surface, nil); err != nil {
- fmt.Fprint(os.Stderr, "Failed to put text on window surface: %s\n", err)
+ fmt.Fprintf(os.Stderr, "Failed to put text on window surface: %s\n", err)
return 7
}
|
chat: hoon eval preserves whitespace | @@ -19,6 +19,7 @@ export default class CodeContent extends Component {
overflow='auto'
maxHeight='10em'
maxWidth='100%'
+ style={{ whiteSpace: 'pre' }}
backgroundColor='scales.black10'
>
{content.code.output[0].join('\n')}
@@ -36,6 +37,7 @@ export default class CodeContent extends Component {
overflow='auto'
maxHeight='10em'
maxWidth='100%'
+ style={{ whiteSpace: 'pre' }}
>
{content.code.expression}
</Text>
|
FileShare schemas: convert int type fields to long type to avoid number
format exceptions | <field name="description" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="character_count_with_spaces" type="int" indexed="true" stored="true" multiValued="false"/>
<field name="revision_number" type="string" indexed="true" stored="true" multiValued="false"/>
- <field name="line_count" type="int" indexed="true" stored="true" multiValued="false"/>
- <field name="word_count" type="int" indexed="true" stored="true" multiValued="false"/>
- <field name="paragraph_count" type="int" indexed="true" stored="true" multiValued="false"/>
- <field name="total_time" type="int" indexed="true" stored="true" multiValued="false"/>
- <field name="character_count" type="int" indexed="true" stored="true" multiValued="false"/>
- <field name="page_count" type="int" indexed="true" stored="true" multiValued="false"/>
- <field name="xmptpg_npages" type="int" indexed="true" stored="true" multiValued="false"/>
+ <field name="line_count" type="long" indexed="true" stored="true" multiValued="false"/>
+ <field name="word_count" type="long" indexed="true" stored="true" multiValued="false"/>
+ <field name="paragraph_count" type="long" indexed="true" stored="true" multiValued="false"/>
+ <field name="total_time" type="long" indexed="true" stored="true" multiValued="false"/>
+ <field name="character_count" type="long" indexed="true" stored="true" multiValued="false"/>
+ <field name="page_count" type="long" indexed="true" stored="true" multiValued="false"/>
+ <field name="xmptpg_npages" type="long" indexed="true" stored="true" multiValued="false"/>
<field name="author_search" type="text_general" indexed="true" stored="false" multiValued="true"/>
<field name="subject_search" type="text_general" indexed="true" stored="false" multiValued="true"/>
<field name="keywords_search" type="text_general" indexed="true" stored="false" multiValued="true"/>
|
OcConsoleLib: Fix potential null pointer dereference | @@ -357,9 +357,12 @@ ParseResolution (
*Width = 0;
*Height = 0;
- *Bpp = 0;
*Max = FALSE;
+ if (Bpp != NULL) {
+ *Bpp = 0;
+ }
+
if (AsciiStrCmp (String, "Max") == 0) {
*Max = TRUE;
return;
|
Change sensor switch names. | </div>
</div>
<div class="form-group">
- <label class="control-label col-xs-7">Attitude Sensor</label>
+ <label class="control-label col-xs-7">AHRS Sensor</label>
<div class="col-xs-5">
<ui-switch ng-model='IMU_Sensor_Enabled' settings-change></ui-switch>
</div>
</div>
<div class="form-group">
- <label class="control-label col-xs-7">Altitude Sensor</label>
+ <label class="control-label col-xs-7">Baro Sensor</label>
<div class="col-xs-5">
<ui-switch ng-model='BMP_Sensor_Enabled' settings-change></ui-switch>
</div>
|
[dpos] remove the irrelevent elements from the undo | @@ -8,6 +8,7 @@ import (
"github.com/aergoio/aergo/chain"
"github.com/aergoio/aergo/types"
+ "github.com/davecgh/go-spew/spew"
)
type errLibUpdate struct {
@@ -95,8 +96,25 @@ func (pls *pLibStatus) rollbackStatusTo(block *types.Block) error {
end *list.Element
confirmLow = cInfo(beg).BlockNo
targetHash = block.ID()
+ targetBlockNo = block.BlockNo()
)
+ logger.Debug().
+ Uint64("target no", targetBlockNo).Int("undo len", pls.undo.Len()).
+ Msg("start LIB status rollback")
+
+ // Remove those associated with the blocks reorganized out.
+ removeIf(pls.undo,
+ func(e *list.Element) bool {
+ return cInfo(e).BlockNo > targetBlockNo
+ },
+ )
+
+ logger.Debug().
+ Uint64("target no", targetBlockNo).
+ Int("current undo len", pls.undo.Len()).
+ Msg("irrelevent element removed from undo list")
+
// Check if block is a valid rollback target.
for e := beg; e != nil; e = e.Prev() {
c := cInfo(e)
@@ -485,3 +503,11 @@ func (s *Status) NeedReorganization(rootNo types.BlockNo) bool {
return reorganizable
*/
}
+
+func dumpConfirmInfo(name string, l *list.List) {
+ forEach(l,
+ func(e *list.Element) {
+ logger.Debug().Str("confirm info", spew.Sdump(cInfo(e))).Msg(name)
+ },
+ )
+}
|
Changelog: Document non-Apple boot args ASSERT fix | @@ -2,6 +2,7 @@ OpenCore Changelog
==================
#### v0.5.2
- Fixed `MinKernel` and `MaxKernel` logic (thx @dhinakg)
+- Fixed ASSERT when booting non-Apple OSes without arguments from the DEBUG version.
#### v0.5.1
- Added support of kernel resource kext injection
|
Update build steps for RHEL 8 | @@ -158,6 +158,18 @@ sudo apt-get install liblttng-ust-dev
sudo apt-get install lttng-tools
```
+On RHEL 8, you'll need to manually install CMake to get the latest version.
+Download the x86_64 Linux installation script from cmake.org, and run the following
+`sudo sh cmake.sh --prefix=/usr/local/ --exclude-subdir`
+to install CMake.
+
+RHEL 8 also requires the following:
+
+```
+sudo dnf install openssl-devel
+sudo dnf install libatomic
+``
+
### macOS
The build needs CMake and compiler.
|
Shrink oversized color array | @@ -561,7 +561,7 @@ static float compress_symbolic_block_for_partition_1plane(
workscb.color_formats_matched = 0;
if (partition_count >= 2 && all_same)
{
- uint8_t colorvals[BLOCK_MAX_PARTITIONS][12];
+ uint8_t colorvals[BLOCK_MAX_PARTITIONS][8];
uint8_t color_formats_mod[BLOCK_MAX_PARTITIONS] { 0 };
bool all_same_mod = true;
for (unsigned int j = 0; j < partition_count; j++)
|
http_client: on exception, use context destroyer (oss-fuzz 26399) | @@ -686,8 +686,7 @@ struct flb_http_client *flb_http_client(struct flb_upstream_conn *u_conn,
if (proxy) {
ret = proxy_parse(proxy, c);
if (ret != 0) {
- flb_free(buf);
- flb_free(c);
+ flb_http_client_destroy(c);
return NULL;
}
}
@@ -696,8 +695,7 @@ struct flb_http_client *flb_http_client(struct flb_upstream_conn *u_conn,
c->resp.data = flb_malloc(FLB_HTTP_DATA_SIZE_MAX);
if (!c->resp.data) {
flb_errno();
- flb_free(buf);
- flb_free(c);
+ flb_http_client_destroy(c);
return NULL;
}
c->resp.data_len = 0;
|
Generate exporter_master_secret after server Finished | @@ -581,9 +581,18 @@ int tls13_change_cipher_state(SSL *s, int which)
goto err;
}
- if (label == server_application_traffic)
+ if (label == server_application_traffic) {
memcpy(s->server_app_traffic_secret, secret, hashlen);
- else if (label == client_application_traffic)
+ /* Now we create the exporter master secret */
+ if (!tls13_hkdf_expand(s, ssl_handshake_md(s), insecret,
+ exporter_master_secret,
+ sizeof(exporter_master_secret) - 1,
+ hash, hashlen, s->exporter_master_secret,
+ hashlen)) {
+ /* SSLfatal() already called */
+ goto err;
+ }
+ } else if (label == client_application_traffic)
memcpy(s->client_app_traffic_secret, secret, hashlen);
if (!ssl_log_secret(s, log_label, secret, hashlen)) {
@@ -667,7 +676,7 @@ int tls13_export_keying_material(SSL *s, unsigned char *out, size_t olen,
unsigned int hashsize, datalen;
int ret = 0;
- if (ctx == NULL || !SSL_is_init_finished(s))
+ if (ctx == NULL)
goto err;
if (!use_context)
|
Cray compiler: Enable ISO C++ 2011 standard | @@ -70,6 +70,9 @@ ecbuild_add_option( FEATURE EXPERIMENTAL_BUILD_WITH_CXX
DEFAULT OFF )
if( HAVE_EXPERIMENTAL_BUILD_WITH_CXX )
enable_language( CXX )
+ if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Cray" )
+ set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")
+ endif()
endif()
ecbuild_add_option( FEATURE PRODUCT_GRIB
|
check correct mbedtls version number | #include "mbedtls/error.h"
#include "mbedtls/debug.h"
#include "mbedtls/sha256.h"
+#include "mbedtls/version.h"
#include "main.h"
#include "conf.h"
@@ -212,7 +213,7 @@ int tls_client_get_id(uint8_t id[], size_t len, const char query[])
mbedtls_sha256_context ctx;
mbedtls_sha256_init(&ctx);
-#if (MBEDTLS_VERSION_MAJOR >= 0x02070000)
+#if (MBEDTLS_VERSION_MAJOR >= 2 && MBEDTLS_VERSION_MINOR >= 7)
ret |= mbedtls_sha256_update_ret(&ctx, (uint8_t*) &query[0], strlen(query));
ret |= mbedtls_sha256_finish_ret(&ctx, hash);
#else
|
added additional info about rolling release and sync to hashcat beta fiexed typo | @@ -4,7 +4,7 @@ hcxtools
Small set of tools to capture and convert packets from wlan devices
for the use with latest hashcat. The tools are 100% compatible to hashcat
and recommended by hashcat. This branch is pretty closely synced to
-hashcat git branch (that means: latest hcxtools matching on latest hashcat beta)
+hashcat git branch (that means: latest hcxtools matching on latest hashcat beta).
Support for hashcat hash-modes (2500, 2501, 4800, 5500, 12000, 15800).
After capturing, upload the "uncleaned" cap here
(http://wpa-sec.stanev.org/?submit) to see if your ap is vulnerable
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.