message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix missing end brace in NONE builds | @@ -1118,6 +1118,7 @@ ASTCENC_SIMD_INLINE vint4 vtable_8bt_32bi(vint4 t0, vint4 t1, vint4 t2, vint4 t3
table[idx.lane<1>()],
table[idx.lane<2>()],
table[idx.lane<3>()]);
+}
/**
* @brief Return a vector of interleaved RGBA data.
|
Update assert message in suite0009 | (= (string my-port) (get comparison 3))
(= remote-ip (get comparison 0))
(= (string remote-port) (get comparison 1)))
- (string/format "localname should match peername: ln=%v, pn=%v" ln pn)))
+ (string/format "localname should match peername: ln=%j, pn=%j" ln pn)))
# Test on both server and client
(defn names-handler
|
sse2: fix armv7 NEON implementation for simde_mm_shufflehi_epi16
Fixes | @@ -5192,7 +5192,7 @@ simde_mm_shufflehi_epi16 (simde__m128i a, const int imm8)
#if defined(SIMDE_X86_SSE2_NATIVE)
#define simde_mm_shufflehi_epi16(a, imm8) _mm_shufflehi_epi16((a), (imm8))
#elif defined(SIMDE_ARM_NEON_A32V7_NATIVE)
- #define _mm_shufflehi_epi16(a, imm8) \
+ #define simde_mm_shufflehi_epi16(a, imm8) \
... |
Don't remove tables above max partition count in decompress configs | @@ -340,7 +340,7 @@ static void build_partition_table_for_one_partition_count(
unsigned int next_index = 0;
bsd.partitioning_count[partition_count - 1] = 0;
- if (partition_count > partition_count_cutoff)
+ if (can_omit_partitionings && (partition_count > partition_count_cutoff))
{
return;
}
@@ -348,7 +348,7 @@ static ... |
fix prerequesites for some test cases | @@ -201,7 +201,7 @@ tests/test-pics-basis: ones delta fmac pics nrmse repmat scale slice $(TESTS_OUT
-tests/test-pics-basis-noncart: traj scale phantom delta fmac ones repmat pics nufft nrmse
+tests/test-pics-basis-noncart: traj scale phantom delta fmac ones repmat pics slice nrmse
set -e; mkdir $(TESTS_TMP) ; cd $(TES... |
Tweak lib/interval's split3Ways' return values | @@ -303,7 +303,8 @@ func TestContainsEtc(tt *testing.T) {
}
for _, x := range eqTestCases {
- neg, pos, negEmpty, hasZero, posEmpty := x.split()
+ neg, pos, hasNeg, hasZero, hasPos := x.split3Ways()
+ negEmpty, posEmpty := !hasNeg, !hasPos
if got, want := neg.Empty(), negEmpty; got != want {
tt.Errorf("%v: neg.Empty() ... |
Update header guards forwarding.h | -#ifndef __FORWARDING_H
-#define __FORWARDING_H
+#ifndef OPENWSN_FORWARDING_H
+#define OPENWSN_FORWARDING_H
/**
\addtogroup IPv6
@@ -49,6 +49,7 @@ typedef struct {
uint8_t PadRes; ///< Number of padding octets. Set to 0 if using EUI64.
uint16_t Reserved; ///< Set to 0.
} rpl_routing_ht;
+
END_PACK
//===================... |
Android: fix CommonAPI ruby lambda callback issue | @@ -421,6 +421,10 @@ void MethodResultJni::setRubyProcCallback(JNIEnv* env, jlong jRubyProc)
env->SetLongField(m_jResult, s_fidRubyProcCallback, jRubyProc);
+ m_hasCallback = true;
+
+ rho_ruby_holdValue(jRubyProc);
+
RAWTRACE("Callback has been set ^^^");
}
//-----------------------------------------------------------... |
% means path-to-render in renderers | |= [=truss sub-crane=^crane]
^- compose-cranes
::
- =/ =beam
- =, source-rail.scaffold
- [[ship.disc desk.disc [%ud 0]] spur]
- =/ hoon-parser (vang & (en-beam beam))
+ =/ beam-to-render=beam
+ [[ship.disc desk.disc %ud 0] spur]:path-to-render
+ ::
+ =/ hoon-parser (vang & (en-beam beam-to-render))
::
=+ tuz=(posh:hoon... |
lwip: fix ip4_route function
dhcp function need to send udp messages but ip4_route() assumed that
the ip address of netif shouldn't be IPADDR_ANY from the first time.
IPADDR_ANY is the default value of netif and it's changed after dhcp. | @@ -220,7 +220,8 @@ struct netif *ip4_route(const ip4_addr_t *dest)
}
#endif
- if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || ip4_addr_isany_val(*netif_ip4_addr(netif_default))) {
+ if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_d... |
Fix output formatting for date and git release | @@ -181,7 +181,7 @@ static void snap_version(void *handle)
VERBOSE1(", %d MB SRAM available.\n", (int)ioctl_data);
reg = snap_read64(handle, SNAP_M_CTX, SNAP_M_IVR);
- VERBOSE1("SNAP FPGA Release: %d/%d:%d Distance: %d GIT: 0x%8.8x\n",
+ VERBOSE1("SNAP FPGA Release: v%d.%d.%d Distance: %d GIT: 0x%8.8x\n",
(int)(reg >> ... |
zephyr/test/crc/main.c: Format with clang-format
BRANCH=none
TEST=none | @@ -21,7 +21,6 @@ static void test_crc8_known_data(void)
void test_main(void)
{
- ztest_test_suite(test_task_shim,
- ztest_unit_test(test_crc8_known_data));
+ ztest_test_suite(test_task_shim, ztest_unit_test(test_crc8_known_data));
ztest_run_test_suite(test_task_shim);
}
|
Simplify some copy/paste. | @@ -87,29 +87,17 @@ func walk(n *ast.Node, f func(*ast.Node) error) error {
if err := f(n); err != nil {
return err
}
- if err := walk(n.LHS, f); err != nil {
- return err
- }
- if err := walk(n.MHS, f); err != nil {
- return err
- }
- if err := walk(n.RHS, f); err != nil {
- return err
- }
- for _, c := range n.List0 ... |
added some test cases to typedecl_spec | @@ -8,4 +8,11 @@ describe("Typedecl", function()
typedecl.declare(mod, "TESTTYPE", "Foo", { Bar = {"x"} })
end, "tag name 'TESTTYPE.Foo.Bar' is already being used")
end)
+
+ it("'match_tag' works as expected.", function ()
+ assert.falsy(typedecl.match_tag("foo.Bar.baz", "f.o.Bar"))
+ assert.truthy(typedecl.match_tag("... |
fix bsp_action_timer_radio project. | <v6Rtti>0</v6Rtti>
<VariousControls>
<MiscControls></MiscControls>
- <Define></Define>
+ <Define>SLOT_FSM_IMPLEMENTATION_MULTIPLE_TIMER_INTERRUPT</Define>
<Undefine></Undefine>
<IncludePath>..\..\..\bsp\boards;..\..\..\bsp\boards\scum</IncludePath>
</VariousControls>
<FilePath>..\..\..\bsp\boards\scum\sctimer.c</FilePa... |
SOVERSION bump to version 1.3.20 | @@ -48,7 +48,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 1)
set(LIBNETCONF2_MINOR_SOVERSION 3)
-set(LIBNETCONF2_MICRO_SOVERSION 19)
+set(LIB... |
bq25710: Fix zephyr PSYS sensing configuration
Kconfig options don't need CONFIG_ prefixes in the Kconfig file.
BRANCH=none
TEST=buildall passes | @@ -250,7 +250,7 @@ endchoice # "Discharge control method"
endif # PLATFORM_EC_CHARGER_DISCHARGE_ON_AC
-config CONFIG_PLATFORM_EC_CHARGER_BQ25710_PSYS_SENSING
+config PLATFORM_EC_CHARGER_BQ25710_PSYS_SENSING
bool "Charger monitors PSYS"
default n
depends on PLATFORM_EC_CHARGER_BQ25710 || PLATFORM_EC_CHARGER_BQ25720
|
Fin YAJL: Reformat CMake code | -#
+# ~~~
# Find libyajl
#
# yajl is a json parser needed for the plugin yajl
# YAJL_INCLUDE_DIRS - where to find the header file yajl/yajl_common.h
# YAJL_LIBRARIES - where to find the library libyail
# YAJL_VERSION - "1" if no yajl/yajl_version.h found
-#
+# ~~~
find_path (YAJL_INCLUDE_DIR yajl/yajl_common.h)
set (YA... |
net/ip/mn_socket; fix a typo in address conversion with v6. | @@ -85,7 +85,7 @@ mn_inet_ntop(int af, const void *src_v, void *dst, int len)
for (i = 0; i < sizeof(*a6); i += 2) {
memcpy(&u16, &a6->s_addr[i], 2);
u16 = htons(u16);
- rc += snprintf(dst + rc, len - rc, "%x", 16);
+ rc += snprintf(dst + rc, len - rc, "%x", u16);
if (rc >= len) {
return NULL;
}
|
rtc: fix memory map | @@ -67,11 +67,10 @@ MEMORY
Start of RTC slow memory is reserved for ULP co-processor code + data, if enabled.
*/
rtc_slow_seg(RW) : org = 0x50000000 + CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM,
- len = 0x1000 - CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM
+ len = 0x2000 - CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM
- /* RTC fast memory... |
fwcfg: Remove code for legacy OSes | @@ -2,7 +2,7 @@ setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
-inf2cat /uselocaltime /driver:. /os:XP_X86,Server2003_X86,XP_X64,Server2003_X64,Vista_X86,Server2008_X86,Vista_X64,Server2008_X64,7_X86,7_X64,Server2008R2_X64,8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
+inf2cat /us... |
SOVERSION bump to version 7.13.8 | @@ -73,7 +73,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 7)
set(SYSREPO_MINOR_SOVERSION 13)
-set(SYSREPO_MICRO_SOVERSION 7)
+set(SYSREPO_MICRO_S... |
Add C++ and MSVC to '.gitattributes'. | #*.svg text
*.eps binary
+#sources
+*.c text
+*.cc text
+*.cxx text
+*.cpp text
+*.c++ text
+*.hpp text
+*.h text
+*.h++ text
+*.hh text
+
+# Compiled Object files
+*.slo binary
+*.lo binary
+*.o binary
+*.obj binary
+
+# Precompiled Headers
+*.gch binary
+*.pch binary
+
+# Compiled Dynamic libraries
+*.so binary
+*.dy... |
Fix chip/s32k3xx_fs26.c:249:31: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') | @@ -246,7 +246,7 @@ uint32_t fs26_setreg(struct fs26_dev_s *priv, uint8_t regaddr,
retval = __builtin_bswap32(retval);
#endif
- spiinfo("Received %08lx\n", retval);
+ spiinfo("Received %08" PRIx32 "\n", retval);
if (fs26_calcrc((uint8_t *)&retval, 3) != ((uint8_t *)&retval)[0])
{
@@ -316,7 +316,7 @@ uint32_t fs26_getre... |
check for Winsock unreachable error codes in addition to Win32 | @@ -121,7 +121,10 @@ CXPLAT_STATIC_ASSERT(
ErrorCode == ERROR_NETWORK_UNREACHABLE || \
ErrorCode == ERROR_HOST_UNREACHABLE || \
ErrorCode == ERROR_PROTOCOL_UNREACHABLE || \
- ErrorCode == ERROR_PORT_UNREACHABLE \
+ ErrorCode == ERROR_PORT_UNREACHABLE || \
+ ErrorCode == WSAENETUNREACH || \
+ ErrorCode == WSAEHOSTUNREAC... |
honggfuzz: special function for stoping the signal thread | @@ -229,6 +229,16 @@ static void* signalThread(void* arg) {
return NULL;
}
+static void stopSignalThread(pthread_t* thread) {
+ if (pthread_kill(*thread, SIGCHLD) != 0) {
+ PLOG_W("pthread_kill(signal_thread, SIGCHLD)");
+ }
+ void* retval;
+ if (pthread_join(*thread, &retval) != 0) {
+ PLOG_W("Couldn't stop the signal... |
arvo: moves (placeholder) kelvin to an arm | |%
+| %global
::
+++ arvo %arvo-kelvin
+::
:: $arch: fundamental node
:: $beak: global context
:: $beam: global name
==
+$ germ [vane=term bars=(list duct)]
+$ heir
- $% [%arvo-kelvin now=@da =debt =soul]
+ $% [_arvo now=@da =debt =soul]
==
+$ plan (pair germ (list move))
+$ soul
^- (each (pair (list ovum) soul) (trap ... |
BugID:17646749:[dtls] remove extra newline when print messages | #include "mbedtls/net_sockets.h"
#include "iotx_hal_internal.h"
-#define DTLS_TRC(...) HAL_Printf("[trc] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
-#define DTLS_DUMP(...) HAL_Printf("[dump] "), HAL_Printf(__VA_ARGS__), HAL_Printf("\r\n")
-#define DTLS_DEBUG(...) HAL_Printf("[dbg] "), HAL_Printf(__VA_ARGS__), HAL_... |
commands/focus: fix segfault when no container is already focused.
Fixes | @@ -285,7 +285,7 @@ static struct cmd_results *focus_mode(struct sway_workspace *ws,
}
} else {
return cmd_results_new(CMD_FAILURE,
- "Failed to find a %s container in workspace",
+ "Failed to find a %s container in workspace.",
floating ? "floating" : "tiling");
}
return cmd_results_new(CMD_SUCCESS, NULL);
@@ -295,7 +... |
Fix s_client hang on non-compliant NNTP server test
Fixes
CLA: trivial | @@ -2535,12 +2535,16 @@ int s_client_main(int argc, char **argv)
/* STARTTLS command requires CAPABILITIES... */
BIO_printf(fbio, "CAPABILITIES\r\n");
(void)BIO_flush(fbio);
+ BIO_gets(fbio, mbuf, BUFSIZZ);
+ /* no point in trying to parse the CAPABILITIES response if there is none */
+ if (strstr(mbuf, "101") != NULL)... |
contacts: mobile pass on group detail | @@ -103,10 +103,13 @@ export class Root extends Component {
defaultContacts={defaultContacts}
group={group}
activeDrawer={detail ? "detail" : "contacts"}
- path={groupPath} />
+ path={groupPath}
+ {...props} />
<GroupDetail
channels={channels}
path={groupPath}
+ activeDrawer={detail ? "detail" : "contacts"}
+ {...props... |
travis CHANGE allow failures on OSX
It seems shared memory does not behave
as expected, will require further investigation. | @@ -13,6 +13,8 @@ matrix:
compiler: clang
- os: osx
compiler: gcc
+ allow_failures:
+ - os: osx
before_install:
- test $TRAVIS_BRANCH != coverity -o "$CC" = "clang" || exit 0
|
perf(non-null judgment):
add non-null judgment of "orderCfg.endorser" in BoatHlfabricDiscoverySubmit() | @@ -982,6 +982,10 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr
}
tx_ptr->wallet_ptr->network_info.orderCfg.endorserNumber = discoverResult.discoverConfig.discoverOrders.num;
tx_ptr->wallet_ptr->network_info.orderCfg.endorser = BoatMalloc(discoverResult.discoverConfig.discoverOrder... |
Fix compiler warning by explicitely initializing save_inCommit. | @@ -1052,7 +1052,8 @@ RecordTransactionCommit(void)
TransactionId xid;
bool markXidCommitted;
TransactionId latestXid = InvalidTransactionId;
- bool save_inCommit;
+ /* Initializing just to make compiler happy */
+ bool save_inCommit = MyProc->inCommit;
MIRRORED_LOCK_DECLARE;
int32 persistentCommitSerializeLen;
|
Fix CMake config-file package generation | include(CMakeFindDependencyMacro)
find_dependency(Ogg REQUIRED)
-include(${CMAKE_CURRENT_LIST_DIR}/vorbis-targets.cmake)
+include(${CMAKE_CURRENT_LIST_DIR}/VorbisTargets.cmake)
set(Vorbis_Vorbis_FOUND 1)
set(Vorbis_Enc_FOUND 0)
@@ -16,4 +16,4 @@ if(TARGET Vorbis::vorbisfile)
set(Vorbis_File_FOUND TRUE)
endif()
-check_r... |
Remove duplicated signature algorithm values sent from client | @@ -183,13 +183,9 @@ const struct s2n_signature_scheme* const s2n_supported_sig_scheme_pref_list[] =
&s2n_rsa_pkcs1_sha512,
&s2n_rsa_pkcs1_sha224,
- /* ECDSA - TLS 1.3 */
- &s2n_ecdsa_secp256r1_sha256,
- &s2n_ecdsa_secp384r1_sha384,
-
/* ECDSA - TLS 1.2 */
- &s2n_ecdsa_sha256,
- &s2n_ecdsa_sha384,
+ &s2n_ecdsa_sha256, ... |
Add :hardcode-syspath option to declare-binscript.
This should make fully correct installs easier. | @@ -870,11 +870,27 @@ int main(int argc, const char **argv) {
(defn declare-binscript
"Declare a janet file to be installed as an executable script. Creates
- a shim on windows."
- [&keys opts]
- (def main (opts :main))
+ a shim on windows. If hardcode is true, will insert code into the script
+ such that it will run c... |
read: Remove obsolete comment on nested multi bulk depth limitation | @@ -487,7 +487,6 @@ static int processAggregateItem(redisReader *r) {
long long elements;
int root = 0, len;
- /* Set error for nested multi bulks with depth > 7 */
if (r->ridx == r->tasks - 1) {
if (redisReaderGrow(r) == REDIS_ERR)
return REDIS_ERR;
|
ci(style) force color on diff to help highlight whitespace changes | @@ -21,4 +21,4 @@ jobs:
run: python code-format.py
working-directory: scripts
- name: Check that repository is clean
- run: git diff --exit-code || (echo "Please apply the preceding diff to your code or run scripts/code-format.sh"; false)
+ run: git diff --exit-code --color=always || (echo "Please apply the preceding d... |
lib: Detect and prevent integer overflow in XML_GetBuffer (CVE-2022-23852) | @@ -2067,6 +2067,11 @@ XML_GetBuffer(XML_Parser parser, int len) {
keep = (int)EXPAT_SAFE_PTR_DIFF(parser->m_bufferPtr, parser->m_buffer);
if (keep > XML_CONTEXT_BYTES)
keep = XML_CONTEXT_BYTES;
+ /* Detect and prevent integer overflow */
+ if (keep > INT_MAX - neededSize) {
+ parser->m_errorCode = XML_ERROR_NO_MEMORY;... |
ci multi repo pipeline for installer | @@ -139,14 +139,20 @@ build-windows-lib-32:
extends:
- .build-win-msys2-mingw32
- .on-push-and-master
+ artifacts:
+ paths:
+ - bin
+ - include
script:
- |
set -e
set -x
mkdir -p results/
make
- make install_includes INCLUDE_PATH=results/include
- cp lib/api/liboidc-agent* results
+ make install_includes INCLUDE_PATH=i... |
CLI: fix segfault when browsing an empty history
When one starts VPP, types a command, presses up rather than enter,
then types a new command, unix_cli_line_process_one() segfaults.
This is due to cf->cursor not being reset upon pressing up if the
history is empty. | @@ -1406,10 +1406,8 @@ unix_cli_line_process_one (unix_cli_main_t * cm,
unix_vlib_cli_output_cooked (cf, uf, cf->current_command,
vec_len (cf->current_command));
}
- cf->cursor = vec_len (cf->current_command);
-
- break;
}
+ cf->cursor = vec_len (cf->current_command);
break;
case UNIX_CLI_PARSE_ACTION_HOME:
|
Comment change: explain why attribute count is twice what you expect | @@ -1970,7 +1970,12 @@ counting_start_element_handler(void *userData,
}
if (info->name == NULL)
fail("Element not recognised");
- /* Note attribute count is doubled */
+ /* The attribute count is twice what you might expect. It is a
+ * count of items in atts, an array which contains alternating
+ * attribute names and... |
Always call OnPublicCall2
Call OnPublicCall2 regardless of what was returned by OnPublicCall. If both
are defined then only the value returned by OnPublicCall2 is used. | @@ -224,14 +224,13 @@ bool sampgdk_callback_invoke(AMX *amx,
func = sampgdk_plugin_get_symbol(plugin, callback_filter->func_name);
if (func != NULL) {
do_call = ((_sampgdk_callback_filter)func)(amx, name, params, retval);
- if (!do_call) {
- continue;
- }
}
/* callback_filter2 is similar to callback_filter except it ca... |
smart_audio: send dummy byte before each transaction | @@ -83,17 +83,21 @@ static uint8_t crc8_data(const uint8_t *data, const int8_t len) {
void serial_smart_audio_send_data(uint8_t *data, uint32_t size) {
for (uint32_t i = 0; i < size; i++) {
- for (uint32_t timeout = 0x20000; USART_GetFlagStatus(USART.channel, USART_FLAG_TXE) == RESET;)
- if (!timeout--)
+ for (uint32_t... |
Fixed links to wiki pages | @@ -52,11 +52,11 @@ debugsyscalls: t
fault: t
```
-[https://github.com/nanovms/nanos/wiki/Architecture](Architecture)
+[Architecture](https://github.com/nanovms/nanos/wiki/Architecture)
-[https://github.com/nanovms/nanos/wiki/debugging](Debugging Help)
+[Debugging Help](https://github.com/nanovms/nanos/wiki/debugging)
... |
Fix unmap logic | @@ -76,8 +76,10 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef likely
#ifdef __GNUC__
#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
#else
#define likely(x) (x)
+#define unlikely(x) (x)
#endif
#endif
@@ -3097,7 +3099,7 @@ void blas_memor... |
Comment change: exclude sameName from coverage | @@ -1626,6 +1626,14 @@ PREFIX(predefinedEntityName)(const ENCODING *UNUSED_P(enc), const char *ptr,
return 0;
}
+/* This function does not appear to be called from anywhere within the
+ * library code. It is used via the macro XmlSameName(), which is
+ * defined but never used. Since it appears in the encoding function... |
Format gpu_text and cpu_text in textColored | @@ -1297,7 +1297,7 @@ void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2&
gpu_text = "GPU";
else
gpu_text = params.gpu_text.c_str();
- ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(params.gpu_color), gpu_text);
+ ImGui::TextColored(ImGui::ColorConvertU32ToFloat4(params.gpu_color), "%s", ... |
Revered what config poser was doing for SBA | @@ -337,7 +337,7 @@ static double run_sba_find_3d_structure(SBAData *d, PoserDataLight *pdl, Survive
}
// Optimizes for LH position assuming object is posed at 0
-static double run_sba(SBAData *d, PoserDataFullScene *pdfs, SurviveObject *so, int max_iterations /* = 50*/,
+static double run_sba(PoserDataFullScene *pdfs,... |
Fixed thread_sigpost assuming that every process must have threads
JIRA: | @@ -1348,6 +1348,7 @@ int threads_sigpost(process_t *process, thread_t *thread, int sig)
process->sigpend |= sigbit;
thread = process->threads;
+ if (thread != NULL) {
do {
if (sigbit & ~thread->sigmask) {
if (thread->interruptible)
@@ -1355,8 +1356,16 @@ int threads_sigpost(process_t *process, thread_t *thread, int si... |
Remove some now-unneeded VMS controls | #endif
#define RAND_FILE_SIZE 1024
+#define RFILE ".rnd"
#ifdef OPENSSL_SYS_VMS
/*
- * Misc hacks needed for specific cases.
- *
* __FILE_ptr32 is a type provided by DEC C headers (types.h specifically)
* to make sure the FILE* is a 32-bit pointer no matter what. We know that
- * stdio function return this type (a stud... |
GH Actions: Stop publishing to quay.io
This hasn't succeeded in quite some time. Let's turn it off for now. | @@ -7,66 +7,6 @@ on:
pull_request:
jobs:
- publish_images:
- # Optionally publish container images, guarded by the GitHub secret
- # QUAY_PUBLISH.
- # To set this up, sign up for quay.io (you can connect it to your github)
- # then create a robot user with write access user called "bcc_buildbot",
- # and add the secret... |
avoid clang misalignment assumption | @@ -5101,17 +5101,21 @@ typedef enum fio_cluster_message_type_e {
typedef struct fio_collection_s fio_collection_s;
-#pragma pack(1)
+#ifndef __clang__ /* clang might misbehave by assumming non-alignment */
+#pragma pack(1) /* https://gitter.im/halide/Halide/archives/2018/07/24 */
+#endif
typedef struct {
size_t name_l... |
FEATURE: add do_item_stat_replace function.
update prefix info and item stats info when calling do_item_replace() function. | @@ -393,6 +393,33 @@ static inline size_t ITEM_stotal(const hash_item *item)
return stotal;
}
+static inline void do_item_stat_replace(hash_item *old_it, hash_item *new_it)
+{
+ prefix_t *pt = new_it->pfxptr;
+ size_t old_stotal = ITEM_stotal(old_it);
+ size_t new_stotal = ITEM_stotal(new_it);
+
+ int item_type = GET_I... |
Connect DDR from harness | @@ -6,6 +6,7 @@ import chisel3.experimental.{Analog, IO}
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.config.{Parameters, Field}
import freechips.rocketchip.subsystem.{ExtMem, BaseSubsystem}
+import freechips.rocketchip.tilelink._
import sifive.fpgashells.shell.xilinx._
import sifive.fpgashells.i... |
Fix compilation of bindings on Windows and MacOSX. | @@ -791,8 +791,9 @@ function (tinyspline_add_swig_library)
${TINYSPLINE_CXX_SOURCE_FILES}
)
endif()
- # On Windows, libraries need to be linked.
- if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
+ # On Linux, we can (and for the sake of portability should) omit
+ # linking libraries.
+ if(NOT ${TINYSPLINE_PLATFORM_NAM... |
Touch controls no longer enabled by default in js emulator | @@ -20,7 +20,6 @@ const JS_KEY_X = 88;
const DEADZONE = 0.1;
var isTouchEnabled = "ontouchstart" in document.documentElement;
-isTouchEnabled = true;
var controller = document.getElementById("controller");
var btnA = document.getElementById("controller_a");
|
wip: add query injection code and fix a bug of not setting enabler | @@ -626,7 +626,7 @@ parse_availability(
pos++;
if (pos + 1 < xend_pos
&& ':' == *pos && 'b' == *(pos+1)) {
- p->has_enabler;
+ p->has_enabler = true;
pos ++;
}
*next_pos_p = pos;
@@ -2016,7 +2016,6 @@ parse_key_value(
if (')' == *pos)
++pos; // eat up ')'
SKIP_SPACES(pos, end_pos);
- struct access_path * next_path;
swi... |
Update README.md
* Installing with pdlibbuilder
use "objectsdir" to set a relative path for your build, something like:
<pre>make install objectsdir=../cyclone-build</pre>
Then move it to your preferred install folder for Pd. | @@ -47,9 +47,11 @@ PdLibBuilder tries to find the Pd source directory at several common locations,
* Installing with pdlibbuilder
-The default path for installing might not be the best, surely for testing. Use the pkglibdir variable for this. Example:
+use "objectsdir" to set a relative path for your build, something l... |
Update Down-Level Test to v2.1.5 Release | @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- release: ['2.0.6','2.1.4']
+ release: ['2.0.6','2.1.5']
os: [ubuntu-latest, windows-latest]
arch: [x64]
tls: [schannel, openssl]
|
Minor improvements to ecp.c changes | @@ -2287,12 +2287,12 @@ cleanup:
mbedtls_free( T );
}
- int should_free_R = 0;
/* prevent caller from using invalid value */
- should_free_R = ( ret != 0 );
+ int should_free_R = ( ret != 0 );
#if defined(MBEDTLS_ECP_RESTARTABLE)
/* don't free R while in progress in case R == P */
- should_free_R = should_free_R && ( r... |
vere: fix cttp crash by accounting for synchronous error callback | @@ -817,7 +817,7 @@ _cttp_creq_on_head(h2o_http1client_t* cli_u, const c3_c* err_c, c3_i ver_i,
*/
static h2o_http1client_head_cb
_cttp_creq_on_connect(h2o_http1client_t* cli_u, const c3_c* err_c,
- h2o_iovec_t** vec_p, size_t* vec_t, c3_i* hed_i)
+ h2o_iovec_t** vec_u, size_t* vec_i, c3_i* hed_i)
{
u3_creq* ceq_u = (u... |
libbpf-tools: Add verbose option to filetop
Support verbose mode and set custom libbpf print callback
in filetop. | @@ -42,6 +42,7 @@ static int output_rows = 20;
static int sort_by = ALL;
static int interval = 1;
static int count = 99999999;
+static bool verbose = false;
const char *argp_program_version = "filetop 0.1";
const char *argp_program_bug_address =
@@ -62,6 +63,7 @@ static const struct argp_option opts[] = {
{ "all", 'a',... |
btc: updating glob | title+'Bitcoin'
info+'A Bitcoin Wallet that lets you send and receive Bitcoin directly to and from other Urbit users'
color+0xf9.8e40
- glob-http+['https://bootstrap.urbit.org/glob-0v5.bt7ee.0scvi.e7na0.mhibg.97hvn.glob' 0v5.bt7ee.0scvi.e7na0.mhibg.97hvn]
+ glob-http+['https://bootstrap.urbit.org/glob-0v1.k33ke.d6avi.v... |
Fixed other bad default imu scale | @@ -448,7 +448,7 @@ int survive_load_htc_config_format(SurviveObject *so, char *ct0conf, int len) {
// this can change if the firmware changes the sensitivity.
// When coming off of USB, these values are in units of .5g -JB
if(so->raw_acc_scale == 0) {
- so->raw_acc_scale = 1. / 8192.;
+ so->raw_acc_scale = 2. / 8192.;... |
MPLS: allow 16 as a valid output label | #define MPLS_LABEL_POP (MPLS_IETF_MAX_LABEL+2)
#define MPLS_LABEL_IS_REAL(_lbl) \
- (((_lbl) > MPLS_IETF_MIN_UNRES_LABEL) && \
+ (((_lbl) >= MPLS_IETF_MIN_UNRES_LABEL) && \
((_lbl) <= MPLS_IETF_MAX_UNRES_LABEL))
/**
|
Corrected variable name, and clarified that the documentation does apply to the new tool | The individual asset tools have been deprecated in favour of https://github.com/pimoroni/32blit-tools which installs `32blit` or `32blit.exe` command on Linux/Mac or Windows respectively.
-Head on over to https://github.com/pimoroni/32blit-tools for documentation covering the new tools.
+Head on over to https://github.... |
sysdeps/lemon: Update syscalls | #define SYS_KERNELOBJECT_DESTROY 86
#define SYS_SET_SOCKET_OPTIONS 87
#define SYS_GET_SOCKET_OPTIONS 88
+#define SYS_DEVICE_MANAGEMENT 89
+#define SYS_INTERRUPT_THREAD 90
+#define SYS_LOAD_KERNEL_MODULE 91
+#define SYS_UNLOAD_KERNEL_MODULE 92
#ifdef __cplusplus
extern "C"{
|
integration: Add test for network-policy. | @@ -247,6 +247,25 @@ func TestMountsnoop(t *testing.T) {
runCommands(commands, t)
}
+func TestNetworkpolicy(t *testing.T) {
+ commands := []*command{
+ {
+ name: "Run test pod",
+ cmd: busyboxPodCommand("while true; do wget -q -O /dev/null https://kinvolk.io; done"),
+ expectedRegexp: "pod/test-pod created",
+ },
+ wai... |
sends http/s ports to eyre (%live) | @@ -1193,6 +1193,29 @@ _http_serv_start_all(void)
_http_serv_start(htp_u);
}
+ // send listening ports to %eyre
+ {
+ u3_noun pax = u3nq(u3_blip, c3__http, u3k(u3A->sen), u3_nul);
+ u3_noun sec = u3_nul;
+ u3_noun non = u3_none;
+
+ for ( htp_u = u3_Host.htp_u; htp_u; htp_u = htp_u->nex_u ) {
+ if ( c3n == htp_u->lop )... |
Static 1 schedule clause | @@ -7,7 +7,7 @@ program test
!$omp target if(k > 0) map(from:x)
k=2
- !$omp parallel do
+ !$omp parallel do schedule (static,1)
do i=1, 10
x(i)=omp_get_thread_num()
enddo
|
openssl rehash: use libcrypto variables for default dir
X509_get_default_cert_dir_env() returns the default environment
variable to check for certificate directories.
X509_get_default_cert_dir() returns the default configured certificate
directory.
Use these instead of hard coding our own values, and thereby be more
in... | @@ -479,13 +479,14 @@ int rehash_main(int argc, char **argv)
if (*argv != NULL) {
while (*argv != NULL)
errs += do_dir(*argv++, h);
- } else if ((env = getenv("SSL_CERT_DIR")) != NULL) {
+ } else if ((env = getenv(X509_get_default_cert_dir_env())) != NULL) {
+ char lsc[2] = { LIST_SEPARATOR_CHAR, '\0' };
m = OPENSSL_st... |
bnrand_range: Always call bnrand() with the correct flag
It was calling the BN_rand() when it should have call BN_priv_rand()
GH: | @@ -112,7 +112,7 @@ int BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom)
/* random number r: 0 <= r < range */
static int bnrand_range(BNRAND_FLAG flag, BIGNUM *r, const BIGNUM *range)
{
- int b, n;
+ int n;
int count = 100;
if (range->neg || BN_is_zero(range)) {
@@ -132,11 +132,9 @@ static int bnrand_range(BNR... |
remove dead code: window_rect is overwritten a few lines below | @@ -65,9 +65,6 @@ void render_con(Con *con, bool already_inset) {
if (con->fullscreen_mode == CF_NONE) {
params.rect = rect_add(params.rect, inset);
con->rect = rect_add(con->rect, inset);
- if (con->window) {
- con->window_rect = rect_add(con->window_rect, inset);
- }
}
inset.height = 0;
if (con->deco_rect.width != 0 ... |
filter: use unique instance ids | #include <fluent-bit/flb_pack.h>
#include <chunkio/chunkio.h>
-static inline int instance_id(struct flb_filter_plugin *p,
- struct flb_config *config)
+static inline int instance_id(struct flb_config *config)
{
- int c = 0;
- struct mk_list *head;
struct flb_filter_instance *entry;
- mk_list_foreach(head, &config->filt... |
Deal with AF_CONN address in SCTP_STATUS.
Thanks to Taylor Brandstetter for making me aware of the problem
and suggesting a fix in | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_usrreq.c 359405 2020-03-28 20:25:45Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_usrreq.c 359410 2020-03-28 22:35:04Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -3383,17 +3383,33 @@ sctp_getopt(struct socket *so, int... |
made temp location more generic
- instead of using /tmp which is specific to unix based systems
- we could use boost::filesystem::temp_directory_path() | @@ -30,7 +30,7 @@ namespace ebi
bool validate(std::istream &file, const boost::filesystem::path &path, std::string report_tag)
{
- auto db_path = boost::filesystem::path{"/tmp/"} / path.filename();
+ auto db_path = boost::filesystem::temp_directory_path() / path.filename();
db_path += ".debugulator_test." + report_tag ... |
Try running obj/mbld/mbld
That's what the new muse generates. | @@ -15,5 +15,9 @@ else
BOOT="./mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh"
fi
+if [ -f mbld/mbld ] || [ -f obj/mbld/mbld ]; then
./obj/mbld/mbld $@ || ./mbld/mbld $@ || mbld $@ || \
(echo "Unable to run mbld $@; have you build successfully"; false)
+else
+ mbld || $BOOT
+fi
|
Tests: $host varaible test.
Also added few tests for $uri and minor style fixes. | @@ -16,10 +16,11 @@ class TestVariables(TestApplicationProto):
"GET": [{"action": {"return": 201}}],
"POST": [{"action": {"return": 202}}],
"3": [{"action": {"return": 203}}],
- "4": [{"action": {"return": 204}}],
+ "4*": [{"action": {"return": 204}}],
"blahGET}": [{"action": {"return": 205}}],
"5GET": [{"action": {"re... |
Add code to run test, get malloc counts | #include "ssltestlib.h"
#include "testutil.h"
+#include "testutil/output.h"
#include "internal/nelem.h"
#include "../ssl/ssl_locl.h"
@@ -3638,6 +3639,22 @@ int setup_tests(void)
|| !TEST_ptr(privkey = test_get_argument(1)))
return 0;
+ if (getenv("OPENSSL_TEST_GETCOUNTS") != NULL) {
+#ifdef OPENSSL_NO_CRYPTO_MDEBUG
+ T... |
h2o_vector_erase fix size | @@ -546,7 +546,7 @@ inline void h2o_vector__reserve(h2o_mem_pool_t *pool, h2o_vector_t *vector, size
inline void h2o_vector__erase(h2o_vector_t *vector, size_t element_size, size_t index)
{
char *entries = (char *)vector->entries;
- memmove(entries + element_size * index, entries + element_size * (index + 1), vector->s... |
Add doc include messages to RocketConfigs for fft | @@ -21,10 +21,12 @@ class TinyRocketConfig extends Config(
new freechips.rocketchip.subsystem.With1TinyCore ++ // single tiny rocket-core
new chipyard.config.AbstractConfig)
+// DOC include start: FFTRocketConfig
class FFTRocketConfig extends Config(
new fftgenerator.WithFFTGenerator(baseAddr=0x2000, numPoints=8, width... |
stm32/boards/NUCLEO_L432KC: Add config for USB VCP support. | #define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_ADC (1)
#define MICROPY_HW_ENABLE_DAC (1)
+#define MICROPY_HW_ENABLE_USB (0) // requires a custom USB connector on PA11/PA12
#define MICROPY_HW_ENABLE_TIMER (1)
#define MICROPY_HW_HAS_SWITCH (0)
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
// USB conf... |
Technote: Fix bibliography | @@ -297,6 +297,6 @@ To add a compiled Sockeye specification into the SKB RAM disk, the filename can
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{abbrv}
-\bibliography{barrelfish}
+\bibliography{defs,barrelfish}
\end{document}
|
Options now show up in playback file | @@ -739,6 +739,12 @@ void survive_destroy_recording(SurviveContext *ctx) {
}
}
+void survive_record_config(SurviveContext *ctx, const char *tag, uint8_t type, void *user) {
+ char buf[128];
+ survive_config_as_str(ctx, buf, sizeof(buf), tag, "");
+ write_to_output(ctx->recptr, "OPTION %s %c %s\n", tag, type, buf);
+}
+... |
Use baseline metrics instead of testing if evaluated feature set consists of ignored or constant features | @@ -796,6 +796,15 @@ private:
bool IsNextLoadValid = false;
};
+static bool HaveFeaturesToEvaluate(const TVector<TTrainingDataProviders>& foldsData) {
+ for (const auto& foldData : foldsData) {
+ if (!foldData.Learn->MetaInfo.FeaturesLayout->HasAvailableAndNotIgnoredFeatures()) {
+ return false;
+ }
+ }
+ return true;
... |
arch/arm: Document the clever trick of PRI?32 macros | * Pre-processor Prototypes
****************************************************************************/
+/* The below definition convert __INT32_TYPE__ from 'int'/'signed int' or
+ * 'long int'/signed long int' to '+2'/'+0 +2' or '+4 +2'/'+0 +4 +2', and
+ * then make the expression of '__INT32_TYPE__ == int' valid.
+ ... |
Free external entity parser in external_entity_resetter() when done
Deals with some of the memory leaks found by AddressSanitizer in
the test suite (Issue | @@ -1882,6 +1882,7 @@ external_entity_resetter(XML_Parser parser,
fail("Parsing status not still FINISHED");
return XML_STATUS_ERROR;
}
+ XML_ParserFree(ext_parser);
return XML_STATUS_OK;
}
|
cups-browsed: Call cupsGetNamedDest() only if "OnlyUnsupportedByCUPS No" | @@ -7807,6 +7807,8 @@ gboolean update_cups_queues(gpointer unused) {
#ifdef HAVE_CUPS_1_6
/* Check whether there is a temporary CUPS queue which we would
overwrite */
+ dest = NULL;
+ if (OnlyUnsupportedByCUPS == 0)
dest = cupsGetNamedDest(http, p->queue_name, NULL);
if (dest) {
/* CUPS has found a queue with this name... |
Mark idling member wiki documented. | @@ -2465,7 +2465,7 @@ typedef struct entity
int seal; // If 0+, entity can't perform special with >= energy cost. ~~
int dead; // He's dead Jim. ~~
int jumping; // In jumping state. ~~
- int idling; // Idle state.
+ int idling; // Idle state. ~~
int walking;
int drop;
e_attacking_state attacking;
|
doc: update documentation to note removal of ERR_GET_FUNC() | =head1 NAME
-ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON, ERR_FATAL_ERROR
+ERR_GET_LIB, ERR_GET_REASON, ERR_FATAL_ERROR
- get information from error codes
=head1 SYNOPSIS
@@ -11,8 +11,6 @@ ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON, ERR_FATAL_ERROR
int ERR_GET_LIB(unsigned long e);
- int ERR_GET_FUNC(unsigned long e);
-
i... |
fs/mount : Add success log for mount
During the factory process, we have to check mount status,
so there should be success log. | #include <tinyara/config.h>
+#undef CONFIG_DEBUG
+#undef CONFIG_DEBUG_ERROR
+#undef CONFIG_DEBUG_WARN
+#undef CONFIG_DEBUG_VERBOSE
+#undef CONFIG_ARCH_LOWPUTC
+
+#define CONFIG_DEBUG 1
+#define CONFIG_DEBUG_ERROR 1
+#define CONFIG_DEBUG_WARN 1
+#define CONFIG_DEBUG_VERBOSE 1
+#define CONFIG_ARCH_LOWPUTC 1
+
#include <d... |
Build mkldnn with mkl and cblas, fix sanitized build.
mkldnn does not use mkl without USE_MKL.
HAVE_MKL is false under sanitizers.
library/tf/mkldnn used to depend on contrib/libs/cxxsupp/openmp via contrib/libs/intel/mkl. | - CL/cl.h: contrib/libs/intel/FPGA_pro/hld/host/include/CL/cl.h
- CL/opencl.h: contrib/libs/intel/FPGA_pro/hld/host/include/CL/opencl.h
+- source_filter: "^contrib/libs/intel/mkldnn"
+ includes:
+ - mkl_cblas.h: contrib/libs/intel/mkl/include/mkl_cblas.h
+ - mkl_version.h: contrib/libs/intel/mkl/include/mkl_version.h
+... |
test: add platon test case test_007Transfer_0001TransferSuccess
fix the issue aitos-io#1141
teambition task id | #define TEST_IS_SYNC_TX BOAT_TRUE
#define TEST_RECIPIENT_ADDRESS "lat159js9hw63x2y8m65mhgprm3eu9f4c7xmv3lym4"
+const BCHAR *hrp = "lat";
+
extern BoatPlatONWalletConfig get_platon_wallet_settings();
START_TEST(test_006GetBalance_0001GetSuccess)
@@ -99,6 +101,27 @@ START_TEST(test_006GetBalance_0003GetFailureNullWallet)... |
Rename tsReal to real in tinysplinecxx.cxx. | @@ -829,7 +829,7 @@ tinyspline::BSpline::BSpline(tsBSpline &data)
tinyspline::BSpline::BSpline()
: spline(ts_bspline_init())
{
- tsReal ctrlp[3] = { 0, 0, 0 };
+ real ctrlp[3] = { 0, 0, 0 };
tsStatus status;
if (ts_bspline_new(1, 3, 0, TS_CLAMPED, &spline, &status))
throw std::runtime_error(status.message);
@@ -895,10 ... |
boot/mcuboot/Kconfig: extend configuration options | @@ -14,7 +14,7 @@ if BOOT_MCUBOOT
config MCUBOOT_VERSION
string "MCUboot version"
- default "7c890f4b075aed73e4c825ccf875b2fb9ebf2ded"
+ default "bb927ac014787992f2d8b42c7bd5d05eb4c17e05"
config MCUBOOT_ENABLE_LOGGING
bool "Enable MCUboot logging"
@@ -43,6 +43,63 @@ config MCUBOOT_BOOTLOADER
---help---
MCUboot bootload... |
BugID:20922998:Add yloop cache count macro and set it to 5 | #include <event_device.h>
+#define CACHE_COUNT 5
+
static int inited;
typedef struct {
@@ -141,7 +143,7 @@ static ssize_t event_read(file_t *f, void *buf, size_t len)
cnt = (len > evt->len) ? evt->len : len;
memcpy(buf, evt->buf, cnt);
- if (pdev->cache_count < 4) {
+ if (pdev->cache_count < CACHE_COUNT) {
dlist_add(&e... |
Tests: simplified unitd process running.
There are no reasons to wrap the Unit daemon in a separate Python process. | @@ -5,6 +5,7 @@ import stat
import time
import fcntl
import shutil
+import signal
import argparse
import platform
import tempfile
@@ -210,7 +211,8 @@ class TestUnit(unittest.TestCase):
print()
- self._p = Process(target=subprocess.call, args=[ [
+ self._p = subprocess.Popen(
+ [
self.unitd,
'--no-daemon',
'--modules', ... |
board/copano/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"
@@ -164,10 +163,7 @@ enum battery_type {
BATTERY_TYPE_COUNT,
};
-enum pwm_channel {
- PWM_CH_KBLIGHT = 0,
- PWM_CH_COUNT
-};
+enum pwm_channel { PWM_CH_KBLIGHT = 0, PWM_CH_COUNT };
enum sensor_id {
LID_ACCE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.