message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add PhDuplicateFontWithNewHeight | @@ -907,6 +907,24 @@ PhInitializeWindowTheme(
_In_ BOOLEAN EnableThemeSupport
);
+FORCEINLINE
+HFONT
+PhDuplicateFontWithNewHeight(
+ _In_ HFONT Font,
+ _In_ LONG NewHeight
+ )
+{
+ LOGFONT logFont;
+
+ if (GetObject(Font, sizeof(LOGFONT), &logFont))
+ {
+ logFont.lfHeight = NewHeight;
+ return CreateFontIndirect(&logF... |
gfni: add cast to work around -Wimplicit-int-conversion warning
_mm_movemask_epi8 returns an int, and _mm_set1_epi16 takes a short.
If -Wimplicit-int-conversion is enabled, clang will warn about passing
the result of _mm_movemask_epi8 to _mm_set1_epi16. | @@ -124,7 +124,7 @@ simde_x_mm_gf2p8matrix_multiply_epi64_epi8 (simde__m128i x, simde__m128i A) {
SIMDE_VECTORIZE
#endif
for (int i = 0 ; i < 8 ; i++) {
- p = _mm_set1_epi16(_mm_movemask_epi8(a));
+ p = _mm_set1_epi16(HEDLEY_STATIC_CAST(short, _mm_movemask_epi8(a)));
p = _mm_and_si128(p, _mm_cmpgt_epi8(zero, X));
r = _... |
spend less on memory (more on CPU?) | @@ -371,8 +371,10 @@ size_t fiobj_str_capa_assert(FIOBJ str, size_t size) {
if (obj2str(str)->is_small) {
if (size <= STR_INTENAL_CAPA)
return STR_INTENAL_CAPA;
- if (size >> 12)
+ if ((size >> 12) >= 4) {
+ /* align to page boundary ? */
size = ((size >> 12) + 1) << 12;
+ }
char *mem = fio_malloc(size);
if (!mem) {
pe... |
ver T13.789: one more attempt to fix memory leak | #define EXCHANGE_PERIOD 1800
#define EXCHANGE_MAX_TIME (3600 * 48)
#define LOG_PERIOD 300
-#define GC_PERIOD 300
+#define GC_PERIOD 60
#define UPDATE_PERIOD DNET_UPDATE_PERIOD
struct list *g_threads;
@@ -188,9 +188,6 @@ err:
if (strcmp(mess, "cannot connect") && strcmp(mess, "connection error"))
#endif
dnet_log_printf(... |
Commented scene logging | @@ -466,7 +466,7 @@ void SceneUpdateActors_b()
for (i = 0; i != len; ++i)
{
- LOG("MOVING actor %u\n", i);
+ // LOG("MOVING actor %u\n", i);
// If running script only update script actor - Unless needs redraw
// if (script_ptr && i != script_actor && !actors[i].redraw)
// {
@@ -537,7 +537,7 @@ void SceneUpdateActorMove... |
website: fix another instance of broken rss link | @@ -48,7 +48,7 @@ module.exports = function(grunt) {
title: "Elektra's Blog",
description: "News around Elektra",
feed_url:
- "<%= app.website.url %>rss/<%= grunt.config('create-website-news-rss.build.output.feed') %>",
+ "<%= app.website.url %>news/<%= grunt.config('create-website-news-rss.build.output.feed') %>",
pos... |
contact-store: upon %edit of a nonexistent contact, make an empty contact and set that field | |= [=ship =edit-field:store timestamp=@da]
|^
^- (quip card _state)
- =/ old (~(got by rolodex) ship)
+ =/ old (fall (~(get by rolodex) ship) *contact:store)
?: (lte timestamp last-updated.old)
[~ state]
=/ contact (edit-contact old edit-field)
|
Improve Net-Virtua generator based on wpa-sec founds | @@ -1683,11 +1683,24 @@ if(essidlen < 15) return;
if(memcmp(essid, net2g, 10) != 0) return;
if((isdigit(essid[11])) && (isdigit(essid[12])) && (isdigit(essid[13])) && (isdigit(essid[14])))
{
- for(k = 0; k < 0x1000; k++)
+ for(k = 0; k < 1000; k++)
{
fprintf(fhout, "%03d%C%C%C%C0\n", k, essid[11], essid[12], essid[13],... |
router_validate_address: ensure rethint is properly initialised | @@ -360,18 +360,18 @@ router_validate_address(
}
}
- /* try to see if this is a "numeric" IP address, in
- * which case we take the cannonical representation so
- * as to ensure (string) comparisons will match lateron */
memset(&hint, 0, sizeof(hint));
saddr = NULL;
+ /* try to see if this is a "numeric" IP address, wh... |
test more freq | @@ -747,15 +747,15 @@ static void i2s_test_common_sample_rate(i2s_chan_handle_t rx_chan, i2s_std_clk_c
esp_rom_gpio_connect_in_signal(MASTER_WS_IO, pcnt_periph_signals.groups[0].units[0].channels[0].pulse_sig, 0);
// Test common sample rate
- uint32_t test_freq[15] = {8000, 11025, 12000, 16000, 22050, 24000,
+ uint32_t... |
add missing dep in debian buster ci | @@ -12,6 +12,7 @@ RUN apt update && apt install -y -qq \
gfortran \
g++ \
libopenblas-dev \
+ liblapacke-dev \
lp-solve \
liblpsolve55-dev \
libpython3-dev \
|
[catboost] Ensure proper indexing in CUDA catboost with quantized pools
It was working because column indices in quantized pools are sorted (for reproducibility of generated quantized pools), but there are no guarantees actually. | @@ -370,33 +370,30 @@ static NCatboostCuda::TBinarizedFloatFeaturesMetaInfo GetQuantizedFeatureMetaInf
const NCB::TQuantizedPool& pool) {
const auto columnIndexToFlatIndex = GetColumnIndexToFlatIndexMap(pool);
+ const auto columnIndexToNumericFeatureIndex = GetColumnIndexToNumericFeatureIndexMap(pool);
+ const auto num... |
add SetPort method to both sockaddr implementations
Note: mandatory check (NEED_CHECK) was skipped | @@ -265,6 +265,10 @@ struct TSockAddrInet: public sockaddr_in, public ISockAddr {
TIpPort GetPort() const noexcept {
return InetToHost(sin_port);
}
+
+ void SetPort(TIpPort port) noexcept {
+ sin_port = HostToInet(port);
+ }
};
struct TSockAddrInet6: public sockaddr_in6, public ISockAddr {
@@ -329,6 +333,10 @@ struct T... |
BugID:29304869:Fix for http buffer overflow issue | @@ -378,7 +378,14 @@ static int _http_parse_response_header(httpclient_t *client, char *data, int len
/* try to read more header again until find response head ending "\r\n\r\n" */
while (NULL == (ptr_body_end = strstr(data, "\r\n\r\n"))) {
/* try to read more header */
- ret = _http_recv(client, data + len, HTTPCLIENT... |
Set default fade speed in scene switches in sample project | "sceneId": "5e64882f-8ce6-423e-b582-70fdb2142ff6",
"x": 9,
"y": 15,
- "direction": "up"
+ "direction": "up",
+ "fadeSpeed": "2"
}
},
{
"x": 9,
"y": 14,
"direction": "up",
- "sceneId": "1b7f9ffd-2bbb-470b-9189-c2ac435d2a55"
+ "sceneId": "1b7f9ffd-2bbb-470b-9189-c2ac435d2a55",
+ "fadeSpeed": "2"
}
},
{
"x": 24,
"y": 9,
"... |
Don't run the tick with the mutex locked | @@ -179,8 +179,8 @@ static int system_loop(void *ptr) {
blit::buttons = shadow_buttons;
blit::tilt = shadow_tilt;
blit::joystick = shadow_joystick;
- blit::tick(::now());
SDL_UnlockMutex(shadow_mutex);
+ blit::tick(::now());
if(!running) break;
SDL_PushEvent(&event);
SDL_SemWait(system_loop_redraw);
|
Missing newlines in debug messages | @@ -518,7 +518,7 @@ static int genaInitNotifyCommon(UpnpDevice_Handle device_handle,
GENA,
__FILE__,
__LINE__,
- "GENA BEGIN INITIAL NOTIFY COMMON");
+ "GENA BEGIN INITIAL NOTIFY COMMON\n");
job = (ThreadPoolJob *)malloc(sizeof(ThreadPoolJob));
if (job == NULL) {
@@ -655,7 +655,7 @@ ExitFunction:
GENA,
__FILE__,
line,
... |
crypto-openssl: use getrandom syscall
The sys/random.h header, which provides the getrandom syscall wrapper,
was only added in glibc2.25. To make it compatible with older version,
we can directly call the syscall.
Type: improvement | *------------------------------------------------------------------
*/
-#include <sys/random.h>
+#include <sys/syscall.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
@@ -478,7 +478,7 @@ crypto_openssl_init (vlib_main_t * vm)
openssl_per_thread_data_t *ptd;
u8 seed[32];
- if (getrandom (&seed, sizeof (seed), 0) !... |
Unify perf_event type and config check | @@ -604,10 +604,32 @@ error:
return NULL;
}
+int invalid_perf_config(uint32_t type, uint64_t config) {
+ switch (type) {
+ case PERF_TYPE_HARDWARE:
+ return config >= PERF_COUNT_HW_MAX;
+ case PERF_TYPE_SOFTWARE:
+ return config >= PERF_COUNT_SW_MAX;
+ case PERF_TYPE_RAW:
+ return 0;
+ default:
+ return 1;
+ }
+}
+
int... |
news: update hashsums | @@ -505,9 +505,13 @@ or [GitHub](https://github.com/ElektraInitiative/ftp/blob/master/releases/elektr
The [hashsums are:](https://github.com/ElektraInitiative/ftp/blob/master/releases/elektra-0.9.1.tar.gz.hashsum?raw=true)
-<<`scripts/generate-hashsums elektra-0.9.1.tar.gz`>>
+- name: /home/mpranj/workspace/ftp/release... |
capture: fixing counter | #define CAPTURE_DEFPREC 4 //default precision
#define CAPTURE_MAXPREC 99 //
#define CAPTURE_MINPREC 1 //minimum preision
-//not sure what's planned for precision Matt but i'll just put 64 here for 64 bits for now
-//and then delete these two lines of comments after you're done - DK
typedef struct _capture
{
@@ -21,9 +1... |
Document that the ENGINE_[sg]_ex_data() calls are reprecated. | @@ -85,6 +85,11 @@ TYPE_get_ex_data() returns the application data or NULL if an error occurred.
L<CRYPTO_get_ex_new_index(3)>.
+=head1 HISTORY
+
+The ENGINE_get_ex_new_index(), ENGINE_set_ex_data() and ENGINE_get_ex_data()
+functions were deprecated in OpenSSL 3.0.
+
=head1 COPYRIGHT
Copyright 2015-2020 The OpenSSL Pr... |
[swig] fix build | void set_polyhedron(SN_OBJ_TYPE* H_mat, SN_OBJ_TYPE* K_vec)
{
- $self->poly = (polyhedron*) malloc(sizeof(polyhedron));
+ $self->poly.split = (polyhedron*) malloc(sizeof(polyhedron));
int is_new_object2=0;
- %NM_convert_from_target(H_mat, (&$self->poly->H), TARGET_ERROR_VERBOSE);
+ %NM_convert_from_target(H_mat, (&$sel... |
Build numpy before pillow
So that setup tools are available. | @@ -1912,15 +1912,6 @@ function bv_python_build
export PYTHON_COMMAND="${PYHOME}/bin/python3"
fi
- check_if_py_module_installed "PIL"
- # use Pillow for when python 3
- info "Building the Python Pillow Imaging Library"
- build_pillow
- if [[ $? != 0 ]] ; then
- error "Pillow build failed. Bailing out."
- fi
- info "Don... |
Fix compilation on Ubuntu Xenial due name clash | @@ -4016,19 +4016,19 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A
bool checkReporting = false;
bool checkClientCluster = false;
- const ButtonMap *buttonMap = nullptr;
+ const ButtonMap *buttonMapEntry = nullptr;
if (!isValid(sensor->buttonMapRef())) // TODO sensor.hasButtonMap()
... |
exit early if reformatting produced no changes | @@ -22,6 +22,11 @@ RELPATH=$(dirname "$SCRIPTPATH")
$RELPATH/clang-format-diff.py -regex '.*(\.h$|\.c$|\.cl$)' -i -p1 -style GNU <$PATCHY
$RELPATH/clang-format-diff.py -regex '(.*(\.hh$|\.cc$))|(lib/llvmopencl/.*\.h)' -i -p1 -style LLVM <$PATCHY
+if [ -z "$(git diff)" ]; then
+ echo "No changes."
+ exit 0
+fi
+
git dif... |
update ya tool arc
correct process of --cached option - calculate diff with index
print diff between two blobs; between index and arbitrary commit
diff between worktree and index
show deleted files in diff | },
"arc": {
"formula": {
- "sandbox_id": [328709958],
+ "sandbox_id": [329831127],
"match": "arc"
},
"executable": {
|
[Rust] View runs sizer when an element is added | @@ -48,7 +48,10 @@ impl View {
*self.left_click_cb.borrow_mut() = Some(Box::new(f));
}
- pub fn add_component(&self, elem: Rc<dyn UIElement>) {
+ pub fn add_component(self: Rc<Self>, elem: Rc<dyn UIElement>) {
+ printf!("Adding component to view: {:?}\n", elem.frame());
+ // Ensure the component has a frame by running ... |
feat(fabric test):
add fabric test case "TxSetArgs_argsMoreThanLimit" | @@ -311,6 +311,32 @@ START_TEST(test_002Transaction_0014TxSetArgs_Txptr_NULL)
}
END_TEST
+START_TEST(test_002Transaction_0015TxSetArgs_argsMoreThanLimit)
+{
+ BSINT32 rtnVal;
+ BoatHlfabricTx tx_ptr;
+ BoatHlfabricWallet *g_fabric_wallet_ptr = NULL;
+ BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_settings(... |
Remove unnecessary paramter to process_dio_init_dag | /*---------------------------------------------------------------------------*/
extern rpl_of_t rpl_of0, rpl_mrhof;
static rpl_of_t * const objective_functions[] = RPL_SUPPORTED_OFS;
-static int init_dag_from_dio(rpl_dio_t *dio);
+static int process_dio_init_dag(rpl_dio_t *dio);
/*--------------------------------------... |
Add cancellation loop check for the sake of completeness | @@ -299,7 +299,7 @@ namespace Miningcore.Stratum
private async Task ProcessSendQueueAsync(CancellationToken ct)
{
- while(true)
+ while(!ct.IsCancellationRequested)
{
var msg = await sendQueue.ReceiveAsync(ct);
|
Increase geometry precision | @@ -180,7 +180,7 @@ namespace carto { namespace geocoding {
}
}
- static constexpr double PRECISION = 1.0e5;
+ static constexpr double PRECISION = 1.0e6;
EncodingStream& _stream;
PointConverter _pointConverter;
|
docs: reorder install of ohpc-base-compute to deal with singularity
gid consistency | %\vspace*{.5cm}
\subsubsection{Add \OHPC{} components} \label{sec:add_components}
-\input{common/add_to_compute_chroot_intro}
+\input{common/add_to_compute_chroot_intro_suse}
% begin_ohpc_run
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true]
# install. Note that these will be synchronized with... |
Documentation change to GNSS only: SARA-R10M8S -> SARA-R510M8S. | @@ -308,7 +308,7 @@ int32_t uGnssPosGet(uDeviceHandle_t gnssHandle,
#ifdef U_CFG_SARA_R5_M8_WORKAROUND
if (pInstance->transportType == U_GNSS_TRANSPORT_AT) {
// Temporary change: on prototype versions of the
- // SARA-R10M8S module (production week (printed on the
+ // SARA-R510M8S module (production week (printed on t... |
Improve new workspace name selection
Improves upon by using the first assigned workspace instead of
the last one. The order isn't explicitly guaranteed to be the same as in
the config, but in general works. | @@ -205,6 +205,7 @@ char *workspace_next_name(const char *output_name) {
&& workspace_by_name(wso->workspace) == NULL) {
free(target);
target = strdup(wso->workspace);
+ break;
}
}
if (target != NULL) {
|
doc: added link to docker images | @@ -21,6 +21,7 @@ applications' configurations, leveraging easy application integration.
## Often Used Links
- If you are new, start reading [Get Started](doc/GETSTARTED.md)
+- If you enjoy working with [docker](/scripts/docker/README.md) take a look at our docker images
- [Build server](https://build.libelektra.org/)
... |
Bindings/Python: require at least Python 3.4 | @@ -16,8 +16,8 @@ include (${SWIG_USE_FILE})
include (LibAddMacros)
# set (PythonInterp_FIND_VERSION_EXACT ON)
-find_package (PythonInterp 3 QUIET)
-find_package (PythonLibs 3 QUIET)
+find_package (PythonInterp 3.4 QUIET)
+find_package (PythonLibs 3.4 QUIET)
if (NOT PYTHONINTERP_FOUND)
exclude_binding (python "python3 ... |
fix commit bits for huge page allocations | @@ -181,6 +181,7 @@ static bool mi_region_try_alloc_os(size_t blocks, bool commit, bool allow_large,
void* const start = _mi_arena_alloc_aligned(MI_REGION_SIZE, MI_SEGMENT_ALIGN, ®ion_commit, ®ion_large, &is_zero, &arena_memid, tld);
if (start == NULL) return false;
mi_assert_internal(!(region_large && !allow_lar... |
fix a typo in error messages in BPF::attach_usdt()
it was something like: "Unable to enable USDT %sprovider:probe from binary PID 1234 for
probe handle_probe" | @@ -303,7 +303,7 @@ StatusTuple BPF::attach_uprobe(const std::string& binary_path,
StatusTuple BPF::attach_usdt_without_validation(const USDT& u, pid_t pid) {
auto& probe = *static_cast<::USDT::Probe*>(u.probe_.get());
if (!uprobe_ref_ctr_supported() && !probe.enable(u.probe_func_))
- return StatusTuple(-1, "Unable to ... |
Fix for bootstrap crash when VPP compiled with gcc-7
See issue | @@ -393,7 +393,7 @@ mfib_entry_alloc (u32 fib_index,
{
mfib_entry_t *mfib_entry;
- pool_get(mfib_entry_pool, mfib_entry);
+ pool_get_aligned(mfib_entry_pool, mfib_entry, CLIB_CACHE_LINE_BYTES);
fib_node_init(&mfib_entry->mfe_node,
FIB_NODE_TYPE_MFIB_ENTRY);
|
odissey: do not close client tls connection if disable | @@ -107,10 +107,8 @@ od_tls_frontend_accept(od_client_t *client,
machine_error(client->io));
return -1;
}
- od_log_client(logger, &client->id, "tls", "disabled, closing");
- od_frontend_error(client, SHAPITO_FEATURE_NOT_SUPPORTED,
- "SSL is not supported");
- return -1;
+ od_debug_client(logger, &client->id, "tls", "is... |
GroupsPane: reference correct associations object | @@ -158,8 +158,6 @@ export function GroupsPane(props: GroupsPaneProps) {
baseUrl={baseUrl}
>
<UnjoinedResource
- notebooks={props.notebooks}
- inbox={props.inbox}
baseUrl={baseUrl}
api={api}
association={association}
@@ -191,9 +189,8 @@ export function GroupsPane(props: GroupsPaneProps) {
<Route
path={relativePath('')}... |
kappa: fix charge/discharge control setting order
Clone form CL:1916160
BRANCH=none
TEST=make BOARD=kappa | @@ -140,7 +140,7 @@ int board_set_active_charge_port(int charge_port)
CPRINTS("New chg p%d", charge_port);
/* ignore all request when discharge mode is on */
- if (force_discharge)
+ if (force_discharge && charge_port != CHARGE_PORT_NONE)
return EC_SUCCESS;
switch (charge_port) {
@@ -186,12 +186,12 @@ int board_dischar... |
sse2: add NEON implementation of simde_mm_madd_epi16 | @@ -1689,6 +1689,12 @@ simde__m128i
simde_mm_madd_epi16 (simde__m128i a, simde__m128i b) {
#if defined(SIMDE_SSE2_NATIVE)
return SIMDE__M128I_C(_mm_madd_epi16(a.n, b.n));
+#elif defined(SIMDE_SSE2_NEON)
+ int32x4_t pl = vmull_s16(vget_low_s16(a.neon_i32), vget_low_s16(b.neon_i32));
+ int32x4_t ph = vmull_s16(vget_high_... |
ttf: sdl_ttf_test.go: Fix font path | @@ -30,7 +30,7 @@ func TestTTF(t *testing.T) {
t.Errorf("Failed to initialize TTF: %s\n", err)
}
- if font, err = OpenFont("../assets/test.ttf", 32); err != nil {
+ if font, err = OpenFont("../.go-sdl2-examples/assets/test.ttf", 32); err != nil {
t.Errorf("Failed to open font: %s\n", err)
}
defer font.Close()
|
fix file open 3 | @@ -264,11 +264,11 @@ int pre_main(const char *argv) {
}
}
- if(CMDFILE[0]) {
- parse_cmdline(CMDFILE);
- } else {
- parse_cmdline(argv);
+ if(CMDFILE[0] == '\0') {
+ milstr_ncpy(CMDFILE, "np2kai ", 512);
+ milstr_ncat(CMDFILE, argv, 512);
}
+ parse_cmdline(CMDFILE);
for (i = 0; i<64; i++)
xargv_cmd[i] = NULL;
|
Update docs/docs/classes.md | @@ -671,7 +671,7 @@ Annotations are access via the `.classAnnotations` and `.methodAnnotations` prop
For class annotations, the returned data structure returned is a dictionary with keys set to the names of the annotations and their values if present. If no value is provided to the annotation, the value associated with... |
Silence onOff2 unused variable warning | @@ -7369,6 +7369,7 @@ void DeRestPluginPrivate::handleZclAttributeReportIndicationXiaomiSpecial(const
}
// TODO: update light state for lumi.ctrl_ln2. onOff -> enpoint 01; onOff2 -> endpoint 02.
+ Q_UNUSED(onOff2); // silence compiler warning
for (Sensor &sensor : sensors)
{
|
ci: continue-on-error for now | @@ -9,6 +9,7 @@ jobs:
builds: [mlibc, mlibc-static, mlibc-ansi-only]
name: Build mlibc
runs-on: ubuntu-20.04
+ continue-on-error: true # Since the static build current fails.
steps:
- name: Install prerequisites
# Note: the default jsonschema is too old.
|
Update the cfuncs split | @@ -85,7 +85,7 @@ VERILATOR_OPT_FLAGS := \
--x-assign fast \
--x-initial fast \
--output-split 10000 \
- --output-split-cfuncs 10000
+ --output-split-cfuncs 100
# default flags added for external IP (ariane/NVDLA)
VERILOG_IP_VERILATOR_FLAGS := \
|
added additional information if the driver doesn't accept frequency settings | @@ -7389,6 +7389,7 @@ static inline void getscanlistchannel(const char *scanlistin)
static struct iwreq pwrq;
static char *fscanlistdup;
static char *tokptr;
+static int wantedfrequency;
fscanlistdup = strndup(scanlistin, 4096);
if(fscanlistdup == NULL) return;
@@ -7399,17 +7400,32 @@ while((tokptr != NULL) && (ptrfsca... |
Coding: Mention `reformat-cmake` | @@ -166,7 +166,7 @@ file `CMakeLists.txt` in the root folder of the repository you can use the follo
cmake-format CMakeLists.txt | unexpand | sponge CMakeLists.txt
```
-.
+. If you want to reformat the whole codebase you can use the script [`reformat-cmake`](/scripts/reformat-cmake).
### Markdown Guidelines
|
linux/perf: enable perf on execve both with persistent and non-pid fuzzing | @@ -135,13 +135,11 @@ static bool arch_perfCreate(run_t* run, pid_t pid, dynFileMethod_t method, int*
} else {
pe.exclude_kernel = 1;
}
- if (run->global->linux.pid > 0 || run->global->persistent == true) {
- pe.disabled = 0;
- pe.enable_on_exec = 0;
- } else {
+ if (run->global->linux.pid == 0) {
pe.disabled = 1;
pe.e... |
readme: fix discord link | @@ -18,7 +18,7 @@ It's source and pre-compiled binaries can be found [here](https://github.com/Bos
## Community
-- [Offical Discord](https://discord.gg/gH49zBrK)
+- [Offical Discord](https://discord.gg/8StVhvB6Tm)
- [Unoffical Facebook Group](https://www.facebook.com/groups/quicksilverfirmware/?ref=share)
## Building
|
Improve comments about USE_VALGRIND in pg_config_manual.h.
These comments left the impression that USE_VALGRIND isn't really
essential for valgrind testing. But that's wrong, as I learned
the hard way today.
Discussion: | * enables detection of buffer accesses that take place without holding a
* buffer pin (or without holding a buffer lock in the case of index access
* methods that superimpose their own custom client requests on top of the
- * generic bufmgr.c requests). See also src/tools/valgrind.supp.
+ * generic bufmgr.c requests).
... |
Address some windows issues in buffer.c | @@ -56,7 +56,7 @@ void janet_buffer_ensure(JanetBuffer *buffer, int32_t capacity, int32_t growth)
uint8_t *old = buffer->data;
if (capacity <= buffer->capacity) return;
int64_t big_capacity = capacity * growth;
- capacity = big_capacity > INT32_MAX ? INT32_MAX : big_capacity;
+ capacity = big_capacity > INT32_MAX ? INT... |
fix aikon_f4 in target.json | "name": "aikon_f4",
"configurations": [
{
- "name": "brushed.serial",
+ "name": "brushless.serial",
"defines": {
- "BRUSHED_TARGET": "",
+ "BRUSHLESS_TARGET": "",
"RX_UNIFIED_SERIAL": ""
}
}
|
[Chenyu Zhao] : update class PluginStorage and it's method | @@ -4,26 +4,10 @@ type PluginStorage struct {
pluginStorage map[string]Plugin
}
-func (p * PluginStorage)Init() {
-
-}
-
-type AllPluginStorage struct {
- * PluginStorage
-}
-
-func (p * AllPluginStorage)Watch() {
-
-}
-
-func (p * AllPluginStorage) Update() {
-
-}
-
-type TaskPluginStorage struct {
- * PluginStorage
+... |
Badger2040: Fix input handling
Fixes input handling by clearing the button states to 0 when "wait_for_press". | @@ -291,6 +291,7 @@ namespace pimoroni {
}
void Badger2040::wait_for_press() {
+ _button_states = 0;
update_button_states();
while(_button_states == 0) {
update_button_states();
|
ia32/cpu.c: small changes in inline asm | #include "syspage.h"
#include "string.h"
#include "pmap.h"
-#include "spinlock.h"
extern int threads_schedule(unsigned int n, cpu_context_t *context, void *arg);
@@ -171,11 +170,8 @@ u32 cpu_getEFLAGS(void)
__asm__ volatile
(" \
pushf; \
- popl %%eax; \
- movl %%eax, %0"
- :"=g" (eflags)
- :
- :"eax");
+ popl %0"
+ : "... |
BIKE R3 fix for gcc-4.8.2 | #define UNPACKLO(x, y) _mm_unpacklo_epi64((x), (y))
#define UNPACKHI(x, y) _mm_unpackhi_epi64((x), (y))
#define CLMUL(x, y, imm) _mm_clmulepi64_si128((x), (y), (imm))
-#define BSRLI(x, imm) _mm_bsrli_si128((x), (imm))
-#define BSLLI(x, imm) _mm_bslli_si128((x), (imm))
+#define BSRLI(x, imm) _mm_srli_si128((x), (imm))
+... |
remove wrong comments on s5j | @@ -475,9 +475,7 @@ static void s5j_sflash_select(FAR struct spi_dev_s *spidev, enum spi_dev_e devid
* Name: s5j_sflash_setfrequency
*
* Description:
- * Support changing frequency. But we can't change frequency.
- * If you need to change frequency, please ask the broadcom.
- * This function is a part of spi_ops.
+ * S... |
Fix CreateProcess parameter usage | @@ -2583,6 +2583,7 @@ NTSTATUS PhCreateProcessWin32Ex(
)
{
NTSTATUS status;
+ PPH_STRING fileName = NULL;
PPH_STRING commandLine = NULL;
STARTUPINFO startupInfo;
PROCESS_INFORMATION processInfo;
@@ -2591,6 +2592,21 @@ NTSTATUS PhCreateProcessWin32Ex(
if (CommandLine) // duplicate because CreateProcess modifies the stri... |
More specific detection of Trust remote
In addition to PR | @@ -15569,8 +15569,9 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe(const deCONZ::NodeEvent *eve
skip = true; // Xiaomi Mija devices won't respond to ZCL read
DBG_Printf(DBG_INFO, "[4] Skipping additional attribute read - Model starts with 'lumi.'\n");
}
- else if (checkMacAndVendor(node, VENDOR_JENNIC) ||
- ch... |
Temporarily remove FME threshold for verification purposes | @@ -1363,7 +1363,7 @@ static void search_pu_inter_ref(inter_search_info_t *info,
break;
}
- if (cfg->fme_level > 0 && info->best_cost < *inter_cost) {
+ if (cfg->fme_level > 0 && info->best_cost < MAX_DOUBLE) {
search_frac(info);
} else if (info->best_cost < MAX_DOUBLE) {
|
Fix old group0 delete | @@ -336,31 +336,38 @@ DeRestPluginPrivate::DeRestPluginPrivate(QObject *parent) :
}
// create default group
+ // get new id
if (gwGroup0 == 0)
{
- // get new id and replace old group0 and get new id
for (uint16_t i = 0xFFF0; i > 0; i--) // 0 and larger than 0xfff7 is not valid for Osram Lightify
{
Group* group = getGro... |
ethio: handles a result member in an error response
When using a Ganache for running a local Ethereum node, an error RPC
response can contain a 'result' member with the hash of the transaction,
even though that goes against the JSON-RPC spec | ++ parse-one-response
|= =json
^- (unit response:rpc)
+ ?. &(?=([%o *] json) (~(has by p.json) 'error'))
=/ res=(unit [@t ^json])
%. json
=, dejs-soft:format
(ot id+so result+some ~)
- ?^ res `[%result u.res]
+ ?~ res ~
+ `[%result u.res]
~| parse-one-response=json
- :+ ~ %error %- need
+ =/ error=(unit [id=@t ^json co... |
Update inlining options for `next` and `resume`. | #include "vector.h"
#endif
+static int arity1or2(JanetFopts opts, JanetSlot *args) {
+ (void) opts;
+ int32_t arity = janet_v_count(args);
+ return arity == 1 || arity == 2;
+}
static int fixarity1(JanetFopts opts, JanetSlot *args) {
(void) opts;
return janet_v_count(args) == 1;
@@ -63,6 +68,27 @@ static JanetSlot gene... |
During sensor search only check data of joining device for resource creation | @@ -2946,6 +2946,11 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
return;
}
+ if (fastProbeAddr.hasExt() && fastProbeAddr.ext() != node->address().ext())
+ {
+ return;
+ }
+
// check for new sensors
QString modelId;
QString manufacturer;
|
BugID:17831376:[utils] fix[WhiteScan][424420][BUFFER_SIZE_WARNING] | @@ -192,6 +192,7 @@ void *LITE_realloc_internal(const char *f, const int l, void *ptr, int size, ...
void *_create_mem_table(char *module_name, struct list_head *list_head)
{
module_mem_t *pos = NULL;
+ int len = 0;
if (!module_name || !list_head) {
return NULL;
@@ -202,7 +203,8 @@ void *_create_mem_table(char *module_... |
fix bsp_leds project. | <FileType>5</FileType>
<FilePath>..\..\..\bsp\boards\scum\scm3_hardware_interface.h</FilePath>
</File>
+ <File>
+ <FileName>bucket_o_functions.c</FileName>
+ <FileType>1</FileType>
+ <FilePath>..\..\..\bsp\boards\scum\bucket_o_functions.c</FilePath>
+ </File>
+ <File>
+ <FileName>bucket_o_functions.h</FileName>
+ <File... |
example/wifi/scan: fix README grammar
Merges | # Wifi SCAN Example
-This example shows how to use scan of ESP32.
+This example shows how to use the scan functionality of the Wi-Fi driver of ESP32.
-We have two way to scan, fast scan and all channel scan:
+Two scan methods are supported: fast scan and all channel scan.
-* fast scan: in this mode, scan will finish af... |
implement enable disable interrupt | #define RFTIMER_MAX_COUNT 0x3ffffff // use a value less than 0xffffffff/61 and also equal to 2^n-1
#define TIMERLOOP_THRESHOLD 0xfffff // 0xffff is 2 seconds @ 32768Hz clock
-#define MINIMUM_COMPAREVALE_ADVANCE 10
+#define MINIMUM_COMPAREVALE_ADVANCE 5
// ========================== variable ============================... |
removed experimental for 8k5 | @@ -35,7 +35,7 @@ choice
AlphaData KU3 has ethernet and 8GB DDR3 SDRAM. Uses Xilinx FPGA XCKU060.
config AD8K5
- bool "Experimental: AlphaData 8K5 Card with Ethernet, 8GB DDR4 SDRAM and Xilinx KU115 FPGA"
+ bool "AlphaData 8K5 Card with Ethernet, 8GB DDR4 SDRAM and Xilinx KU115 FPGA"
select CAPI10
select DISABLE_NVME
h... |
https_request example: Perform request over HTTP/1.1 to enable keepalive timeout
Closes: | static const char *TAG = "example";
-static const char *REQUEST = "GET " WEB_URL " HTTP/1.0\r\n"
+static const char *REQUEST = "GET " WEB_URL " HTTP/1.1\r\n"
"Host: "WEB_SERVER"\r\n"
"User-Agent: esp-idf/1.0 esp32\r\n"
"\r\n";
|
Update the minor and patch versions | @@ -51,8 +51,8 @@ extern "C" {
// version 0, you should not be making any forward compatibility
// assumptions.
#define NNG_MAJOR_VERSION 1
-#define NNG_MINOR_VERSION 0
-#define NNG_PATCH_VERSION 1
+#define NNG_MINOR_VERSION 1
+#define NNG_PATCH_VERSION 0
#define NNG_RELEASE_SUFFIX "" // if non-empty, this is a pre-rel... |
cmake: fix merge conflict
I'm surprised this made it through CI. Not sure whether to be amazed
or appalled that CMake accepted it, but I'm leaning towards the latter. | @@ -163,11 +163,8 @@ foreach(tst
"/x86/avx512f"
"/x86/avx512bw"
"/x86/avx512vl"
-<<<<<<< HEAD
"/x86/avx512dq"
-=======
"/x86/gfni"
->>>>>>> 243415e... Add gfni support in gfni.[hc]
"/x86/svml"
)
add_test(NAME "${tst}/${variant}" COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:run-tests> "${tst}")
|
Parallel test support for init_test_index_loc
Use File::Temp to create a temporary directory in 't' that will be
cleaned up at exit. A side effect is that the directory won't be
removed if the test crashes. | @@ -29,7 +29,6 @@ our @EXPORT_OK = qw(
uscon_dir
create_index
create_uscon_index
- test_index_loc
persistent_test_index_loc
init_test_index_loc
get_uscon_docs
@@ -44,6 +43,7 @@ use Lucy::Test;
use File::Spec::Functions qw( catdir catfile curdir updir );
use Encode qw( _utf8_off );
use File::Path qw( rmtree );
+use File... |
[mod_ssi] check http_chunk_transfer_cqlen for err
pedantic check of http_chunk_transfer_cqlen() for error | @@ -1535,7 +1535,9 @@ static void mod_ssi_read_fd(request_st * const r, handler_ctx * const p, struct
* (reduce occurrence of copying to reallocate larger chunk) */
if (cq->last && cq->last->type == MEM_CHUNK
&& buffer_string_space(cq->last->mem) < 1023)
- http_chunk_transfer_cqlen(r, cq, chunkqueue_length(cq));
+ if (... |
Fix Cortex-M0 Cannot Execute Reboot | @@ -119,7 +119,7 @@ void rt_hw_hard_fault_exception(struct exception_stack_frame *contex)
#define SCB_HFSR (*(volatile const unsigned *)0xE000ED2C) /* HardFault Status Register */
#define SCB_MMAR (*(volatile const unsigned *)0xE000ED34) /* MemManage Fault Address register */
#define SCB_BFAR (*(volatile const unsigned... |
Set default texture filter before creating texture; | @@ -75,6 +75,9 @@ void lovrGraphicsInit() {
}
// Objects
+ state.depthTest = -1;
+ state.defaultFilter = FILTER_TRILINEAR;
+ state.defaultAnisotropy = 1.;
state.defaultShader = lovrShaderCreate(lovrDefaultVertexShader, lovrDefaultFragmentShader);
state.skyboxShader = lovrShaderCreate(lovrSkyboxVertexShader, lovrSkyboxF... |
NVMe: Create snap_config.sv at a different place | @@ -183,11 +183,11 @@ prepare_project: check_snap_settings prepare_logs
@ln -f -s $(SNAP_HDL_CORE)/dma_types_$(CAPI_VER).vhd_source $(SNAP_HDL_CORE)/dma_types.vhd;
@ln -f -s $(SNAP_HDL_CORE)/dma_buffer_$(CAPI_VER).vhd_source $(SNAP_HDL_CORE)/dma_buffer.vhd;
@ln -f -s $(SNAP_HDL_CORE)/dma_rams_$(CAPI_VER).vhd_source $(S... |
chore(Makefile): add -pedantic flag | @@ -54,7 +54,7 @@ CFLAGS += -O0 -g -pthread \
-I. -I$(CEEUTILS_DIR) -I$(COMMON_DIR) -I$(THIRDP_DIR) \
-DLOG_USE_COLOR
-WFLAGS += -Wall -Wextra
+WFLAGS += -Wall -Wextra -pedantic
ifeq ($(static_debug),1)
CFLAGS += -D_STATIC_DEBUG
|
Convert wav files to 8bit automatically | @@ -29,6 +29,12 @@ export const compileWav = async (
wavFmt = wav.fmt as WaveFileFmt;
}
+ // Convert to 8bit if not already
+ if (wavFmt.bitsPerSample !== 8) {
+ wav.toBitDepth("8");
+ wavFmt = wav.fmt as WaveFileFmt;
+ }
+
if (
// wavFmt.numChannels !== 1 ||
// wavFmt.bitsPerSample !== 8 ||
|
udpated error msg | @@ -78,7 +78,7 @@ def draw():
graphics.set_pen(4)
graphics.rectangle(0, 170, 640, 25)
graphics.set_pen(1)
- graphics.text("Unable to display image! :(", 5, 175, 400, 2)
+ graphics.text("Unable to display image! Check your network settings in secrets.py", 5, 175, 600, 2)
graphics.set_pen(0)
graphics.rectangle(0, 375, 64... |
Fix multi message iso tp requests | @@ -372,7 +372,7 @@ class IsoTpMessage():
self._tx_first_frame()
def _tx_first_frame(self) -> None:
- if self.tx_len < 8:
+ if self.tx_len < self.max_len:
# single frame (send all bytes)
if self.debug: print("ISO-TP: TX - single frame")
msg = (bytes([self.tx_len]) + self.tx_dat).ljust(self.max_len, b"\x00")
@@ -380,7 +... |
Don't disconnect if there are issues w/the incoming message | @@ -481,8 +481,7 @@ remoteConfig()
numtries++;
rc = scope_recv(fds.fd, buf, sizeof(buf), MSG_DONTWAIT);
if (rc <= 0) {
- // Something has happened to our connection
- ctlDisconnect(g_ctl, CFG_CTL);
+ // Something has happened to this incoming message
break;
}
|
Fixed error in which InitializeOutputEqtide was somehow dropped from eqtide.c. | @@ -2311,7 +2311,7 @@ void WriteTideLock(BODY *body,CONTROL *control,OUTPUT *output,SYSTEM *system,UNI
strcat(cUnit,"");
}
-void (OUTPUT *output,fnWriteOutput fnWrite[]) {
+void InitializeOutputEqtide(OUTPUT *output,fnWriteOutput fnWrite[]) {
sprintf(output[OUT_BODYDSEMIDTEQTIDE].cName,"BodyDsemiDtEqtide");
sprintf(out... |
noncart/nufft: properly propagate the lowmem flag
Otherwise, it will not be used in the calculation of the psf, which can
often be the largest nufft performed. | @@ -261,6 +261,7 @@ complex float* compute_psf(unsigned int N, const long img_dims[N], const long tr
struct nufft_conf_s conf = nufft_conf_defaults;
conf.periodic = periodic;
conf.toeplitz = false; // avoid infinite loop
+ conf.lowmem = lowmem;
debug_printf(DP_DEBUG2, "nufft kernel dims: ");
|
Protocol error if same secret twice. | @@ -1084,12 +1084,18 @@ int picoquic_enqueue_cnxid_stash(picoquic_cnx_t * cnx,
(int)sequence, (int)cnx->path[i]->remote_cnxid_sequence);
ret = PICOQUIC_TRANSPORT_PROTOCOL_VIOLATION;
}
+ else if (memcmp(secret_bytes, &cnx->path[i]->reset_secret, PICOQUIC_RESET_SECRET_SIZE) == 0) {
+ DBG_PRINTF("Path %d, Cnx_id: %02x%02x... |
Report time spent in posix_fallocate() as a wait event.
When allocating DSM segments with posix_fallocate() on Linux (see commit
899bd785), report this activity as a wait event exactly as we would if
we were using file-backed DSM rather than shm_open()-backed DSM.
Author: Thomas Munro
Discussion: | @@ -371,10 +371,12 @@ dsm_impl_posix_resize(int fd, off_t size)
* interrupt pending. This avoids the possibility of looping forever
* if another backend is repeatedly trying to interrupt us.
*/
+ pgstat_report_wait_start(WAIT_EVENT_DSM_FILL_ZERO_WRITE);
do
{
rc = posix_fallocate(fd, 0, size);
} while (rc == EINTR && !(... |
ames: try sponsors above .our | (emit duct %pass /public-keys %j %public-keys [n=ship ~ ~])
:: +send-blob: fire packet at .ship and maybe sponsors
::
- :: Send to .ship and sponsors until we find a direct lane or
- :: encounter .our in the sponsorship chain.
+ :: Send to .ship and sponsors until we find a direct lane,
+ :: skipping .our in the sponso... |
Fix SSKDF to not claim a buffer size that is too small for the MAC
We also check that our buffer is sufficiently sized for the MAC output | @@ -239,7 +239,7 @@ static int SSKDF_mac_kdm(EVP_MAC_CTX *ctx_init,
goto end;
out_len = EVP_MAC_CTX_get_mac_size(ctx_init); /* output size */
- if (out_len <= 0)
+ if (out_len <= 0 || (mac == mac_buf && out_len > sizeof(mac_buf)))
goto end;
len = derived_key_len;
@@ -263,7 +263,7 @@ static int SSKDF_mac_kdm(EVP_MAC_CTX... |
Update templates/c/README.md | @@ -48,4 +48,4 @@ You can then run your cartridge as follows:
The script ```buildcart.sh``` does the above steps as a convenience.
## Additional Notes
-The TIC functions that provide standard library features are not added here. You should use the `memcpy` and `memset` functions provided by the C standard library inste... |
parallel-libs/slepc: update install stanza for latest version | @@ -73,7 +73,7 @@ make SLEPC_DIR=${RPM_BUILD_DIR}/%{pname}-%{version} PETSC=$PETSC_DIR
module load openblas
%endif
module load petsc
-make install
+make SLEPC_DIR=${RPM_BUILD_DIR}/%{pname}-%{version} PETSC=$PETSC_DIR install
# move from tmp install dir to %install_path
# dirname removes the last directory
|
Work around emscripten window limitation; | @@ -116,14 +116,8 @@ void lovrGraphicsPresent() {
void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const char* title, const char* icon) {
lovrAssert(!state.window, "Window is already created");
+#ifndef EMSCRIPTEN
if ((state.window = glfwGetCurrentContext()) == NULL) {
-#ifdef EMSCRIPTEN
- glfwWin... |
Update mat4:set for vanilla lua; | @@ -1459,12 +1459,57 @@ static int l_lovrMat4Unpack(lua_State* L) {
int l_lovrMat4Set(lua_State* L) {
mat4 m = luax_checkvector(L, 1, V_MAT4, NULL);
- if (lua_gettop(L) >= 17) {
+ int top = lua_gettop(L);
+ int type = lua_type(L, 2);
+ if (type == LUA_TNONE || type == LUA_TNIL || (top == 2 && type == LUA_TNUMBER)) {
+ ... |
Document SNI support in unbound-anchor.8.in. | @@ -69,6 +69,9 @@ The server name, it connects to https://name. Specify without https:// prefix.
The default is "data.iana.org". It connects to the port specified with \-P.
You can pass an IPv4 address or IPv6 address (no brackets) if you want.
.TP
+.B \-S
+Do not use SNI for the HTTPS connection. Default is to use SNI... |
EIP712 signatures now computed on chain ID | @@ -488,8 +488,19 @@ static bool verify_contract_name_signature(uint8_t dname_length,
uint8_t hash[INT256_LENGTH];
cx_ecfp_public_key_t verifying_key;
cx_sha256_t hash_ctx;
+ uint64_t chain_id;
cx_sha256_init(&hash_ctx);
+
+ // Chain ID
+ chain_id = __builtin_bswap64(chainConfig->chainId);
+ cx_hash((cx_hash_t*)&hash_c... |
task: destroy task buffer when it's not a dyntag buf | @@ -168,7 +168,7 @@ static struct flb_task *task_alloc(struct flb_config *config)
/* Allocate the new task */
task = (struct flb_task *) flb_calloc(1, sizeof(struct flb_task));
if (!task) {
- perror("malloc");
+ flb_errno();
return NULL;
}
@@ -182,7 +182,6 @@ static struct flb_task *task_alloc(struct flb_config *config... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.