message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Changelog: Fix 'opencore-version' location | @@ -23,6 +23,7 @@ OpenCore Changelog
- Fixed default boot entry selection without timeout for builtin picker
- Added ocpasswordgen utility to generate OpenCore password data
- Added `ActivateHpetSupport` quirk to activate HPET support
+- Fixed `opencore-version` reporting the incorrect version in rare cases
#### v0.6.6... |
Patch by Jean-Francois Dockes in github
As far as I can see, the following patch clears the latest crash. I see
no reason for the list_head to be dynamically allocated, but maybe I'm
wrong, maybe check: | @@ -1116,7 +1116,8 @@ static int process_request(
int resp_minor;
int alias_grabbed;
size_t dummy;
- struct list_head *extra_headers = NULL;
+ LIST_HEAD(extra_headers_store);
+ struct list_head *extra_headers = &extra_headers_store;
print_http_headers(req);
url = &req->uri;
|
OcDevicePathLib: Implement full DP printing via DevicePathLib function | @@ -103,43 +103,13 @@ DebugPrintDevicePath (
DEBUG_CODE_BEGIN();
CHAR16 *TextDevicePath;
- BOOLEAN PrintedOnce;
- BOOLEAN EndsWithSlash;
- UINTN Length;
-
- DEBUG ((ErrorLevel, "%a - ", Message));
-
- if (DevicePath == NULL) {
- DEBUG ((ErrorLevel, "<missing>\n", Message));
- return;
- }
- PrintedOnce = FALSE;
- EndsWi... |
Better error printout. | @@ -3870,6 +3870,9 @@ static int nsd_accept4(
log_msg(LOG_ERR, "fcntl failed: %s", strerror(errno));
close(s);
s = -1;
+ errno=EINTR; /* stop error printout as error in accept4
+ by setting this errno, it omits printout, in
+ later code that calls nsd_accept4 */
}
}
return s;
|
Modified showreproject for video | @@ -87,7 +87,7 @@ static void redraw(SurviveContext *ctx) {
// survive_apply_bsd_calibration(so->ctx, lh, _a, a);
auto l = scene->lengths[sensor][lh];
- double r = std::max(1., (l[0] + l[1]) / 1000.);
+ double r = std::max(3., (l[0] + l[1]) / 1000.);
// std::cerr << lh << "\t" << sensor << "\t" << ((l[0] + l[1]) / 2000... |
Embarrassing typo. | @@ -366,7 +366,7 @@ comparecomplex(Flattenctx *s, Node *n, Op op)
return e;
}
fatal(n, "cannot compare values of type %s for equality\n",
- tystr(exprtype(n->expr.args[0]));
+ tystr(exprtype(n->expr.args[0])));
return NULL;
}
|
Modify the tc name because of the API name change(pthread_sem_take, pthread_sem_give) | @@ -882,27 +882,27 @@ static void tc_pthread_pthread_cancel_setcancelstate(void)
* @fn :tc_pthread_pthread_take_give_semaphore
* @brief :Support managed access to the private data sets.
* @Scenario :Support managed access to the private data sets.
-* API's covered :pthread_takesemaphore, pthread_givesemaphore
+* API's ... |
display: fix macro names for ANSI control codes | #define ESC_RESET "\033[0m"
#define ESC_SCROLL_REGION(x, y) "\033[" #x ";" #y "r"
#define ESC_SCROLL_DISABLE "\033[?7h"
-#define ESC_SCROLL_ENABLE "\033[r"
-#define ESC_NAV_VERT(x) "\033[" #x "B"
+#define ESC_SCROLL_RESET "\033[r"
+#define ESC_NAV_DOWN(x) "\033[" #x "B"
+#define ESC_NAV_HORIZ(x) "\033[" #x "G"
#define ... |
HW: renaming int_valid to int_req | @@ -820,7 +820,7 @@ PACKAGE donut_types IS
-- js_c
--
TYPE JS_C_T IS RECORD
- int_valid : std_ulogic;
+ int_req : std_ulogic;
int_src : std_ulogic_vector(INT_BITS-1 DOWNTO 0);
int_ctx : std_ulogic_vector(CONTEXT_BITS-1 DOWNTO 0);
END RECORD;
@@ -919,7 +919,7 @@ PACKAGE donut_types IS
rd_len : std_ulogic_vector( 7 DOWNT... |
0xe6 packet has no response | @@ -205,20 +205,20 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
espconn_send_string(&web_conn, resp);
espconn_disconnect(conn);
} else if (memcmp(data, "GET /client ", 12) == 0) {
- uint32_t recvData[0x11];
- spi_comm("\x00\x00\x00\x00\x40\xE6\x00\x00\x00\x00\x40\x00", 0xC, recvData... |
http_client: reset first byte of response payload buffer | @@ -109,6 +109,10 @@ static int header_lookup(struct flb_http_client *c,
char *crlf;
char *end;
+ if (!c->resp.data) {
+ return FLB_HTTP_MORE;
+ }
+
/* Lookup the beginning of the header */
p = strcasestr(c->resp.data, header);
end = strstr(c->resp.data, "\r\n\r\n");
@@ -742,6 +746,7 @@ struct flb_http_client *flb_http... |
Re-enable test_ssl_new resumption tests for TLSv1.3 | @@ -135,22 +135,6 @@ sub generate_resumption_tests {
# Don't write the redundant "Method = TLS" into the configuration.
undef $method if !$dtls;
-
- #TODO(TLS1.3): This is temporary code while we do not have support for
- # TLS1.3 resumption. We recalculate min_tls_enabled and
- # max_tls_enabled, ignoring TLS1.3
- for... |
cron: don't include rtctime_internal.h
That file is supposed to only be included once because it does things
like declare static globals. As it stands, cron doesn't believe time is
ticking.
Fixes | #include "c_string.h"
#include "ets_sys.h"
#include "time.h"
-#include "rtc/rtctime_internal.h"
#include "rtc/rtctime.h"
#include "stdlib.h"
#include "mem.h"
@@ -189,7 +188,7 @@ static void cron_handle_time(uint8_t mon, uint8_t dom, uint8_t dow, uint8_t hour
static void cron_handle_tmr() {
struct rtc_timeval tv;
- rtc_... |
Update services/outside_network.c | @@ -2289,7 +2289,7 @@ setup_comm_ssl(struct comm_point* cp, struct outside_network* outnet,
cp->ssl = outgoing_ssl_fd(outnet->sslctx, fd);
if(!cp->ssl) {
log_err("cannot create SSL object");
- return NULL;
+ return 0;
}
#ifdef USE_WINSOCK
comm_point_tcp_win_bio_cb(cp, cp->ssl);
|
Improve the buffer pointer check in write pre_shared key | @@ -783,26 +783,29 @@ int mbedtls_ssl_tls13_write_identities_of_pre_shared_key_ext(
identities_len = 6 + psk_identity_len;
l_binders_len = 1 + hash_len;
- MBEDTLS_SSL_CHK_BUF_PTR( p, end, 4 + 2 + identities_len + 2 + l_binders_len );
MBEDTLS_SSL_DEBUG_MSG( 3,
( "client hello, adding pre_shared_key extension, "
"omittin... |
Fixed Importing Masternode Error Printing | @@ -510,7 +510,7 @@ bool AppInit2(boost::thread_group& threadGroup)
std::string err;
masternodeConfig.read(err);
if (!err.empty())
- InitError(strprintf(_("error while parsing masternode.conf Error: %s \n"), err));
+ InitError("error while parsing masternode.conf Error: " + err);
if (mapArgs.count("-connect") && mapMul... |
[chainmaker][#1140]remove url format check | @@ -28,7 +28,7 @@ api_chainmaker.c defines the chainmaker wallet API for BoAT IoT SDK.
#include "common/transaction.pb-c.h"
#include "boatchainmaker/boatchainmaker.h"
-#define BOAT_TXID_LEN 64
+#define BOAT_TXID_LEN 65
#define BOAT_RETRY_CNT 10
#define BOAT_CHAINMAKER_MINE_INTERVAL 3 //!< Mining Interval of the blockch... |
ksched: try harder to avoid spurious signals | @@ -251,12 +251,12 @@ static long ksched_park(void)
p = this_cpu_ptr(&kp);
s = &shm[cpu];
+ local_set(&p->busy, false);
+
/* clear blocked signals */
sigemptyset(&em);
WARN_ON_ONCE(sigprocmask(SIG_SETMASK, &em, NULL));
- local_set(&p->busy, false);
-
/* check if a new request is available yet */
gen = smp_load_acquire(... |
Yardoc: Fix default value style | @@ -969,8 +969,7 @@ Draw_clone(VALUE self)
* @param image [Magick::Image] the image
* @return [Magick::Draw] self
*
- * @overload composite(x, y, width, height, image, operator)
- * - Default operator is {Magick::OverCompositeOp}.
+ * @overload composite(x, y, width, height, image, operator = Magick::OverCompositeOp)
*... |
cleanup note expression | @@ -101,7 +101,7 @@ typedef struct clap_event_note {
} clap_event_note_t;
enum {
- // x in 0..1, plain = 20 * log(4 * x)
+ // with 0 < x <= 4, plain = 20 * log(x)
CLAP_NOTE_EXPRESSION_VOLUME,
// pan, 0 left, 0.5 center, 1 right
@@ -112,10 +112,9 @@ enum {
// 0..1
CLAP_NOTE_EXPRESSION_VIBRATO,
+ CLAP_NOTE_EXPRESSION_EXP... |
Update: english_to_narsese.py: also allow other tenses to be extracted from sentence | @@ -253,14 +253,24 @@ while True:
if line.strip() != "": print("//Input sentence: " + line)
#determine tense from sentence
punctuations = [" ", "!","?"]
- tensesPresent = ["now", "currently"]
- tenseNow = True in [" "+w+p in spaced_line for p in punctuations for w in tensesPresent]
+ tensesPast = ["previously", "before... |
fixes false positive renaming | @@ -278,7 +278,7 @@ void handleRegister(int sock, struct oidc_account* loaded_p, size_t loaded_p_cou
if(error==NULL) {
error = getJSONValue(res, "error");
}
- char* fmt = "The client was registered with the resulting config. It is not usable for oidc-agent in that way. Please contact the account to update the client co... |
permalinks: avoid empty blocks for nested same-resource embeds | @@ -127,10 +127,16 @@ function GraphPermalink(
showOurContact={showOurContact}
/>
)}
- {isInSameResource && (
- <Row height='12px' />
+ {association && !isInSameResource && (
+ <PermalinkDetails
+ known
+ showTransclusion={showTransclusion}
+ icon={getModuleIcon(association.metadata.config.graph)}
+ title={association.... |
Add documentation about when and why wuffs_base__status might not be ok | @@ -13,9 +13,9 @@ uint32_t parse(char* p, size_t n) {
// wuffs_demo__parser *parser = wuffs_demo__parser__alloc();
// and don't run __initialize();
wuffs_demo__parser parser;
-
status = wuffs_demo__parser__initialize(&parser, sizeof__wuffs_demo__parser(),
WUFFS_VERSION, 0);
+ // This happens when bad arguments are pass... |
Lower to 500000 elements to sort | @@ -50,10 +50,9 @@ static int __cmp_asc(const void *a, const void *b) {
bool test_sdb_list_big(void) {
Sdb *db = sdb_new0 ();
int i;
- for (i = 0; i < 1000000; i++) {
+ for (i = 0; i < 500000; i++) {
sdb_num_set (db, sdb_fmt (0, "%d", i), i + 1, 0);
}
- printf ("Let sort the list\n");
SdbList *list = sdb_foreach_list (... |
cpeng: round up img size to nearest cacheline | #include "afu_test.h"
#include "ofs_cpeng.h"
+#define CACHELINE_SZ 64u
const char *cpeng_guid = "44bfc10d-b42a-44e5-bd42-57dc93ea7f91";
@@ -90,10 +91,13 @@ public:
// Read file into shared buffer
std::ifstream inp(filename_, std::ios::binary | std::ios::ate);
- auto sz = inp.tellg();
+ size_t sz = inp.tellg();
inp.seek... |
Feat:implicitly declaring library function 'strlen' with type 'unsigned int (const char *)' include the header <string.h> or explicitly provide a declaration for 'strlen' Solve several warnning problems contained in library functions | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+
+#include <stdio.h>
+#include <string.h>
+#include "include/netdb.h"
#include "http_client.h"
//#include "qapi_socket.h"
-#include "stdio.h"
-#include "include/netdb.h"
#define sys_arch_printf QFLOG_MSG
#define DBG(x, arg...)... |
Renaming rprt_getcount to proj_getcount | @@ -96,7 +96,7 @@ int EXPORT_PY_API proj_settitle(Handle ph, const char *line1, const char *line2,
return error_set(pr->error, EN_settitle(pr->project, line1, line2, line3));
}
-int EXPORT_PY_API rprt_getcount(Handle ph, EN_CountType code, int *count)
+int EXPORT_PY_API proj_getcount(Handle ph, EN_CountType code, int *... |
/mar/bill: fix formatting | ++ mime [/text/x-bill (as-octs:mimes:html hoon)]
++ noun bil
++ hoon
- |^ (crip (wrap-chits (turn bil spit-chit)))
+ ^- @t
+ |^ (crip (of-wall:format (wrap-lines (zing (turn bil spit-chit)))))
::
- ++ wrap-chits
- =/ res=tape ":~ "
- |= taz=(list tape)
- ^- tape
- ?: =(~ taz) "~"
- |- ^+ res
- ?~ taz (weld res "==\0a")... |
hw: bsp: pic32mx470_6lp_clicker: Fix ifdef for UART includes | #include <hal/hal_bsp.h>
#include <syscfg/syscfg.h>
-#if MYNEWT_VAL(UART_0) || MYNEWT_VAL(UART_1)
+#if MYNEWT_VAL(UART_0) || MYNEWT_VAL(UART_1) || \
+ MYNEWT_VAL(UART_2) || MYNEWT_VAL(UART_3)
#include <uart/uart.h>
#include <uart_hal/uart_hal.h>
#include <mcu/mcu.h>
|
osx: adding qt installer | @@ -5,6 +5,32 @@ cp ./rhobuild.yml.example ./rhobuild.yml
set -e
+
+echo Downloading Qt
+set -v
+set -e
+
+DOWNLOAD_URL=https://download.qt.io/archive/qt/5.9/5.9.5/qt-opensource-mac-x64-5.9.5.dmg
+INSTALLER=`basename $DOWNLOAD_URL`
+INSTALLER_NAME=${INSTALLER%.*}
+ENVFILE=qt-5.9.5-osx.env
+APPFILE=/Volumes/${INSTALLER_... |
Update README instruction for Bitwig | @@ -114,11 +114,7 @@ and use to get a basic plugin experience:
## Hosts
-- [Bitwig](https://bitwig.com), DAW
- - To enable CLAP, you need at least _Bitwig Studio 4.2 Beta 1_ and you'll have to add `clap : true` to:
- - Linux: `$HOME/.BitwigStudio/config.json`
- - macOS: `$HOME/Library/Application Support/Bitwig/Bitwig ... |
rbd: fix the cfgstring setting
Use ';' instead of '/' to separate options. | @@ -976,9 +976,9 @@ static int tcmu_rbd_handle_cmd(struct tcmu_device *dev, struct tcmulib_cmd *cmd)
/*
* For backstore creation
*
- * Specify poolname/devicename, e.g,
+ * Specify poolname/devicename[;option1;option2;...], e.g,
*
- * $ targetcli /backstores/user:rbd create test 2G rbd/test/osd_op_timeout=30
+ * $ targ... |
Syntax fixes for README | @@ -73,7 +73,7 @@ contact us; we're happy to help!
## Usage
Each instruction set has a separate file; `x86/mmx.h` for MMX,
-`s`x86/se.h` for SSE, ``x86/sse2.h` for SSE2, and so on. Just include
+`x86/sse.h` for SSE, `x86/sse2.h` for SSE2, and so on. Just include
the header for whichever instruction set(s) you want, and... |
h2olog: use standard library functions instead of user-defined macros | #include "h2olog.h"
#include <memory.h>
#include <assert.h>
+#include <algorithm>
const char *HTTP_BPF = R"(
#include <linux/sched.h>
@@ -122,7 +123,6 @@ int trace_send_response_header(struct pt_regs *ctx) {
)";
#define MAX_HDR_LEN 128
-#define MIN(x, y) (((x) < (y)) ? (x) : (y))
enum {
HTTP_EVENT_RECEIVE_REQ,
@@ -169,... |
seperate out sles base packages | @@ -45,16 +45,13 @@ Requires: conman%{PROJ_DELIM}
Requires: emacs-nox
Requires: examples%{PROJ_DELIM}
Requires: gdb
-Requires: glibc-locale
Requires: ipmitool
Requires: libstdc++-devel
-Requires: libmlx4-rdmav2
Requires: lmod%{PROJ_DELIM}
Requires: losf%{PROJ_DELIM}
Requires: make
Requires: man
Requires: net-tools
-Req... |
Fix replace for linux in cs_loader | @@ -279,5 +279,5 @@ install(DIRECTORY
# Configuration
#
-string(REPLACE "\\" "/" DOTNET_CORE_PATH ${DOTNET_CORE_PATH})
+string(REPLACE "\\" "/" DOTNET_CORE_PATH "${DOTNET_CORE_PATH}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/data/cs_loader.json.in ${CONFIGURATION_DIR}/cs_loader.json)
\ No newline at end of file
|
normalTexture -> normalMap; | @@ -130,7 +130,7 @@ const char* lovrUnlitFragmentShader = ""
const char* lovrStandardVertexShader = ""
"out vec3 vVertexPositionWorld; \n"
"out vec3 vCameraPositionWorld; \n"
-"#ifdef FLAG_normalTexture \n"
+"#ifdef FLAG_normalMap \n"
"out mat3 vTangentMatrix; \n"
"#else \n"
"out vec3 vNormal; \n"
@@ -139,7 +139,7 @@ c... |
linux-raspberrypi: bump to Linux version 4.19.97 | -LINUX_VERSION ?= "4.19.93"
+LINUX_VERSION ?= "4.19.97"
LINUX_RPI_BRANCH ?= "rpi-4.19.y"
-SRCREV = "3fdcc814c54faaf4715ad0d12371c1eec61bf1dc"
+SRCREV = "c8fbe9c63ce7b6207eb41b22b2070d343f611fcd"
require linux-raspberrypi_4.19.inc
|
fix oc_timer issue
if the next timer is deleted by current timer's callback function,
the timer list is broken. | @@ -432,6 +432,8 @@ poll_event_callback_timers(oc_list_t list, struct oc_memb *cb_pool)
OC_PROCESS_CONTEXT_BEGIN(&timed_callback_events);
oc_etimer_restart(&event_cb->timer);
OC_PROCESS_CONTEXT_END(&timed_callback_events);
+ event_cb = oc_list_head(list);
+ continue;
}
}
|
Updated function comments to reflect return values. | @@ -257,8 +257,8 @@ free_agents_array (GAgents * agents) {
/* Determine if the given date format is a timestamp.
*
- * On error, 0 is returned.
- * On success, 1 is returned. */
+ * If not a timestamp, 0 is returned.
+ * If it is a timestamp, 1 is returned. */
int
has_timestamp (const char *fmt) {
if (strcmp ("%s", fmt... |
Change default require paths;
The lua_modules+deps paths were added for a LuaRocks experiment. | @@ -115,8 +115,8 @@ bool lovrFilesystemInit(const char* argExe, const char* argGame, const char* arg
arr_init(&state.archives);
arr_reserve(&state.archives, 2);
- lovrFilesystemSetRequirePath("?.lua;?/init.lua;lua_modules/?.lua;lua_modules/?/init.lua;deps/?.lua;deps/?/init.lua");
- lovrFilesystemSetCRequirePath("??;lua... |
Remove columns from plugin manager window | @@ -58,7 +58,6 @@ typedef enum _PH_PLUGIN_TREE_ITEM_MENU
typedef enum _PH_PLUGIN_TREE_COLUMN_ITEM
{
PH_PLUGIN_TREE_COLUMN_ITEM_NAME,
- PH_PLUGIN_TREE_COLUMN_ITEM_AUTHOR,
PH_PLUGIN_TREE_COLUMN_ITEM_VERSION,
PH_PLUGIN_TREE_COLUMN_ITEM_MAXIMUM
} PH_PLUGIN_TREE_COLUMN_ITEM;
@@ -73,7 +72,6 @@ typedef struct _PH_PLUGIN_TREE_... |
cr50: add closed loop reset print statements
Add some print statements to closed loop reset, so it's easier to tell
what cr50 is doing.
BRANCH=cr50
TEST=none | @@ -119,6 +119,7 @@ void tpm_rst_asserted(enum gpio_signal unused)
set_state(DEVICE_STATE_DEBOUNCING);
if (waiting_for_ap_reset) {
+ CPRINTS("CL: done");
waiting_for_ap_reset = 0;
deassert_ec_rst();
enable_sleep(SLEEP_MASK_AP_RUN);
@@ -127,6 +128,7 @@ void tpm_rst_asserted(enum gpio_signal unused)
void board_closed_loo... |
examples/noteprintf: Change CONFIG_LIBC_LONG_LONG to CONFIG_HAVE_LONG_LONG
follow the kernel side change: | @@ -59,7 +59,7 @@ int main(int argc, FAR char *argv[])
short s = 2;
int i = 3;
long l = 4;
-#ifdef CONFIG_LIBC_LONG_LONG
+#ifdef CONFIG_HAVE_LONG_LONG
long long ll = 5;
#endif
intmax_t im = 6;
@@ -84,7 +84,9 @@ int main(int argc, FAR char *argv[])
SCHED_NOTE_BPRINTF(3, "%hd", s);
SCHED_NOTE_BPRINTF(4, "%d", i);
SCHED_N... |
Change retranmission expiry | @@ -54,7 +54,7 @@ typedef enum {
/* NGTCP2_INITIAL_EXPIRY is initial retransmission timeout in
microsecond resolution. */
-#define NGTCP2_INITIAL_EXPIRY 100000
+#define NGTCP2_INITIAL_EXPIRY 400000
/* NGTCP2_DELAYED_ACK_TIMEOUT is the delayed ACK timeout in
microsecond resolution. */
|
board/voxel/board.h: Format with clang-format
BRANCH=none
TEST=none | #define I2C_ADDR_EEPROM_FLAGS 0x50
#define CONFIG_I2C_CONTROLLER
-
#ifndef __ASSEMBLER__
#include "gpio_signal.h"
@@ -175,11 +174,7 @@ enum battery_type {
BATTERY_TYPE_COUNT,
};
-enum pwm_channel {
- PWM_CH_FAN,
- PWM_CH_KBLIGHT,
- PWM_CH_COUNT
-};
+enum pwm_channel { PWM_CH_FAN, PWM_CH_KBLIGHT, PWM_CH_COUNT };
enum se... |
Ban continue in a double-curly while loop | @@ -816,7 +816,12 @@ func (p *parser) parseStatement1() (*a.Node, error) {
return nil, fmt.Errorf(`parse: expected endwhile%s at %s:%d`,
dotLabel, p.filename, p.line())
}
- if doubleCurly && !a.Terminates(body) {
+ if !doubleCurly {
+ // No-op.
+ } else if n.HasContinue() {
+ return nil, fmt.Errorf(`parse: double {{ }}... |
SOVERSION bump to verion 2.24.8 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 24)
-set(LIBYANG_MICRO_SOVERSION 7)
+set(LIBYANG_MICRO_SOVERSION 8)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
News: Replace repository link with URL | @@ -62,7 +62,7 @@ Armin Wurzinger created a new [binding](https://master.libelektra.org/src/bindin
for the functional language Haskell. He also added support for
[Haskell plugins](https://master.libelektra.org/src/plugins/haskell).
Due to generic CMake and C Code plugins can be written
-exclusively in Haskell, without ... |
Add Cisco Talos Intelligence Group | @@ -66,6 +66,7 @@ awesome list of [YARA-related stuff](https://github.com/InQuest/awesome-yara).
* [BinaryAlert](https://github.com/airbnb/binaryalert)
* [Blue Coat](http://www.bluecoat.com/products/malware-analysis-appliance)
* [Blueliv](http://www.blueliv.com)
+* [Cisco Talos Intelligence Group](https://talosintellig... |
zephyr: tests: Test charger.c charger_set_voltage()
Test charger_set_voltage in common/charger.c
BRANCH=None
TEST=./twister
Code-Coverage: Zoss | @@ -28,6 +28,7 @@ FAKE_VALUE_FUNC(enum ec_error_list, set_otg_current_voltage, int, int, int);
FAKE_VALUE_FUNC(int, is_sourcing_otg_power, int, int);
FAKE_VALUE_FUNC(enum ec_error_list, get_actual_current, int, int *);
FAKE_VALUE_FUNC(enum ec_error_list, get_actual_voltage, int, int *);
+FAKE_VALUE_FUNC(enum ec_error_l... |
[chainmaker][#436]modify param_add_check function param check | @@ -95,7 +95,7 @@ static BOAT_RESULT param_add_check(BoatHlchainmakerTx* tx_ptr, int num)
{
BOAT_RESULT result = BOAT_SUCCESS;
- if (tx_ptr->trans_para.n_parameters != 3)
+ if ((tx_ptr->trans_para.n_parameters != num) || (num > 4))
{
return BOAT_ERROR;
}
@@ -150,17 +150,18 @@ static BOAT_RESULT param_add_check(BoatHlch... |
It looks like selecting preferred_addr does not wait for handshake confirmation | @@ -6017,8 +6017,6 @@ static int conn_select_preferred_addr(ngtcp2_conn *conn) {
* User-defined callback function failed.
*/
static int conn_recv_handshake_done(ngtcp2_conn *conn) {
- int rv;
-
if (conn->server) {
return NGTCP2_ERR_PROTO;
}
@@ -6031,13 +6029,6 @@ static int conn_recv_handshake_done(ngtcp2_conn *conn) {... |
doc: add 2.5 to version menu choice | @@ -199,6 +199,7 @@ html_context = {
'docs_title': docs_title,
'is_release': is_release,
'versions': ( ("latest", "/latest/"),
+ ("2.5", "/2.5/"),
("2.4", "/2.4/"),
("2.3", "/2.3/"),
("2.2", "/2.2/"),
|
Fix crash with multiple mods | @@ -63,7 +63,6 @@ void ScriptStore::LoadAll()
if (ctx.IsValid())
{
const auto ctxIt = m_contexts.emplace(name, std::move(ctx));
- m_vkBinds.insert({name, ctxIt.first.value().GetBinds()});
consoleLogger->info("Mod {} loaded! ('{}')", name, fPathStr);
}
else
@@ -72,6 +71,9 @@ void ScriptStore::LoadAll()
}
}
+ for (auto& ... |
Remove MSG_FCNS_GLO | @@ -1591,33 +1591,3 @@ definitions:
type: double
units: rad
desc: Argument of perigee at instant of t_lambda
-
- - MSG_FCNS_GLO:
- id: 0x0072
- short_desc: GLONASS SV orbital and frequency slots mapping information
- desc: |
- The message reports mapping information regarding GLONASS SV orbital and
- frequency slots.
-... |
Updlate location for MADlib build dependencies
As part of melting the MADlib CI snowflakes, this commit updates the
pipeline to pull these resources from the same GCS bucket that holds the
other GPDB6 build dependencies.
Authored-by: Bradford D. Boyle | @@ -669,40 +669,32 @@ resources:
versioned_file: ((pipeline-name))/madlib_gppkg/madlib-master-gp6-rhel6-x86_64.gppkg
- name: cmake_tar
- type: s3
+ type: gcs
source:
- access_key_id: {{bucket-access-key-id}}
- bucket: {{madlib-bucket-name}}
- region_name: {{madlib-s3-region}}
- secret_access_key: {{bucket-secret-access... |
io-libs/hdf5: arm -> arm1 variant | @@ -72,7 +72,7 @@ cp /usr/lib/rpm/config.guess bin
--enable-cxx \
--enable-fortran2003 || { cat config.log && exit 1; }
-%if "%{compiler_family}" == "llvm" || "%{compiler_family}" == "arm"
+%if "%{compiler_family}" == "llvm" || "%{compiler_family}" == "arm1"
%{__sed} -i -e 's#wl=""#wl="-Wl,"#g' libtool
%{__sed} -i -e '... |
Disable debug in reflect function. | @@ -291,7 +291,7 @@ value function_metadata(function func)
return f;
}
-#if (!defined(NDEBUG) || defined(DEBUG) || defined(_DEBUG) || defined(__DEBUG) || defined(__DEBUG__))
+#if 0 /* (!defined(NDEBUG) || defined(DEBUG) || defined(_DEBUG) || defined(__DEBUG) || defined(__DEBUG__)) */
static void function_call_value_deb... |
Strip suppression files from fat_object link command | @@ -30,6 +30,10 @@ def get_args():
return parser.parse_args(groups['default']), groups
+def strip_suppression_files(srcs):
+ return [s for s in srcs if not s.endswith('.supp.o')]
+
+
def main():
args, groups = get_args()
@@ -42,6 +46,7 @@ def main():
# Dependencies
global_srcs = groups['global_srcs']
+ global_srcs = st... |
pkg: socket-collector: Add sock_i_ino().
This function returns the inode number from a given struct sock.
It was taken from Linux kernel source: | #define tw_rcv_saddr __tw_common.skc_rcv_saddr
#define tw_dport __tw_common.skc_dport
+/**
+ * sock_i_ino - Returns the inode identifier associated to a socket.
+ * @sk: The socket whom inode identifier will be returned.
+ *
+ * Returns the inode identifier corresponding to the given as parameter socket.
+ *
+ * Return... |
options/posix: Stub scandir() | #include <frg/allocation.hpp>
#include <mlibc/allocator.hpp>
#include <mlibc/sysdeps.hpp>
+#include <mlibc/debug.hpp>
int alphasort(const struct dirent **, const struct dirent **) {
__ensure(!"Not implemented");
@@ -95,10 +96,12 @@ void rewinddir(DIR *) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
-int sc... |
core/riscv-rv32i: support DRAM cache
Allocates memory space for dram.* sections.
BRANCH=none
TEST=make BOARD=asurada_scp | @@ -47,6 +47,10 @@ MEMORY
#else
IRAM (rw) : ORIGIN = CONFIG_RAM_BASE, LENGTH = CONFIG_RAM_SIZE
#endif /* CHIP_FAMILY_IT8XXX2 */
+
+#ifdef CONFIG_DRAM_BASE
+ DRAM (rwx) : ORIGIN = CONFIG_DRAM_BASE, LENGTH = CONFIG_DRAM_SIZE
+#endif
}
SECTIONS
@@ -359,6 +363,66 @@ SECTIONS
#endif
#endif /* CHIP_FAMILY_IT8XXX2 */
+#ifdef ... |
nimble/hs: remove recursive call
On esp32, tail call optimization does not exist, which can lead to a
stack overflow. | @@ -481,6 +481,7 @@ ble_hs_conn_timer(void)
int32_t time_diff;
uint16_t conn_handle;
+ for (;;) {
conn_handle = BLE_HS_CONN_HANDLE_NONE;
next_exp_in = BLE_HS_FOREVER;
now = ble_npl_time_get();
@@ -545,18 +546,17 @@ ble_hs_conn_timer(void)
ble_hs_unlock();
- /* If a connection has timed out, terminate it. We need to rec... |
Typo fxd for tx channels query in dualRXTX example | @@ -54,7 +54,7 @@ int main(int argc, char** argv)
if ((n = LMS_GetNumChannels(device, LMS_CH_RX)) < 0)
error();
cout << "Number of RX channels: " << n << endl;
- if ((n = LMS_GetNumChannels(device, LMS_CH_RX)) < 0)
+ if ((n = LMS_GetNumChannels(device, LMS_CH_TX)) < 0)
error();
cout << "Number of TX channels: " << n <<... |
ci: fix use of auto pull request action
change input to reviewers a comma seperated list of users | @@ -26,9 +26,6 @@ jobs:
branch: auto/update-libs
delete-branch: true
assignees: r-rojo
- reviewers:
- - r-rojo
- - asgardkm
- - tswhison
+ reviewers: r-rojo, asgardkm, tswhison
|
Fix the compare to find .blit | @@ -155,13 +155,13 @@ void load_file_list(std::string directory) {
if(file.flags & blit::FileFlags::directory)
continue;
- if(file.name.length() < 4)
+ if(file.name.length() < 6) // minimum length for single-letter game (a.blit)
continue;
- if(file.name.compare(file.name.length() - 4, 4, ".blit") == 0 || file.name.comp... |
tasty-lua: avoid compiler warnings | @@ -24,7 +24,6 @@ where
import Control.Exception (SomeException, try)
import Data.Bifunctor (first)
import Data.List (intercalate)
-import Data.Semigroup (Semigroup (..))
import HsLua.Core (Lua)
import Test.Tasty (TestName, TestTree)
import Test.Tasty.Providers (IsTest (..), singleTest, testFailed, testPassed)
@@ -33,6... |
Set MODE="666" in udev rules (resolves | -SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="8613", SYMLINK+="stream-%k", TAG+="uaccess"
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="00f1", SYMLINK+="stream-%k", TAG+="uaccess"
-SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="601f", SYMLINK+="stream-%k", TAG+="uaccess"
-SUBS... |
tests/pup: Run failed tests first.
This way we don't have to wait for the whole test suite to run again just to see if a fix worked. | @@ -17,6 +17,10 @@ async def main():
if dirpath != ".":
scripts += [os.path.join(dirpath, name) for name in filenames if ".py" == name[-3:]]
+ # Sort tests to re-run previously failed tests first.
+ test_passed = lambda name: (not os.path.exists(name[:-3] + ".out"), name)
+ scripts.sort(key=test_passed)
+
# Establish c... |
fec_copy(): checking input is not NULL | @@ -569,6 +569,10 @@ fec fec_recreate(fec _q,
// copy object
fec fec_copy(fec q_orig)
{
+ // validate input
+ if (q_orig == NULL)
+ return liquid_error_config("fec_copy(), object cannot be NULL");
+
// TODO: ensure state is retained
return fec_create(q_orig->scheme, NULL);
}
|
Minor bug on FindNodeJS.cmake for mingw32 cross-compiling target. | @@ -385,7 +385,7 @@ if(NOT NodeJS_LIBRARY)
# Compile node as a shared library if needed
if(NOT EXISTS "${NodeJS_COMPILE_PATH}")
- if(WIN32)
+ if(WIN32 AND MSVC)
if(NOT EXISTS "${NodeJS_COMPILE_PATH}/node.dll" AND NOT EXISTS "${NodeJS_COMPILE_PATH}/libnode.dll")
message(STATUS "Build NodeJS shared library")
|
libcupsfilters: Extended filter_out_format_t type definition for ghostscript() filter function | @@ -79,6 +79,8 @@ typedef enum filter_out_format_e { /* Possible output formats for rastertopdf()
filter function */
OUTPUT_FORMAT_PDF, /* PDF */
OUTPUT_FORMAT_PCLM /* PCLM */
+ OUTPUT_FORMAT_RASTER, /* CUPS/PWG Raster */
+ OUTPUT_FORMAT_PXL /* PCL-XL */
} filter_out_format_t;
typedef struct filter_filter_in_chain_s { ... |
Travis: Use latest version of Ruby | @@ -157,8 +157,8 @@ before_install:
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" && "$HASKELL" != "ON" ]]; then
- rvm install 2.4.4
- rvm use 2.4.4
+ rvm install 2.5.1
+ rvm use 2.5.1
gem install test-unit --no-document
if [[ "$CC" == "gcc" ]]; then
brew install gcc
|
Update manual to reference the IANA TLS Cipher Suites Registry | @@ -115,7 +115,9 @@ used. The format is described below.
The cipher list consists of one or more I<cipher strings> separated by colons.
Commas or spaces are also acceptable separators but colons are normally used.
-The cipher string may reference a cipher using its standard name.
+The cipher string may reference a ciph... |
Simplify preset-load, to be able to load from a uri instead | @@ -9,19 +9,13 @@ extern "C" {
#endif
typedef struct clap_plugin_preset_load {
- // Loads a preset in the plugin native preset file format from a path.
- // [main-thread]
- bool(CLAP_ABI *from_file)(const clap_plugin_t *plugin, const char *path);
-
- // Loads a preset in the plugin native preset file format from a path... |
update ya tool arc
quickfix for arc pr on win
locate nearest valid svn revision for checkout
status names as in status action | },
"arc": {
"formula": {
- "sandbox_id": [450706496],
+ "sandbox_id": [451308405],
"match": "arc"
},
"executable": {
|
[core] discard oversized trailers
x-ref:
"PVS-Studio Analysis Results" | @@ -190,6 +190,7 @@ static handler_t connection_handle_read_post_chunked(server *srv, connection *co
/* ignore excessively long trailers;
* disable keep-alive on connection */
con->keep_alive = 0;
+ p = c->mem->ptr + buffer_string_length(c->mem) - 4;
}
}
hsz = p + 4 - (c->mem->ptr+c->offset);
|
parallel-libs/mumps: really bump version to v5.2.0 | %define pname mumps
Name: %{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 5.1.2
+Version: 5.2.0
Release: 1%{?dist}
Summary: A MUltifrontal Massively Parallel Sparse direct Solver
License: CeCILL-C
|
Remove extra closing paren. | @@ -653,7 +653,7 @@ static void make_apply(JanetTable *env) {
"be an array-like. Each element in this last argument is then also pushed as an argument to "
"f. For example:\n\n"
"\t(apply + 1000 (range 10))\n\n"
- "sums the first 10 integers and 1000.)"));
+ "sums the first 10 integers and 1000."));
}
static const uint... |
options/linux-headers: Add more FS_ defines | #define FS_IOC_SETFLAGS _IOW('f', 2, long)
#define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
+#define FS_SECRM_FL 0x00000001
#define FS_COMPR_FL 0x00000004
+#define FS_SYNC_FL 0x00000008
#define FS_IMMUTABLE_FL 0x00000010
+#define FS_NODUMP_FL 0x00000040
#define FS_NOATIME_FL 0x00000080
#define FS_NOCOMP_FL 0x0000040... |
Ignore tests and coverage in built app | "packageManager": "yarn",
"icon": "src/images/icon/icon_mac.icns",
"darwinDarkModeSupport": true,
- "extraResource": []
+ "extraResource": [],
+ "ignore": [
+ "/coverage($|/)",
+ "/test($|/)"
+ ]
},
"electronWinstallerConfig": {
"name": "gb_rpg_builder"
|
SOVERSION bump to version 4.1.19 | @@ -38,7 +38,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 4)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 18)
+set(SYSREPO_MICRO_S... |
Filter inappropriate illumination values for Aqara P1 presence sensor | @@ -3,7 +3,7 @@ const tholdoffset = R.item('config/tholdoffset').val;
const lux = (Attr.val - 65536);
let ll = 0;
-if (lux > 0 && lux < 0xffff) {
+if (lux > 0 && lux < 65520) {
ll = Math.round(10000 * Math.log10(lux) + 1);
}
@@ -11,4 +11,4 @@ R.item('state/lightlevel').val = ll;
R.item('state/dark').val = ll <= tholdda... |
Default example code is the echo service | @@ -40,8 +40,7 @@ end
class WebsocketEcho
# seng a message to new clients.
def on_open
- p self
- sleep 1
+ write "Echo service initiated."
end
# send a message, letting the client know the server is suggunt down.
def on_shutdown
|
Prevent SIGBUS on mips64el running
hcxpcaptool -o /path/to/hccapxfile /path/to/infile | @@ -220,7 +220,7 @@ typedef struct msnetmon_header msntm_t;
struct fcs_frame
{
uint32_t fcs;
-};
+} __attribute__((packed));
typedef struct fcs_frame fcs_t;
#define FCS_SIZE (sizeof(fcs_t))
/*===========================================================================*/
|
SOVERSION bump to version 2.13.3 | @@ -67,7 +67,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 13)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
Remove flaky runaway query termination test job
The runaway-query test is inconsistent and proper investigation into its
flakiness needs to be done. For the time being, since this feature is
stable and unchanging, we will remove this test job. | @@ -75,7 +75,6 @@ groups:
################################
- gate_general_misc_start
- MM_gpcheckcat
- - QP_runaway-query
- QP_memory-accounting
- QP_optimizer-functional
- regression_tests_pxf_hdp
@@ -210,7 +209,6 @@ groups:
jobs:
- gate_general_misc_start
- MM_gpcheckcat
- - QP_runaway-query
- QP_memory-accounting
- ... |
reduce max app data size | @@ -96,9 +96,9 @@ static size_t _OC_MTU_SIZE = OC_INOUT_BUFFER_SIZE;
static size_t _OC_MTU_SIZE = 2048 + COAP_MAX_HEADER_SIZE;
#endif /* !OC_INOUT_BUFFER_SIZE */
#ifdef OC_APP_DATA_BUFFER_SIZE
-static size_t _OC_MAX_APP_DATA_SIZE = 8192;
+static size_t _OC_MAX_APP_DATA_SIZE = 7168;
#else /* OC_APP_DATA_BUFFER_SIZE */
-... |
Updated thread_test
This change updates thread test to accept an optional argument of the
number of threads to test and also now calculates the expected sum of
the thread chain based on number of threads and loop count. | @@ -8,6 +8,11 @@ typedef unsigned long long word;
#define true 1
#define false 0
+#define NNUMS 2048
+#define NTHREADS 32
+
+static int nthreads = NTHREADS;
+
static word pipe_exit = (word)-1;
typedef int boolean;
@@ -79,6 +84,12 @@ void halt(char *message)
exit(-1);
}
+word expected_sum(word n, word nt) {
+ word tsum ... |
Add favicon to wasm build;
Totally useless, but totally awesome. | @@ -645,6 +645,7 @@ elseif(APPLE)
elseif(EMSCRIPTEN)
target_sources(lovr PRIVATE src/core/os_web.c)
target_compile_definitions(lovr PRIVATE LOVR_WEBGL)
+ configure_file(src/resources/lovr.ico favicon.ico COPYONLY)
elseif(ANDROID)
target_link_libraries(lovr log EGL GLESv3 OpenSLES android dl)
target_compile_definitions(... |
ci: bypass test script check for bringup targets | @@ -273,6 +273,9 @@ def check_test_scripts(
if actual_verified_targets == _app.verified_targets:
return True
+ elif actual_verified_targets == sorted(_app.verified_targets + bypass_check_test_targets or []):
+ print(f'WARNING: bypass test script check on {_app.app_dir} for targets {bypass_check_test_targets} ')
+ retur... |
Add additional tag support for clone_aomp.sh list. | @@ -98,11 +98,12 @@ function list_repo_from_manifest(){
is_hash=1
WARNWORD="hash"
actual_hash=`git branch | awk '/\*/ { print $5; }' | cut -d")" -f1`
+ actual_tag=`git describe --tags --abbrev=0`
# RHEL 7 'git branch' returns (detached from 123456), try to get hash again.
if [ "$actual_hash" == "" ] ; then
actual_hash=... |
py/objarray: memoryview_attr: Call mp_load_method_maybe_from_locals_dict().
Now it should be called explicitly from ->attr to lookup in ->locals_dict
(->locals_dict is tried only if no ->attr). | @@ -267,6 +267,8 @@ STATIC void memoryview_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
if (attr == MP_QSTR_itemsize) {
mp_obj_array_t *self = MP_OBJ_TO_PTR(self_in);
dest[0] = MP_OBJ_NEW_SMALL_INT(mp_binary_get_size('@', self->typecode & TYPECODE_MASK, NULL));
+ } else {
+ mp_load_method_maybe_from_locals_dict(... |
fix too strict assertion (issue | @@ -339,8 +339,10 @@ size_t _mi_page_queue_append(mi_heap_t* heap, mi_page_queue_t* pq, mi_page_queue
// set append pages to new heap and count
size_t count = 0;
for (mi_page_t* page = append->first; page != NULL; page = page->next) {
- mi_page_set_heap(page,heap);
- // set it to delayed free (not overriding NEVER_DELA... |
[Rust] Bugfix LayerSlice.get_slice() frame calculation | @@ -123,10 +123,11 @@ impl LayerSlice {
pub fn get_slice(&self, rect: Rect) -> LayerSlice {
// The provided rect is in our coordinate system
// Translate it to the global coordinate system, then translate
+ let constrained = Rect::from_parts(Point::zero(), self.frame.size).constrain(rect);
let to_current_coordinate_sys... |
fix(setup): make sure selections are numbers | @@ -16,13 +16,13 @@ function Get-Choice-From-Options {
}
Write-Host "$($Options.length + 1)) Quit"
- $selection = Read-Host $Prompt
+ $selection = (Read-Host $Prompt) -as [int]
if ($selection -eq $Options.length + 1) {
Write-Host "Goodbye!"
exit 1
}
- elseif ($selection -le $Options.length) {
+ elseif ($selection -le $... |
disable -u option | @@ -40,8 +40,8 @@ grib_option grib_options[]={
{"O",0,"Octet mode. WMO documentation style dump.\n",0,1,0},
{"p",0,"Plain dump.\n",0,1,0},
/* {"D",0,0,0,1,0}, */ /* See ECC-215 */
- {"d",0,"Print all data values.\n",1,1,0},
- {"u",0,"Print only some values.\n",0,1,0},
+ {"d",0,"Dump the descriptors.\n",1,1,0},
+ /*{"u"... |
FIxed matzero descriptor | @@ -751,7 +751,7 @@ LIBXSMM_API_DEFINITION libxsmm_dnn_err_t libxsmm_dnn_internal_create_conv_handle
if (handle->padding_flag == 1) {
descriptor.ifh_padded = handle->ifhp + 2 * handle->desc.pad_h;
descriptor.ifw_padded = handle->ifwp + 2 * handle->desc.pad_w;
- matzero_descriptor.m = 1;
+ matzero_descriptor.n = 1;
if (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.