message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
rm removes container, not image | # See ./README.md for details.
#
+unset RMI
+unset PRUNE
+
USAGE="Usage: $(basename $0) [-h] [options] [test] ..."
COMPOSE=$(which docker-compose 2>/dev/null)
@@ -59,14 +62,14 @@ do
echo >&2 "error: can't use -r with -R"
exit 1
fi
- RM=" --rm"
+ RMI=1
;;
R)
if [ -z "$CI" ]; then
echo >&2 "error: -R is only available in... |
Rename the FORCE entries for 24K and 1004K to include the MIPS prefix | @@ -812,7 +812,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
#endif
-#ifdef FORCE_1004K
+#ifdef FORCE_MIPS1004K
#define FORCE
#define ARCHITECTURE "MIPS"
#define SUBARCHITECTURE "1004K"
@@ -826,7 +826,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#el... |
ec/asm/ecp_nistz256-avx2.pl: harmonize clang version detection. | @@ -47,7 +47,7 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx = ($1>=12);
}
-if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) {
+if (!$addx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
my $ver = $2 + $3/10... |
add pnetcdf to io-libs metapackages | @@ -110,6 +110,8 @@ Requires: netcdf-fortran-gnu7-mpich%{PROJ_DELIM}
Requires: netcdf-fortran-gnu7-openmpi%{PROJ_DELIM}
Requires: netcdf-gnu7-mpich%{PROJ_DELIM}
Requires: netcdf-gnu7-openmpi%{PROJ_DELIM}
+Requires: pnetcdf-gnu7-mpich%{PROJ_DELIM}
+Requires: pnetcdf-gnu7-openmpi%{PROJ_DELIM}
Requires: phdf5-gnu7-mpich%{... |
mm/Kconfig: remove wrong dependency and explanation for MM_KERNEL_HEAP
CONFIG_MM_KERNEL_HEAP is mandatory so that it should not be turned
off by user and it should not have any dependency. Explanation either
has regacy content.
This commit removes dependencies with PROTECTED_BUILD and KERNEL_BUILD
and remove config des... | #
config MM_KERNEL_HEAP
- bool "Support a protected, kernel heap"
+ bool
default y
- depends on BUILD_PROTECTED || BUILD_KERNEL
- ---help---
- Partition heap memory into two parts: (1) a protected, kernel-mode
- heap accessible only by the TinyAra kernel, and (2) an unprotected
- user-mode heap for use by applications.... |
gta2 zoom change | @@ -140,7 +140,7 @@ DWORD WINAPI Init(LPVOID bDelay)
if (strncmp(szCameraZoom, "auto", 4) != 0)
Screen.fCameraZoom = iniReader.ReadFloat("MAIN", "CameraZoomFactor", 1.0f);
else
- Screen.fCameraZoom = (Screen.fAspectRatio / (4.0f / 3.0f)) * 2.25f;
+ Screen.fCameraZoom = (Screen.fAspectRatio / (4.0f / 3.0f)) * 2.5f;
//Re... |
Updated README.md download section. | @@ -95,9 +95,9 @@ GoAccess can be compiled and used on *nix systems.
Download, extract and compile GoAccess with:
- $ wget https://tar.goaccess.io/goaccess-1.2.tar.gz
- $ tar -xzvf goaccess-1.2.tar.gz
- $ cd goaccess-1.2/
+ $ wget https://tar.goaccess.io/goaccess-1.3.tar.gz
+ $ tar -xzvf goaccess-1.3.tar.gz
+ $ cd goac... |
Address analysis bug | @@ -8115,7 +8115,7 @@ int direct_receive_test()
0, NULL, NULL);
if (ret == 0) {
- int ret = tls_api_one_scenario_body_connect(test_ctx, &simulated_time, 0, 0, 0);
+ ret = tls_api_one_scenario_body_connect(test_ctx, &simulated_time, 0, 0, 0);
/* Prepare to send data */
if (ret == 0) {
|
fixing Rho.System.Platform | @@ -4243,7 +4243,9 @@ namespace "run" do
sim_conf += "#{key}=#{value}\r\n"
end
+ if ! (sim_conf.include? "platform=") || (sim_conf.include? "platform='UNKNOWN'")
sim_conf += "platform=#{RUBY_PLATFORM}\r\n"
+ end
fname = File.join(fdir, 'rhosimconfig.txt')
File.open(fname, "wb") do |fconf|
|
CCode: Move code to read config into function | @@ -62,6 +62,28 @@ void setDefaultConfig (CCodeData * mapping)
mapping->decode['0'_uc] = '\0'_uc;
}
+void readConfig (CCodeData * const mapping, KeySet * const config, Key const * const root)
+{
+ Key * cur = 0;
+ while ((cur = ksNext (config)) != 0)
+ {
+ /* Ignore keys that are not directly below the config root key ... |
lib /libc/README.txt : spelling error
End of the line 9 : kerne -->kernel | @@ -6,7 +6,7 @@ what you would expect to find in a standard C library. The sub-directories
in this directory contain standard interface that can be executed by user-
mode programs.
-Normally, TinyAra is built with no protection and all threads running in kerne-
+Normally, TinyAra is built with no protection and all thr... |
bugID:18638526:[breeze] Avoid mebedtls conflicts in esp32. | @@ -13,7 +13,7 @@ endif
$(NAME)_INCLUDES += include/mbedtls
-inter_breeze_crypto ?= 0
+inter_breeze_crypto ?= 1
ifeq ($(inter_breeze_crypto),0)
$(NAME)_COMPONENTS-y += mbedtls
GLOBAL_DEFINES-y += USE_EXTERNAL_MEBDTLS
|
BugID:18934873:Opt ble poll sem usage | #include <zephyr.h>
-//#include <init.h>
#include <device.h>
#include <clock_control.h>
#include <atomic.h>
hdr.onion.node)
static inline struct net_buf *process_node(struct radio_pdu_node_rx *node_rx);
-struct k_poll_signal g_pkt_recv = K_POLL_SIGNAL_INITIALIZER(g_pkt_recv);
int hci_driver_recv(void)
{
- g_pkt_recv.si... |
Minor re-styling in PE module. | @@ -2187,18 +2187,26 @@ define_function(is_64bit)
}
-static uint64_t rich_internal(
+// _rich_version
+//
+// Returns the number of rich signatures that match the specified version and
+// toolid numbers.
+//
+static uint64_t _rich_version(
YR_OBJECT* module,
uint64_t version,
uint64_t toolid)
{
int64_t rich_length;
in... |
GA: Replace working-directory with cd | @@ -165,5 +165,6 @@ jobs:
- name: Build Packages
shell: bash
- working-directory: ${{runner.workspace}}/tools/ci
- run: ./build.sh
+ run: |
+ cd $GITHUB_WORKSPACE/tools/ci
+ ./build.sh
|
Mirror fix from CUPS upstream. | @@ -1270,7 +1270,7 @@ do_test(_ipp_file_t *f, /* I - IPP data file */
if (ippGetName(attrptr))
{
- if (cupsArrayFind(a, (void *)ippGetName(attrptr)))
+ if (cupsArrayFind(a, (void *)ippGetName(attrptr)) && data->format < _CUPS_OUTPUT_LIST)
add_stringf(data->errors, "Duplicate \"%s\" attribute in %s group",
ippGetName(at... |
Add warning to build tool about asan in debug builds with portmidi | @@ -316,6 +316,9 @@ build_target() {
if [[ $portmidi_enabled = 1 ]]; then
add libraries -lportmidi
add cc_flags -DFEAT_PORTMIDI
+ if [[ $1 = debug ]]; then
+ echo -e "Warning: The PortMIDI library contains bugs.\nIt may trigger address sanitizer in debug builds.\nThese are not bugs in orca." >&2
+ fi
fi
;;
esac
|
[catboost] fix dimenciality of test set; it was working because method resizes to be doc_count*factor_count in size initialized by zeroes
[catboost] fix dimenciality of test set; it was working because method resizes to be doc_count*factor_count in size initialized by zeroes
([arc::mergeid] df882f7e-ecaa8ac6-632bd2... | @@ -25,7 +25,9 @@ Y_UNIT_TEST_SUITE(TrainModelTests) {
TPool test;
test.Docs.Resize(/*doc count*/1, /*factors count*/ 3, /*baseline dimension*/ 0, /*has queryId*/ false, /*has subgroupId*/ false);
- test.Docs.Factors[0] = {std::numeric_limits<float>::quiet_NaN(), +1.5f, -2.5f};
+ test.Docs.Factors[0] = {std::numeric_li... |
Hide config/reachable and swversion attributes for ZGP sensors (hue tap) | @@ -1057,6 +1057,12 @@ bool DeRestPluginPrivate::sensorToMap(const Sensor *sensor, QVariantMap &map)
continue;
}
+ if (rid.suffix == RConfigReachable &&
+ sensor->type().startsWith(QLatin1String("ZGP")))
+ {
+ continue; // don't provide reachable for green power devices
+ }
+
if (strncmp(rid.suffix, "config/", 7) == 0)... |
In case an llvm or clang is set, we need to ensure that cmake finds the Clang package in AOMP. So we need to set Clang_DIR and LLVM_DIR | @@ -79,8 +79,9 @@ if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
BUILDTYPE="Release"
echo $SUDO rm -rf $BUILD_AOMP/build/comgr
$SUDO rm -rf $BUILD_AOMP/build/comgr
- export LLVM_DIR=$AOMP
- MYCMAKEOPTS="-DCMAKE_INSTALL_PREFIX=$INSTALL_COMGR -DCMAKE_BUILD_TYPE=$BUILDTYPE -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON ... |
out_syslog: register upstream with instance | @@ -885,6 +885,7 @@ static int cb_syslog_init(struct flb_output_instance *ins, struct flb_config *co
flb_syslog_config_destroy(ctx);
return -1;
}
+ flb_output_upstream_set(ctx->u, ins);
}
/* Set the plugin context */
|
Sockeye: Code cleanup in parser | @@ -18,7 +18,6 @@ module SockeyeParser
import Text.Parsec
import Text.Parsec.Expr
-import Text.Parsec.Expr
import qualified Text.Parsec.Token as P
import Text.Parsec.Language (emptyDef)
@@ -431,11 +430,26 @@ propertyExpr = buildExpressionParser opTable term <?> "property expression"
{- Helper functions -}
lexer = P.mak... |
host_command: Add flags1 to host_command_get_features
There are two entries in feature flags array. Report back flags1 along
with flag0 while responding to host queries.
BRANCH=None
TEST=make -j buildall | @@ -715,6 +715,7 @@ static int host_command_get_features(struct host_cmd_handler_args *args)
memset(r, 0, sizeof(*r));
r->flags[0] = get_feature_flags0();
+ r->flags[1] = get_feature_flags1();
return EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_GET_FEATURES,
|
Add note about aliasing of operands for mbedtls_mpi_mod_raw_add() | @@ -158,15 +158,19 @@ int mbedtls_mpi_mod_raw_write( const mbedtls_mpi_uint *A,
/**
* \brief Perform a known-size modular addition.
*
- * Calculate `A + B modulo N` where \p A, \p B, and \p N have the same size.
+ * Calculate `A + B modulo N`.
+ *
+ * The number of limbs in each operand, and the result, is given by the... |
fs/mtd/smart: fix typo, - => ,
To split the arguments, comma should be used.
fdbg(".." - ret, ..); => fdbg("..", ret, ..); | @@ -3049,7 +3049,7 @@ static int smart_relocate_sector(FAR struct smart_struct_s *dev, uint16_t oldsec
offset = oldsector * dev->mtdBlksPerSector * dev->geo.blocksize + offsetof(struct smart_sect_header_s, status);
ret = smart_bytewrite(dev, offset, 1, &newstatus);
if (ret < 0) {
- fdbg("Error %d releasing old sector %... |
acrn-config: add IVSHMEM config in hybrid_rt of tgl-rvp
add IVSHMEM config in hybrid_rt scenario on tgl-rvp board.
Acked-by: Victor Sun | <ACPI_PARSE_ENABLED desc="Enable ACPI runtime parsing.">y</ACPI_PARSE_ENABLED>
<L1D_VMENTRY_ENABLED desc="Enable L1 cache flush before VM entry.">n</L1D_VMENTRY_ENABLED>
<MCE_ON_PSC_DISABLED desc="Force to disable software workaround for Machine Check Error on Page Size Change.">n</MCE_ON_PSC_DISABLED>
+ <IVSHMEM desc=... |
in_event_type: use proper API to generate id | @@ -234,10 +234,10 @@ static int send_traces(struct flb_input_instance *ins)
ctr_scope_span_set_instrumentation_scope(scope_span, instrumentation_scope);
/* generate a random trace_id */
- trace_id = ctr_id_create_random();
+ trace_id = ctr_id_create_random(CTR_ID_OTEL_TRACE_SIZE);
/* generate a random ID for the new s... |
CMake: macOS links against Vulkan;
But shh in the build script we're going to make the Vulkan library
variable point to MoltenVK. | @@ -201,6 +201,10 @@ endif()
# Vulkan
if(LOVR_USE_VULKAN)
include_directories(deps/vulkan-headers/include)
+ if(APPLE)
+ find_package(Vulkan REQUIRED)
+ set(LOVR_VULKAN Vulkan::Vulkan)
+ endif()
endif()
# OpenXR
@@ -368,6 +372,7 @@ target_link_libraries(lovr
${LOVR_MSDF}
${LOVR_ODE}
${LOVR_GLSLANG}
+ ${LOVR_VULKAN}
${L... |
Add pragma for Wstrict-aliasing
(build failing for STM32F091, but that's expected on the warning there with GCC 5) | @@ -677,11 +677,21 @@ CLR_RT_HeapBlock* Interop_Marshal_RetrieveManagedObject( CLR_RT_StackFrame &stac
**
** Returns: Reference to the field.
**********************************************************************/
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endi... |
channel.js: ack every 30 events *even if this.outstandingJSON is empty* | @@ -182,9 +182,6 @@ class Channel {
// sends a JSON command command to the server.
//
sendJSONToChannel(j) {
- if(!j && this.outstandingJSON.length === 0) {
- return;
- }
let req = new XMLHttpRequest();
req.open("PUT", this.channelURL());
req.setRequestHeader("Content-Type", "application/json");
@@ -193,8 +190,11 @@ cl... |
Provider config module: allow providers to already be loaded
This allows 'default' to be configured in the config file, if needed. | @@ -113,6 +113,8 @@ static int provider_conf_load(OPENSSL_CTX *libctx, const char *name,
activate = 1;
}
+ prov = ossl_provider_find(libctx, name);
+ if (prov == NULL)
prov = ossl_provider_new(libctx, name, NULL);
if (prov == NULL) {
if (soft)
|
mmapstorage: remove unneccessarry manual ksRewind | @@ -725,8 +725,6 @@ static void mmapToKeySet (char * mappedRegion, KeySet * returned)
returned->array = keySet->array;
returned->size = keySet->size;
returned->alloc = keySet->alloc;
- returned->cursor = 0;
- returned->current = 0;
returned->mmapMetaData = (MmapMetaData *) (mappedRegion + OFFSET_REAL_MMAPMETADATA);
// ... |
ra-tls: fix the build conflict of wolfssl | @@ -65,11 +65,10 @@ $(LIBDIR)/libwolfssl.a: $(LIBDIR) wolfssl
wolfssl: WOLFSSL_CONFIGURE_FLAGS := --prefix=$(shell readlink -f $(PREFIX)) --enable-writedup --enable-static --enable-keygen --enable-certgen --enable-certext --with-pic --disable-examples --disable-crypttests --enable-aesni --enable-tlsv10 $(WOLFSSL_CONFFL... |
Updated struct comment. | @@ -110,7 +110,7 @@ typedef struct GLog_ {
uint8_t log_erridx;
uint32_t read; /* lines read/parsed */
uint32_t inode; /* inode of the log */
- uint64_t bytes; /* bytes read */
+ uint64_t bytes; /* bytes read on each iteration */
uint64_t size; /* original size of log */
uint64_t length; /* length read from the log so f... |
fix mixgo touch | @@ -208,7 +208,7 @@ Blockly.Python.number1 = function(){
Blockly.Python.sensor_mixgo_pin_pressed = function(){
Blockly.Python.definitions_['import_mixgo'] = 'import mixgo';
var pin = Blockly.Python.valueToCode(this, 'button', Blockly.Python.ORDER_ATOMIC);
- var code = pin+'.is_touched()';
+ var code = 'mixgo.'+pin+'.is... |
fix warning in vs2019 | @@ -659,7 +659,8 @@ static mi_segment_t* mi_segment_init(mi_segment_t* segment, size_t required, mi_
// initialize pages info
for (size_t i = 0; i < capacity; i++) {
- segment->pages[i].segment_idx = i;
+ mi_assert_internal(i <= 255);
+ segment->pages[i].segment_idx = (uint8_t)i;
segment->pages[i].is_reset = false;
seg... |
Removing duplicate macro definitions.
This issue was introduced in | #include <linux/memfd.h>
#endif
-#define NXT_UNIT_MAX_PLAIN_SIZE 1024
-#define NXT_UNIT_LOCAL_BUF_SIZE \
- (NXT_UNIT_MAX_PLAIN_SIZE + sizeof(nxt_port_msg_t))
-
#define NXT_UNIT_MAX_PLAIN_SIZE 1024
#define NXT_UNIT_LOCAL_BUF_SIZE \
(NXT_UNIT_MAX_PLAIN_SIZE + sizeof(nxt_port_msg_t))
|
Remove macos-10.15 from test-lua. | @@ -258,13 +258,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, macos-10.15, macos-latest]
+ os: [ubuntu-latest, macos-latest]
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit"]
exclude:
- - os: macos-10.15
- luaVersion: 5.1
- - os: macos-10.15
- luaVersion: luajit
- os: macos-latest
luaVer... |
Add menu portal to scene select | @@ -10,6 +10,8 @@ import {
} from "../../reducers/entitiesReducer";
import { createCacheFunction } from "../../lib/helpers/cache";
+const menuPortalEl = document.getElementById("MenuPortal");
+
const cachedObj = createCacheFunction();
const filterOption = ({ label }, string) => {
@@ -91,6 +93,7 @@ class SceneSelect ext... |
Update changelog entry to mention PSA API compliance | Bugfix
* Consistently return PSA_ERROR_INVALID_ARGUMENT on invalid cipher input
- sizes, as opposed to PSA_ERROR_BAD_STATE in some cases.
+ sizes (instead of PSA_ERROR_BAD_STATE in some cases) to make the
+ psa_cipher_* functions compliant with the PSA Crypto API specification.
|
ble_mesh: fix rejecting invalid remote public key | @@ -937,6 +937,20 @@ static void send_pub_key(void)
PROV_BUF(buf, 65);
const u8_t *key;
+ /* Copy remote key in little-endian for bt_mesh_dh_key_gen().
+ * X and Y halves are swapped independently. Use response
+ * buffer as a temporary storage location. The validating of
+ * the remote public key is finished when it i... |
Eliminate uses of CREAL on left-hand side of assignments | @@ -198,8 +198,8 @@ extern int blas_level1_thread_with_return_value(int mode, BLASLONG m, BLASLONG n
static void zdot_compute(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y, OPENBLAS_COMPLEX_FLOAT *result)
{
FLOAT dotr = 0.0, doti = 0.0;
- CREAL(*result) = 0.0;
- CIMAG(*result) = 0.0;
+ OPENBLAS_COMPLEX... |
graph-fe: fix loading of inbox | @@ -390,6 +390,7 @@ export default class GraphApi extends BaseApi<StoreState> {
const data = await this.scry<any>('graph-store',
`/shallow-children/${ship}/${name}${idx}`
);
+ data['graph-update'].fetch = true;
this.store.handleEvent({ data });
}
|
[name] The owner normally receives the costs of his request | @@ -25,10 +25,14 @@ func ExecuteNameTx(bs *state.BlockState, scs *state.ContractState, txBody *types
var nameState *state.V
owner := getOwner(scs, []byte(types.AergoName), false)
if owner != nil {
+ if bytes.Equal(sender.ID(), owner) {
+ nameState = sender
+ } else {
nameState, err = bs.GetAccountStateV(owner)
if err !... |
Remove unnecessary printf. | @@ -583,14 +583,6 @@ u3m_bail(u3_noun how)
abort();
}
-#ifdef U3_PRINT_WATERMARK
- if ( c3__meme == how ) {
- fprintf(stderr, "u3R %p, parent %x\n", u3R, u3R->par_p);
- fprintf(stderr, "max %dMB\r\n", u3R->all.max_w / 256000);
- abort();
- }
-#endif
-
/* Printf some metadata.
*/
if ( c3__exit != how && (_(u3ud(how)) ||... |
dont bother checking old blocks, the network has verified them for us | @@ -2478,7 +2478,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
}
}
- if(!fJustCheck && pindex->GetBlockTime() > GetTime() - 30*nCoinbaseMaturity && (pindex->nHeight < pindexBest->nHeight+5) && !IsInitialBlockDownload() && FortunastakePayments == true)
+ if(!fJustCheck && pindex->GetB... |
test/qemu-jessie: bail out fast on kernel panic | @@ -49,6 +49,7 @@ expect {
timeout { send_user "\nTimeout waiting for petitboot\n"; exit 1 }
eof { send_user "\nUnexpected EOF\n;" exit 1 }
"Machine Check Stop" { exit 1;}
+"Kernel panic - not syncing" { exit 2;}
"Starting system log daemon"
}
close
|
Oculus mobile: Promote Lua print() statements to INFO
This means Lua print() statements can be uniquely filtered out vs anything else (because internal Lovr logging uses loglevel DEBUG and lovr errors use loglevel WARN). | #include "platform.h"
#define LOG(...) __android_log_print(ANDROID_LOG_DEBUG, "LOVR", __VA_ARGS__)
+#define INFO(...) __android_log_print(ANDROID_LOG_INFO, "LOVR", __VA_ARGS__)
#define WARN(...) __android_log_print(ANDROID_LOG_WARN, "LOVR", __VA_ARGS__)
// Data passed from bridge code to headset code
@@ -349,7 +350,7 @... |
Free dict element string when done | @@ -380,6 +380,8 @@ char *objectToString(Value value) {
dictStringLength += snprintf(dictString + dictStringLength, size - dictStringLength, "%s", element);
+ free(element);
+
if (count != dict->count) {
dictStringLength += snprintf(dictString + dictStringLength, size - dictStringLength, ", ");
}
|
net/devif: replace redundant code to iob_clone_partial() | @@ -58,7 +58,6 @@ void devif_iob_send(FAR struct net_driver_s *dev, FAR struct iob_s *iob,
{
unsigned int limit = NETDEV_PKTSIZE(dev) -
NET_LL_HDRLEN(dev) - target_offset;
- unsigned int copyin;
int ret;
if (dev == NULL || len == 0 || len > limit)
@@ -76,51 +75,27 @@ void devif_iob_send(FAR struct net_driver_s *dev, FA... |
Rever drag limit integration as it makes rotary control too granular | @@ -409,9 +409,6 @@ static lv_res_t lv_rotary_signal(lv_obj_t * rotary, lv_signal_t sign, void * par
}
else if(sign == LV_SIGNAL_PRESSING) {
- lv_indev_t * indev = lv_indev_get_act();
- if(indev == NULL) return res;
-
lv_indev_get_point(param, &p);
lv_coord_t drag_x_diff = p.x -ext->last_drag_x;
@@ -419,7 +416,6 @@ sta... |
another usage tip in main docs | @@ -25,7 +25,7 @@ Important notes
- `bedtools` also assumes that all input files use UNIX line endings.
- Unless you use the `-sorted` option, `bedtools` currently does not support chromosomes larger than 512Mb
- When using the -sorted option with files whose chromosomes are not lexicographically sorted (e.g., sort -k1... |
[Bootloader] boot modifications for Bootloader Updater | @@ -41,8 +41,10 @@ bool load_flag = false;
uint16_t source_id = 0; // used to save source_id, ie gate_id
uint32_t tickstart = 0;
+ #ifndef BOOTLOADER_UPDATER
// Create a variable of the size of mode flash value allowing to init the shared flash section
const uint8_t __attribute__((used)) __attribute__((section(".boot_f... |
install clusterd dependencies after installing client dependencies | "redux-promises": "^1.0.0"
},
"scripts": {
+ "postinstall": "npm install --prefix ../clusterd",
"start": "npm run server",
"server": "cd ../clusterd && npm start",
"start:dev": "concurrently \"react-scripts start\" \"npm run server:dev\"",
|
gitlab-ci: use UBSAN=1 instead of CFLAGS
and switch Integration_Test_UBSan to debian:testing, as Build_UBSan and
Unit_Test_UBSan also use debian:testing | @@ -55,7 +55,7 @@ Build_UBSan:
image: debian:testing
stage: build
script:
- - CFLAGS="-O2 -fsanitize=undefined -fsanitize=address" make all
+ - UBSAN=1 make all
artifacts:
paths:
- bart
@@ -126,7 +126,7 @@ Unit_Test_UBSan:
image: debian:testing
stage: test1
script:
- - AUTOCLEAN=0 CFLAGS="-O2 -fsanitize=undefined -fsan... |
bugfix by disabling IRAM attr on ISR | @@ -82,7 +82,7 @@ static void example_timer_init(int timer_idx, bool auto_reload)
ret = timer_enable_intr(TIMER_GROUP_0, TIMER_0);
ESP_ERROR_CHECK(ret);
/* Register an ISR handler */
- timer_isr_register(TIMER_GROUP_0, timer_idx, timer0_ISR, (void *)raw_val, ESP_INTR_FLAG_IRAM, NULL);
+ timer_isr_register(TIMER_GROUP_0... |
soc: fix trace memory region for single core mode | @@ -156,9 +156,9 @@ SOC_RESERVE_MEMORY_REGION(0x3ffae000, 0x3ffae6e0, rom_data);
#if CONFIG_MEMMAP_TRACEMEM
#if CONFIG_MEMMAP_TRACEMEM_TWOBANKS
-SOC_RESERVE_MEMORY_REGION(0x3fff8000, 0x40000000, trace_mem); //Reserve trace mem region
+SOC_RESERVE_MEMORY_REGION(0x3fff8000, 0x40000000, trace_mem); //Reserve trace mem reg... |
Fix: textview placeholder not visible | @@ -444,6 +444,7 @@ void TextEdit_SetUsingStyleTags( LCUI_Widget widget, LCUI_BOOL is_true )
void TextEdit_SetMultiline( LCUI_Widget widget, LCUI_BOOL is_true )
{
LCUI_TextEdit edit = Widget_GetData( widget, self.prototype );
+ TextLayer_SetMultiline( edit->layer_placeholder, is_true );
TextLayer_SetMultiline( edit->la... |
Specify default types. | @@ -722,6 +722,11 @@ TABLE OF CONTENTS:
to be repeated a number of times, although this is rare: Usually
a single pass suffices.
+ At this point, default types are applied. An unconstrained type
+ with type $t::(numeric,integral) is replaced with int. An
+ unconstrained type with $t::(numeric,floating) is replaced with... |
subproc: missing abort() | @@ -250,9 +250,9 @@ static bool subproc_New(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
if (!arch_launchChild(hfuzz, fuzzer->fileName)) {
LOG_E("Error launching child process");
kill(hfuzz->mainPid, SIGKILL);
- abort();
_exit(EXIT_FAILURE);
}
+ abort();
}
// Parent
LOG_D("Launched new process, pid: %d, (concurrency: %zd)",... |
Fix rand_lib.c for no-engine configuration
When configured no-engine, we still refered to rand_engine_lock.
Rework the lock init code to avoid that. | @@ -26,11 +26,14 @@ static CRYPTO_ONCE rand_lock_init = CRYPTO_ONCE_STATIC_INIT;
DEFINE_RUN_ONCE_STATIC(do_rand_lock_init)
{
+ int ret = 1;
#ifndef OPENSSL_NO_ENGINE
rand_engine_lock = CRYPTO_THREAD_lock_new();
+ ret &= rand_engine_lock != NULL;
#endif
rand_meth_lock = CRYPTO_THREAD_lock_new();
- return rand_engine_loc... |
activate option -k | @@ -5493,7 +5493,6 @@ while((auswahl = getopt_long (argc, argv, short_options, long_options, &index))
break;
case HCXT_HC_OUT_PMKID:
- usageerror(basename(argv[0]));
hcpmkidoutname = optarg;
verboseflag = true;
break;
|
Update qlog reference for tests | [0, "transport", "packet_sent", { "packet_type": "1RTT", "header": { "packet_size": 17, "packet_number": 25, "dcid": "01020304" }, "frames": [{
"frame_type": "datagram"}]}],
[0, "transport", "packet_sent", { "packet_type": "1RTT", "header": { "packet_size": 18, "packet_number": 26, "dcid": "01020304" }, "frames": [{
- ... |
Suppress more warnings in parson.c | #include <math.h>
#include <errno.h>
-/* Suppress some MSVC warnings. */
+/* Suppress some useless MSVC warnings. */
#ifdef _MSC_VER
#pragma warning(push)
+/* address of dllimport */
+#pragma warning(disable:4232)
+/* function not inlined */
+#pragma warning(disable:4710)
+/* byte padding */
+#pragma warning(disable:48... |
RISCV64: Correcting hal_cpuGetCycles() and hal_cpuGetCycles2() functions | @@ -218,7 +218,7 @@ static inline cycles_t hal_cpuGetCycles2(void)
register cycles_t n;
__asm__ __volatile__ (
- "rdcycle %0"
+ "rdtime %0"
: "=r" (n));
return n;
}
@@ -226,10 +226,13 @@ static inline cycles_t hal_cpuGetCycles2(void)
static inline void hal_cpuGetCycles(void *cb)
{
- *(cycles_t*)cb = hal_cpuGetCycles2()... |
BugID:17401891: fix whitescan problem of INCOMPATIBLE_CAST in SysTimeGet | @@ -121,10 +121,15 @@ SysTime_t SysTimeGet( void )
SysTime_t calendarTime = { .Seconds = 0, .SubSeconds = 0 };
SysTime_t sysTime = { .Seconds = 0, .SubSeconds = 0 };
SysTime_t deltaTime;
+ uint32_t deltaSeconds;
+ uint32_t deltaSubSeconds;
calendarTime.Seconds = HW_RTC_GetCalendarTime( ( uint16_t* )&calendarTime.SubSec... |
fixed Ruby return type error | #include <loader/loader_impl.h>
#include <reflect/reflect_type.h>
+#include <reflect/reflect_type_id.h>
#include <reflect/reflect_function.h>
#include <reflect/reflect_scope.h>
#include <reflect/reflect_context.h>
@@ -50,6 +51,7 @@ typedef struct loader_impl_rb_function_type
loader_impl_rb_module rb_module;
ID method_i... |
options/ansi: add %j for strftime | @@ -242,6 +242,12 @@ size_t strftime(char *__restrict dest, size_t max_size,
return 0;
p += chunk;
c += 2;
+ }else if(*(c + 1) == 'j') {
+ auto chunk = snprintf(p, space, "%.3d", tm->tm_yday + 1);
+ if(chunk >= space)
+ return 0;
+ p += chunk;
+ c += 2;
}else if(*(c + 1) == '%') {
auto chunk = snprintf(p, space, "%%");... |
Utilities: Fix compilation issues in ocvalidate | @@ -343,7 +343,6 @@ CheckMiscSecurity (
UINT32 Index;
OC_KERNEL_CONFIG *UserKernel;
OC_MISC_CONFIG *UserMisc;
- OC_UEFI_CONFIG *UserUefi;
BOOLEAN IsAuthRestartEnabled;
BOOLEAN HasVSMCKext;
CONST CHAR8 *AsciiDmgLoading;
@@ -356,7 +355,6 @@ CheckMiscSecurity (
ErrorCount = 0;
UserKernel = &Config->Kernel;
UserMisc = &Con... |
Small modifications to CHANGES | @@ -15,24 +15,20 @@ Released xxxx-xx-xx
* Build:
- - Add -Wno-format-truncation to suppress format truncation warnings (#489).
+ - Add ``-Wno-format-truncation`` to suppress format truncation warnings (#489).
* Bug fixes:
- - Remove `strtod` macro definition for MinGW (#498).
+ - Remove ``strtod`` macro definition for ... |
update mapkit sdk for linux | @@ -11,8 +11,8 @@ IF (GCC OR CLANG)
ENDIF()
IF (OS_LINUX)
- # Qt + protobuf 2.6.1 + GL headers + GLES2
- DECLARE_EXTERNAL_RESOURCE(MAPKIT_SDK sbr:649684872)
+ # Qt 5.6.1 + protobuf 3.6.1 + GL headers + GLES2
+ DECLARE_EXTERNAL_RESOURCE(MAPKIT_SDK sbr:897945809)
CFLAGS(
GLOBAL "-I$MAPKIT_SDK_RESOURCE_GLOBAL/mapkit_sdk/i... |
xive: Add CPU node "interrupts" properties representing the IPIs
This will be used in exploitation mode to request the IPIs for
the various threads. Each core node has an "interrupts" property
of the standard format for each thread of that core. | @@ -1979,6 +1979,26 @@ static void xive_init_cpu(struct cpu_thread *c)
xive_cpu_dbg(c, "CPU IPI is irq %08x\n", xs->ipi_irq);
}
+static void xive_init_cpu_properties(struct cpu_thread *cpu)
+{
+ struct cpu_thread *t;
+ uint32_t iprop[8][2] = { };
+ uint32_t i;
+
+ assert(cpu_thread_count <= 8);
+
+ if (!cpu->node)
+ re... |
docs: update comment to match table | \vspace*{\tabSpaceBot{}}
\end{table}
-% Perf Tools (2)
+% Development Tools (2)
\begin{table}[h!]
\caption*{Table~\ref{table:dev-tools} (cont): {\bf Development Tools} \vspace*{\captionSpace{}} }
\input manifest/dev-tools2
|
Throw an error if a texture is too big; | @@ -99,10 +99,15 @@ static void lovrTextureUpload(Texture* texture) {
}
static void validateSlices(TextureType type, TextureData* slices[6], int sliceCount) {
- if (type == TEXTURE_CUBE) {
- lovrAssert(sliceCount == 6, "Cube textures must have 6 images");
+ lovrAssert(sliceCount > 0, "At least one layer must be provide... |
Use Lua chronos lib to measure time in benchmarks | #!/usr/bin/env lua
local lfs = require "lfs"
+local chronos = require "chronos"
local util = require "titan-compiler.util"
-- run the command a single time and return the time elapsed
local function time(cmd)
- local result = util.shell(
- [[ bash -c "{ TIMEFORMAT='%3R'; time ]].. cmd ..[[ > /dev/null; } 2>&1" ]])
- lo... |
armv8: Fix idcap_identify syscall | @@ -826,22 +826,18 @@ static struct sysret dispatcher_dump_capabilities(struct capability *cap,
return SYSRET(err);
}
-static struct sysret handle_idcap_identify(struct capability *to,
+static struct sysret handle_idcap_identify(struct capability *cap,
arch_registers_state_t *context,
int argc)
{
- assert(to->type == O... |
doc: describe cross compilation | @@ -532,6 +532,34 @@ Also, no ronn was available, thus you need to do:
gem install ronn
+### Cross Compiling ###
+
+In Elektra cross compiling needs two steps. If you get errors like
+`elektra-export-errors_EXE_LOC` not found, go on reading.
+
+In the first step, you need to compile Elektra for the host architecture
+a... |
Remove useless braces in ECHDE-PSK part of ssl_parse_client_key_exchange() | @@ -4112,13 +4112,11 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl )
if( mbedtls_ssl_get_psk( ssl, &psk, &psk_len )
== MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED )
- {
/*
* This should never happen because the existence of a PSK is always
* checked before calling this function
*/
return( MBEDTLS_ERR_S... |
test: ensure X509 has no dependency on BIGNUM when built without MBEDTLS_DEPRECATED_REMOVED | @@ -1767,6 +1767,9 @@ component_test_full_no_deprecated () {
msg "test: make, full_no_deprecated config" # ~ 5s
make test
+
+ msg "test: ensure that X509 has no direct dependency on BIGNUM_C"
+ not grep mbedtls_mpi library/libmbedx509.a
}
component_test_full_no_deprecated_deprecated_warning () {
|
Update script dependencies in ruby blog in order to solve annoying warning of GitHub security alert. | @@ -7,18 +7,18 @@ GEM
websocket-driver (~> 0.6.1)
actionmailer (5.0.7.1)
actionpack (= 5.0.7.1)
- actionview (= 5.0.7.1)
+ actionview (>= 5.0.7.2)
activejob (= 5.0.7.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.7.1)
- actionview (= 5.0.7.1)
+ actionview (>= 5.0.7.2)
activesupport (= 5.0.7.1)
ra... |
Add bullet points to doc/note/hermeticity.md | @@ -55,12 +55,18 @@ asynchronous and complex.
For Wuffs, the compiler enforces [memory-safety](/doc/note/memory-safety.md)
(at compile time) and communication (a function call) is lightweight,
synchronous and simple. [Wuffs the Language](/doc/wuffs-the-language.md) is
-deliberately unpowerful: there are no global varia... |
BugID:16944965: Fix example/Config.in | @@ -12,7 +12,6 @@ choice
source "app/example/athostapp/Config.in"
source "app/example/blink/Config.in"
source "app/example/bluetooth/bleadv/Config.in"
-source "app/example/bluetooth/blemesh_cmds/Config.in"
source "app/example/bluetooth/blemesh_tmall/Config.in"
source "app/example/bluetooth/bleperipheral/Config.in"
sour... |
Just ignore unknown OBJ materials; | @@ -188,19 +188,19 @@ ModelData* lovrModelDataInitObj(ModelData* model, Blob* source) {
char name[128];
bool hasName = sscanf(data + 7, "%s\n%n", name, &lineLength);
int* material = map_get(&materialNames, name);
- lovrAssert(hasName && material, "Bad OBJ: Expected a material name");
+ lovrAssert(hasName, "Bad OBJ: Exp... |
term: exclusive save cursor after explicit move
In other words, don't issue the ANSI escape sequence for saving the
cursor position at the start of a printf hijack sequence. Instead
trust this was already done when the cursor position was last changes
by a blit. | @@ -1519,12 +1519,10 @@ u3_term_io_hija(void)
c3_assert(!"hija-fcntl");
}
- // save cursor position,
// set scroll region to exclude the prompt,
// scroll up one line to make space,
// and move the cursor onto that space.
//
- _term_it_send_csi(uty_u, 's', 0);
_term_it_send_csi(uty_u, 'r', 2, 1, uty_u->tat_u.siz.row_l ... |
osd: fix turtle_throttle_percent adjust | @@ -1371,8 +1371,8 @@ void osd_display() {
osd_menu_header("TURTLE MODE");
osd_menu_select(4, 5, "TURTLE THROTTLE %");
- if (osd_menu_select_float(22, 5, profile.motor.throttle_boost, 4, 1)) {
- profile.motor.throttle_boost = osd_menu_adjust_float(profile.motor.throttle_boost, 1, 0, 100);
+ if (osd_menu_select_float(22... |
refactor: use sway_abort instead | @@ -487,9 +487,11 @@ int main(int argc, char **argv) {
// pretty print the json
json_tokener *tok = json_tokener_new_ex(JSON_MAX_DEPTH);
if (tok == NULL) {
- sway_log(SWAY_ERROR, "failed allocating json_tokener");
- ret = 1;
- } else {
+ if (quiet) {
+ exit(EXIT_FAILURE);
+ }
+ sway_abort("failed allocating json_tokene... |
py/stream: Properly handle .readline(maxsize) for text strings.
For text strings, max size is given in characters, not bytes. As we actually
count bytes in the loop, we need to adjust counter by the size of current
utf-8 character in bytes. | +/*
+ * This file is part of the Pycopy project, https://github.com/pfalcon/pycopy
+ *
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2020 Paul Sokolovsky
+ *
+ * See below for the full license text.
+ */
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright... |
Add section description and fix for strncpy | #define POSIX_OVERWRTIES_H
#ifdef _WIN32
+ /* POSIX names for functions */
#define fileno _fileno
#define unlink _unlink
#define strcasecmp _stricmp
#define strncasecmp strnicmp
#define strnicmp _strnicmp
+ /* Secure versions of functions */
+ #define strncpy(arg1,arg2,arg3) strncpy_s(arg1,arg3,arg2,arg3)
+
#endif /* _... |
do not apply storage attributes to member of struct | @@ -341,7 +341,7 @@ typedef struct
// Audio control interrupt buffer - no FIFO - 6 Bytes according to UAC 2 specification (p. 74)
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
- CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN uint8_t ep_int_ctr_buf[CFG_TUD_AUDIO_INT_CTR_EP_IN_SW_BUFFER_SIZE];
+ uint8_t ep_int_ctr_buf[CFG_TUD_AUDIO_INT_C... |
yarac: Support defining float values | @@ -100,6 +100,38 @@ args_option_t options[] =
};
+int is_float(
+ const char *str)
+{
+ int has_dot = FALSE;
+
+ if (*str == '-') // skip the minus sign if present
+ str++;
+
+ if (*str == '.') // float can't start with a dot
+ return FALSE;
+
+ while(*str)
+ {
+ if (*str == '.')
+ {
+ if (has_dot) // two dots, not a ... |
Added test only flag | @@ -171,7 +171,9 @@ static int test_path(const char *filename, int main_argc, char **main_argv) {
survive_simple_set_user(actx, &rctx);
SurviveContext *ctx = survive_simple_get_ctx(actx);
- for (int i = 0; i < NUM_GEN2_LIGHTHOUSES; i++) {
+ bool reset_lh = !survive_configi(ctx, "test-replay-dont-reset-lh", SC_GET, fals... |
chmod /home/travis
This is necessary, so that non `travis` users in `t/90root-fastcgi-php.t`
can access /home/travis/build/h2o/h2o/t/assets/doc_root/hello.php | @@ -76,6 +76,7 @@ matrix:
script:
- CC=clang-4.0 CXX=clang++-4.0 cmake -DBUILD_FUZZER=ON -DWITH_MRUBY=ON .
- make all
+ - sudo chmod 775 /home/travis
- make check
- sudo make check-as-root
- ./h2o-fuzzer-http1 -close_fd_mask=3 -runs=1 -max_len=$((16 * 1024 )) fuzz/http1-corpus < /dev/null
|
SSL_get_current_cipher() and SSL_get_pending_cipher() return 'const SSL_CIPHER *'
Fix the documentation.
CLA: trivial | @@ -10,8 +10,8 @@ SSL_get_pending_cipher - get SSL_CIPHER of a connection
#include <openssl/ssl.h>
- SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
- SSL_CIPHER *SSL_get_pending_cipher(const SSL *ssl);
+ const SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
+ const SSL_CIPHER *SSL_get_pending_cipher(const SSL ... |
clay: refuse %cs subs scry unless at now | :: +read-s: produce miscellaneous
::
++ read-s
- |= [yon=aeon pax=path]
+ |= [yon=aeon pax=path =case]
^- (unit (unit cage))
?: ?=([%subs ~] pax)
+ ?. =([%da now] case) ~
=| sus=(set ship)
=/ doj=(unit dojo) (~(get by dos.rom) syd)
?~ doj
%f (read-f yon path.mun)
%p [(read-p path.mun) ..park]
%r (read-r yon path.mun)
-... |
pbio/test: fix boost motor speed | @@ -758,7 +758,7 @@ PT_THREAD(test_boost_interactive_motor(struct pt *pt)) {
tt_want_int_op(count, ==, -1);
tt_want_uint_op(pbdrv_counter_get_abs_count(counter, &count), ==, PBIO_ERROR_NOT_SUPPORTED);
tt_want_uint_op(pbdrv_counter_get_rate(counter, &count), ==, PBIO_SUCCESS);
- tt_want_int_op(count, ==, -1500);
+ tt_wa... |
Align function parameter names for mbedtls_set_key_owner_id in PSA headers
static function mbedtls_set_key_owner() is declared in psa/crypto.h
and defined in psa/crypto_struct.h with different parameter name for
the mbedtls_key_owner_id_t parameter and that may trigger errors
from static code analysis tool as cppcheck... | @@ -153,10 +153,10 @@ static void psa_set_key_id( psa_key_attributes_t *attributes,
* the owner of a key.
*
* \param[out] attributes The attribute structure to write to.
- * \param owner_id The key owner identifier.
+ * \param owner The key owner identifier.
*/
static void mbedtls_set_key_owner_id( psa_key_attributes_t... |
Use non-secure display for Android 12 preview
Android 12 preview identifies as Android 11, but its codename is "S".
Refs <https://github.com/Genymobile/scrcpy/issues/2129> | @@ -226,8 +226,10 @@ public class ScreenEncoder implements Device.RotationListener {
}
private static IBinder createDisplay() {
- // Since Android 12, secure displays could not be created with shell permissions anymore
- boolean secure = Build.VERSION.SDK_INT <= Build.VERSION_CODES.R;
+ // Since Android 12 (preview), s... |
adapt debug putput for CUDA | @@ -575,7 +575,7 @@ void optimized_nop(unsigned int N, unsigned int io, unsigned int D, const long d
nstr2[i] = *nstr1[i] + skip;
#ifdef USE_CUDA
- debug_printf(DP_DEBUG3, "This is a %s call\n.", use_gpu(N, nptr1) ? "gpu" : "cpu");
+ debug_printf(DP_DEBUG4, "This is a %s call\n.", use_gpu(N, nptr1) ? "gpu" : "cpu");
st... |
QUIC Front End I/O API: Correct implementation of SSL_tick, SSL_get_tick_timeout | @@ -7049,9 +7049,17 @@ int SSL_tick(SSL *s)
sc = SSL_CONNECTION_FROM_SSL_ONLY(s);
if (sc != NULL && SSL_CONNECTION_IS_DTLS(sc))
- return DTLSv1_handle_timeout(s);
+ /*
+ * DTLSv1_handle_timeout returns 0 if the timer wasn't expired yet,
+ * which we consider a success case. Theoretically DTLSv1_handle_timeout
+ * can a... |
Makefile: Remove -L/usr/include as we shouldn't override system settings | @@ -43,7 +43,7 @@ ifeq ($(OS),Linux)
-Wextra -Wno-override-init \
-funroll-loops \
-D_FILE_OFFSET_BITS=64
- ARCH_LDFLAGS := -L/usr/local/include -L/usr/include \
+ ARCH_LDFLAGS := -L/usr/local/include \
-lpthread -lunwind-ptrace -lunwind-generic -lbfd -lopcodes -lrt -ldl
ARCH_SRCS := $(sort $(wildcard linux/*.c))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.