message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Remove unnecessary disabling of interrupts in clock_seconds() | @@ -145,19 +145,7 @@ clock_update(void)
unsigned long
clock_seconds(void)
{
- bool interrupts_disabled;
- uint32_t secs_now;
-
- interrupts_disabled = ti_lib_int_master_disable();
-
- secs_now = ti_lib_aon_rtc_sec_get();
-
- /* Re-enable interrupts */
- if(!interrupts_disabled) {
- ti_lib_int_master_enable();
- }
-
- r... |
build: fix crypto_native compile flags check
Type: fix | if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
list(APPEND VARIANTS "slm\;-march=silvermont")
list(APPEND VARIANTS "hsw\;-march=haswell")
- if(compiler_flag_march_skylake_avx512 AND compiler_flag_mprefer_vector_width)
+ if(compiler_flag_march_skylake_avx512 AND compiler_flag_mprefer_vector_width_256)
lis... |
output: moving function to the right place to fix warning of implicit declaration | @@ -766,6 +766,21 @@ void flb_output_net_default(const char *host, const int port,
}
}
+/* Add thread pool for output plugin if configured with workers */
+int flb_output_enable_multi_threading(struct flb_output_instance *ins, struct flb_config *config)
+{
+ /* Multi-threading enabled ? (through 'workers' property) */
... |
chat: pin unread notice on mobile
Fixes urbit/landscape#106. | @@ -17,7 +17,7 @@ export const UnreadNotice = (props) => {
}
return (
- <Box style={{ left: '0px' }}
+ <Box style={{ left: '0px', top: '0px' }}
p='4'
width='100%'
position='absolute'
@@ -34,7 +34,7 @@ export const UnreadNotice = (props) => {
borderRadius='1'
border='1'
borderColor='blue'>
- <Text flexShrink='0' display... |
mesh/ci: fix MESH_EST_0216 | @@ -1043,7 +1043,7 @@ test cases:
- - P SSC[1-<node_num>] C +MESHSET:MLAYER,OK
- - MSSC SSC[1-<node_num>] mesh -T
- - P SSC[1-<node_num>] C +MESH:START,OK
- - - DELAY 60
+ - - DELAY <delay_time>
- - ''
- - VALUE <tree_node_num> <node_num>
- - R PC_COM L OK
|
Allow superfluous height for 1-tile-wide images
Currently used here and there for small, icon-like tiles, it seems. | @@ -131,9 +131,12 @@ int main(int argc, char *argv[])
if (png_options.trim)
opts.trim = png_options.trim;
-
- if (raw_image->width % 8 || raw_image->height % 8) {
- errx(1, "Input PNG file %s not sized correctly. The image's width and height must be multiples of 8.",
+ if (raw_image->width % 8) {
+ errx(1, "Input PNG f... |
Remove the test case which has been covered | @@ -8907,23 +8907,6 @@ run_test "TLS 1.3 m->G AES_128_GCM_SHA256 , RSA_PSS_RSAE_SHA256" \
-c "mbedtls_ssl_tls13_process_certificate_verify() returned 0" \
-c "HTTP/1.0 200 OK"
-requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL
-requires_config_enabled MBEDTLS_DEBUG_C
-requires_config_enabled MBEDTLS_SSL_CLI... |
correct fg,bg,cs defaults so will work with Xresources and default is gruvbox | @@ -105,8 +105,8 @@ static const char *colorname[] = {
"#ebdbb2",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
- "black", /* 256 -> bg */
- "white", /* 257 -> fg */
+ "#282828", /* 256 -> bg */
+ "#ebdbb2", /* 257 -> fg */
"#add8e6", /* 258 -> cursor */
};
@@ -115,9 +115,9 @@ static const c... |
Create a make size-symbols target for fine grained footprint | # where this file is located.
#
-.PHONY: build-components menuconfig defconfig all build clean all_binaries check-submodules size size-components size-files list-components
+.PHONY: build-components menuconfig defconfig all build clean all_binaries check-submodules size size-components size-files size-symbols list-comp... |
Re-enabling test-compiling all Lua files during CI | @@ -29,3 +29,8 @@ script:
- if [ "$OS" = "linux" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/ci-build-linux.sh; fi
- if [ "$OS" = "windows" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis/ci-build-windows-ms.sh; fi
- if [ "$OS" = "linux" -a "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/travis... |
xive: Bump table sizes in direct mode
Until the simulator is fixed, we need to use direct mode and
KVM loves allocating LOTs of VPs | #define EQ_PER_PAGE (0x10000 / 32) // Use sizeof ?
#define IND_EQ_TABLE_SIZE ((MAX_EQ_COUNT / EQ_PER_PAGE) * 8)
#else
-#define MAX_EQ_COUNT (4 * 1024)
+#define MAX_EQ_COUNT (4 * 1024 * 64)
#define EQT_SIZE (MAX_EQ_COUNT * 32)
#endif
#define VP_PER_PAGE (0x10000 / 64) // Use sizeof ?
#define IND_VP_TABLE_SIZE ((MAX_VP_C... |
fix include dir | @@ -55,6 +55,8 @@ endif()
add_library(iotivity-port INTERFACE)
+target_include_directories(iotivity-port INTERFACE BEFORE ${PORT_DIR})
+
target_sources(iotivity-port INTERFACE
${PORT_DIR}/abort.c
${PORT_DIR}/clock.c
@@ -71,10 +73,6 @@ target_sources(iotivity-port INTERFACE
)
endif()
-target_include_directories(iotivity... |
Fix Cmake dependency for wifi connect task | @@ -94,7 +94,6 @@ target_sources(
"${afr_ports_dir}/ble/aws_ble_hal_common_gap.c"
"${afr_ports_dir}/ble/aws_ble_hal_gap.c"
"${afr_ports_dir}/ble/aws_ble_hal_gatt_server.c"
- "${AFR_DEMOS_DIR}/wifi_provisioning/aws_wifi_connect_task.c"
)
target_include_directories(
AFR::ble::mcu_port
@@ -162,6 +161,7 @@ else()
set(
extr... |
Delay OSError until the library is used | @@ -919,7 +919,19 @@ mongocrypt_setopt_crypto_hooks (mongocrypt_t *crypt,
# export PYMONGOCRYPT_LIB='/path/to/libmongocrypt.so'
_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'mongocrypt')
+try:
lib = ffi.dlopen(os.environ.get('PYMONGOCRYPT_LIB', _path))
+except OSError as exc:
+ # dlopen raises OSE... |
Add arm for encoding an entire call.
Clean up printfs. | ::
/- ethereum
=, ^ethereum
+=, keccak:crypto
=, mimes:html
::
+|%
+::
+:: encoding
+::
:: ABI spec used for reference:
:: https://ethereum.gitbooks.io/frontier-guide/content/abi.html
::
-|%
+++ encode-call
+ |= [fun=@t das=(list data)]
+ ^- tape
+ ::TODO should this check to see if the data matches the function signat... |
Add reschedule to metadata hash init | @@ -1092,9 +1092,11 @@ static inline void _ocf_init_collision_entry(struct ocf_cache *cache,
static void ocf_metadata_hash_init_collision(struct ocf_cache *cache)
{
unsigned int i;
+ unsigned int step = 0;
for (i = 0; i < cache->device->collision_table_entries; i++) {
_ocf_init_collision_entry(cache, i);
+ OCF_COND_RES... |
options/ansi: Do not dispose() files on exit() | @@ -431,7 +431,6 @@ namespace {
if(int e = it->flush(); e)
mlibc::infoLogger() << "mlibc warning: Failed to flush file before exit()"
<< frg::endlog;
- it->dispose();
}
}
} global_stdio_guard;
|
config_tools: delete the old board file when the new board file is imported successfully.
delete the old board file when the new board file is imported successfully. | @@ -132,19 +132,17 @@ export default {
let filepath = ''
if (useNewFile) {
filepath = this.newFilePath
- if (filepath !== this.currentSelectedBoard) {
- configurator.removeFile(this.currentSelectedBoard)
- .catch((err) => alert(`${err}`))
- }
} else {
filepath = this.currentSelectedBoard
}
if (filepath.length > 0) {
co... |
Proper fix for issue EDNS OPT can have no rdata | @@ -449,10 +449,16 @@ ldns_pkt2buffer_wire_compress(ldns_buffer *buffer, const ldns_pkt *packet, ldns_
, ldns_buffer_export(edns_buf));
ldns_buffer_free(edns_buf);
}
- ldns_rr_push_rdf(edns_rr, edns_rdf ? edns_rdf : packet->_edns_data);
+ if (edns_rdf)
+ ldns_rr_push_rdf(edns_rr, edns_rdf);
+ else if (packet->_edns_dat... |
Add debug info for deserialization errors in rapidjson serial. | #include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
+#include <rapidjson/error/en.h>
#include <sstream>
@@ -471,9 +472,14 @@ value rapid_json_serial_impl_deserialize(serial_impl_handle handle, const char *
return NULL;
}
- if (document->Parse(buffer, size - 1).HasParseError... |
ci: use ci build flags in ci_build_apps.py | @@ -17,6 +17,14 @@ from idf_build_apps import LOGGER, App, build_apps, find_apps, setup_logging
from idf_build_apps.constants import SUPPORTED_TARGETS
from idf_ci_utils import IDF_PATH, PytestApp, get_pytest_cases, get_ttfw_app_paths
+CI_ENV_VARS = {
+ 'EXTRA_CFLAGS': '-Werror -Werror=deprecated-declarations -Werror=un... |
Enable kph error dialogs for debug builds | @@ -1127,7 +1127,6 @@ VOID PhpShowKphError(
_In_opt_ NTSTATUS Status
)
{
-#ifndef DEBUG
if (Status == STATUS_NO_SUCH_FILE)
{
PhShowError2(
@@ -1167,7 +1166,6 @@ VOID PhpShowKphError(
);
}
}
-#endif
}
VOID PhInitializeKph(
@@ -1203,7 +1201,7 @@ VOID PhInitializeKph(
{
if (latestBuildNumber != PhOsVersion.dwBuildNumber)
... |
Disable blocking crash for stability commit. | :: ~| mask.bus
=+ jon=(apex:musk bus q.pro)
?~ jon
- :: ?: fab
- :: [p.pro [%10 [%live %1 %constant-stop] q.pro]]
- :: [p.pro [%10 [%live %1 %constant-stop-fab] q.pro]]
+ ?: fab
+ [p.pro [%10 [%live %1 %constant-stop] q.pro]]
+ [p.pro [%10 [%live %1 %constant-stop-fab] q.pro]]
:: ~_ (dunk '%constant-blocked-type')
:: ~... |
Add Elbrus e2k architecture support | @@ -617,6 +617,10 @@ $(KDIR)zgemm_beta$(TSUFFIX).$(SUFFIX) : $(KERNELDIR)/$(ZGEMM_BETA)
$(KDIR)xgemm_beta$(TSUFFIX).$(SUFFIX) : $(KERNELDIR)/$(XGEMM_BETA)
$(CC) $(CFLAGS) -c -DXDOUBLE -DCOMPLEX $< -o $@
+ifeq ($(ARCH), E2K)
+USE_TRMM = 1
+endif
+
ifeq ($(BUILD_BFLOAT16), 1)
|
Add comptime error test. | (assert (= (constantly) (constantly)) "comptime 1")
(assert-error "arity issue in macro" (eval '(each [])))
+(assert-error "comptime issue" (eval '(comptime (error "oops"))))
(with [f (file/temp)]
(file/write f "foo\n")
|
Update data.yml
temporarily comment out Device vtables | @@ -1070,9 +1070,9 @@ classes:
Client::Graphics::Kernel::Device:
instances:
- ea: 0x141F11600
- vtbls:
+# vtbls:
#fail - ea: 0x1417DA950
- base: Client::Graphics::Singleton
+# base: Client::Graphics::Singleton
funcs:
#fail 0x140313040: ctor
0x14032A770: Initialize
@@ -1085,7 +1085,7 @@ classes:
0x14033A150: PrepareMode... |
Send write attributes request to Philips Hue devices only when sensor search is active
Prevent stallation of APS queues. | @@ -8856,7 +8856,11 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe()
return;
}
- if (sensor->modelId().startsWith(QLatin1String("RWL02"))) // Hue dimmer switch
+ if (findSensorsState != FindSensorsActive)
+ {
+ // do nothing
+ }
+ else if (sensor->modelId().startsWith(QLatin1String("RWL02"))) // Hue dimmer swit... |
[ARB] Forgot to copy the fix to ATTRIB, OUTPUT and PARAM variables | @@ -2484,6 +2484,20 @@ void parseToken(sCurStatus* curStatusPtr, int vertex, char **error_msg, struct s
free(tok);
FAIL("Cannot redefine variable");
}
+
+ if (!strcmp(tok, "half")) {
+ // Special case for the 'half' keyword
+ pushArray((sArray*)curStatusPtr->curValue.newVar.var, strdup("gl4es_half"));
+
+ // Hopefully ... |
shm mod BUGFIX instid dependencies may be a union
Fixes | @@ -235,8 +235,13 @@ sr_shmmod_collect_instid_deps_data(sr_main_shm_t *main_shm, sr_dep_t *shm_deps,
/* extract module names from all the existing instance-identifiers */
for (j = 0; j < set->number; ++j) {
assert(set->set.d[j]->schema->nodetype & (LYS_LEAF | LYS_LEAFLIST));
- val_str = sr_ly_leaf_value_str(set->set.d[... |
fix bone parity | ++ process-ack-message
|= [=message-num ok=?]
^+ peer-core
- :: if even bone, ack is on "subscription update" message; no-op
+ :: if odd bone, ack is on "subscription update" message; no-op
::
- ?: =(0 (end 0 1 bone))
+ ?: =(1 (end 0 1 bone))
peer-core
- :: odd bone; is this bone a nack-trace bone?
+ :: even bone; is t... |
sdl/hints: fix build when using SDL2 2.0.10 | @@ -57,6 +57,19 @@ package sdl
#if !(SDL_VERSION_ATLEAST(2,0,1))
#define SDL_HINT_RENDER_DIRECT3D_THREADSAFE ""
#define SDL_HINT_VIDEO_HIGHDPI_DISABLED ""
+#endif
+
+#if !(SDL_VERSION_ATLEAST(2,0,10))
+#define SDL_HINT_MOUSE_TOUCH_EVENTS ""
+#endif
+
+#if SDL_VERSION_ATLEAST(2,0,10)
+
+#if defined(WARN_OUTDATED)
+#prag... |
[Changelog] my part of the Changelog | @@ -36,7 +36,7 @@ Main changes:
* [numerics] ConvexQP is a new class of problem for solving QP over convex set giving
the projection onto the set. New solvers for frictional contact problems have been
- added based on a succesive approximations by convexification.
+ added based on a successive approximations by convexi... |
RhodesLib: fix iOS JSON issue | @@ -207,7 +207,47 @@ private:
}
-(NSString*) executeRubyMethodWithJSON:(NSString*)full_class_name method_name:(NSString*)method_name paramaters_in_json:(NSString*)paramaters_in_json {
- return nil;
+ /*rho::ruby::IRhoRuby* rr = rho::ruby::RhoRubySingletone::getRhoRuby();
+ rho::ruby::IObject* cpp_param = NULL;
+ if (pa... |
Test ieee/ieee64 -> long and back | #include <stdio.h>
#include <assert.h>
+#include <float.h>
#include "grib_api_internal.h"
@@ -48,11 +49,58 @@ double p(double ref1,double ref2)
}
#endif
+/* generate a random floating point number from min to max */
+double randfrom(double min, double max)
+{
+ double range = (max - min);
+ double div = RAND_MAX / rang... |
Feat:adapt random function | #define GENERATE_KEY_REPEAT_TIMES 100
+BOAT_RESULT BoatRandom(BUINT8 *output, BUINT32 outputLen, void *rsvd)
+{
+ BOAT_RESULT result = BOAT_SUCCESS;
+
+ (void)rsvd;
+ qapi_fibo_random_data_get(outputLen,output);
+
+ return result;
+}
BOAT_RESULT BoatSignature(BoatWalletPriKeyCtx prikeyCtx,
|
Fix USDT semaphore address calculation for position independent executables (resolves
Fix USDT semaphore address calculation for position independent executables | @@ -444,7 +444,7 @@ int bcc_resolve_global_addr(int pid, const char *module, const uint64_t address,
mod.start == 0x0)
return -1;
- *global = mod.start + mod.file_offset + address;
+ *global = mod.start - mod.file_offset + address;
return 0;
}
|
py/vm: Don't do unnecessary updates of ip and sp variables.
Neither the ip nor sp variables are used again after the execution of the
RAISE_VARARGS opcode, so they don't need to be updated. | @@ -1118,7 +1118,7 @@ unwind_return:
ENTRY(MP_BC_RAISE_VARARGS): {
MARK_EXC_IP_SELECTIVE();
- mp_uint_t unum = *ip++;
+ mp_uint_t unum = *ip;
mp_obj_t obj;
if (unum == 2) {
mp_warning("exception chaining not supported");
@@ -1139,7 +1139,7 @@ unwind_return:
RAISE(obj);
}
} else {
- obj = POP();
+ obj = TOP();
}
obj = m... |
perf counters: export names | perf_counter_t perf_counters[PERF_COUNTER_MAX];
+static const char *perf_counter_names[PERF_COUNTER_MAX] = {
+ "PERF_COUNTER_TOTAL",
+ "PERF_COUNTER_GYRO",
+ "PERF_COUNTER_CONTROL",
+ "PERF_COUNTER_RX",
+ "PERF_COUNTER_OSD",
+ "PERF_COUNTER_MISC",
+ "PERF_COUNTER_BLACKBOX",
+ "PERF_COUNTER_DEBUG",
+};
+
static uint32_t... |
shell - Don't register NULL command.
A command entry with all-fields-null was getting registered. This
made subsequently registered commands inaccessible. | @@ -219,16 +219,14 @@ static const struct shell_cmd os_commands[] = {
{ NULL, NULL, NULL },
};
-#define SHELL_OS_NUM_CMDS (sizeof os_commands / sizeof os_commands[0])
-
void
shell_os_register(void)
{
+ const struct shell_cmd *cmd;
int rc;
- int i;
- for (i = 0; i < SHELL_OS_NUM_CMDS; i++) {
- rc = shell_cmd_register(os... |
clear local namespace | @@ -209,7 +209,7 @@ class Cosmology(object):
if list(pars)[0] == "cosmo":
vars()[name] = func
del background, boltzmann, bcm, cls, correlations, covariances, \
- pk2d, power, tracers, halos, nl_pt
+ neutrinos, pk2d, power, tk3d, tracers, halos, nl_pt
def __init__(
self, Omega_c=None, Omega_b=None, h=None, n_s=None,
|
Remove SCT extension from allowed encrypted extensions | @@ -118,9 +118,6 @@ int s2n_server_encrypted_extensions_parse(struct s2n_connection *conn, struct s2
case TLS_EXTENSION_ALPN:
GUARD(s2n_recv_server_alpn(conn, &extension));
break;
- case TLS_EXTENSION_SCT_LIST:
- GUARD(s2n_recv_server_sct_list(conn, &extension));
- break;
case TLS_EXTENSION_MAX_FRAG_LEN:
GUARD(s2n_recv... |
[net][sal] Improve ioctl interface to support for socketfd operations | @@ -35,7 +35,9 @@ int dfs_net_getsocket(int fd)
static int dfs_net_ioctl(struct dfs_fd* file, int cmd, void* args)
{
- return -EIO;
+ int socket = (int) file->data;
+
+ return sal_ioctlsocket(socket, cmd, args);
}
static int dfs_net_read(struct dfs_fd* file, void *buf, size_t count)
|
Sanitizer: Update blacklist for latest `libstdc++` | # ========
# We ignore warnings about member calls on addresses, which do not point to an object of type `_Sp_counted_base`.
# It looks like this problem is caused by either `yaml-cpp` or `libstdc++`.
-src:.*include/c\+\+/6/bits/shared_ptr_base.h
+src:.*include/c\+\+/.+/bits/shared_ptr_base.h
# memory leaks reported by... |
Valgrind: Delete rule for removed plugin | fun:_ZNSsC1EPKcRKSaIcE
...
}
-{
- <insert_a_suppression_name_here>
- Memcheck:Leak
- match-leak-kinds: all
- ...
- obj:*libbotan*
- ...
-}
{
<insert_a_suppression_name_here>
Memcheck:Leak
|
FPS drawing in own function so that it can be called from outside in case aglSwapBuffers is not called by the client. | @@ -1231,12 +1231,7 @@ __attribute__((visibility("default"))) void gl4es_pre_swap()
}
}
-#ifdef AMIGAOS4
-void amiga_post_swap()
-#else
-__attribute__((visibility("default"))) void gl4es_post_swap()
-#endif
-{
+void show_fps() {
if (globals4es.showfps)
{
// framerate counter
@@ -1267,6 +1262,16 @@ __attribute__((visibi... |
Remove use of memcpy in sim.c | #include "mark.h"
#include "sim.h"
+#if 0
+ORCA_FORCE_STATIC_INLINE void stupid_memcpy(char* restrict dest,
+ char* restrict src, size_t sz) {
+ for (size_t i = 0; i < sz; ++i) {
+ dest[i] = src[i];
+ }
+}
+#define ORCA_MEMCPY(_dest, _src, _sz) memcpy(_dest, _src, _sz)
+#endif
+
//////// Utilities
static Glyph const in... |
stm32/mpconfigport.h: Enable lwIP concurrency protection mechanism. | @@ -357,6 +357,11 @@ static inline mp_uint_t disable_irq(void) {
#define MICROPY_THREAD_YIELD()
#endif
+// The LwIP interface must run at a raised IRQ priority
+#define MICROPY_PY_LWIP_ENTER uint32_t irq_state = raise_irq_pri(IRQ_PRI_PENDSV);
+#define MICROPY_PY_LWIP_REENTER irq_state = raise_irq_pri(IRQ_PRI_PENDSV);
+... |
Sprites export with wrong palette | @@ -288,7 +288,7 @@ static s32 writeGifData(const tic_mem* tic, u8* dst, const u8* src, s32 width, s
if(palette)
{
- const tic_rgb* pal = tic->ram.vram.palette.colors;
+ const tic_rgb* pal = tic->cart.palette.colors;
for(s32 i = 0; i < TIC_PALETTE_SIZE; i++, pal++)
palette[i].r = pal->r, palette[i].g = pal->g, palette[... |
Print description of LOCKTAG_RESOURCE_QUEUE in DescribeLockTag(). | @@ -1262,6 +1262,11 @@ DescribeLockTag(StringInfo buf, const LOCKTAG *tag)
tag->locktag_field3,
tag->locktag_field4);
break;
+ case LOCKTAG_RESOURCE_QUEUE:
+ appendStringInfo(buf,
+ _("resource queue %u"),
+ tag->locktag_field1);
+ break;
default:
appendStringInfo(buf,
_("unrecognized locktag type %d"),
|
keep rsaRemoved and rsaAdded strictly reverse order | @@ -288,16 +288,13 @@ celix_status_t topologyManager_rsaRemoved(void * handle, service_reference_pt re
topology_manager_pt manager = (topology_manager_pt) handle;
remote_service_admin_service_t *rsa = (remote_service_admin_service_t *) service;
- celixThreadMutex_lock(&manager->rsaListLock);
- arrayList_removeElement(m... |
Fix EIP 1191 | @@ -216,9 +216,9 @@ void getEthAddressStringFromBinary(uint8_t *address, uint8_t *out,
hashDigit = hashDigit & 0x0f;
}
if ((hashDigit > 7) && (tmp[i] > '9')) {
- out[i] = tmp[i] - 'a' + 'A';
+ out[i] = tmp[offset + i] - 'a' + 'A';
} else {
- out[i] = tmp[i];
+ out[i] = tmp[offset + i];
}
}
out[40] = '\0';
|
[mod_authn_ldap] fix crash (fixes
(thx mgottinger)
fix crash due to uninitialized memory during config parsing
x-ref:
"Broken LDAP authentication on lighttpd 1.4.56" | @@ -232,7 +232,7 @@ SETDEFAULTS_FUNC(mod_authn_ldap_set_defaults) {
buffer *b;
*(const buffer **)&b = cpv->v.b;
mod_authn_add_scheme(srv, b);
- ldc = malloc(sizeof(plugin_config_ldap));
+ ldc = calloc(1, sizeof(plugin_config_ldap));
force_assert(ldc);
ldc->errh = srv->errh;
ldc->auth_ldap_hostname = b->ptr;
|
Reset uid/gid on shared memory segment if client starts first. | @@ -652,6 +652,10 @@ svm_map_region (svm_map_region_args_t * a)
return (0);
}
+ /* Reset ownership in case the client started first */
+ if (fchown (svm_fd, a->uid, a->gid) < 0)
+ clib_unix_warning ("segment chown [ok if client starts first]");
+
time_left = 20;
while (1)
{
|
vere: add ames counters for filtered packets
Track the amount of packets we drop for mismatching protocol version or
invalid mug hash. | c3_o see_o; // can scry
c3_o fit_o; // filtering active
c3_y ver_y; // protocol version
+ c3_d vet_d; // version mismatches filtered
+ c3_d mut_d; // invalid mugs filtered
c3_d foq_d; // forward queue size
c3_d fow_d; // forwarded count
c3_d fod_d; // forwards dropped count
@@ -664,9 +666,13 @@ _ames_recv_cb(uv_udp_t* ... |
Better packing for vm's catch entries. | @@ -38,9 +38,9 @@ typedef enum {
typedef struct lily_vm_catch_entry_ {
lily_call_frame *call_frame;
- int code_pos;
uint32_t call_frame_depth;
- lily_catch_kind catch_kind : 32;
+ uint16_t code_pos;
+ lily_catch_kind catch_kind : 16;
union {
lily_jump_link *jump_entry;
|
fix the misleading usage text | @@ -35,12 +35,11 @@ static void usage(void)
printf(R"(h2olog (v%s)
Usage: h2olog -p PID
h2olog quic -p PID
- h2olog quic -t event_type -p PID
- h2olog quic -v -s response_header_name -p PID
+ h2olog quic -s response_header_name -p PID
Other options:
- -h Shows this help and exit.
- -d Shows debugging information.
- -w ... |
Update device-request.md
Changed the checkboxes and added the switch to the list. | @@ -19,14 +19,15 @@ assignees: ''
- Product name: The device name as shown on the product or package.
- Manufacturer: As per deCONZ GUI Basic cluster.
- Model identifier: As per deCONZ GUI Basic cluster.
-- Device type:
- - [ ] Light
- - [ ] Lock
- - [ ] Remote
- - [ ] Sensor
- - [ ] Siren
- - [ ] Thermostat
- - [ ] Ot... |
handle missing css/js files for initial startup | /= js
/^ octs
/; as-octs:mimes:html
- /: /===/app/write/js/index /js/
+ /| /: /===/app/write/js/index /js/
+ /~ *octs
+ ==
::
/= css
/^ octs
/; as-octs:mimes:html
- /: /===/app/write/css/index /css/
+ /| /: /===/app/write/css/index /css/
+ /~ *octs
+ ==
::
|%
::
|
Travis: Add server/client example test | @@ -49,3 +49,6 @@ script:
# Now build ngtcp2 examples and test
- make
- make check
+ - make gen-certificate
+ - ./examples/server localhost 4433 cert/server.key cert/server.crt &
+ - ./examples/client localhost 4433
|
soc(esp32): Expose SOC_DPORT_WORKAROUND_DIS_INTERRUPT_LVL for all ECO versions
It fixes a build issue when ESP32_ECO3_CACHE_LOCK_FIX=y
Closes | #if SOC_CAPS_ECO_VER < 2
#define SOC_DPORT_WORKAROUND 1
-#define SOC_DPORT_WORKAROUND_DIS_INTERRUPT_LVL (5U)
#endif // SOC_CAPS_ECO_VER < 2
+#define SOC_DPORT_WORKAROUND_DIS_INTERRUPT_LVL (5U)
/*-------------------------- ADC CAPS ----------------------------------------*/
/**
|
Indicate that scrcpy also works over TCP/IP | # scrcpy
This application provides display and control of Android devices connected on
-USB. It does not require any _root_ access. It works on _GNU/Linux_, _Windows_
-and _MacOS_.
+USB (or [over TCP/IP][article-tcpip]). It does not require any _root_ access.
+It works on _GNU/Linux_, _Windows_ and _MacOS_.
![screensho... |
Update rockspec with missing files | @@ -26,11 +26,14 @@ build = {
["titan-compiler.ast"] = "titan-compiler/ast.lua",
["titan-compiler.checker"] = "titan-compiler/checker.lua",
["titan-compiler.coder"] = "titan-compiler/coder.lua",
+ ["titan-compiler.driver"] = "titan-compiler/driver.lua",
["titan-compiler.lexer"] = "titan-compiler/lexer.lua",
+ ["titan-c... |
Prevent doubled entries in queue for read and write ZCL attributes | @@ -5123,6 +5123,26 @@ bool DeRestPluginPrivate::readAttributes(RestNodeBase *restNode, quint8 endpoint
}
DBG_Printf(DBG_INFO_L2, "]\n");
+ // check duplicates
+ for (const TaskItem &t0 : tasks)
+ {
+ if (t0.taskType != task.taskType ||
+ t0.req.dstAddress() != task.req.dstAddress() ||
+ t0.req.clusterId() != task.req.... |
Test SipHash Performance | @@ -130,6 +130,8 @@ uint64_t siphash24(const void *data, size_t len, uint64_t iv_key[2]) {
#if defined(DEBUG) && DEBUG == 1
#include <stdio.h>
+#include <time.h>
+
void bscrypt_test_siphash(void) {
uint64_t result =
siphash24("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e",
@@ -137,6 +139,15 @@ void bscr... |
OcAppleEventLib: Fix click timings | @@ -47,8 +47,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define MIN_POINTER_POLL_PERIOD 10
#define MAX_POINTER_POLL_PERIOD 80
-#define MAX_CLICK_DURATION 748 // 374 for 2 ms
-#define MAX_DOUBLE_CLICK_SPEED 148 // 74 for 2 ms
+#define MAX_CLICK_DURATION 148 // 74 for 2 ms
+#define... |
pick OIDC_SET_COOKIE_APPEND over ext passed in to oidc_util_set_cookie | @@ -997,13 +997,12 @@ void oidc_util_set_cookie(request_rec *r, const char *cookieName,
headerString = apr_psprintf(r->pool, "%s; %s", headerString,
OIDC_COOKIE_FLAG_HTTP_ONLY);
- if (ext != NULL)
- headerString = apr_psprintf(r->pool, "%s; %s", headerString, ext);
-
appendString = oidc_util_set_cookie_append_value(r, ... |
gh-actions: disable clang-3.9 build
An update to libstdc++ seems to have broken it. | @@ -265,9 +265,9 @@ jobs:
# - version: "3.8"
# distro: ubuntu-16.04
# arch_flags: -mavx2
- - version: "3.9"
- distro: ubuntu-18.04
- arch_flags: -mavx2
+ # - version: "3.9"
+ # distro: ubuntu-18.04
+ # arch_flags: -mavx2
# - version: "4.0"
# distro: ubuntu-18.04
# arch_flags: -mavx2
|
[Rust] View dispatches left-clicks to its sub-elements | @@ -90,6 +90,11 @@ impl UIElement for View {
if let Some(cb) = maybe_cb {
(cb)(self);
}
+
+ let mut elems_containing_mouse = &mut *self.sub_elements_containing_mouse.borrow_mut();
+ for elem in elems_containing_mouse {
+ elem.handle_left_click();
+ }
}
fn handle_superview_resize(&self, superview_size: Size) {
|
admin/ohpc-filesystem: sles splits elf binary dependency scanning; add setting
for _elflib_exclude_path | @@ -59,6 +59,7 @@ install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/rpm
%{__cat} <<EOF > %{buildroot}//usr/lib/rpm/fileattrs/ohpc.attr
%%__ohpc_provides /usr/lib/rpm/ohpc-find-provides
%%__ohpc_requires /usr/lib/rpm/ohpc-find-requires %%{buildroot} %{OHPC_HOME}
+
%%__ohpc_path ^%{OHPC_HOME}
%%__elf_exclude_path ^%{O... |
blackbox: use FSSP_MSPS_FRAME | @@ -134,8 +134,8 @@ void blackbox_update() {
if ((loop_counter % (uint32_t)((1000000.0f / LOOPTIME)) == 0)) {
smart_port_payload_t payload = {
- .frame_id = FSSP_DATA_FRAME,
- .value_id = 0x0830,
+ .frame_id = FSSP_MSPS_FRAME,
+ .value_id = 0x5000,
.value = 0x1337,
};
|
Have RISCV pass wait_field on yield-wait, setting to 0. | @@ -327,12 +327,13 @@ void yield(void) {
if (__yield_check_tasks()) {
return;
} else {
- register uint32_t a1 asm ("a0") = 1; // yield-wait
+ register uint32_t a0 asm ("a0") = 1; // yield-wait
+ register uint32_t wait_field asm ("a1") = 0; // yield result ptr
asm volatile (
"li a5, 0\n"
"ecall\n"
:
- : "r" (a0)
+ : "r"... |
Improve MCU CGEN freq setting for LimeSDRmini | @@ -149,16 +149,10 @@ uint8_t SetFrequencyCGEN(float_type freq)
float_type intpart;
//VCO frequency selection according to F_CLKH
{
- uint8_t iHdiv;
- for(iHdiv = 255; iHdiv; --iHdiv)
- {
+ uint8_t iHdiv_high = 2.9e9/2 / freq;
+ uint8_t iHdiv_low = 2.0e9/2 / freq + 0.5;
+ uint8_t iHdiv = (iHdiv_low + iHdiv_high)/2;
dFv... |
YAML Benchmark: Reorder code | BUILD_DIRECTORY="@CMAKE_BINARY_DIR@"
SOURCE_DIRECTORY="@CMAKE_SOURCE_DIR@"
-KDB_COMMAND="@CMAKE_BINARY_DIR@/bin/kdb"
-export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib"
+KDB_COMMAND="$BUILD_DIRECTORY/bin/kdb"
PLUGINS=(yamlcpp yanlr yambi yawn yaypeg)
DATA_DIRECTORY="benchmarks/data"
BENCHMARK_TOOL="$BUILD_DIRECTORY/bin/be... |
raspberrypi.conf: Have the ability to overwrite SERIAL_CONSOLE | @@ -7,7 +7,7 @@ DEFAULTTUNE ?= "arm1176jzfshf"
require conf/machine/include/tune-arm1176jzf-s.inc
include conf/machine/include/rpi-base.inc
-SERIAL_CONSOLE = "115200 ttyAMA0"
+SERIAL_CONSOLE ?= "115200 ttyAMA0"
UBOOT_MACHINE = "rpi_config"
VC4_CMA_SIZE_raspberrypi ?= "cma-64"
|
builtin: Don't do direct grabs of the vm's msgbuf. | @@ -1094,7 +1094,7 @@ void lily_builtin_File_write(lily_state *s)
if (to_write->class_id == LILY_ID_STRING)
fputs(to_write->value.string->string, inner_file);
else {
- lily_msgbuf *msgbuf = lily_mb_flush(s->vm_buffer);
+ lily_msgbuf *msgbuf = lily_msgbuf_get(s);
lily_mb_add_value(msgbuf, s, to_write);
fputs(lily_mb_raw... |
Return LDFLAGS setting to build/platform/python for Windows
Unlike ELF platforms, Windows requires .lib for dynamic linking. So PYMODULEs shall be linked against PythonXX.lib to work with PythonXX.dll which is the code of the Python program on Windows. | @@ -54,9 +54,13 @@ IF (USE_SYSTEM_PYTHON)
DECLARE_EXTERNAL_RESOURCE(EXTERNAL_PYTHON sbr:629042628)
ENDIF()
CFLAGS(GLOBAL "/I$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/include")
+ LDFLAGS("/LIBPATH:$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/libs")
ENDIF()
ELSEIF (NOT USE_ARCADIA_PYTHON)
CFLAGS(GLOBAL $PYTHON_FLAGS)
+ IF (OS_W... |
Add test coverage for HTTP/2 CONNECT | @@ -22,6 +22,8 @@ my $quic_port = empty_port({
host => "127.0.0.1",
proto => "udp",
});
+my $one_shot_upstream = empty_port();
+my $g2 = one_shot_http_upstream("It works!", $one_shot_upstream);
my $server = spawn_h2o(<< "EOT");
listen:
type: quic
@@ -35,11 +37,45 @@ hosts:
"/":
proxy.connect:
- "+127.0.0.1:$origin_port... |
workflow/unlock: simpler loop | @@ -59,12 +59,10 @@ static void _get_mnemonic_passphrase(char* passphrase_out)
{
char mnemonic_passphrase[SET_PASSWORD_MAX_PASSWORD_LENGTH] = {0};
char mnemonic_passphrase_repeat[SET_PASSWORD_MAX_PASSWORD_LENGTH] = {0};
- bool equal = false;
- while (!equal) {
+ while (true) {
password_enter("Enter\nmnemonic passphrase... |
Utility: Extend documentation of `elektraReplace` | @@ -114,8 +114,11 @@ static inline ssize_t occurrences (char const * const text, char const * const p
/**
* @internal
*
- * @brief This function returns a new string replacing every occurrence of `pattern`
- * in `text` with `replacement`.
+ * @brief This function returns a newly allocated string replacing every occurr... |
tcmu-runner: add possible 12 and 16 bytes CDB debuginfo support. | @@ -286,14 +286,41 @@ static int generic_handle_cmd(struct tcmu_device *dev,
}
}
-#define TCMU_CDB_MAX_LEN 10 /* TODO: is 10 bytes for now */
+#define TCMU_CDB_MAX_LEN 16 /* 16 bytes for now */
static void tcmu_cdb_debug_info(const struct tcmulib_cmd *cmd)
{
- int i, n;
+ int i, n, bytes;
char buf[3 * TCMU_CDB_MAX_LEN ... |
[telemetry] add project path information | @@ -17,7 +17,8 @@ luos_telemetry = {"telemetry_type": "luos_engine_build",
"unix_time": env.get("UNIX_TIME"),
"platform": env.get("PIOPLATFORM"),
"mcu": env.get("BOARD_MCU"),
- "f_cpu": env.get("BOARD_F_CPU")}
+ "f_cpu": env.get("BOARD_F_CPU"),
+ "project_path": env.get("PROJECT_DIR")}
try:
luos_telemetry["framework"] ... |
WebPAnimDecoderNewInternal: validate bitstream before alloc
this avoids large allocations with corrupt files due to the canvas size | @@ -87,11 +87,19 @@ WebPAnimDecoder* WebPAnimDecoderNewInternal(
int abi_version) {
WebPAnimDecoderOptions options;
WebPAnimDecoder* dec = NULL;
+ WebPBitstreamFeatures features;
if (webp_data == NULL ||
WEBP_ABI_IS_INCOMPATIBLE(abi_version, WEBP_DEMUX_ABI_VERSION)) {
return NULL;
}
+ // Validate the bitstream before d... |
driverless.c: free an allocated memory, use MAX_OUTPUT_LEN | #include <cupsfilters/ipp.h>
#include <cupsfilters/ppdgenerator.h>
+#define MAX_OUTPUT_LEN 8192
+
static int debug = 0;
static int job_canceled = 0;
static void cancel_job(int sig);
@@ -554,7 +556,13 @@ list_printers (int mode, int reg_type_no, int isFax)
while ((bytes = cupsFileGetLine(fp, buffer, sizeof(buffer))) > 0... |
Update: Cycle.c: check for operator directly in ProcessInputBeliefEvents, instead of taking term apart after construction | @@ -250,18 +250,17 @@ void Cycle_ProcessInputBeliefEvents(long currentTime)
for(int len2=0; len2<MAX_SEQUENCE_LEN; len2++)
{
Event *precondition = FIFO_GetKthNewestSequence(&belief_events, k, len2);
- if(precondition != NULL && precondition->type != EVENT_TYPE_DELETED)
- {
- Term precond = Narsese_GetPreconditionWithou... |
sse2: AltiVec implementations of simde_mm_load_{pd,si128} | @@ -2680,6 +2680,8 @@ simde_mm_load_pd (simde_float64 const mem_addr[HEDLEY_ARRAY_PARAM(2)]) {
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
r_.neon_u32 = vld1q_u32(HEDLEY_REINTERPRET_CAST(uint32_t const*, mem_addr));
+ #elif defined(SIMDE_POWER_ALTIVEC_P5_NATIVE)
+ r_.altivec_f64 = vec_ld(0, HEDLEY_REINTERPRET_CAST(SIMDE_P... |
Rust: Add release notes entry for crate publishing | @@ -147,6 +147,7 @@ you up to date with the multi-language support provided by Elektra.
- Add the `elektra-sys` crate which contains raw bindings to libelektra for Rust. _(Philipp Gackstatter)_
- Add the `elektra` crate which contains safe wrapper methods for the raw bindings. The crate contains bindings for the low-le... |
Upgrade setup-python to v4 | @@ -217,7 +217,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- - uses: actions/setup-python@v3
+ - uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
@@ -548,7 +548,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- - uses: actions/setup-python@v3
+ - uses: actions/setup-python@v4
with:
python-versio... |
Fix flaky test_dist_train* | @@ -3444,9 +3444,9 @@ def run_dist_train(cmd, output_file_switch='--eval-file'):
hosts.write('localhost:' + str(port1) + '\n')
hosts.close()
- worker_0 = yatest.common.execute((CATBOOST_PATH, 'run-worker', '--node-port', str(port0), ), wait=False)
- worker_1 = yatest.common.execute((CATBOOST_PATH, 'run-worker', '--node... |
config-tools: clean up the vm names which do not exist
Clean up vm_name of vuart and/or VM_NAME of IVSHMEM which is not defined in
//vm/name while loading scenario XML.
Rviewed-by: Junjie Mao | @@ -37,6 +37,15 @@ def main(scenario):
schema_path=scenario_xml_schema_path,
)
pipeline.run(obj)
+
+ # Clean up the VM_NAME and/or vm_name which does not exist
+ etree = obj.get("scenario_etree").getroot()
+ vmNames = [name.text for name in etree.findall(".//vm/name")]
+ for name in etree.findall(".//IVSHMEM_VM/VM_NAME... |
Add no-strict-aliasing to STHAL CFLAGS. | @@ -395,7 +395,7 @@ BOOTLOADER_OBJS: FIRMWARE_OBJS
FIRMWARE_OBJS:
$(MAKE) -C $(CMSIS_DIR) BUILD=$(BUILD)/$(CMSIS_DIR) CFLAGS="$(CFLAGS) -fno-strict-aliasing"
- $(MAKE) -C $(STHAL_DIR) BUILD=$(BUILD)/$(STHAL_DIR)
+ $(MAKE) -C $(STHAL_DIR) BUILD=$(BUILD)/$(STHAL_DIR) CFLAGS="$(CFLAGS) -fno-strict-aliasing"
$(MAKE) -C $(M... |
Homebridge script: delete config.json during homebridge reset | @@ -207,6 +207,7 @@ function checkHomebridge {
pkill homebridge
sleep 5
rm -rf /home/$MAINUSER/.homebridge/persist
+ rm -rf /home/$MAINUSER/.homebridge/config.json
fi
## check if apikey already exist or create a new apikey for homebridge apps
|
Fix potential fault at createDoubleObject
Resolves
Add additional check to `hi_malloc` for `r->str` when len equals to
SIZE_MAX. | @@ -221,6 +221,9 @@ static void *createIntegerObject(const redisReadTask *task, long long value) {
static void *createDoubleObject(const redisReadTask *task, double value, char *str, size_t len) {
redisReply *r, *parent;
+ if (len == SIZE_MAX) // Prevents hi_malloc(0) if len equals to SIZE_MAX
+ return NULL;
+
r = crea... |
hoon: revise leap:docs and apse:docs
when +apse sees a link, it presume that the following a batch comment,
and stops parsing so that it can be picked up by apex:docs next
this required a change to +leap, which has been rewritten to pretty much
look like +gap but stop parsing when encountering doccords. | ++ apse
%+ knee *whiz |. ~+
;~ pose
- ::TODO: if there is a $link then interpret it as the start
- ::of a prefix comment instead of postfix
- ::TODO consider special casing $%
- ::;~(less (exit ;~(plug (plus en-link) col ace)) (exit line))
- ;~(pfix into step line)
+ ;~(less ;~(plug into step en-link col ace) ;~(pfix i... |
boot_serial: espressif: change CRC call for esp chips general compatibility | #elif __ESPRESSIF__
#include <bootloader_utility.h>
#include <esp_rom_sys.h>
-#include <rom/crc.h>
+#include <esp_crc.h>
#include <endian.h>
#include <mbedtls/base64.h>
#else
@@ -732,8 +732,8 @@ boot_serial_output(void)
crc = crc16_itu_t(crc, data, len);
#elif __ESPRESSIF__
/* For ESP32 it was used the CRC API in rom/c... |
Fix operator 'in/not in' default weekdays
Issue | @@ -389,7 +389,8 @@ RuleCondition::RuleCondition() :
RuleCondition::RuleCondition(const QVariantMap &map) :
m_prefix(nullptr),
m_suffix(nullptr),
- m_num(0)
+ m_num(0),
+ m_weekDays(127) // default all days enabled
{
bool ok;
m_address = map["address"].toString();
|
docs: update a description about dependencies | @@ -42,7 +42,8 @@ For project status update, please visit [BoAT Project Status Update Reports](htt
### Dependencies
-BoAT is tested with following dependencies. The dependent softwares with lower version probably work well but are not tested.
+BoAT is tested with the following dependencies:
+(The dependent software wit... |
Update index_board_ESP8266_Boards.html
fix blynk server address | <block type="blynk_server">
<value name="server_add">
<shadow type="text">
- <field name="TEXT">blynk-cloud.com</field>
+ <field name="TEXT">116.62.49.166</field>
</shadow>
</value>
<value name="auth_key">
<block type="blynk_smartconfig">
<value name="server_add">
<shadow type="text">
- <field name="TEXT">blynk-cloud.c... |
fix xcat install guide names | @@ -74,7 +74,7 @@ for mirroring the OpenHPC repositories with rsync can be found in the
* [Latest version of 'ohpc-release' for EL7](https://github.com/openhpc/ohpc/releases/download/v1.3.GA/ohpc-release-1.3-1.el7.x86_64.rpm) (md5sum=d5139cf3aa83d095e6851628e8a684fa)
* [Install Guide (with Warewulf + PBS Professional)]... |
Optimize after asyncify | @@ -24,20 +24,19 @@ Input module:
)
Asyncify command:
- wasm-opt async.wasm -O3 --asyncify -o asyncified.wasm
+ wasm-opt async.wasm --asyncify -O3 -o asyncified.wasm
"""
# WebAssembly binary
WASM = base64.b64decode("""
AGFzbQEAAAABDANgAABgAX8AYAABfwImAwNlbnYGYmVmb3JlAAADZW52BXNsZWVwAAEDZW52BWFm
- dGVyAAADBwYAAQABAAIFBA... |
BugID:21997451:[example]fix compile issue when ota enabled | #include "linkkit/wifi_provision_api.h"
#include "linkkit/infra/infra_compat.h"
#include "linkkit/infra/infra_defs.h"
+#include "linkkit/wrappers/wrappers.h"
#ifdef CSP_LINUXHOST
#include <signal.h>
@@ -51,10 +52,10 @@ void print_heap()
#if defined(ENABLE_AOS_OTA)
static ota_service_t *ota_get_device_info(void)
{
- cha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.