message
stringlengths
6
474
diff
stringlengths
8
5.22k
Use incremental add
@@ -913,8 +913,8 @@ void compute_ideal_weights_for_decimation_table( vfloat old_weight = gatherf(infilled_weights, texel); vfloat ideal_weight = gatherf(eai_in.weights, texel); - error_change0 = error_change0 + contrib_weight * scale; - error_change1 = error_change1 + (old_weight - ideal_weight) * scale; + error_change0 += contrib_weight * scale; + error_change1 += (old_weight - ideal_weight) * scale; }
sample-plugin: refactor .api to use explicit types Use explicit types in .api definition. Type: refactor
/* Define a simple binary API to control the feature */ option version = "0.1.0"; +import "../../vnet/interface_types.api"; autoreply define sample_macswap_enable_disable { /* Client identifier, set from api_main.my_client_index */ @@ -26,8 +27,8 @@ autoreply define sample_macswap_enable_disable { u32 context; /* Enable / disable the feature */ - u8 enable_disable; + bool enable_disable; /* Interface handle */ - u32 sw_if_index; + vl_api_interface_index_t sw_if_index; };
Fix Linux/Avahi build issues.
@@ -7332,9 +7332,9 @@ register_printer( */ avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipp._tcp", NULL, NULL, printer->port, ipp_txt); - if (subtypes && *subtypes) + if (printer->dnssd_subtypes && *(printer->dnssd_subtypes)) { - char *temptypes = strdup(subtypes), *start, *end; + char *temptypes = strdup(printer->dnssd_subtypes), *start, *end; for (start = temptypes; *start; start = end) { @@ -7356,9 +7356,9 @@ register_printer( */ avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipps._tcp", NULL, NULL, printer->port, ipp_txt); - if (subtypes && *subtypes) + if (printer->dnssd_subtypes && *(printer->dnssd_subtypes)) { - char *temptypes = strdup(subtypes), *start, *end; + char *temptypes = strdup(printer->dnssd_subtypes), *start, *end; for (start = temptypes; *start; start = end) {
updated control default
@@ -36202,13 +36202,25 @@ void safe_set(int *arr, int index, int newkey, int oldkey) arr[index] = newkey; } -void keyboard_setup_menu_conf(int player, char *buf, char* command, char* filename, char buttonnames[][16]) +void keyboard_setup(int player) { - ptrdiff_t pos; + const int btnnum = MAX_BTN_NUM; + int quit = 0, sdid = 0, + selector = 0, + setting = -1, + i, k, ok = 0, + disabledkey[MAX_BTN_NUM] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, + col1 = -8, col2 = 6; + ptrdiff_t voffset, pos; + char *buf, + *command, + *filename = "data/menu.txt", + buttonnames[btnnum][16]; size_t size; ArgList arglist; char argbuf[MAX_ARG_LEN + 1] = ""; - int sdid; + + printf("Loading control settings.......\t"); strncpy(buttonnames[SDID_MOVEUP], "Move Up", 16); strncpy(buttonnames[SDID_MOVEDOWN], "Move Down", 16); @@ -36270,24 +36282,6 @@ void keyboard_setup_menu_conf(int player, char *buf, char* command, char* filena { break; } -} - -void keyboard_setup(int player) -{ - const int btnnum = MAX_BTN_NUM; - int quit = 0, - selector = 0, - setting = -1, - i, k, ok = 0, - disabledkey[MAX_BTN_NUM] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, - col1 = -8, col2 = 6; - ptrdiff_t voffset; - char *buf, *command, *filename = "data/menu.txt", - buttonnames[btnnum][16]; - - printf("Loading control settings.......\t"); - - keyboard_setup_menu_conf(player,buf,command,filename,buttonnames); while(!quit) {
Remove deprecated option from command/archive-push unit test.
@@ -605,7 +605,7 @@ testRun(void) // ------------------------------------------------------------------------------------------------------------------------- argList = strLstNew(); strLstAddZ(argList, "--stanza=test"); - strLstAddZ(argList, "--no-compress"); + hrnCfgArgRawZ(argList, cfgOptCompressType, "none"); strLstAdd(argList, strNewFmt("--spool-path=%s/spool", testPath())); strLstAddZ(argList, "--" CFGOPT_ARCHIVE_ASYNC); strLstAdd(argList, strNewFmt("--pg1-path=%s/pg", testPath()));
samd21: make uart_init() static Avoids a linker conflict if programs are using the same function name.
@@ -47,7 +47,7 @@ void USB_Handler(void) //--------------------------------------------------------------------+ // UART support //--------------------------------------------------------------------+ -void uart_init(void); +static void uart_init(void); //--------------------------------------------------------------------+ // MACRO TYPEDEF CONSTANT ENUM DECLARATION @@ -152,7 +152,7 @@ uint32_t board_button_read(void) #define BOARD_SERCOM2(n) SERCOM ## n #define BOARD_SERCOM(n) BOARD_SERCOM2(n) -void uart_init(void) +static void uart_init(void) { #if UART_SERCOM == 0 gpio_set_pin_function(PIN_PA06, PINMUX_PA06D_SERCOM0_PAD2); @@ -217,7 +217,7 @@ int board_uart_write(void const * buf, int len) } #else // ! defined(UART_SERCOM) -void uart_init(void) +static void uart_init(void) { }
added some more weak pass
@@ -828,6 +828,8 @@ snprintf(pskstring, 64, "%s12345", basestring); writepsk(pskstring); snprintf(pskstring, 64, "12345%s", basestring); writepsk(pskstring); +snprintf(pskstring, 64, "%s@1234", basestring); +writepsk(pskstring); return; } /*===========================================================================*/ @@ -837,6 +839,8 @@ snprintf(pskstring, 64, "%s1234", basestring); writepsk(pskstring); snprintf(pskstring, 64, "1234%s", basestring); writepsk(pskstring); +snprintf(pskstring, 64, "%s@123", basestring); +writepsk(pskstring); return; } /*===========================================================================*/
Cleanup toolchain-build a bit more
@@ -8,12 +8,13 @@ runs: run: .github/scripts/create-hash.sh shell: bash + # since "hashFiles" function differs on self-hosted vs GH-A machines + # make sure to cache the GH-A hashFiles result so that self-hosted can use it - run: | echo "${{ hashFiles('**/riscv-tools.hash') }}" > riscv-tools.hashFilesOutput echo "${{ hashFiles('**/esp-tools.hash') }}" > esp-tools.hashFilesOutput shell: bash - # AJG: hacky since "hashFiles" function differs on self-hosted vs GH-A machines - name: Cache hashFiles outputs uses: actions/cache@v2 with: @@ -29,30 +30,22 @@ runs: echo "::set-output name=esp-tools-cache-key::$(cat esp-tools.hashFilesOutput)" shell: bash - - name: DEBUG - Check the output of the file vs the actual hashFiles output - run: | - echo "${{ steps.genkey.outputs.riscv-tools-cache-key }}" - echo "${{ hashFiles('**/riscv-tools.hash') }}" - echo "${{ steps.genkey.outputs.esp-tools-cache-key }}" - echo "${{ hashFiles('**/esp-tools.hash') }}" - shell: bash - - name: Cache riscv-tools uses: actions/cache@v2 with: path: riscv-tools-install key: riscv-tools-installed-${{ env.tools-cache-version }}-${{ steps.genkey.outputs.riscv-tools-cache-key }} - - name: Build RISC-V toolchain if not cached - run: ./.github/scripts/build-toolchains.sh riscv-tools - shell: bash - - name: Cache esp-tools uses: actions/cache@v2 with: path: esp-tools-install key: esp-tools-installed-${{ env.tools-cache-version }}-${{ steps.genkey.outputs.esp-tools-cache-key }} + - name: Build RISC-V toolchain if not cached + run: ./.github/scripts/build-toolchains.sh riscv-tools + shell: bash + - name: Build ESP RISC-V toolchain if not cached run: ./.github/scripts/build-toolchains.sh esp-tools shell: bash
khan: unlink socket on close Made URB_SOCK_PATH an array instead of pointer as well, to be able to use sizeof.
c3_l sev_l; // instance number } u3_khan; -static const c3_c* const URB_SOCK_PATH = ".urb/khan.sock"; +static const c3_c URB_SOCK_PATH[] = ".urb/khan.sock"; /* _khan_io_talk(): notify %khan that we're live */ @@ -62,14 +62,23 @@ _khan_io_kick(u3_auto* car_u, u3_noun wir, u3_noun cad) return ret_o; } -/* _khan_io_exit(): close socket. +/* _khan_io_exit(): unlink socket. */ static void _khan_io_exit(u3_auto* car_u) { u3_khan* cop_u = (u3_khan*)car_u; + c3_c* pax_c = u3_Host.dir_c; + c3_w len_w = strlen(pax_c) + 1 + sizeof(URB_SOCK_PATH); + c3_c* paf_c = c3_malloc(len_w); + c3_i wit_i; - // TODO close socket + wit_i = snprintf(paf_c, len_w, "%s/%s", pax_c, URB_SOCK_PATH); + c3_assert(wit_i > 0); + c3_assert(len_w == (c3_w)wit_i + 1); + + unlink(paf_c); + c3_free(paf_c); } /* _khan_conn_cb(): socket connection callback.
Preserve timestamps on header install
@@ -122,7 +122,7 @@ install-headers: $(EXTERNAL_HEADERS) @mkdir -p "$(HEADERS_INSTALL_DIR)"; \ for file in $(EXTERNAL_HEADERS); do\ mkdir -p "$(HEADERS_INSTALL_DIR)/`dirname $${file#$(EXTERNAL_HEADERS_DIR)}`"; \ - install -m 644 $${file} "$(HEADERS_INSTALL_DIR)/$${file#$(EXTERNAL_HEADERS_DIR)}";\ + install -p -m 644 $${file} "$(HEADERS_INSTALL_DIR)/$${file#$(EXTERNAL_HEADERS_DIR)}";\ done
tools: ci: Fix testrun/utins/common.py for sabrelite (QEMU) Summary: I noticed that nuttx crashes if DEBUG_ASSERTIONS=y This commit fixes this issue by changing QEMU options Impact: None Testing: Tested with QEMU
@@ -214,7 +214,7 @@ class start: "bash", [ "-c", - "qemu-system-arm -M sabrelite -smp 1 -bios none -kernel ./nuttx -nographic | tee %s" + "qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -kernel ./nuttx -nographic | tee %s" % self.log, ], )
Fixed point needs a round()
/// We use fixed point representation of beat time and seconds time /// Usage: /// double x = ...; // in beats -/// clap_beattime y = CLAP_BEATTIME_FACTOR * x; +/// clap_beattime y = round(CLAP_BEATTIME_FACTOR * x); // This will never change static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31;
integration: Add test for sigsnoop.
@@ -559,6 +559,33 @@ func TestSeccompadvisor(t *testing.T) { runCommands(commands, t) } +func TestSigsnoop(t *testing.T) { + ns := generateTestNamespaceName("test-sigsnoop") + + t.Parallel() + + sigsnoopCmd := &command{ + name: "Start sigsnoop gadget", + cmd: fmt.Sprintf("$KUBECTL_GADGET sigsnoop -n %s", ns), + expectedRegexp: fmt.Sprintf(`%s\s+test-pod\s+test-pod\s+\d+\s+sh\s+SIGTERM`, ns), + startAndStop: true, + } + + commands := []*command{ + createTestNamespaceCommand(ns), + sigsnoopCmd, + { + name: "Run pod which sends signal", + cmd: busyboxPodCommand(ns, "while true; do sleep 3 & kill $!; done"), + expectedRegexp: "pod/test-pod created", + }, + waitUntilTestPodReadyCommand(ns), + deleteTestNamespaceCommand(ns), + } + + runCommands(commands, t) +} + func TestSocketCollector(t *testing.T) { ns := generateTestNamespaceName("test-socket-collector")
interface: prevent crash in non-group workspace
@@ -26,6 +26,7 @@ import '~/views/apps/links/css/custom.css'; import '~/views/apps/publish/css/custom.css'; import { getGroupFromWorkspace } from '~/logic/lib/workspace'; import { GroupHome } from './Home/GroupHome'; +import { EmptyGroupHome } from './Home/EmptyGroupHome'; import { Workspace } from '~/types/workspace'; import useContactState from '~/logic/state/contact'; import useGroupState from '~/logic/state/group'; @@ -206,11 +207,17 @@ export function GroupsPane(props: GroupsPaneProps) { recentGroups={recentGroups} baseUrl={baseUrl} {...props}> + { workspace.type === 'group' ? ( <GroupHome api={api} baseUrl={baseUrl} groupPath={groupPath} /> + ) : ( + <EmptyGroupHome + associations={associations} + /> + )} {popovers(routeProps, baseUrl)} </Skeleton> </>
Xerces: Correct minor spelling mistake
@@ -89,7 +89,7 @@ void node2key (DOMNode const * n, Key const & parent, KeySet const & ks, Key & c if (!ks.size ()) { // we map the parent key to the xml root element - // preserve the original name if its different + // preserve the original name if it is different auto parentName = parent.rbegin (); if (parentName != parent.rend () && (*parentName) != keyName) {
apps/btshell: Update conn-datalen params help to be more informative
@@ -2225,9 +2225,11 @@ cmd_conn_datalen(int argc, char **argv) #if MYNEWT_VAL(SHELL_CMD_HELP) static const struct shell_param conn_datalen_params[] = { - {"conn", "conn_datalen handle, usage: =<UINT16>"}, - {"octets", "usage: =<UINT16>"}, - {"time", "usage: =<UINT16>"}, + {"conn", "Connection handle, usage: =<UINT16>"}, + {"octets", "Max payload size to include in LL Data PDU, " + "range=<27-251>, usage: =<UINT16>"}, + {"time", "Max number of microseconds the controller should use to tx " + "single LL packet, range=<328-17040>, usage: =<UINT16>"}, {NULL, NULL} };
chat: toggle code at start of input
@@ -2,6 +2,7 @@ import React, { Component } from 'react'; import _ from 'lodash'; import moment from 'moment'; import { UnControlled as CodeEditor } from 'react-codemirror2'; +import CodeMirror from 'codemirror'; import 'codemirror/mode/markdown/markdown'; import 'codemirror/addon/display/placeholder'; @@ -306,7 +307,9 @@ export class ChatInput extends Component { 'Enter': cm => this.messageSubmit(), 'Shift-3': cm => - this.toggleCode() + cm.getValue().length === 0 + ? this.toggleCode() + : CodeMirror.Pass } };
build: generating multiple autotest runs in continuous integration
@@ -27,4 +27,5 @@ script: - make examples - make benchmark - make xautotest - - ./xautotest -R 0 + - ./xautotest -R 0 # execute with a specific random seed + - ./xautotest # execute with a random seed based on time
refactor(memory check): "tlsCAchain" should check non-null in BoatHlfabricTxExec()
@@ -105,6 +105,10 @@ __BOATSTATIC BOAT_RESULT BoatHlfabricTxExec(BoatHlfabricTx *tx_ptr, ((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->hostName = nodeCfg.layoutCfg[i].groupCfg[j].endorser[k].hostName; ((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain = BoatMalloc(sizeof(BoatFieldVariable)); + if(((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain == NULL){ + BoatLog(BOAT_LOG_CRITICAL, "Fail to allocate tlsCAchain buffer."); + boat_throw(BOAT_ERROR_COMMON_OUT_OF_MEMORY, BoatHlfabricTxProposal_exception); + } ((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain[0].field_len = nodeCfg.layoutCfg[i].groupCfg[j].tlsOrgCertContent.length + 1; ((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain[0].field_ptr = BoatMalloc(((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain[0].field_len); memset(((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain[0].field_ptr, 0x00, ((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain[0].field_len);
upgrade_tuple: fix isnull array deallocation The values array was being double-freed, causing a crash.
@@ -931,7 +931,7 @@ upgrade_tuple(AppendOnlyExecutorReadBlock *executorReadBlock, if (values) pfree(values); if (isnull) - pfree(values); + pfree(isnull); values = (Datum *) MemoryContextAlloc(TopMemoryContext, natts * sizeof(Datum)); isnull = (bool *) MemoryContextAlloc(TopMemoryContext, natts * sizeof(bool)); nallocated = natts;
[CHANGELOG] Release v0.5.0
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +## 0.5.0 - 2022-08-03 + ### Added - Add Halide runtime and build scripts for applications - Add Halide example applications (2D convolution & matrix multiplication)
Fix Javascript binding.
@@ -523,7 +523,7 @@ EMSCRIPTEN_BINDINGS(tinyspline) { .constructor<size_t>() .constructor<size_t, size_t>() .constructor<size_t, size_t, size_t>() - .constructor<size_t, size_t, size_t, BSpline::type>() + .constructor<size_t, size_t, size_t, BSpline::Type>() .class_function("interpolateCubicNatural", &BSpline::interpolateCubicNatural) @@ -581,9 +581,9 @@ EMSCRIPTEN_BINDINGS(tinyspline) { ; enum_<BSpline::Type>("BSplineType") - .value("OPENED", BSpline::Type::OPENED) - .value("CLAMPED", BSpline::Type::CLAMPED) - .value("BEZIERS", BSpline::Type::BEZIERS) + .value("Opened", BSpline::Type::Opened) + .value("Clamped", BSpline::Type::Clamped) + .value("Beziers", BSpline::Type::Beziers) ; }
acme: don't no-op for moons and comets
^+ this ?: =(~ dom) ~|(%acme-empty-certificate-order !!) - ?: ?=(?(%earl %pawn) (clan:title our.bow)) - this =. ..emit (queue-next-order 1 | dom) =. ..emit cancel-current-order :: notify %dill
Increment version to 4.6.9.
#define MOD_WSGI_MAJORVERSION_NUMBER 4 #define MOD_WSGI_MINORVERSION_NUMBER 6 -#define MOD_WSGI_MICROVERSION_NUMBER 8 -#define MOD_WSGI_VERSION_STRING "4.6.8" +#define MOD_WSGI_MICROVERSION_NUMBER 9 +#define MOD_WSGI_VERSION_STRING "4.6.9" /* ------------------------------------------------------------------------- */
sysdeps/linux: Implement sys_madvise
@@ -597,6 +597,13 @@ int sys_getrusage(int scope, struct rusage *usage) { return 0; } +int sys_madvise(void *addr, size_t length, int advice) { + auto ret = do_syscall(NR_madvise, addr, length, advice); + if (int e = sc_error(ret); e) + return e; + return 0; +} + #endif // __MLIBC_POSIX_OPTION pid_t sys_getpid() {
Increase timeout for stress-large tests
@@ -196,7 +196,7 @@ foreach p, p_params: programs args: t_params['args'], is_parallel: false, suite: ['stress-large'], - timeout: params.get('timeout', 3600), + timeout: params.get('timeout', 7200), ) endforeach
zephyr: drop IS_ZEPHYR_VERSION macro As noted in the bug, this macro is an antipattern. Drop it. BRANCH=none TEST=zmake testall
#include "common.h" #include "system.h" -#ifdef CONFIG_ZEPHYR -#include "version.h" - -#define IS_ZEPHYR_VERSION(major, minor) \ - (KERNEL_VERSION_MAJOR == (major) && KERNEL_VERSION_MINOR == (minor)) -#else -#define IS_ZEPHYR_VERSION(major, minor) false -#endif /* CONFIG_ZEPHYR */ - #define CROS_EC_IMAGE_DATA_COOKIE1 0xce778899 #define CROS_EC_IMAGE_DATA_COOKIE2 0xceaabbdd
add default constructors to stl heap allocators
@@ -478,7 +478,7 @@ template<class T, bool destroy> struct _mi_heap_stl_allocator_common : public _m using typename _mi_stl_allocator_common<T>::value_type; using typename _mi_stl_allocator_common<T>::pointer; - _mi_heap_stl_allocator_common(mi_heap_t* hp) : heap(hp) { } /* will not delete or destroy the passed in heap */ + _mi_heap_stl_allocator_common(mi_heap_t* hp) : heap(hp) { } /* will not delete nor destroy the passed in heap */ #if (__cplusplus >= 201703L) // C++17 mi_decl_nodiscard T* allocate(size_type count) { return static_cast<T*>(mi_heap_alloc_new_n(this->heap.get(), count, sizeof(T))); } @@ -513,7 +513,8 @@ private: // STL allocator allocation in a specific heap template<class T> struct mi_heap_stl_allocator : public _mi_heap_stl_allocator_common<T, false> { using typename _mi_heap_stl_allocator_common<T, false>::size_type; - mi_heap_stl_allocator(mi_heap_t* hp) : _mi_heap_stl_allocator_common<T, false>(hp) { } /* no delete or destroy on the passed in heap */ + mi_heap_stl_allocator() : _mi_heap_stl_allocator_common<T, false>() { } // creates fresh heap that is deleted when the destructor is called + mi_heap_stl_allocator(mi_heap_t* hp) : _mi_heap_stl_allocator_common<T, false>(hp) { } // no delete nor destroy on the passed in heap template<class U> mi_heap_stl_allocator(const mi_heap_stl_allocator<U>& x) mi_attr_noexcept : _mi_heap_stl_allocator_common<T, false>(x) { } mi_heap_stl_allocator select_on_container_copy_construction() const { return *this; } @@ -529,6 +530,8 @@ template<class T1, class T2> bool operator!=(const mi_heap_stl_allocator<T1>& x, // the heap is destroyed in one go on destruction -- use with care! template<class T> struct mi_heap_destroy_stl_allocator : public _mi_heap_stl_allocator_common<T, true> { using typename _mi_heap_stl_allocator_common<T, true>::size_type; + mi_heap_destroy_stl_allocator() : _mi_heap_stl_allocator_common<T, true>() { } // creates fresh heap that is destroyed when the destructor is called + mi_heap_destroy_stl_allocator(mi_heap_t* hp) : _mi_heap_stl_allocator_common<T, true>(hp) { } // no delete nor destroy on the passed in heap template<class U> mi_heap_destroy_stl_allocator(const mi_heap_destroy_stl_allocator<U>& x) mi_attr_noexcept : _mi_heap_stl_allocator_common<T, true>(x) { } mi_heap_destroy_stl_allocator select_on_container_copy_construction() const { return *this; }
Adds required linker options for the depenedency managet on OSX systems
@@ -21,14 +21,22 @@ target_include_directories(dependency_manager_static PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/api> $<INSTALL_INTERFACE:include/celix/dependency_manager> ) -target_link_libraries(dependency_manager_static PUBLIC Celix::framework) +if (APPLE) + target_link_libraries(dependency_manager_static Celix::framework "-undefined dynamic_lookup") +else() + target_link_libraries(dependency_manager_static Celix::framework) +endif() add_library(dependency_manager_so SHARED src/dm_activator.c) target_include_directories(dependency_manager_so PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/api> $<INSTALL_INTERFACE:include/celix/dependency_manager> ) -target_link_libraries(dependency_manager_so PUBLIC Celix::framework) +if (APPLE) + target_link_libraries(dependency_manager_so Celix::framework "-undefined dynamic_lookup") +else() + target_link_libraries(dependency_manager_so Celix::framework) +endif() #now part of the the shell bundle add_library(dm_shell INTERFACE)
added a view reset
@@ -965,6 +965,9 @@ avtH5PartFileFormat::SelectParticlesToRead( const char *varName ) { int t1 = visitTimer->StartTimer(); + // reset the view so all particles are considered. + H5PartSetView(file, -1, -1); + #ifdef HAVE_LIBFASTBIT // Using FastBit with a query, re-run query if necessary. if (useFastBitIndex && particleVarNameToFastBitMap[ varName ] && @@ -3002,7 +3005,6 @@ void avtH5PartFileFormat::GetDecomp( h5part_int64_t nObjects, lastIndex = -2; total = 0; } - #else firstIndex = 0; lastIndex = nObjects-1;
Update the regression suite to git lfs pull the test baselines.
@@ -331,9 +331,13 @@ cat ../make.err >> ../../buildlog echo "Source build completed at: \`date\`" +# Update the test baselines +cd ../test +git lfs pull >> ../../../buildlog 2>&1 + # Build the test data cd ../data -git lfs pull +git lfs pull >> ../../../buildlog 2>&1 cd ../build cd testdata make -j 8 data >> ../../../buildlog 2>&1
Adapt the low-level correspondence SAW proof script to the new LLVM-Crucible interface
import "spec/s2n_advance_message.cry"; -load_crucible_llvm_module "bitcode/all_llvm.bc"; +llvm <- llvm_load_module "bitcode/all_llvm.bc"; +//load_llvm_cfg llvm "s2n_advance_message"; +//load_llvm_cfg llvm "s2n_conn_set_handshake_type"; print "Loaded bitcode via Crucible"; //////////////////////////////////////////////////////////////// @@ -264,17 +266,17 @@ let s2n_connection_is_managed_corked_spec = do { }; -let s2n_advance_message_proof = do { +let s2n_handshake_io_lowlevel = do { // Dependencies specifications/overrides - s2n_socket_write_uncork <- crucible_llvm_unsafe_assume_spec "s2n_socket_write_uncork" s2n_socket_write_uncork_spec; - s2n_socket_write_cork <- crucible_llvm_unsafe_assume_spec "s2n_socket_write_cork" s2n_socket_write_cork_spec; - s2n_socket_was_corked <- crucible_llvm_unsafe_assume_spec "s2n_socket_was_corked" s2n_socket_was_corked_spec; - s2n_connection_is_managed_corked <- crucible_llvm_unsafe_assume_spec "s2n_connection_is_managed_corked" s2n_connection_is_managed_corked_spec; - s2n_is_caching_enabled <- crucible_llvm_unsafe_assume_spec "s2n_is_caching_enabled" s2n_is_caching_enabled_spec; + s2n_socket_write_uncork <- crucible_llvm_unsafe_assume_spec llvm "s2n_socket_write_uncork" s2n_socket_write_uncork_spec; + s2n_socket_write_cork <- crucible_llvm_unsafe_assume_spec llvm "s2n_socket_write_cork" s2n_socket_write_cork_spec; + s2n_socket_was_corked <- crucible_llvm_unsafe_assume_spec llvm "s2n_socket_was_corked" s2n_socket_was_corked_spec; + s2n_connection_is_managed_corked <- crucible_llvm_unsafe_assume_spec llvm "s2n_connection_is_managed_corked" s2n_connection_is_managed_corked_spec; + s2n_is_caching_enabled <- crucible_llvm_unsafe_assume_spec llvm "s2n_is_caching_enabled" s2n_is_caching_enabled_spec; let dependencies = [s2n_socket_write_uncork, s2n_socket_write_cork, s2n_socket_was_corked, s2n_connection_is_managed_corked]; - s2n_advance_message_proof <- crucible_llvm_verify "s2n_advance_message" dependencies true s2n_advance_message_spec yices; - s2n_conn_set_handshake_type_proof <- crucible_llvm_verify "s2n_conn_set_handshake_type" [s2n_is_caching_enabled] true s2n_conn_set_handshake_type_spec yices; + s2n_advance_message_proof <- crucible_llvm_verify llvm "s2n_advance_message" dependencies true s2n_advance_message_spec yices; + s2n_conn_set_handshake_type_proof <- crucible_llvm_verify llvm "s2n_conn_set_handshake_type" [s2n_is_caching_enabled] true s2n_conn_set_handshake_type_spec yices; print "done"; return (); };
Fix previous commit (Move VirtualAddress check to PhGetMappedImageDataEntry)
@@ -515,7 +515,7 @@ NTSTATUS PhGetMappedImageDataEntry( PIMAGE_OPTIONAL_HEADER32 optionalHeader; PIMAGE_DATA_DIRECTORY dataDirectory; - optionalHeader = &MappedImage->NtHeaders32->OptionalHeader; + optionalHeader = (PIMAGE_OPTIONAL_HEADER32)&MappedImage->NtHeaders32->OptionalHeader; if (Index >= optionalHeader->NumberOfRvaAndSizes) return STATUS_INVALID_PARAMETER_2; @@ -533,7 +533,7 @@ NTSTATUS PhGetMappedImageDataEntry( PIMAGE_OPTIONAL_HEADER64 optionalHeader; PIMAGE_DATA_DIRECTORY dataDirectory; - optionalHeader = &MappedImage->NtHeaders->OptionalHeader; + optionalHeader = (PIMAGE_OPTIONAL_HEADER64)&MappedImage->NtHeaders->OptionalHeader; if (Index >= optionalHeader->NumberOfRvaAndSizes) return STATUS_INVALID_PARAMETER_2;
Fix dead assignment of Fvco in FPGA::SetPllFrequency
@@ -329,7 +329,6 @@ int FPGA::SetPllFrequency(const uint8_t pllIndex, const double inputFreq, FPGA_P } int N(0), M(0); double bestDeviation = 1e9; - double Fvco; for(auto it : availableVCOs) { if(it.second == bestScore) @@ -352,7 +351,6 @@ int FPGA::SetPllFrequency(const uint8_t pllIndex, const double inputFreq, FPGA_P if(deviation <= bestDeviation) { bestDeviation = deviation; - Fvco = it.first; M = Mtemp; N = Ntemp; } @@ -361,7 +359,7 @@ int FPGA::SetPllFrequency(const uint8_t pllIndex, const double inputFreq, FPGA_P int mlow = M / 2; int mhigh = mlow + M % 2; - Fvco = inputFreq*M/N; //actual VCO freq + double Fvco = inputFreq*M/N; //actual VCO freq lime::debug("M=%i, N=%i, Fvco=%.3f MHz", M, N, Fvco / 1e6); if(Fvco < vcoLimits_Hz[0] || Fvco > vcoLimits_Hz[1]) return ReportError(ERANGE, "SetPllFrequency: VCO(%g MHz) out of range [%g:%g] MHz", Fvco/1e6, vcoLimits_Hz[0]/1e6, vcoLimits_Hz[1]/1e6);
YANG parser BUGFIX processing block comments Incorrect processing of **/ sequence terminating a comment.
@@ -342,7 +342,7 @@ skip_comment(struct lys_parser_ctx *ctx, const char **data, int comment) case 3: if (**data == '/') { comment = 0; - } else { + } else if (**data != '*') { if (**data == '\n') { ++ctx->line; }
Fix possible null pointer dereference in Log
@@ -903,7 +903,7 @@ BaseType_t xPublishToTopic( MQTTContext_t * pxMqttContext, } else { - LogInfo( ( "the published payload:%s \r\n ", pcPayload ) ); + LogInfo( ( "the published payload:%.*s \r\n ", payloadLength, pcPayload ) ); /* This example publishes to only one topic and uses QOS1. */ outgoingPublishPackets[ ucPublishIndex ].pubInfo.qos = MQTTQoS1; outgoingPublishPackets[ ucPublishIndex ].pubInfo.pTopicName = pcTopicFilter;
Update Changelog for 0.3.14
OpenBLAS ChangeLog +==================================================================== +Version 0.3.14 + 17-Mar-2021 + + common: + * Fixed a race condition on thread shutdown in non-OpenMP builds + * Fixed custom BUFFERSIZE option getting ignored in gmake builds + * Fixed CMAKE compilation of the TRMM kernels for GENERIC platforms + * Added CBLAS interfaces for CROTG, ZROTG, CSROT and ZDROT + * Improved performance of OMATCOPY_RT across all platforms + * Changed perl scripts to use env instead of a hardcoded /usr/bin/perl + * Fixed potential misreading of the GCC compiler version in the build scripts + * Fixed convergence problems in LAPACK complex GGEV/GGES (Reference-LAPACK #477) + * Reduced the stacksize requirements for running the LAPACK testsuite (Reference-LAPACK #335) + + RISCV: + * Fixed compilation on RISCV (missing entry in getarch) + + POWER: + * Fixed compilation for DYNAMIC_ARCH with clang and with old gcc versions + * Added support for compilation on FreeBSD/ppc64le + * Added optimized POWER10 kernels for SSCAL, DSCAL, CSCAL, ZSCAL + * Added optimized POWER10 kernels for SROT, DROT, CDOT, SASUM, DASUM + * Improved SSWAP, DSWAP, CSWAP, ZSWAP performance on POWER10 + * Improved SCOPY and CCOPY performance on POWER10 + * Improved SGEMM and DGEMM performance on POWER10 + * Added support for compilation with the NVIDIA HPC compiler + + x86_64: + * Added an optimized bfloat16 GEMM kernel for Cooperlake + * Added CPUID autodetection for Intel Rocket Lake and Tiger Lake cpus + * Improved the performance of SASUM,DASUM,SROT,DROT on AMD Ryzen cpus + * Added support for compilation with the NAG Fortran compiler + * Fixed recognition of the AMD AOCC compiler + * Fixed compilation for DYNAMIC_ARCH with clang on Windows + * Added support for running the BLAS/CBLAS tests on Windows + * Fixed signatures of the tls callback functions for Windows x64 + * Fixed various issues with fma intrinsics support handling + + ARM: + * Added support for embedded Cortex M targets via a new option EMBEDDED + + ARMV8: + * Fixed the THUNDERX2T99 and NEOVERSEN1 DNRM2/ZNRM2 kernels for inputs with Inf + * Added support for the DYNAMIC_LIST option + * Added support for compilation with the NVIDIA HPC compiler + * Added support for compiling with the NAG Fortran compiler + ==================================================================== Version 0.3.13 12-Dec-2020
symtrack: running both BPSK and QPSK tests
@@ -30,7 +30,7 @@ void testbench_symtrack_cccf(unsigned int _k, unsigned int _m, float _beta, int { int ftype = LIQUID_FIRFILT_ARKAISER; unsigned int num_symbols = 4000; // number of data symbols - unsigned int hc_len = 4; // channel filter length + //unsigned int hc_len = 4; // channel filter length float noise_floor = -30.0f; // noise floor [dB] float SNRdB = 30.0f; // signal-to-noise ratio [dB] float bandwidth = 0.10f; // loop filter bandwidth @@ -104,5 +104,6 @@ void testbench_symtrack_cccf(unsigned int _k, unsigned int _m, float _beta, int CONTEND_LESS_THAN(evm, -20.0f); } -void autotest_symtrack_cccf_00() { testbench_symtrack_cccf( 2, 7,0.20f,LIQUID_MODEM_QPSK); } +void autotest_symtrack_cccf_00() { testbench_symtrack_cccf( 2, 7,0.20f,LIQUID_MODEM_BPSK); } +void autotest_symtrack_cccf_01() { testbench_symtrack_cccf( 2, 7,0.20f,LIQUID_MODEM_QPSK); }
sdl: gamecontroller.go: Change GameControllerMapping() into GameController.Mapping()
@@ -91,12 +91,6 @@ func GameControllerMappingForGUID(guid JoystickGUID) string { return C.GoString(C.SDL_GameControllerMappingForGUID(guid.c())) } -// GameControllerMapping returns the current mapping of a Game Controller. -// (https://wiki.libsdl.org/SDL_GameControllerMapping) -func GameControllerMapping(ctrl *GameController) string { - return C.GoString(C.SDL_GameControllerMapping(ctrl.cptr())) -} - // IsGameController reports whether the given joystick is supported by the game controller interface. // (https://wiki.libsdl.org/SDL_IsGameController) func IsGameController(index int) bool { @@ -127,6 +121,12 @@ func (ctrl *GameController) GetAttached() bool { return C.SDL_GameControllerGetAttached(ctrl.cptr()) > 0 } +// Mapping returns the current mapping of a Game Controller. +// (https://wiki.libsdl.org/SDL_GameControllerMapping) +func (ctrl *GameController) Mapping() string { + return C.GoString(C.SDL_GameControllerMapping(ctrl.cptr())) +} + // GetJoystick returns the Joystick ID from a Game Controller. The game controller builds on the Joystick API, but to be able to use the Joystick's functions with a gamepad, you need to use this first to get the joystick object. // (https://wiki.libsdl.org/SDL_GameControllerGetJoystick) func (ctrl *GameController) GetJoystick() *Joystick {
fix Makefile resume build ethereum
@@ -6,9 +6,9 @@ BOAT_BUILD_DIR := $(BOAT_BASE_DIR)/build # Set chain support # Set to 1 to enable releated chain, to 0 to disable -BOAT_PROTOCOL_USE_ETHEREUM ?= 0 -BOAT_PROTOCOL_USE_PLATONE ?= 0 -BOAT_PROTOCOL_USE_FISCOBCOS ?= 0 +BOAT_PROTOCOL_USE_ETHEREUM ?= 1 +BOAT_PROTOCOL_USE_PLATONE ?= 1 +BOAT_PROTOCOL_USE_FISCOBCOS ?= 1 BOAT_PROTOCOL_USE_HLFABRIC ?= 1 # Chain config check
Remove BLASLONG casts from SPARC entries in response to
@@ -2502,7 +2502,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define GEMM_DEFAULT_OFFSET_A 0 #define GEMM_DEFAULT_OFFSET_B 2048 -#define GEMM_DEFAULT_ALIGN (BLASLONG)0x03fffUL +#define GEMM_DEFAULT_ALIGN 0x03fffUL #define SGEMM_DEFAULT_UNROLL_M 2 #define SGEMM_DEFAULT_UNROLL_N 8 @@ -2534,7 +2534,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define GEMM_DEFAULT_OFFSET_A 0 #define GEMM_DEFAULT_OFFSET_B 2048 -#define GEMM_DEFAULT_ALIGN (BLASLONG)0x03fffUL +#define GEMM_DEFAULT_ALIGN 0x03fffUL #define SGEMM_DEFAULT_UNROLL_M 4 #define SGEMM_DEFAULT_UNROLL_N 4
[external/error_report] Fix timestamp, use MONOTONIC instead of REALTIME At present, error report module uses REALTIME clock for getting timestamps. The recorded values can be affected by a change of time base during runtime (on response from NTP server, for example). As a fix, we choose relative timestamps instead.
#include <stdio.h> #include <stdlib.h> #include <time.h> +#include <tinyara/clock.h> #include <pthread.h> #include <unistd.h> #include <libgen.h> @@ -79,12 +80,23 @@ err_status_t error_report_deinit(void) error_data_t *error_report_data_create(int module_id, int error_code, uint32_t pc_value) { + error_data_t *ret = NULL; struct timeval ts; +#ifdef CONFIG_CLOCK_MONOTONIC + struct timespec tv; + int retval = clock_gettime(CLOCK_MONOTONIC, &tv); + if (retval == OK) { + /* Convert the struct timespec to a struct timeval */ + ts.tv_sec = tv.tv_sec; + ts.tv_usec = tv.tv_nsec / NSEC_PER_USEC; + } else { + ts.tv_sec = 0; + ts.tv_usec = 0; + } +#else gettimeofday(&ts, NULL); - error_data_t *ret = NULL; - +#endif pthread_mutex_lock(&g_err_info.err_mutex); - ret = (error_data_t *) g_error_report + g_err_info.rear; ret->timestamp.tv_sec = ts.tv_sec; ret->timestamp.tv_usec = ts.tv_usec;
Changed condition for skipping the script as the travis caching always create the cached directories we need to keep check on inner folder
@@ -50,7 +50,7 @@ fi dependencies_dir=$OS_NAME"_dependencies" #check for already downloaded files -if [ -d "$dependencies_dir" ]; then +if [ -d "$dependencies_dir/libodb-2.4.0" ]; then echo "skipping odb installation: $dependencies_dir directory found:" ls $dependencies_dir exit
Remove extra flags
@@ -103,8 +103,8 @@ elseif(WIN32) set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Oxs /Oy /GS- /Qvec -Clang -O3") endif() else() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wparentheses -Wundef -Wpointer-arith -Wstrict-aliasing=2") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=shadow -Werror=implicit-function-declaration") # -Werror=cast-align + #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wparentheses -Wundef -Wpointer-arith -Wstrict-aliasing=2") + #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=shadow -Werror=implicit-function-declaration") # -Werror=cast-align set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers") if (CMAKE_C_COMPILER_ID MATCHES "Clang") # TODO: Place clang-specific options here @@ -113,7 +113,7 @@ else() endif() set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb -O0") - set(CMAKE_C_FLAGS_RELEASE "-O3 -fomit-frame-pointer -march=native -Wfatal-errors -fstrict-aliasing") #-fno-inline + set(CMAKE_C_FLAGS_RELEASE "-O3 -march=native -Wfatal-errors -fstrict-aliasing") #-fno-inline -fomit-frame-pointer set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-O0") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-O3")
sysdeps/managarm: Convert sys_seteuid to bragi
@@ -432,37 +432,26 @@ uid_t sys_geteuid() { int sys_seteuid(uid_t euid) { SignalGuard sguard; - HelAction actions[3]; - globalQueue.trim(); - managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator()); - req.set_request_type(managarm::posix::CntReqType::SET_EUID); - req.set_uid(euid); + managarm::posix::SetEuidRequest<MemoryAllocator> req(getSysdepsAllocator()); - frg::string<MemoryAllocator> ser(getSysdepsAllocator()); - req.SerializeToString(&ser); - actions[0].type = kHelActionOffer; - actions[0].flags = kHelItemAncillary; - actions[1].type = kHelActionSendFromBuffer; - actions[1].flags = kHelItemChain; - actions[1].buffer = ser.data(); - actions[1].length = ser.size(); - actions[2].type = kHelActionRecvInline; - actions[2].flags = 0; - HEL_CHECK(helSubmitAsync(getPosixLane(), actions, 3, - globalQueue.getQueue(), 0, 0)); + req.set_uid(euid); - auto element = globalQueue.dequeueSingle(); - auto offer = parseSimple(element); - auto send_req = parseSimple(element); - auto recv_resp = parseInline(element); + auto [offer, send_head, recv_resp] = + exchangeMsgsSync( + getPosixLane(), + helix_ng::offer( + helix_ng::sendBragiHeadOnly(req, getSysdepsAllocator()), + helix_ng::recvInline() + ) + ); - HEL_CHECK(offer->error); - HEL_CHECK(send_req->error); - HEL_CHECK(recv_resp->error); + HEL_CHECK(offer.error()); + HEL_CHECK(send_head.error()); + HEL_CHECK(recv_resp.error()); managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator()); - resp.ParseFromArray(recv_resp->data, recv_resp->length); + resp.ParseFromArray(recv_resp.data(), recv_resp.length()); if(resp.error() == managarm::posix::Errors::ACCESS_DENIED) { return EPERM; }else if(resp.error() == managarm::posix::Errors::ILLEGAL_ARGUMENTS) {
common/charger.c: Format with clang-format BRANCH=none TEST=none
@@ -644,12 +644,16 @@ enum ec_error_list charger_set_hw_ramp(int enable) if (enable) { /* Check if this is the active chg chip. */ if (chgnum == charge_get_active_chg_chip()) - rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 1); - /* This is not the active chg chip, disable hw_ramp. */ + rv = chg_chips[chgnum].drv->set_hw_ramp( + chgnum, 1); + /* This is not the active chg chip, disable + * hw_ramp. */ else - rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 0); + rv = chg_chips[chgnum].drv->set_hw_ramp( + chgnum, 0); } else - rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 0); + rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, + 0); } } @@ -705,8 +709,7 @@ int chg_ramp_get_current_limit(void) enum ec_error_list charger_set_vsys_compensation(int chgnum, struct ocpc_data *ocpc, - int current_ma, - int voltage_mv) + int current_ma, int voltage_mv) { if ((chgnum < 0) || (chgnum >= board_get_charger_chip_count())) { CPRINTS("%s(%d) Invalid charger!", __func__, chgnum);
fix unproject's parameters
@@ -75,7 +75,7 @@ glm_unprojecti(mat4 invMat, vec4 vp, vec3 coord, vec4 dest) { */ CGLM_INLINE void -glm_unproject(mat4 m, vec2 vp, vec3 coord, vec3 dest) { +glm_unproject(mat4 m, vec4 vp, vec3 coord, vec4 dest) { mat4 inv; glm_mat4_inv(m, inv); glm_unprojecti(inv, vp, coord, dest);
Reduce -fastest quality level IQ is still higher than 3.7, but this re-extends the range of the cost-qiuality curve without any appreciable change in the shape of the curve.
@@ -62,7 +62,7 @@ struct astcenc_preset_config static const std::array<astcenc_preset_config, 5> preset_configs_high {{ { ASTCENC_PRE_FASTEST, - 2, 14, 44, 2, 2, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 25 + 2, 10, 42, 2, 2, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 25 }, { ASTCENC_PRE_FAST, 3, 14, 55, 3, 3, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.1f, 0.65f, 20 @@ -85,7 +85,7 @@ static const std::array<astcenc_preset_config, 5> preset_configs_high {{ static const std::array<astcenc_preset_config, 5> preset_configs_mid {{ { ASTCENC_PRE_FASTEST, - 2, 14, 43, 2, 2, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 20 + 2, 10, 42, 2, 2, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 20 }, { ASTCENC_PRE_FAST, 3, 15, 55, 3, 3, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.1f, 0.5f, 16 @@ -109,7 +109,7 @@ static const std::array<astcenc_preset_config, 5> preset_configs_mid {{ static const std::array<astcenc_preset_config, 5> preset_configs_low {{ { ASTCENC_PRE_FASTEST, - 2, 14, 42, 2, 2, 85.0f, 63.0f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 20 + 2, 10, 40, 2, 2, 85.0f, 63.0f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 20 }, { ASTCENC_PRE_FAST, 2, 15, 55, 3, 3, 85.0f, 63.0f, 3.5f, 3.5f, 1.0f, 1.1f, 0.5f, 16
Check for null pointer passed to memcpy This only happens when the size parameter is 0, in which memcpy will not fail, but SonarCloud flags this as a problem:
@@ -56,7 +56,7 @@ exr_attr_opaquedata_create ( exr_result_t rv = exr_attr_opaquedata_init (ctxt, u, b); if (rv == EXR_ERR_SUCCESS) { - if (d) memcpy ((void*) u->packed_data, d, b); + if (d && u->packed_data) memcpy ((void*) u->packed_data, d, b); } return rv;
Make test_alloc_set_foreign_dtd() robust vs allocation pattern changes
@@ -8943,19 +8943,9 @@ START_TEST(test_alloc_set_foreign_dtd) "<doc>&entity;</doc>"; char text2[] = "<!ELEMENT doc (#PCDATA)*>"; int i; -#define MAX_ALLOC_COUNT 10 - int repeat = 0; +#define MAX_ALLOC_COUNT 25 for (i = 0; i < MAX_ALLOC_COUNT; i++) { - /* Repeat some counts to deal with cached allocations */ - if (i == 9 && repeat == 2) { - i -= 2; - repeat++; - } - else if (i == 2 && repeat < 2) { - i--; - repeat++; - } allocation_count = i; XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS); XML_SetUserData(parser, &text2); @@ -8965,7 +8955,9 @@ START_TEST(test_alloc_set_foreign_dtd) if (_XML_Parse_SINGLE_BYTES(parser, text1, strlen(text1), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_alloc_parse_xdecl() */ + alloc_teardown(); + alloc_setup(); } if (i == 0) fail("Parse succeeded despite failing allocator");
processmgr: fix ordering
@@ -9,6 +9,6 @@ modules: nid: 0xEB1F8EF7 functions: ksceKernelExitProcess: 0x905621F9 - ksceKernelLaunchApp: 0x68068618 ksceKernelGetProcessAuthid: 0x324F2B20 ksceKernelGetProcessKernelBuf: 0xD991C85E + ksceKernelLaunchApp: 0x68068618
brya: Configure chipset support This enables additional chipset configurations for brya. BRANCH=none TEST=buildall passes
#define CONFIG_BOARD_VERSION_CBI #define CONFIG_CRC8 -#define CONFIG_EXTPOWER_GPIO - /* Host communication */ #define CONFIG_HOSTCMD_ESPI #define CONFIG_HOSTCMD_ESPI_VW_SLP_S4 /* Chipset config */ #define CONFIG_CHIPSET_ALDERLAKE_SLG4BD44540 +#define CONFIG_CHIPSET_RESET_HOOK +#define CONFIG_CPU_PROCHOT_ACTIVE_LOW +#define CONFIG_EXTPOWER_GPIO +#define CONFIG_POWER_S0IX +#define CONFIG_POWER_SLEEP_FAILURE_DETECTION +#define CONFIG_POWER_TRACK_HOST_SLEEP_STATE + /* Common Keyboard Defines */ #define CONFIG_CMD_KEYBOARD #define CONFIG_KEYBOARD_BOARD_CONFIG
Space at the beginning of sip: creates errors
@@ -168,7 +168,7 @@ static void menu_on_dial_history(GtkMenuItem *menuItem, gpointer arg) if (!label_1) return; - label_1[0] = ' '; + label_1 = label_1 + 1; uri = strtok(label_1, "]"); gtk_mod_connect(mod, uri);
OpenCanopy: Do not try to draw cursor when pointer control is disabled
@@ -883,7 +883,9 @@ GuiFlushScreen ( ASSERT (DrawContext != NULL); ASSERT (DrawContext->Screen != NULL); + if (mPointerContext != NULL) { GuiRedrawPointer (DrawContext); + } NumValidDrawReqs = mNumValidDrawReqs; ASSERT (NumValidDrawReqs <= ARRAY_SIZE (mDrawRequests));
common: Make it 1.0 beta + Update Copyrights
* * Author: Robert Swiecki <[email protected]> * - * Copyright 2010-2015 by Google Inc. All Rights Reserved. + * Copyright 2010-2017 by Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain #endif #define PROG_NAME "honggfuzz" -#define PROG_VERSION "1.0alpha" -#define PROG_AUTHORS "Robert Swiecki <[email protected]> et al.,\nCopyright 2010-2015 by Google Inc. All Rights Reserved." +#define PROG_VERSION "1.0 beta" /* Go-style defer implementation */ #define __STRMERGE(a, b) a##b
curve~: don't allow resize
@@ -236,6 +236,7 @@ static void curve_list(t_curve *x, t_symbol *s, int ac, t_atom *av) odd = natoms % 3; nsegs = natoms / 3; if (odd) nsegs++; + /* if (nsegs > x->x_size) { nsegs = CURVE_MAXSIZE; @@ -250,6 +251,13 @@ static void curve_list(t_curve *x, t_symbol *s, int ac, t_atom *av) odd = 0; } } + */ + //clip at maxsize + if(nsegs > CURVE_MAXSIZE) + { + nsegs = CURVE_MAXSIZE; + odd = 0; + }; x->x_nsegs = nsegs; segp = x->x_segs; if (odd) nsegs--;
interop: Use --exit-on-all-streams-close
@@ -22,7 +22,7 @@ LOG=/logs/log.txt if [ "$ROLE" == "client" ]; then # Wait for the simulator to start up. /wait-for-it.sh sim:57832 -s -t 30 - CLIENT_ARGS="server 443 --download /downloads -s --no-quic-dump --no-http-dump --timeout=5s --qlog-dir $QLOGDIR" + CLIENT_ARGS="server 443 --download /downloads -s --no-quic-dump --no-http-dump --exit-on-all-streams-close --qlog-dir $QLOGDIR" if [ "$TESTCASE" == "versionnegotiation" ]; then CLIENT_ARGS="$CLIENT_ARGS -v 0xaaaaaaaa" fi @@ -36,11 +36,11 @@ if [ "$ROLE" == "client" ]; then fi REQS=($REQUESTS) REQUESTS=${REQS[0]} - /usr/local/bin/client $CLIENT_ARGS --exit-on-first-stream-close $REQUESTS $CLIENT_PARAMS &> $LOG + /usr/local/bin/client $CLIENT_ARGS $REQUESTS $CLIENT_PARAMS &> $LOG REQUESTS=${REQS[@]:1} /usr/local/bin/client $CLIENT_ARGS $REQUESTS $CLIENT_PARAMS &>> $LOG elif [ "$TESTCASE" == "multiconnect" ]; then - CLIENT_ARGS="$CLIENT_ARGS --exit-on-first-stream-close --timeout=180s" + CLIENT_ARGS="$CLIENT_ARGS --timeout=180s" for REQ in $REQUESTS; do echo "multiconnect REQ: $REQ" >> $LOG /usr/local/bin/client $CLIENT_ARGS $REQ $CLIENT_PARAMS &>> $LOG
Compile with warning_level=2 by default
project('scrcpy', 'c', version: '1.11', meson_version: '>= 0.37', - default_options: 'c_std=c11') + default_options: [ + 'c_std=c11', + 'warning_level=2', + ]) if get_option('compile_app') subdir('app')
GRE: fix VRF unit-tests
@@ -768,17 +768,20 @@ class TestGRE(VppTestCase): self.verify_decapped_4o4(self.pg0, rx, tx) # - # Send tunneled packets that match the created tunnel and + # Send tunneled packets that match the created tunnel # but arrive on an interface that is not in the tunnel's - # encap VRF, these are dropped + # encap VRF, these are dropped. + # IP enable the interface so they aren't dropped due to + # IP not being enabled. # + self.pg2.config_ip4() self.vapi.cli("clear trace") tx = self.create_tunnel_stream_4o4(self.pg2, "2.2.2.2", self.pg1.local_ip4, self.pg0.local_ip4, self.pg0.remote_ip4) - self.pg1.add_stream(tx) + self.pg2.add_stream(tx) self.pg_enable_capture(self.pg_interfaces) self.pg_start() @@ -786,6 +789,8 @@ class TestGRE(VppTestCase): self.pg0.assert_nothing_captured( remark="GRE decap packets in wrong VRF") + self.pg2.unconfig_ip4() + # # test case cleanup #
Allow osx failure in travis
@@ -58,6 +58,8 @@ matrix: env: TESTS=sawHMACFailure SAW=true #This exception is because the test isn't finished yet, remove to turn on DRBG Saw tests - env: TESTS=sawDRBG SAW=true + allow_failures: + - os: osx before_install: # Install GCC 6 if on OSX
Fix encoder parameter suggestion The option is --encoder, not --encoder-name.
@@ -230,7 +230,7 @@ public final class Server { if (encoders != null && encoders.length > 0) { Ln.e("Try to use one of the available encoders:"); for (MediaCodecInfo encoder : encoders) { - Ln.e(" scrcpy --encoder-name '" + encoder.getName() + "'"); + Ln.e(" scrcpy --encoder '" + encoder.getName() + "'"); } } }
travis: Print errors out for OSX job.
@@ -293,6 +293,8 @@ jobs: - make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix - make ${MAKEOPTS} -C ports/unix test + after_failure: + - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done) # windows port via mingw - stage: test
Fix button maps JSON schema validation for sengled
"enum": [ "BASIC", "SCENES", + "SENGLED", "ONOFF", "LEVEL_CONTROL", "MULTISTATE_INPUT", "scene-commands": { "enum": [ "ADD_SCENE", "VIEW_SCENE", "REMOVE_SCENE", "STORE_SCENE", "RECALL_SCENE", "IKEA_STEP_CT", "IKEA_MOVE_CT", "IKEA_STOP_CT" ] }, + "sengled-commands": { + "enum": [ "COMMAND_0" ] + }, "onoff-commands": { "enum": [ "ATTRIBUTE_REPORT", "OFF", "ON", "TOGGLE", "OFF_WITH_EFFECT", "ON_WITH_TIMED_OFF", "LIDL" ] }, { "$ref": "#/definitions/level-commands" }, { "$ref": "#/definitions/color-commands" }, { "$ref": "#/definitions/scene-commands" }, + { "$ref": "#/definitions/sengled-commands" }, { "$ref": "#/definitions/window-covering-commands" }, { "$ref": "#/definitions/ias-commands" }, { "$ref": "#/definitions/multistate-input-commands" }
Fixes Otherwise the game keeps defaulting to Miles 2D
@@ -135,7 +135,7 @@ void OverwriteResolution() if (!hbRsSelectDevice.fun) hbRsSelectDevice.fun = injector::MakeCALL(ResolutionPattern0.count(1).get(0).get<uint32_t>(0), RsSelectDeviceHook2).get(); - injector::WriteMemory<uint8_t>(ResolutionPattern1.count(1).get(0).get<uint32_t>(2), 0x08, true); + injector::MakeNOP(ResolutionPattern1.get_first(10), 5, true); injector::WriteMemory(ResolutionPattern2.count(1).get(0).get<uint32_t>(14), ResX, true); //0x581E5B + 0x3 injector::WriteMemory(ResolutionPattern2.count(1).get(0).get<uint32_t>(24), ResY, true); //0x581E64 + 0x4
Add community links. [skip ci] Closes
"letterboxing", "LGUI", "LIBDIR", + "Libera", "libsdl", "libtcod", "libtcod's",
Fixed malformed conanfile.py. Fix wrong indentation and case error.
@@ -163,7 +163,7 @@ class CelixConan(ConanFile): if opt.startswith('build_'): setattr(self.options, opt, True) if not self.options.celix_cxx14: - self.options.celix_cxx17 = false + self.options.celix_cxx17 = False if not self.options.celix_cxx17: self.options.build_cxx_remote_service_admin = False self.options.build_promises = False
travis MAINTAINCE change the way of flag coverage propagation
@@ -85,9 +85,9 @@ jobs: - wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz - tar -xzf pcre2-10.30.tar.gz - cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd .. - - pip install --user codecov && export CFLAGS="-coverage" + - pip install --user codecov script: - - mkdir build && cd build && cmake .. && make -j2 && ctest --output-on-failure && cd - + - mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON ../ && make -j2 && ctest --output-on-failure && cd - after_success: - bash <(curl -s https://codecov.io/bash) - stage: Test
docs - update email setup information. change command that tests email notification to a psql command. remove old example that uses gmail public SMTP server
@@ -260,31 +260,19 @@ gp_email_to='[email protected]' <title id="kj168981">Testing Email Notifications</title> <body> <p>The Greenplum Database master host must be able to connect to the SMTP email server you - specify for the gp_email_smtp_server<ph> parameter</ph>. To test connectivity, use the - <codeph>ping</codeph> command:</p> + specify for the <codeph>gp_email_smtp_server</codeph> parameter. To test connectivity, + use the <codeph>ping</codeph> command:</p> <p> - <codeblock>$ ping my_email_server -</codeblock> + <codeblock>$ ping &lt;<varname>my_email_server</varname>></codeblock> </p> - <p>If the master host can contact the SMTP server, log in to <codeph>psql</codeph> and - test email notifications with the following command:</p> + <p>If the master host can contact the SMTP server, run this <codeph>psql</codeph> command + to log into a database and test email notification with the <codeph>gp_elog</codeph> + function:</p> <p> - <codeblock>$ psql postgres -=# SELECT gp_elog('Test GPDB Email',true); gp_elog -</codeblock> - </p> - <p>The address you specified for the gp_email_to parameter should receive an email with - Test GPDB Email in the subject line.</p> - <p>You can also test email notifications by using a public SMTP server, such as Google's - Gmail SMTP server, and an external email address. For example:</p> - <p> - <codeblock>gp_email_smtp_server='smtp.gmail.com:25' -#gp_email_smtp_userid='' -#gp_email_smtp_password='' -gp_email_from='[email protected]' -gp_email_to='[email protected]' -</codeblock> + <codeblock>$ psql -d &lt;<varname>testdb</varname>> -U gpadmin -c "SELECT gp_elog('Test GPDB Email',true);"</codeblock> </p> + <p>The address you specified for the <codeph>gp_email_to</codeph> parameter should receive + an email with <codeph>Test GPDB Email</codeph> in the subject line.</p> <note type="note">If you have difficulty sending and receiving email notifications, verify the security settings for you organization's email server and firewall. </note> </body>
Readded NIDs to database
@@ -2103,7 +2103,10 @@ modules: ksceKernelCpuIcacheInvalidateRange: 0xF4C7F578 ksceKernelCpuIcacheInvalidateAll: 0x264DA250 ksceKernelCpuIcacheAndL2WritebackInvalidateRange: 0x19F17BD0 + ksceKernelCpuSaveContext: 0x211B89DA + ksceKernelCpuUnrestrictedMemcpy: 0x8C683DEC ksceKernelCpuDcacheWritebackInvalidateRange: 0x6BA2E51C + ksceKernelCpuRestoreContext: 0x0A4F0FB9 SceCpuForDriver: kernel: true nid: 0x40ECDB0E
[platform][stm32f4xx] append the necessary #define to GLOBAL_COMPILEFLAGS GLOBAL_CFLAGS will only work for .c files, which breaks on the first inclusion of the headers by a .cpp file. *_COMPILEFLAGS is for all language types (C, asm, C++)
@@ -14,16 +14,16 @@ ARM_CPU := cortex-m4 # TODO: integrate better with platform/stm32f4xx/CMSIS/stm32f4xx.h ifeq ($(STM32_CHIP),stm32f407) -GLOBAL_CFLAGS=-DSTM32F40_41xxx=1 +GLOBAL_COMPILEFLAGS += -DSTM32F40_41xxx=1 FOUND_CHIP := true endif ifeq ($(STM32_CHIP),stm32f417) FOUND_CHIP := true -GLOBAL_CFLAGS=-DSTM32F40_41xxx=1 +GLOBAL_COMPILEFLAGS += -DSTM32F40_41xxx=1 endif ifeq ($(STM32_CHIP),stm32f429) FOUND_CHIP := true -GLOBAL_CFLAGS=-DSTM32F429_439xx=1 +GLOBAL_COMPILEFLAGS += -DSTM32F429_439xx=1 endif ifeq ($(FOUND_CHIP),)
rename the key
# Local definition 43: Copernicus Arctic/European Regional ReAnalysis (CARRA/CERRA) -codetable[2] carraSuiteName "grib2/carra_suiteName.table" : dump; -alias mars.origin = carraSuiteName; +codetable[2] suiteName "grib2/carra_suiteName.table" : dump; +alias mars.origin = suiteName; unalias mars.domain;
Docs - fix broken github link for gpfdist
@@ -319,7 +319,7 @@ This setting specifies how to handle standard error output from the transformati ## <a id="topic91"></a>XML Transformation Examples -The following examples demonstrate the complete process for different types of XML data and STX transformations. Files and detailed instructions associated with these examples are in the GitHub repo `github.com://greenplum-db/gpdb` in the [gpMgmt/demo/gpfdist\_transform](https://github.com/greenplum-db/gpdb/blob/coordinator/gpMgmt/demo/gpfdist_transform) directory. Read the README file in the *Before You Begin* section before you run the examples. The README file explains how to download the example data file used in the examples. +The following examples demonstrate the complete process for different types of XML data and STX transformations. Files and detailed instructions associated with these examples are in the GitHub repo `github.com://greenplum-db/gpdb` in the [gpMgmt/demo/gpfdist\_transform](https://github.com/greenplum-db/gpdb/blob/main/gpMgmt/demo/gpfdist_transform) directory. Read the README file in the *Before You Begin* section before you run the examples. The README file explains how to download the example data file used in the examples. ### <a id="topic32"></a>Command-based External Web Tables
Fix debug/break search algorithm.
@@ -74,7 +74,8 @@ void janet_debug_find( int32_t line = def->sourcemap[i].line; int32_t column = def->sourcemap[i].column; if (line <= sourceLine && line >= best_line) { - if (column <= sourceColumn && column > best_column) { + if (column <= sourceColumn && + (line > best_line || column > best_column)) { best_line = line; best_column = column; besti = i; @@ -89,6 +90,9 @@ void janet_debug_find( if (best_def) { *def_out = best_def; *pc_out = besti; + if (best_def->name) { + janet_printf("name: %S\n", best_def->name); + } } else { janet_panic("could not find breakpoint"); }
Fix System.Math.Truncate
@@ -297,7 +297,7 @@ HRESULT Library_corlib_native_System_Math::Truncate___STATIC__R8__R8( CLR_RT_Sta double res = 0.0; double retVal = System::Math::Truncate(d, res); - stack.SetResult_R8( res ); + stack.SetResult_R8( retVal ); NANOCLR_NOCLEANUP_NOLABEL();
[MEMPOOL] Fix wrong recipeint check recipients address can be contract address.
@@ -9,7 +9,6 @@ import ( "bufio" "bytes" "encoding/binary" - "github.com/btcsuite/btcd/btcec" "io" "math/big" "os" @@ -577,8 +576,7 @@ func (mp *MemPool) validateTx(tx types.Transaction, account types.Address) error if tx.GetTx().HasNameRecipient() || types.IsSpecialAccount(recipient) { // it will search account directly } else { - _, err = btcec.ParsePubKey(recipient, btcec.S256()) - if err != nil { + if len(recipient) != types.AddressLength { return types.ErrTxInvalidRecipient } }
ipsec: Tunnelled packets are locally generated Type: fix this means we 1) don't decrement TTL and (for v6) can fragment.
@@ -779,6 +779,7 @@ esp_encrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node, len = payload_len_total + hdr_len - len; ip6->payload_length = clib_net_to_host_u16 (len); + b[0]->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED; } else {
hoon: lob/rob to kel/ker
;~ pose ;~(pfix bas ;~(pose (mask "-+*%;\{") bas doq bix:ab)) inline-embed - ;~(less bas lob ?:(in-tall-form fail doq) prn) + ;~(less bas kel ?:(in-tall-form fail doq) prn) ?:(lin fail ;~(less (jest '\0a"""') (just '\0a'))) == :: ++ bracketed-elem :: bracketed element - %+ ifix [lob rob] + %+ ifix [kel ker] ;~(plug tag-head wide-elems) :: ++ wrapped-elems :: wrapped tuna :- '{' :: XX deprecated :: - (stag %bscl (ifix [lob rob] (most ace wyde))) + (stag %bscl (ifix [kel ker] (most ace wyde))) :- '[' (stag %bscl (ifix [sel ser] (most ace wyde))) :- '*' :- '(' (stag %cncl (ifix [pal par] (most ace wide))) :- '{' - (stag %ktcl (stag %bscl (ifix [lob rob] (most ace wyde)))) + (stag %ktcl (stag %bscl (ifix [kel ker] (most ace wyde)))) :- '*' ;~ pose (stag %kttr ;~(pfix tar wyde)) %+ ifix [doq doq] %- star ;~ pose - ;~(pfix bas ;~(pose bas doq lob bix:ab)) - ;~(less doq bas lob prn) + ;~(pfix bas ;~(pose bas doq kel bix:ab)) + ;~(less doq bas kel prn) (stag ~ sump) == == [(jest '"""\0a') (jest '\0a"""')] %- star ;~ pose - ;~(pfix bas ;~(pose bas lob bix:ab)) - ;~(less bas lob prn) + ;~(pfix bas ;~(pose bas kel bix:ab)) + ;~(less bas kel prn) ;~(less (jest '\0a"""') (just `@`10)) (stag ~ sump) == == - ++ sump (ifix [lob rob] (stag %cltr (most ace wide))) + ++ sump (ifix [kel ker] (stag %cltr (most ace wide))) ++ norm :: rune regular form |= tol/? |%
Fix LocalTime time zone offset format. ISO8601 defines basic datetime format YYYYMMDDThhmmss+hhmm and extended format YYYY-MM-DDThh:mm:ss+hh:mm. The current PrintableLocalTime is a mix of both. This also makes the format satisfy the stricter RFC3339. There is no test because it depends on the local time zone.
@@ -99,7 +99,7 @@ namespace { template <bool PrintUpToSeconds> void WritePrintableLocalTimeToStream(IOutputStream& os, const ::NPrivate::TPrintableLocalTime<PrintUpToSeconds>& timeToPrint) { - const auto& momentToPrint = timeToPrint.MomentToPrint; + const TInstant& momentToPrint = timeToPrint.MomentToPrint; struct tm localTime; momentToPrint.LocalTime(&localTime); WriteTmToStream(os, localTime); @@ -124,7 +124,7 @@ namespace { } else { os << '+'; } - os << Pad<2>(utcOffsetInMinutes / 60) << Pad<2>(utcOffsetInMinutes % 60); + os << Pad<2>(utcOffsetInMinutes / 60) << ':' << Pad<2>(utcOffsetInMinutes % 60); } } }
Algorithm: Fix minor spelling mistakes
@@ -40,7 +40,7 @@ separated from the filtering of the backends for every specific `kdbGet()` and `kdbSet()` request. Afterwards the key hierarchy is static. Every application using Elektra -will build up the same key database. Application specific mountpoints +will build up the same key database. Application-specific mountpoints are prohibited because changes of mountpoints would destroy the global key database. Elektra could not guarantee that every application retrieves the same configuration with the same key names any longer. @@ -81,7 +81,7 @@ of the key set will be permanently removed. The new circumstance yields **idempotent** properties for `kdbSet()`. The same `KeySet` can be applied multiple times, but after the first time, the key database will not be changed -anymore. (Note that `kdbSet()`) actually detects that +anymore. Note that `kdbSet()` actually detects that there are no changes and will do nothing. To actually show the idempotent behavior the KeySet has to be regenerated or the key database needs to be reopened.
netutils: correct iperf thread name
* Included Files ****************************************************************************/ +#include <sys/prctl.h> #include <sys/socket.h> #include <sys/time.h> #include <net/if.h> @@ -234,6 +235,8 @@ static void iperf_report_task(void *arg) uintmax_t now_len; int ret; + prctl(PR_SET_NAME, IPERF_REPORT_TASK_NAME); + now_len = s_iperf_ctrl.total_len; ret = clock_gettime(CLOCK_MONOTONIC, &now); if (ret != 0) @@ -308,7 +311,7 @@ static int iperf_start_report(void) pthread_attr_setstacksize(&attr, IPERF_REPORT_TASK_STACK); ret = pthread_create(&thread, &attr, (void *)iperf_report_task, - IPERF_REPORT_TASK_NAME); + NULL); if (ret != 0) { printf("iperf_thread: pthread_create failed: %d, %s\n", @@ -666,6 +669,8 @@ static int iperf_run_tcp_client(void) static void iperf_task_traffic(void *arg) { + prctl(PR_SET_NAME, IPERF_TRAFFIC_TASK_NAME); + if (iperf_is_udp_client()) { iperf_run_udp_client(); @@ -772,7 +777,7 @@ int iperf_start(struct iperf_cfg_t *cfg) pthread_attr_setschedparam(&attr, &param); pthread_attr_setstacksize(&attr, IPERF_TRAFFIC_TASK_STACK); ret = pthread_create(&thread, &attr, (void *)iperf_task_traffic, - IPERF_TRAFFIC_TASK_NAME); + NULL); if (ret != 0) {
Update macOS documentation to source SDL2 and SDL2_Image from homebrew
@@ -52,17 +52,10 @@ If you want to run code on 32Blit, you should now refer to [Building & Running O ## Building & Running Locally -You'll need to build and install SDL2: +You'll need to install `SDL2` and `SDL2 Image` ``` shell -curl https://www.libsdl.org/release/SDL2-2.0.10.zip -o SDL2-2.0.10.zip -unzip SDL2-2.0.10.zip -cd SDL2-2.0.10 -mkdir build -cd build -../configure -make -sudo make install +brew install sdl2 sdl2_image ``` Then, set up the 32Blit Makefile from the root of the repository with the following commands:
docs(discord.h): document threadpool and move example code to orca-docs cee-utils/orca-docs@cc0a0b40487c6596d109383c21588eb0f92ae3ba
@@ -394,60 +394,16 @@ enum discord_event_scheduler { /** handle this event in a worker thread */ DISCORD_EVENT_WORKER_THREAD }; + /** - * @brief Specify how events should execute their callbacks, in a blocking or - * non-blocking fashion - * - * This is a very important function that provides the user a more fine-grained - * control of the Discord Gateway's event-loop. By default, every event - * callback will block the event-loop, but for a scalable bot application this - * is undesirable. To circumvent this the user can specify which events - * should be executed in parallel. - * - * In the following example code, a MESSAGE_CREATE event callback will be - * executed non-blocking and READY callback on the main thread, while anything - * else will be ignored and won't be executed. - * - * @code{.c} - * ... - * enum discord_event_scheduler - * scheduler( - * struct discord *client, - * struct discord_user *bot, - * struct sized_buffer *event_data, - * enum discord_gateway_events event) - * { - * switch (event) { - * case DISCORD_GATEWAY_EVENTS_READY: - * return DISCORD_EVENT_MAIN_THREAD; - * case DISCORD_GATEWAY_EVENTS_MESSAGE_CREATE: - * return DISCORD_EVENT_WORKER_THREAD; - * default: - * return DISCORD_EVENT_IGNORE; - * } - * } - * - * int main() - * { - * struct discord *client = discord_init(TOKEN); - * - * discord_set_event_scheduler(client, &scheduler); - * - * // The following will be executed on main thread - * discord_set_on_ready(client, &on_ready); - * // The following will be executed on a worker thread - * discord_set_on_message_create(client, &on_message_create); - * // The following will be ignored - * discord_set_on_message_delete(client, &on_message_delete); - * discord_set_on_channel_create(client, &on_channel_create); - * - * discord_run(client); - * } - * @endcode + * @brief Provides the user with a fine-grained control of the Discord's + * event-loop + * + * Allows the user to specify which events should be executed from the + * main-thread, in parallel from a worker-thread, or completely ignored. * * @param client the client created_with discord_init() * @param fn the function that will be executed - * * @warning The user is responsible for providing his own locking mechanism to * avoid race-condition on sensitive data. * @see enum discord_event_scheduler
openwsman: fix memory cleanup Fix order of parameters passed to memset.
@@ -54,7 +54,7 @@ void u_cleanfree(char *ptr) { if (!ptr) return; - memset_func(ptr, strlen(ptr) * sizeof(char), 0); + memset_func(ptr, 0, strlen(ptr) * sizeof(char)); free(ptr); } @@ -63,7 +63,7 @@ void u_cleanfreew(wchar_t *ptr) { if (!ptr) return; - memset_func(ptr, wcslen(ptr) * sizeof(wchar_t), 0); + memset_func(ptr, 0, wcslen(ptr) * sizeof(wchar_t)); free(ptr); }
clipped mass boundaries
@@ -20,13 +20,10 @@ H100 = COSMO["h"] Z = np.array([0.0, 0.5, 1.0, 2.0, 3.0, 4.0, 5.0, 7.0]) # All parametrizations are accurate at to 5% except (500, Vmax, relaxed) -# for which the model is accurate to 10%, so we choose this value -# for max data scatter. -UCHUU_DATA_SCATTER = 0.1 - -# mass bounds in CCL's HM Calculator -M_min = COSMO.cosmo.gsl_params.HM_MMIN/H100 -M_max = COSMO.cosmo.gsl_params.HM_MMAX/H100 +# for which the model is accurate to 10%. This may be due to low mass +# precision error. We thus clip the masses at 8 < log10(M) < 16. +UCHUU_DATA_SCATTER = 0.035 +M_min, M_max = 1e8, 1e16 @pytest.mark.parametrize("pars", @@ -50,8 +47,8 @@ def test_concentration_Ishiyama21(pars): M = data[:, 0] # mass cutoff at CCL integration boundaries - data = data[(M > M_min) & (M < M_max)] - M_use = M[(M > M_min) & (M < M_max)] + data = data[(M > M_min/H100) & (M < M_max/H100)] + M_use = M[(M > M_min/H100) & (M < M_max/H100)] hmd = ccl.halos.MassDef(Delta, "critical") cm = ccl.halos.ConcentrationIshiyama21(mdef=hmd,
excluded .tmp
@@ -17,7 +17,7 @@ if errorlevel 1 ( rem Creating archives FOR /d %%X IN (*) DO ( -7za a -tzip "Archives\%%X.zip" "%%X\" -r -xr^^!Archives -x^^!*.pdb -x^^!*.db -x^^!*.ipdb -x^^!*.iobj +7za a -tzip "Archives\%%X.zip" "%%X\" -r -xr^^!Archives -x^^!*.pdb -x^^!*.db -x^^!*.ipdb -x^^!*.iobj -x^^!*.tmp ) EXIT
Forgot one prototype
#include <stdio.h> #include "init.h" //---------------------------------------------------------------------------- +void LogPrintf_NoPrefix(const char *fmt,...); void LogFPrintf(FILE *fp,const char *fmt,...); void LogPrintf(const char *fmt,...); //----------------------------------------------------------------------------
[examples] fix NE_3DS_3Knee_1Prism_MLCP_MoreauJeanCombinedProjection
@@ -276,7 +276,7 @@ int main(int argc, char* argv[]) // H4->zero(); SP::SiconosVector axe1(new SiconosVector(3)); axe1->zero(); - axe1->setValue(2, 1); + axe1->setValue(0, 1); SP::PrismaticJointR relation4(new PrismaticJointR(beam3, axe1)); // relation1->setJachq(H1); // Remark V.A. Why do we need to set the Jacobian outside // relation2->setJachq(H2); @@ -322,8 +322,12 @@ int main(int argc, char* argv[]) SP::TimeSteppingCombinedProjection s(new TimeSteppingCombinedProjection(t, OSI, osnspb, osnspb_pos)); + s->setNonSmoothDynamicalSystemPtr(myModel->nonSmoothDynamicalSystem()); + s->prepareIntegratorForDS(OSI, beam1, myModel, t0); + s->prepareIntegratorForDS(OSI, beam2, myModel, t0); + s->prepareIntegratorForDS(OSI, beam3, myModel, t0); s->setProjectionMaxIteration(1000); - s->setConstraintTolUnilateral(1e-08); + s->setConstraintTol(1e-08); s->setConstraintTolUnilateral(1e-08); myModel->setSimulation(s); @@ -449,9 +453,9 @@ int main(int argc, char* argv[]) cout << "====> Output file writing ..." << endl; dataPlot.resize(k, outputSize); ioMatrix::write("NE_3DS_3Knee_1Prism_MLCP_MoreauJeanCombinedProjection.dat", "ascii", dataPlot, "noDim"); - ioMatrix::write("NE_3DS_3Knee_1Prism_MLCP_beam1.dat", "ascii", beam1Plot, "noDim"); - ioMatrix::write("NE_3DS_3Knee_1Prism_MLCP_beam2.dat", "ascii", beam2Plot, "noDim"); - ioMatrix::write("NE_3DS_3Knee_1Prism_MLCP_beam3.dat", "ascii", beam3Plot, "noDim"); + ioMatrix::write("NE_3DS_3Knee_1Prism_beam1.dat", "ascii", beam1Plot, "noDim"); + ioMatrix::write("NE_3DS_3Knee_1Prism_beam2.dat", "ascii", beam2Plot, "noDim"); + ioMatrix::write("NE_3DS_3Knee_1Prism_beam3.dat", "ascii", beam3Plot, "noDim"); SimpleMatrix dataPlotRef(dataPlot); dataPlotRef.zero();
Travis: Use `-Werror` compiler flag again
@@ -190,7 +190,6 @@ matrix: env: # Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740 - PLUGINS='ALL;-xerces' - - COMMON_FLAGS='' # HASKELL: Only build Haskell binding and plugin
Fix build error in cli
@@ -69,7 +69,7 @@ int main(int argc, char** argv) { } Field field; - field_init(&field); + gfield_init(&field); Field_load_error fle = field_load_file(input_file, &field); if (fle != Field_load_error_ok) { field_deinit(&field);
Use allow_early_data_cb from SSL instead of SSL_CTX
@@ -1645,9 +1645,9 @@ static int final_early_data(SSL *s, unsigned int context, int sent) || s->early_data_state != SSL_EARLY_DATA_ACCEPTING || !s->ext.early_data_ok || s->hello_retry_request != SSL_HRR_NONE - || (s->ctx->allow_early_data_cb != NULL - && !s->ctx->allow_early_data_cb(s, - s->ctx->allow_early_data_cb_data))) { + || (s->allow_early_data_cb != NULL + && !s->allow_early_data_cb(s, + s->allow_early_data_cb_data))) { s->ext.early_data = SSL_EARLY_DATA_REJECTED; } else { s->ext.early_data = SSL_EARLY_DATA_ACCEPTED;
modify FindPythonPackage to use Python found * modify FindPythonPackage to use Python found Add find_package(PythonInter...) to the beginning of the file (outside of the macro) so that cmake finds the Python 2.7 interpreter and uses it when checking for existence of a module.
# FATAL_ERROR = CMake Error, stop processing and generation # +if (NOT PYTHON_EXECUTABLE) + find_package(PythonInterp 2.7 REQUIRED) +endif (NOT PYTHON_EXECUTABLE) + macro(FIND_PYTHON_PKG PKG_NAME ERR_LEVEL ) - execute_process( COMMAND python -c "import ${PKG_NAME}" ERROR_QUIET RESULT_VARIABLE STATUS_FLAG) + execute_process( COMMAND ${PYTHON_EXECUTABLE} -c "import ${PKG_NAME}" ERROR_QUIET RESULT_VARIABLE STATUS_FLAG) if(STATUS_FLAG) message(${ERR_LEVEL} "PACKAGER depenency python ${PKG_NAME} package is missing!!!")
Return NULL for empty listbox strings
@@ -525,7 +525,7 @@ PPH_STRING PhGetListBoxString( if (length == LB_ERR) return NULL; if (length == 0) - return PhReferenceEmptyString(); + return NULL; string = PhCreateStringEx(NULL, length * sizeof(WCHAR));
Add test to ensure a hash collision while expanding hash table This is purely an exercise in code coverage; there is no user-level way of telling that the hash table has been expanded or that a collision occurred.
@@ -4619,6 +4619,35 @@ START_TEST(test_partial_char_in_epilog) } END_TEST +START_TEST(test_hash_collision) +{ + /* For full coverage of the lookup routine, we need to ensure a + * hash collision even though we can only tell that we have one + * through breakpoint debugging or coverage statistics. The + * following will cause a hash collision on machines with a 64-bit + * long type; others will have to experiment. The full coverage + * tests invoked from qa.sh usually provide a hash collision, but + * not always. This is an attempt to provide insurance. + */ +#define COLLIDING_HASH_SALT 0xffffffffff99fc90 + const char * text = + "<doc>\n" + "<a1/><a2/><a3/><a4/><a5/><a6/><a7/><a8/>\n" + "<b1></b1><b2 attr='foo'>This is a foo</b2><b3></b3><b4></b4>\n" + "<b5></b5><b6></b6><b7></b7><b8></b8>\n" + "<c1/><c2/><c3/><c4/><c5/><c6/><c7/><c8/>\n" + "<d1/><d2/><d3/><d4/><d5/><d6/><d7/>\n" + "<d8>This triggers the table growth and collides with b2</d8>\n" + "</doc>\n"; + + XML_SetHashSalt(parser, COLLIDING_HASH_SALT); + if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), + XML_TRUE) == XML_STATUS_ERROR) + xml_failure(parser); +} +END_TEST +#undef COLLIDING_HASH_SALT + /* * Namespaces tests. @@ -7887,6 +7916,7 @@ make_suite(void) tcase_add_test(tc_basic, test_suspend_epilog); tcase_add_test(tc_basic, test_unfinished_epilog); tcase_add_test(tc_basic, test_partial_char_in_epilog); + tcase_add_test(tc_basic, test_hash_collision); suite_add_tcase(s, tc_namespace); tcase_add_checked_fixture(tc_namespace,
[core] fix lighttpd -1 one-shot with pipes
@@ -356,7 +356,7 @@ static int server_oneshot_read_cq(connection *con, chunkqueue *cq, off_t max_byt /* temporary set con->fd to oneshot_fd (fd input) rather than outshot_fdout * (lighttpd generally assumes operation on sockets, so this is a kludge) */ int fd = con->fd; - con->fd = oneshot_fd; + con->fd = oneshot_fdn->fd; int rc = oneshot_read_cq(con, cq, max_bytes); con->fd = fd;
updating README and removing out-of-date README-vis (current info is on webpage)
@@ -6,6 +6,8 @@ You may find the now-deprecated version at the [ROSS-Legacy tag](https://github. Using this repository you can compare files from the new `ROSS/core` to `ROSS/ross`. For a detailed list of changes between old ROSS and SR please visit [the wiki](https://github.com/ROSS-org/ROSS/wiki/Differences-between-Simplified-ROSS-and-ROSS-Legacy). +For the most recent docs and other important posts about ROSS, see the [ROSS webpage](http://ross-org.github.io). + [![Build Status](https://travis-ci.com/ROSS-org/ROSS.svg?branch=master)](https://travis-ci.com/ROSS-org/ROSS) [![codecov.io](http://codecov.io/github/ROSS-org/ROSS/coverage.svg?branch=master)](http://codecov.io/github/ROSS-org/ROSS?branch=master) [![Doxygen](https://img.shields.io/badge/doxygen-reference-blue.svg)](http://ross-org.github.io/ROSS-docs/docs/html) @@ -27,7 +29,7 @@ Developed as Simplified ROSS ([gonsie/SR](http://github.com/gonsie/SR)), this ve ## Requirements 1. ROSS is written in C standard and thus requires a C compiler (C11 is prefered, but not required). -2. The build system is [CMake](http://cmake.org), and we require version 2.8 or higher. +2. The build system is [CMake](http://cmake.org), and we require version 3.5 or higher. 3. ROSS relies on MPI. We recommend the [MPICH](http://www.mpich.org) implementation. @@ -47,7 +49,7 @@ Developed as Simplified ROSS ([gonsie/SR](http://github.com/gonsie/SR)), this ve git submodule update ``` Currently, ROSS includes one submodule: - - [damaris aka RISA](https://github.com/ROSS-org/RISA) ROSS In Situ Analysis + - [RISA](https://github.com/ROSS-org/RISA) ROSS In Situ Analysis 3. *Optional* Symlink your model to ROSS. Please [this wiki page](https://github.com/ROSS-org/ROSS/wiki/Constructing-the-Model) for details about creating and integrating a model with ROSS.
optimize w/wo SYSMSG mode
@@ -1134,14 +1134,18 @@ espi_get_reset_sub_cmd(esp_msg_t* msg, uint8_t is_ok, uint8_t is_error, uint8_t break; } case ESP_CMD_WIFI_CWMODE: { - n_cmd = ESP_CMD_SYSMSG; /* Set Wifi mode */ + n_cmd = ESP_CMD_SYSMSG_CUR; /* Set system messages */ break; } - case ESP_CMD_SYSMSG: { - n_cmd = ESP_CMD_SYSMSG_CUR; /* Set multiple connections mode */ + case ESP_CMD_SYSMSG_CUR: { + if (!is_ok) { + n_cmd = ESP_CMD_SYSMSG; /* Set system messages without "_CUR" data */ + } else { + n_cmd = ESP_CMD_TCPIP_CIPMUX; /* Set multiple connections mode */ + } break; } - case ESP_CMD_SYSMSG_CUR: { + case ESP_CMD_SYSMSG: { n_cmd = ESP_CMD_TCPIP_CIPMUX; /* Set multiple connections mode */ break; }
Improved rendering of %exp speeches in talk-agent.
url+(crip (apix:en-purl:html url.sep)) :: $exp - tan+~[rose+[" " ~ ~]^[leaf+"# {(trip exp.sep)}" res.sep]] + mor+~[txt+"# {(trip exp.sep)}" tan+res.sep] :: $ire =+ gam=(recall top.sep) == :: $exp - ::TODO print truncated res on its own line. - :_ ~ - (tr-chow wyd '#' ' ' (trip exp.sep)) + :- (tr-chow wyd '#' ' ' (trip exp.sep)) + ?~ res.sep ~ + =- [[' ' ' ' (snag 0 -)] ~] + (wash [0 wyd] (snag 0 `(list tank)`res.sep)) :: $ire $(sep sep.sep)
Improvements in UpdateAdapterConfiguration Rework DHCP flags and APl calls Remove call to generate managed event (was generating a duplicate event )
@@ -833,8 +833,7 @@ HRESULT LWIP_SOCKETS_Driver::UpdateAdapterConfiguration( uint32_t interfaceIndex { NATIVE_PROFILE_PAL_NETWORK(); - bool fEnableDhcp = (config->StartupAddressMode == AddressMode_DHCP); - bool fDhcpStarted; + bool enableDHCP = (config->StartupAddressMode == AddressMode_DHCP); struct netif *pNetIf = netif_find_interface(g_LWIP_SOCKETS_Driver.m_interfaces[interfaceIndex].m_interfaceNumber); if (NULL == pNetIf) @@ -842,8 +841,6 @@ HRESULT LWIP_SOCKETS_Driver::UpdateAdapterConfiguration( uint32_t interfaceIndex return CLR_E_FAIL; } - fDhcpStarted = (0 != (pNetIf->flags & NETIF_FLAG_ETHARP)); - #if LWIP_DNS // when using DHCP do not use the static settings if(0 != (updateFlags & SOCK_NETWORKCONFIGURATION_UPDATE_DNS)) @@ -871,40 +868,36 @@ HRESULT LWIP_SOCKETS_Driver::UpdateAdapterConfiguration( uint32_t interfaceIndex #if LWIP_DHCP if(0 != (updateFlags & SOCK_NETWORKCONFIGURATION_UPDATE_DHCP)) { - if(fEnableDhcp) - { - if(!fDhcpStarted) + if(enableDHCP) { + // need to start DHCP if(ERR_OK != dhcp_start(pNetIf)) { return CLR_E_FAIL; } } - } else { - if(fDhcpStarted) - { + // stop DHCP dhcp_stop(pNetIf); - } + // set interface with our static IP configs netif_set_addr(pNetIf, (const ip4_addr_t *) &config->IPv4Address, (const ip4_addr_t *)&config->IPv4NetMask, (const ip4_addr_t *)&config->IPv4GatewayAddress); - Network_PostEvent( NETWORK_EVENT_TYPE_ADDRESS_CHANGED, 0 ); + // we should be polite and let the DHCP server that we are now using a static IP + dhcp_inform(pNetIf); } } - if(fEnableDhcp && fDhcpStarted) + if(enableDHCP) { // Try Renew before release since renewing after release will fail if(0 != (updateFlags & SOCK_NETWORKCONFIGURATION_UPDATE_DHCP_RENEW)) { - //netifapi_netif_common(pNetIf, NULL, dhcp_renew); dhcp_renew(pNetIf); } else if(0 != (updateFlags & SOCK_NETWORKCONFIGURATION_UPDATE_DHCP_RELEASE)) { - //netifapi_netif_common(pNetIf, NULL, dhcp_release); dhcp_release(pNetIf); } }
Improve node port test for checking correct results and avoid false positives.
@@ -61,7 +61,8 @@ TEST_F(metacall_node_port_test, DefaultConstructor) void * future = metacall_await("main", metacall_null_args, [](void * v, void * data) -> void * { struct await_data_type * await_data = static_cast<struct await_data_type *>(data); std::unique_lock<std::mutex> lock(await_data->m); - EXPECT_EQ((int) 0, (int) strcmp(metacall_value_to_string(v), "Tests passed without errors")); + const char * str = metacall_value_to_string(v); + EXPECT_EQ((int) 0, (int) strcmp(str, "Tests passed without errors")); await_data->c.notify_one(); return NULL; }, [](void *, void * data) -> void * {
Definitions: latest limits from Gabor
-constant default_min_val = -1e9 : double_type, hidden; +constant default_min_val = -1e13 : double_type, hidden; constant default_max_val = +1e13 : double_type, hidden; concept param_value_min(default_min_val) { @@ -104,7 +104,7 @@ concept param_value_max(default_max_val) { 1500 = { paramId=151163; } 3.5 = { paramId=151131; } 5 = { paramId=260259; } - 350000 = { paramId=129; } + 3500000 = { paramId=129; } 35000 = { paramId=156; } 100 = { paramId=3075; } 1 = { paramId=172; }