message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Use SSL error codes
The `psa_ssl_status_to_mbedtls` function is not only used for
cipher operations so transalte to TLS error codes. | @@ -2132,9 +2132,9 @@ static inline int psa_ssl_status_to_mbedtls( psa_status_t status )
case PSA_SUCCESS:
return( 0 );
case PSA_ERROR_INSUFFICIENT_MEMORY:
- return( MBEDTLS_ERR_CIPHER_ALLOC_FAILED );
+ return( MBEDTLS_ERR_SSL_ALLOC_FAILED );
case PSA_ERROR_NOT_SUPPORTED:
- return( MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABL... |
provide correct address length for inet_ntop i.o. to avoid error ENOSPC | @@ -369,9 +369,9 @@ nc_sock_accept_binds(struct nc_bind *binds, uint16_t bind_count, int timeout, ch
/* host was requested */
if (host) {
if (saddr.ss_family == AF_INET) {
- *host = malloc(15);
+ *host = malloc(INET_ADDRSTRLEN);
if (*host) {
- if (!inet_ntop(AF_INET, &((struct sockaddr_in *)&saddr)->sin_addr.s_addr, *h... |
cups/ppd-cache.c: synthetize grayscale if only color is defined | @@ -3790,6 +3790,9 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
PRINTF_COLOROPTION("RGB", _("Color"), CUPS_CSPACE_SRGB, 8)
default_color = "RGB";
+
+ if (ippGetCount(attr) == 1 || !ippContainsString(attr, "sgray_8") && !ippContainsString(attr, "black_1") && !ippContainsString(attr, "black_8"))
+ PRINTF_... |
Bool: Specify language of code snippet | @@ -27,8 +27,10 @@ Use, depending on what your default should be:
Example:
+```c
if ( strcmp(keyString(k), "0")) {/*true*/} else {/*false*/}
if (!strcmp(keyString(k), "1")) {/*true*/} else {/*false*/}
+```
In the documentation it should mention that a bool is used
and which is the default.
|
Allow optimization for small m, large n only if it can be made threadsafe
otherwise the introduction of a static array in to improve breaks concurrent calls from multiple threads as seen in | #endif
#endif
-#ifndef TRANSA
+#ifndef thread_local
+# if __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__
+# define thread_local _Thread_local
+# elif defined _WIN32 && ( \
+ defined _MSC_VER || \
+ defined __ICL || \
+ defined __DMC__ || \
+ defined __BORLANDC__ )
+# define thread_local __declspec(thread)
+... |
jni: set JAVA_HOME only if not defined | @@ -3,12 +3,14 @@ include (LibAddBinding)
include (SafeCheckSymbolExists)
if (DEPENDENCY_PHASE)
- if (APPLE)
+ set (JAVA_HOME $ENV{JAVA_HOME})
+ if (APPLE AND NOT DEFINED ${JAVA_HOME})
execute_process (
COMMAND "/usr/libexec/java_home --failfast"
ERROR_QUIET
OUTPUT_VARIABLE JAVA_HOME
OUTPUT_STRIP_TRAILING_WHITESPACE)
+... |
net/tcp: move drop send source code to correct place
Merge conflicts lead to code being placed in thre wrong place
The debug code should placed in tcp_send() not tcp_synack() | @@ -279,6 +279,34 @@ void tcp_send(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
dev->d_len = len;
tcp->tcpoffset = (TCP_HDRLEN / 4) << 4;
tcp_sendcommon(dev, conn, tcp);
+
+#if defined(CONFIG_NET_STATISTICS) && \
+ defined(CONFIG_NET_TCP_DEBUG_DROP_SEND)
+
+#pragma message \
+ "CONFIG_NET_TCP_DEBUG_DROP_S... |
Added doxygen annotation to the prototype | @@ -65,6 +65,14 @@ struct coap_request_state {
void (*callback)(coap_request_state_t *state);
};
+/**
+ * \brief Send a CoAP request to a remote endpoint
+ * \param state The state to handle the CoAP request
+ * \param endpoint The destination endpoint
+ * \param request The request to be sent
+ * \param callback callb... |
interface: truncate at 90% width instead of 100% to allow for a touchable zone to get to comments on mobile. fixes urbit/landscape | @@ -28,7 +28,7 @@ const PostContent = (props: PostContentProps): ReactElement => {
return (
<TruncatedBox
display="-webkit-box"
- width="100%"
+ width="90%"
px={2}
pb={2}
truncate={isParent ? null : 8}
|
esp32/uart: Use high-level function to install UART0 RX ISR handler.
Using xt_set_interrupt_handler is too low-level for the ESP IDF, since it
may have multiple handlers registered at the same IRQ level (eg both BT and
UART are on number 5). | #include <stdio.h>
-#include "esp_intr.h"
-#include "soc/uart_struct.h"
+#include "driver/uart.h"
#include "py/mpstate.h"
#include "py/mphal.h"
STATIC void uart_irq_handler(void *arg);
void uart_init(void) {
- xt_set_interrupt_handler(ETS_UART0_INUM, uart_irq_handler, NULL);
- ESP_INTR_ENABLE(ETS_UART0_INUM);
+ uart_is... |
Tests: fixed test_tls_reconfigure.
Previously, order of applying TLS configuration and sending partial request to
the application was uncertain. These changes make sure that client-application
connection was established before reconfiguration. Additionally, added test
to check that non-TLS connection works correctly ... | @@ -306,23 +306,25 @@ basicConstraints = critical,CA:TRUE""" % {
self.assertEqual(self.get_ssl()['status'], 200,
'certificate chain intermediate server')
+ @unittest.expectedFailure
def test_tls_reconfigure(self):
self.load('empty')
self.certificate()
- (resp, sock) = self.http(b"""GET / HTTP/1.1
-""", start=True, raw=... |
fixed a bug about status not properly perserved | @@ -1859,7 +1859,13 @@ static u16 updateFrame(Sprite* sprite, u16 status)
sprite->timer = frame->timer;
// frame change event handler defined ? --> call it
- if (sprite->onFrameChange) sprite->onFrameChange(sprite);
+ if (sprite->onFrameChange)
+ {
+ // important to preserve status value which may be modified externall... |
Adjust client protocol slightly. | :: ::
++ doom :: daemon command
$% $: $boot :: boot new pier
- p/ship :: ship
- q/@ :: generator or ticket
- r/(map @t *) :: debug options
+ who/ship :: ship
+ sec/@ :: secret
+ sys/@ :: boot pill
+ pax/@t :: directory
== ::
$: $exit :: end the daemon
$~ ::
@@ -184,6 +185,8 @@ _king_doom(u3_noun doom)
c3_assert(_(u3a_i... |
MD5.pod: Recommend or family hashes instead of legacy ones | @@ -80,8 +80,8 @@ etc. instead of calling the hash functions directly.
=head1 NOTE
MD2, MD4, and MD5 are recommended only for compatibility with existing
-applications. In new applications, SHA-1 or RIPEMD-160 should be
-preferred.
+applications. In new applications, hashes from the SHA-2 or SHA-3 family
+should be pre... |
test_upgrade: don't upgrade mirrors
They don't work yet. Modify get_segment_datadirs() so it only pulls in
the information from primary segments, and unset mirror-related
variables in the new gpinitsystem configuration. | @@ -150,6 +150,12 @@ gpinitsystem_for_upgrade() {
source '"${NEW_GPHOME}"'/greenplum_path.sh
sed -E -e '\''s|('"${DATADIR_PREFIX}"'/[[:alnum:]_-]+)|\1-new|g'\'' '"${GPINITSYSTEM_CONFIG}"' > gpinitsystem_config_new
+
+ # XXX Disable mirrors for now.
+ echo "unset MIRROR_DATA_DIRECTORY" >> gpinitsystem_config_new
+ echo ... |
Fix Portenta sensor power down GPIO. | #define SCCB_SDA_PIN (GPIO_PIN_7)
#define SCCB_TIMING (0x20D09DE7) // Frequency: 100KHz Rise Time: 100ns Fall Time: 20ns
-#define DCMI_PWDN_PIN (GPIO_PIN_14)
-#define DCMI_PWDN_PORT (GPIOJ)
+#define DCMI_PWDN_PIN (GPIO_PIN_4)
+#define DCMI_PWDN_PORT (GPIOD)
#define DCMI_D0_PIN (GPIO_PIN_9)
#define DCMI_D1_PIN (GPIO_PIN... |
Fix tests that could not work | @@ -453,7 +453,7 @@ static BOOL AllowsAdditionalTrustAnchors = YES; // toggle in tests if needed
kTSKPinnedDomains :
@{@"www.good.com" : @{
// Totally expired
- kTSKExpirationDate: [NSDate dateWithTimeIntervalSinceReferenceDate:0],
+ kTSKExpirationDate: @"2015-01-01",
kTSKEnforcePinning: @YES,
kTSKPublicKeyAlgorithms :... |
apps/exmaples/smps: Fix types in Kconfig. All power, voltage, current values were strings with no default. I assume they should be 'int' with what default? | @@ -15,44 +15,54 @@ config EXAMPLES_SMPS_DEVPATH
The default path to the Smps device. Default: /dev/smps0
config EXAMPLES_SMPS_TIME_DEFAULT
- string "SMPS example run time default (sec)"
+ int "SMPS example run time default (sec)"
+ default 0
config EXAMPLES_SMPS_OUT_VOLTAGE_DEFAULT
- string "SMPS Output voltage defaul... |
Clean up Rakefile
We have been using only `rspec` for test | @@ -172,7 +172,6 @@ END_HTML_TAIL
end
require 'rake/extensiontask'
-require 'rake/testtask'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
@@ -180,11 +179,6 @@ Rake::ExtensionTask.new('RMagick2') do |ext|
ext.ext_dir = 'ext/RMagick'
end
-Rake::TestTask.new(:test) do |t|
- t.libs << 'test'
-end
-
-task ... |
Updated compiling manual
Removed requirement for 7zip on Windows
Added note on GNUInstallDir presets | On Windows users should ensure that the following software is installed:
-* `7zip`
-* `git`
+* `git` (_optional, but recommended_)
* `cmake` (3.17.0 or later)
* `MinGW-w64` (7.0.0 or later) with GCC toolchain 8.1.0
### Installation
-1. Install `7zip` from <https://www.7-zip.org>
-2. Install `git` from <https://git-scm.... |
Update build-system.rst
Rearranged few lines of folder directory description | @@ -178,9 +178,9 @@ This example "myProject" contains the following elements:
- "sdkconfig" project configuration file. This file is created/updated when ``idf.py menuconfig`` runs, and holds configuration for all of the components in the project (including ESP-IDF itself). The "sdkconfig" file may or may not be added ... |
Handle zero page job in Rastertopdf | @@ -1404,6 +1404,16 @@ int main(int argc, char **argv)
if (create_pdf_file(&pdf, outformat) != 0)
die("Unable to create PDF file");
+ struct stat buf;
+ fstat(fd, &buf);
+ int size = buf.st_size;
+ if(size <= 4)
+ {
+ close_pdf_file(&pdf);
+ cupsRasterClose(ras);
+ return 0;
+ }
+
/* Get PCLm attributes from PPD */
if ... |
fix config file parsing | @@ -492,7 +492,12 @@ void conf_handle_option( const char opt[], const char val[] ) {
}
#endif
case oConfig:
+ if( gconf->configfile ) {
+ log_err( "Option only allowed one time: %s", opt );
+ exit( 1 );
+ }
conf_str( opt, &gconf->configfile, val );
+ conf_load_file( gconf->configfile );
break;
case oIpv4:
case oIpv6:
@... |
Change the Validate methods to ensure that unspecified fields in the JSON turn into the "Any" values in the enum. | @@ -34,22 +34,22 @@ protected:
void ValidateTransmitProfileRule(const TransmitProfileRule& rule, const std::vector<int>& expectedTimers)
{
- ASSERT_EQ(rule.timers.size(), expectedTimers.size());
- ASSERT_EQ(rule.timers[0], expectedTimers[0]);
- ASSERT_EQ(rule.timers[1], expectedTimers[1]);
- ASSERT_EQ(rule.timers[2], e... |
validate process isn't already being scoped | @@ -72,6 +72,7 @@ func (rc *Config) Run(args []string) {
// Attach scopes an existing PID
func (rc *Config) Attach(args []string) {
+ // Validate user has root permissions
user, err := user.Current()
if err != nil {
util.ErrAndExit("Unable to get current user: %v", err)
@@ -79,6 +80,7 @@ func (rc *Config) Attach(args [... |
vere: guarantee unique concatenated names | @@ -669,7 +669,7 @@ u3_disk_info(u3_disk* log_u)
while ( red_u ) {
lit = u3nc(
u3_pier_mass(
- c3__read,
+ u3dt("cat", 3, c3__read, u3dc("scot", c3__ux, u3i_chub((c3_d)red_u))),
u3i_list(
u3_pier_mase("start", u3i_chub(red_u->eve_d)),
u3_pier_mase("final", u3i_chub(red_u->eve_d + red_u->len_d - 1)),
|
Tests: specify ssl_version option.
TLS is explicitly selected to prevent using of SSL protocol
in ssl.get_server_certificate() call for Python 3.4 and older. | @@ -718,7 +718,19 @@ class TestUnitApplicationTLS(TestUnitApplicationProto):
**kwargs)
def get_server_certificate(self, addr=('127.0.0.1', 7080)):
- return ssl.get_server_certificate(addr)
+
+ ssl_list = dir(ssl)
+
+ if 'PROTOCOL_TLS' in ssl_list:
+ ssl_version = ssl.PROTOCOL_TLS
+
+ elif 'PROTOCOL_TLSv1_2' in ssl_list... |
pybricks/util_pb/pb_imu: flip Prime Hub IMU
Based on its output values, it appears that the Technic Hub and Prime Hub have this sensor on opposite sides of the PCB.
While orientation is configurable, it is helpful that the default orientation is the same at the driver level, with the buttons facing up. | @@ -183,6 +183,12 @@ void pb_imu_accel_read(pb_imu_dev_t *imu_dev, float_t *values) {
values[0] = data[0] * imu_dev->accel_scale;
values[1] = data[1] * imu_dev->accel_scale;
values[2] = data[2] * imu_dev->accel_scale;
+
+ #if PYBRICKS_HUB_PRIMEHUB
+ // Sensor is upside down
+ values[0] = -values[0];
+ values[2] = -valu... |
fpgasupdate: update content type to latest spec
The spec has been updated to include a subtype. fpgasupdate will
log this information at the debug level. | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-"""Program PAC firmware
-"""
+"""Program PAC firmware"""
import argparse
import os
@@ -52,11 +51,17 @@ DEFAULT_BDF = 'ssss:bb:dd.f'
VALID_GBS_GUID = uuid.UUID('31303076-5342-47b7-4147-50466e6f6558')
-BLOCK0_STATI... |
Fix spelling typos in help. | @@ -638,7 +638,7 @@ static const char scope_help_configuration[] =
static const char scope_help_metrics[] =
"METRICS:\n"
" Metrics can be enabled or disabled with a single config element.\n"
-" Specific types of metrics and spcific field content are managed\n"
+" Specific types of metrics and specific field content are... |
spi: init active_device array | @@ -45,6 +45,12 @@ const volatile spi_port_def_t spi_port_defs[SPI_PORTS_MAX] = {{}, SPI_PORTS};
#undef SPI_PORT
#undef SPI_DMA
+#define SPI_PORT(chan, sck_pin, miso_pin, mosi_pin) NULL,
+
+static volatile spi_bus_device_t *active_device[SPI_PORTS_MAX] = {NULL, SPI_PORTS};
+
+#undef SPI_PORT
+
#define PORT spi_port_def... |
Move common final checks to function | @@ -3760,6 +3760,18 @@ exit:
return( status );
}
+static psa_status_t psa_aead_final_checks( psa_aead_operation_t *operation )
+{
+ if( operation->id == 0 || operation->nonce_set == 0 )
+ return( PSA_ERROR_BAD_STATE );
+
+ if( operation->lengths_set && (operation->ad_remaining != 0 ||
+ operation->body_remaining != 0 )... |
Move script commands. | language: c
-script: ./configure --enable-debug --enable-maintainer --enable-sanitizer && make && make test
-
jobs:
include:
# Linux-specific build stuff
@@ -22,6 +20,8 @@ jobs:
# macOS-specific build stuff
- os: osx
osx_image: xcode12.2
+ script: ./configure --enable-debug --enable-maintainer --enable-sanitizer && mak... |
updated test yml | @@ -9,16 +9,16 @@ on:
jobs:
tests:
- name: "Run tests on py${{ matrix.python-version }}"
+ name: 'Run tests on py${{ matrix.python-version }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- - python-version: "3.6"
- - python-version: "3.7"
- - python-version: "3.8"
- - python-version: "3.9"
+ - py... |
modern cmake - create library import target | @@ -9,6 +9,8 @@ set(INCLUDED_LIMESUITE_CONFIG_CMAKE TRUE)
# The following will be set after find_package(LimeSuite):
# LimeSuite_LIBRARIES - development libraries
# LimeSuite_INCLUDE_DIRS - development includes
+#
+# Or link with the import library target LimeSuite
######################################################... |
Fix coverity CID - Remove dead code. | @@ -69,7 +69,6 @@ static int ossl_prov_print_ec_param_explicit_gen(BIO *out,
|| EC_POINT_point2bn(group, point, form, gen, ctx) == NULL)
return 0;
- if (gen != NULL) {
switch (form) {
case POINT_CONVERSION_COMPRESSED:
glabel = "Generator (compressed):";
@@ -85,8 +84,6 @@ static int ossl_prov_print_ec_param_explicit_gen... |
Missed an item DEBUG_ERFORMANCE. | @@ -264,8 +264,9 @@ typedef enum
DEBUG_DISPLAY_NONE,
DEBUG_DISPLAY_COLLISION_ATTACK = 0x00000001,
DEBUG_DISPLAY_COLLISION_BODY = 0x00000002,
- DEBUG_DISPLAY_PROPERTIES = 0x00000004,
- DEBUG_DISPLAY_RANGE = 0x00000008
+ DEBUG_DISPLAY_PERFORMANCE = 0x00000004,
+ DEBUG_DISPLAY_PROPERTIES = 0x00000008,
+ DEBUG_DISPLAY_RANG... |
VERSION bump to version 1.4.126 | @@ -46,7 +46,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 125)
+set(SYSREPO_MICRO_VERSION 126)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_... |
fix inputoverlay, better animation | @@ -22,7 +22,9 @@ class InputOverlay(Images):
self.clicked_called = False
self.going_down_frame = False
self.going_up_frame = False
+ self.already_down = False
+ self.scale = scale
self.n = '0'
self.color = (0, 0, 0)
@@ -41,9 +43,9 @@ class InputOverlay(Images):
def prepare_buttons(self):
color = [255, 255, 0]
self.but... |
Fix no-dtls builds
Commits in master and in 1.1.0 broke the no-dtls build
by moving the position of a "#endif" for OPENSSL_NO_DTLS in a change
which is otherwise unrelated to DTLS. This puts it back to where it was. | @@ -138,9 +138,14 @@ static const char *session_id_prefix = NULL;
#ifndef OPENSSL_NO_DTLS
static int enable_timeouts = 0;
static long socket_mtu;
-static int dtlslisten = 0;
#endif
+/*
+ * We define this but make it always be 0 in no-dtls builds to simplify the
+ * code.
+ */
+static int dtlslisten = 0;
+
static int ea... |
common/i2c_peripheral.c: Format with clang-format
BRANCH=none
TEST=none | @@ -29,6 +29,5 @@ static enum ec_status i2c_get_protocol_info(struct host_cmd_handler_args *args)
return EC_SUCCESS;
}
-DECLARE_HOST_COMMAND(EC_CMD_GET_PROTOCOL_INFO,
- i2c_get_protocol_info,
+DECLARE_HOST_COMMAND(EC_CMD_GET_PROTOCOL_INFO, i2c_get_protocol_info,
EC_VER_MASK(0));
|
HLS: Add labels | @@ -158,6 +158,8 @@ static void read_table1(snap_membus_t *mem, table1_t t1[TABLE1_SIZE],
snap_4KiB_t buf;
snap_4KiB_init(&buf, mem);
+
+ read_table1_loop:
for (i = 0; i < t1_used; i++) {
snap_membus_t b[2];
@@ -176,6 +178,8 @@ static void read_table2(snap_membus_t *mem, table2_t t2[TABLE2_SIZE],
snap_4KiB_t buf;
snap_... |
bin: do not initialize logging, moved to engine (fix | @@ -481,6 +481,7 @@ int main(int argc, char **argv)
/* Initialize sockets */
WSADATA wsaData;
int err;
+
err = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (err != 0) {
fprintf(stderr, "WSAStartup failed with error: %d\n", err);
@@ -622,15 +623,6 @@ int main(int argc, char **argv)
flb_banner();
- /* Logging */
- if (config... |
Adding kconfig flag for enabling matrix polling (vs interrupts) on the matrix gpio driver. | @@ -9,6 +9,10 @@ config ZMK_KSCAN_GPIO_POLLING
bool "Poll for key event triggers instead of using interrupts"
default n
+config ZMK_KSCAN_GPIO_MATRIX_POLLING
+ bool "Poll for key event triggers instead of using interrupts on matrix boards."
+ default n
+
endif
config ZMK_KSCAN_INIT_PRIORITY
|
Don't forget to free the protection context | @@ -1352,6 +1352,8 @@ int retry_protection_v2_test()
DBG_PRINTF("%s", "Wrong retry packet value");
ret = -1;
}
+
+ picoquic_aead_free(&v2_sample_retry);
}
return ret;
|
Added sceSharedFB group in doxygen doc. | *
* \defgroup SceVideoDec Video Decoding Library
* Decode Sony AVC MP4 video format
+ *
+ * \defgroup SceSharedFb Shared Framebuffer Library
+ * System apps framebuffer related functions.
* \}
*
*
|
show info about internal errors if wlandump-ng terminates (if compiled with GPIO support | @@ -1167,7 +1167,7 @@ if(signo == TT_SIGUSR1)
}
else
{
- printf("\nterminated...\e[?25h\n", internalpcaperrors);
+ printf("\nterminated (internal errors: %d)...\e[?25h\n", internalpcaperrors);
exit (EXIT_SUCCESS);
}
}
|
Get rid of warning in comparison between signed and unsigned value | @@ -4591,7 +4591,7 @@ Image_convolve(VALUE self, VALUE order_arg, VALUE kernel_arg)
// Convert the kernel array argument to an array of doubles
kernel = (double *)ALLOC_N(double, order*order);
- for (x = 0; x < order*order; x++)
+ for (x = 0; x < (unsigned)(order * order); x++)
{
VALUE element = rb_ary_entry(kernel_arg... |
Integrate changes from r353292 of the FreeBSD tree. | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.c 342872 2019-01-09 01:11:19Z glebius $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_bsd_addr.c 353292 2019-10-07 22:40:05Z glebius $");
#endif
#include <netinet/sctp_os.h>
@@ -569,6 +569,7 @@ sctp_init_ifns_for_vrf(int vrfid... |
sysdeps/managarm: Upgrade symlink() -> symlinkat() | @@ -210,12 +210,17 @@ int sys_mkdirat(int dirfd, const char *path, mode_t mode) {
}
int sys_symlink(const char *target_path, const char *link_path) {
+ return sys_symlinkat(target_path, AT_FDCWD, link_path);
+}
+
+int sys_symlinkat(const char *target_path, int dirfd, const char *link_path) {
SignalGuard sguard;
HelActi... |
apps/builtin: Modify Makefile to delete tdat file
Builtin makes tdat file to save TASH task informations, priority and stacksize.
But it doesn't delete them after using by missing codes in Makefile.
When user calls update or clean, they will be deleted. | @@ -61,6 +61,7 @@ all:
.updated: $(DEPCONFIG)
$(call DELFILE, *.bdat)
$(call DELFILE, *.pdat)
+ $(call DELFILE, *.tdat)
$(Q) touch .updated
# This must run before any other context target
@@ -77,4 +78,5 @@ clean:
distclean: clean
$(call DELFILE, *.bdat)
$(call DELFILE, *.pdat)
+ $(call DELFILE, *.tdat)
$(call DELFILE, ... |
working, seems slower than posv and worse numerics | @@ -242,7 +242,6 @@ void update_factorization(Accel * a, scs_int idx) {
BLAS(rot)(&twol, &(Q[2 * l * (k - 1)]), &one, u, &one, &c, &s);
/* Walk up the spike, R finishes upper Hessenberg */
- // TODO memory stomping in here:
for (i = k; i > idx + 1; --i) {
scs_int ridx = k * idx + i - 1;
scs_float r1 = R[ridx - 1];
@@ -... |
Add comments to explan the purpose of the reference component | @@ -2041,6 +2041,9 @@ component_test_psa_crypto_config_accel_hash () {
make test
}
+# Note that component_test_psa_crypto_config_reference_hash_use_psa
+# is related to this component and both components need to be kept in sync.
+# For details please see comments for component_test_psa_crypto_config_reference_hash_use_... |
Fix stats printing in dualRXTX example
misplaced ifdef was causing stats to be printed every
iteration instead of every 1s when GNU plot is disabled | @@ -173,9 +173,9 @@ int main(int argc, char** argv)
//Print stats every 1s
if (chrono::high_resolution_clock::now() - t2 > chrono::seconds(1))
{
+ t2 = chrono::high_resolution_clock::now();
#ifdef USE_GNU_PLOT
//Plot samples
- t2 = chrono::high_resolution_clock::now();
gp.write("plot '-' with points title 'ch 0'");
for... |
Push the env before specializing the proto type. | @@ -1965,6 +1965,7 @@ specializeimpl(Node *n)
namestr(t->name), ctxstr(n));
/* infer and unify types */
+ pushenv(proto->decl.env);
verifytraits(n, t->param, n->impl.type);
subst = mksubst();
substput(subst, t->param, n->impl.type);
@@ -1972,6 +1973,7 @@ specializeimpl(Node *n)
substput(subst, t->aux[j], n->impl.aux[j]... |
Update DRBG CHANGES section
GH: | Some of its new features are:
o Support for multiple DRBG instances with seed chaining.
- o Add a public DRBG instance for the default RAND method.
- o Add a dedicated DRBG instance for generating long term private keys.
- o Make the DRBG instances fork-safe.
+ o The default RAND method makes use of a DRBG.
+ o There i... |
Fixed clear the H7 dual bank flag | @@ -1664,7 +1664,7 @@ int stlink_load_device_params(stlink_t *sl) {
// H7 devices with small flash has one bank
if (sl->chip_flags & CHIP_F_HAS_DUAL_BANK &&
sl->flash_type == STLINK_FLASH_TYPE_H7) {
- if ((flash_size / sl->flash_pgsz) <= 1)
+ if ((sl->flash_size / sl->flash_pgsz) <= 1)
sl->chip_flags &= ~CHIP_F_HAS_DUA... |
docs - add quick links to using resource groups subtopics | <p>You can use resource groups to manage the number of active queries that may execute
concurrently in your Greenplum Database cluster. With resource groups, you can also manage the
amount of CPU and memory resources Greenplum allocates to each query.</p>
+ <p>This topic includes the following subtopics:</p>
+ <ul id="... |
Fix test_utf8_in_cdata_section_2() to work in builds | @@ -6514,7 +6514,11 @@ END_TEST
START_TEST(test_utf8_in_cdata_section_2)
{
const char *text = "<doc><![CDATA[\xc3\xa9]\xc3\xa9two]]></doc>";
- const XML_Char *expected = "\xc3\xa9]\xc3\xa9two";
+#ifdef XML_UNICODE
+ const XML_Char *expected = XCS("\x00e9]\x00e9two");
+#else
+ const XML_Char *expected = XCS("\xc3\xa9]\x... |
Fix subtype in PartitionTable.find_by_type
Fix ptype->subtype
Closes | @@ -160,7 +160,7 @@ class PartitionTable(list):
subtype = SUBTYPES[int(ptype)][subtype]
except KeyError:
try:
- ptype = int(ptype, 0)
+ subtype = int(subtype, 0)
except TypeError:
pass
|
If connection is in closing mode, still allow closed callback event | @@ -65,6 +65,8 @@ static espr_t espi_process_sub_cmd(esp_msg_t* msg, uint8_t is_ok, uint8_t is_err
*/
#define CONN_SEND_DATA_FREE(m) do { \
if ((m)->msg.conn_send.fau) { \
+ (m)->msg.conn_send.fau = 0; \
+ ESP_DEBUGF(ESP_CFG_DBG_CONN | ESP_DBG_TYPE_TRACE, "CONN: Free write buffer fau: %p\r\n", (void *)(m)->msg.conn_sen... |
Turn off wireless power management, from D. DeMartini. | @@ -11,6 +11,7 @@ iface wlan0 inet static
address 192.168.10.1
netmask 255.255.255.0
post-up /usr/sbin/stratux-wifi.sh
+ wireless-power off
#####################################################################
## Custom settings not for novice users!!!!!!
|
ipsec: fix coverity 249204
Zero-initialize the temporary struct, else coverity complains about a bunch of uninitialized fields.
Type: fix | @@ -480,7 +480,7 @@ ipsec_sad_entry_add_v3 (const vl_api_ipsec_sad_entry_v3_t *entry,
ipsec_protocol_t proto;
ipsec_sa_flags_t flags;
u32 id, spi;
- tunnel_t tun;
+ tunnel_t tun = { 0 };
int rv;
id = ntohl (entry->sad_id);
|
TCPMv2: PD Timers - Add PE BistContMode to framework
BRANCH=none
TEST=make runtests
Tested-by: Denis Brockus | @@ -644,15 +644,6 @@ static struct policy_engine {
*/
uint64_t ps_source_timer;
- /*
- * In BIST_TX mode, this timer is used by a UUT to ensure that a
- * Continuous BIST Mode (i.e. BIST Carrier Mode) is exited in a timely
- * fashion.
- *
- * In BIST_RX mode, this timer is used to give the port partner time
- * to res... |
build: bump to v1.0.0 | @@ -23,8 +23,8 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/library")
# Fluent Bit Version
-set(FLB_VERSION_MAJOR 0)
-set(FLB_VERSION_MINOR 15)
+set(FLB_VERSION_MAJOR 1)
+set(FLB_VERSION_MINOR 0)
set(FLB_VERSION_PATCH 0)
set(FLB... |
[hardware] Fix redefinition of parameters | @@ -33,14 +33,6 @@ module mempool_tb_verilator (
localparam BootAddr = 0;
`endif
- localparam BankingFactor = 4;
- localparam addr_t TCDMBaseAddr = '0;
- localparam TCDMSizePerBank = 1024 /* [B] */;
- localparam NumTiles = NumCores / NumCoresPerTile;
- localparam NumTilesPerGroup = NumTiles / NumGroups;
- localparam Nu... |
Do not call codec.stop() on exception
On exception, the codec is not in a state were .stop() can be called. | @@ -71,8 +71,9 @@ public class ScreenEncoder implements Device.RotationListener {
codec.start();
try {
alive = encode(codec, fd);
- } finally {
+ // do not call stop() on exception, it would trigger an IllegalStateException
codec.stop();
+ } finally {
destroyDisplay(display);
codec.release();
surface.release();
|
interface: amend sidebar to use 'adjust' | @@ -70,7 +70,7 @@ export function SidebarListHeader(props: {
</FormikOnBlur>
}
>
- <Icon color="gray" icon="Menu" />
+ <Icon color="gray" icon="Adjust" />
</Dropdown>
</Row>
);
|
gimme for grab | @@ -348,22 +348,42 @@ static void grab_set(t_grab *x, t_symbol *s){
x->x_rcv_name = s;
}
-static void *grab_new(t_floatarg f, t_symbol *s){
+static void *grab_new(t_symbol *s, int ac, t_atom *av){
t_grab *x = (t_grab *)pd_new(grab_class);
- int noutlets = f < 1 ? 1 : (int)f;
+ int noutlets = 1;
+ int rightout = 1;
+ x-... |
Add link to blog article in README | @@ -230,3 +230,7 @@ Read the [developers page].
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+
+## Article
+
+- [Introducing scrcpy](https://blog.rom1v.com/2018/03/introducing-scrcpy/)
|
pyocf: add volume submit_flush() and submit_discard() | @@ -102,6 +102,12 @@ class Io(Structure):
def submit_discard(self):
return OcfLib.getInstance().ocf_volume_submit_discard(byref(self))
+ def submit_flush(self):
+ return OcfLib.getInstance().ocf_volume_submit_flush(byref(self))
+
+ def submit_discard(self):
+ return OcfLib.getInstance().ocf_volume_submit_discard(byref(... |
guard stdio_uart_init_full with LIB_PICO_STDUI_UART as the function doesn't exist otherwise | @@ -127,7 +127,7 @@ void board_init(void)
#ifndef BUTTON_BOOTSEL
#endif
-#ifdef UART_DEV
+#if defined(UART_DEV) && defined(LIB_PICO_STDIO_UART)
bi_decl(bi_2pins_with_func(UART_TX_PIN, UART_TX_PIN, GPIO_FUNC_UART));
uart_inst = uart_get_instance(UART_DEV);
stdio_uart_init_full(uart_inst, CFG_BOARD_UART_BAUDRATE, UART_TX... |
framework/task_manager: Add pthread_detach after pthread_create and Remove it in task_manager_stop
Without pthread_detach, pjoin will be remained and it can be leak.
Because of adding pthread_detach after pthread creation, pthread_detach after task_manager_stop is not needed anymore. | @@ -337,6 +337,7 @@ static int taskmgr_start(int handle, int caller_pid)
return TM_OPERATION_FAIL;
}
pthread_setname_np(thread, pthread_info->name);
+ pthread_detach(thread);
pid = (int)thread;
}
#endif
@@ -416,7 +417,6 @@ static int taskmgr_stop(int handle, int caller_pid)
}
#ifndef CONFIG_DISABLE_PTHREAD
else {
- (vo... |
Fix the wrong comparison for sort space type and the type.(closes
This resolves Thanks Lirong Jian for the inital PR
Details:
Fixed a typo of string comparison in cdbexplain
Fix the typo for UNINITIALIZED_SORT.
Add new method to convert sort space type str to enum. | */
typedef enum
{
- UNINITALIZED_SORT = 0,
+ UNINITIALIZED_SORT = 0,
TOP_N_HEAP_SORT = 1,
QUICK_SORT = 2,
EXTERNAL_SORT = 3,
@@ -336,9 +336,10 @@ static int
* in tuplesort.c / tuplesort_mk.c
*/
static ExplainSortMethod
-String2ExplainSortMethod(const char* sortMethod) {
+String2ExplainSortMethod(const char* sortMethod)... |
frsky: overflow handling druing bind | @@ -169,6 +169,11 @@ static uint8_t tune_rx(uint8_t iteration) {
if (len == 0) {
return 0;
}
+ if (len > 35) {
+ cc2500_strobe(CC2500_SFRX);
+ return 0;
+ }
+
if (packet[len - 1] & 0x80) {
if (packet[2] == 0x01) {
uint8_t lqi = packet[len - 1] & 0x7F;
@@ -199,6 +204,10 @@ static uint8_t get_bind1() {
if (len == 0) {
re... |
avf: fix feature arc | @@ -265,6 +265,9 @@ avf_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
next_index = ad->per_interface_next_index;
vlib_get_new_next_frame (vm, node, next_index, to_next, n_left_to_next);
+ if (PREDICT_FALSE (vnet_device_input_have_features (ad->sw_if_index)))
+ vnet_feature_start_device_input_x1 (ad... |
Skip certificate check when downloading orca from github
Older platforms are behind in certificates with the recent change in
upstream github for the allowable TLS versions when clients connect. | @@ -121,7 +121,7 @@ sync_tools: opt_write_test /opt/releng/apache-ant
-Divyrepo.user=$(IVYREPO_USER) -Divyrepo.passwd="$(IVYREPO_PASSWD)" -quiet resolve);
ifeq "$(findstring aix,$(BLD_ARCH))" ""
- LD_LIBRARY_PATH='' wget -q -O - https://github.com/greenplum-db/gporca/releases/download/v2.55.2/bin_orca_centos5_release.t... |
fix wrong state changes. | @@ -1129,10 +1129,6 @@ port_INLINE void activity_ti2() {
ieee154e_vars.radioOnThisSlot=TRUE;
// change state
changeState(S_TXDATAREADY);
-#ifdef SLOT_FSM_IMPLEMENTATION_MULTIPLE_TIMER_INTERRUPT
- // update state in advance
- changeState(S_TXDATADELAY);
-#endif
}
port_INLINE void activity_tie1() {
|
DDF: Read attr/swversion | "access": "R",
"public": true,
"description": "Firmware version of the device.",
- "parse": {"fn": "zcl", "ep": 255, "cl": "0x0000", "at": "0x4000", "eval": "Item.val = Attr.val"}
+ "parse": {"fn": "zcl", "ep": 255, "cl": "0x0000", "at": "0x4000", "eval": "Item.val = Attr.val"},
+ "read": {"fn": "zcl", "ep": 0, "cl": "... |
Move Requests to XHRs so page doesn't reload | @@ -195,12 +195,9 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
}
ets_strcat(resp,"<br/>Set USB Mode:"
- "<button onclick=\"location.href='/dcp'\" type='button'>"
- "DCP</button>"
- "<button onclick=\"location.href='/cdp'\" type='button'>"
- "CDP</button>"
- "<button onclick=\"locati... |
zork: Disable Host command and Fan channels
These are pretty annoying. Lets disable them by default.
BRANCH=none
TEST=Booted trembyle and didn't see messages | #define CONFIG_SPI_FLASH_REGS
#define CONFIG_SPI_FLASH_W25Q40 /* Internal SPI flash type. */
+#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_HOSTCMD) | CC_MASK(CC_PWM)))
+
/*
* Enable 1 slot of secure temporary storage to support
* suspend/resume with read/write memory training.
|
docs: reverts commit
Revert "docs: test removal of dhcp interface setting for sles12 sp4" | [sms](*\#*) perl -pi -e "s/device = eth1/device = ${sms_eth_internal}/" /etc/warewulf/provision.conf
# Configure DHCP server to use desired internal interface
-#[sms](*\#*) perl -pi -e "s/^DHCPD_INTERFACE=\S+/DHCPD_INTERFACE=${sms_eth_internal}/" /etc/sysconfig/dhcpd
+[sms](*\#*) perl -pi -e "s/^DHCPD_INTERFACE=\S+/DHC... |
HV: remove redundant code in cpu_secondary_init
cpu_find_logical_id() is called redundantly, remove one.
Acked-by: Eddie Dong | @@ -554,12 +554,8 @@ void cpu_secondary_init(void)
early_init_lapic();
/* Find the logical ID of this CPU given the LAPIC ID
- * temp_logical_id =
- * cpu_find_logical_id(get_cur_lapic_id());
+ * and Set state for this CPU to initializing
*/
- cpu_find_logical_id(get_cur_lapic_id());
-
- /* Set state for this CPU to in... |
fixed auto-resizing of blog title input field | @@ -40,6 +40,8 @@ export class NewBlog extends Component {
this.returnHome = this.returnHome.bind(this);
this.addInvites = this.addInvites.bind(this);
this.blogSubmit = this.blogSubmit.bind(this);
+
+ this.titleHeight = 52;
}
blogSubmit() {
@@ -109,6 +111,11 @@ export class NewBlog extends Component {
}
titleChange(evt... |
Remove ptrace calls from Linux process scan
Attaching to the target process is not necessary to read its memory
via the /proc/$PID/{maps,mem} interface.
Using PTRACE_ATTACH caused the target process to be halted during the
scan, making it risky to use YARA memory scans on production Linux
systems. | @@ -33,16 +33,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <inttypes.h>
#include <unistd.h>
#include <sys/types.h>
-#include <sys/ptrace.h>
#include <sys/wait.h>
#include <errno.h>
-#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
-#define PTRACE_ATTACH PT_A... |
Fix warning and reformat test-rules.c | @@ -1583,16 +1583,34 @@ static void test_of()
ERROR_INVALID_PERCENTAGE);
assert_true_rule(
- "rule test { strings: $a1 = \"dummy\" $a2 = \"issi\" condition: 50% of them }",
+ "rule test { \
+ strings: \
+ $a1 = \"dummy\" \
+ $a2 = \"issi\" \
+ condition: \
+ 50% of them \
+ }",
"mississippi");
// This is equivalent to ... |
restore radio default protocol | // *************Receiver protocol selection
-//#define RX_UNIFIED_SERIAL
-#define RX_SBUS
+#define RX_UNIFIED_SERIAL
+//#define RX_SBUS
//#define RX_CRSF //Requires tbs firmware v2.88 or newer for failsafe to operate properly
//#define RX_IBUS
//#define RX_FPORT
|
CLA: trivial
Fix coding style | void policy_data_free(X509_POLICY_DATA *data)
{
- if (!data)
+ if (data == NULL)
return;
ASN1_OBJECT_free(data->valid_policy);
/* Don't free qualifiers if shared */
@@ -40,11 +40,11 @@ X509_POLICY_DATA *policy_data_new(POLICYINFO *policy,
{
X509_POLICY_DATA *ret;
ASN1_OBJECT *id;
- if (!policy && !cid)
+ if (policy == ... |
Change MCF download link | official repo : http://archive.apache.org/dist/manifoldcf/apache-manifoldcf-${mcf.version}/apache-manifoldcf-${mcf.version}-bin.tar.gz
Datafari repo : http://repomcf.datafari.com/mcf/apache-manifoldcf-${mcf.version}-dev-bin-${mcf.commit.number}.tar.gz
-->
- <url>https://www-eu.apache.org/dist/manifoldcf/apache-manifold... |
out_loki: use new upstream prototype for tls handling | @@ -562,7 +562,7 @@ static struct flb_loki *loki_config_create(struct flb_output_instance *ins,
ins->host.name,
ins->host.port,
io_flags,
- &ins->tls);
+ ins->tls);
if (!upstream) {
return NULL;
}
|
fstore: force usage of stream name | @@ -480,7 +480,7 @@ void flb_fstore_dump(struct flb_fstore *fs)
printf("- stream: %s\n", fs_stream->name);
mk_list_foreach(f_head, &fs_stream->files) {
fsf = mk_list_entry(f_head, struct flb_fstore_file, _head);
- printf(" %s/%s\n", fs_stream->name, fsf->name);
+ printf(" %s/%s\n", fsf->stream->name, fsf->name);
}
}
pr... |
don't assume .git directory when downloading dependency | @@ -38,7 +38,7 @@ function _checkout(package, url, sourcedir, url_alias)
-- use previous source directory if exists
local packagedir = path.join(sourcedir, package:name())
- if os.isdir(packagedir) and
+ if os.isdir(path.join(packagedir, ".git")) and
not (option.get("force") and package:branch()) then -- we need disabl... |
Remove checks for old versions of Ruby. | #include <libxml/xmlreader.h>
#include <libxml/c14n.h>
-/* Needed prior to Ruby 1.9.1 */
-#ifndef RHASH_TBL
-#define RHASH_TBL(s) (RHASH(s)->tbl)
-#endif
-
-// Encoding support added in Ruby 1.9.*
-#ifdef HAVE_RUBY_ENCODING_H
#include <ruby/encoding.h>
-#endif
#ifdef LIBXML_DEBUG_ENABLED
#include <libxml/xpathInternals... |
Add dark window frame support for dark theme (RS5 and above) | @@ -160,6 +160,19 @@ VOID PhInitializeWindowTheme(
SetWindowLongPtr(WindowHandle, GWLP_WNDPROC, (LONG_PTR)PhpThemeWindowSubclassProc);
}
+ // Enable dark window frame support (undocumented RS5 feature).
+ switch (PhpThemeColorMode)
+ {
+ case 0: // New colors
+ if (WindowsVersion >= WINDOWS_10_RS5)
+ RemoveProp(WindowH... |
host/mesh: fix label logging in mod_sub_va | @@ -2030,7 +2030,7 @@ static int mod_sub_va(uint32_t op, uint16_t net_idx, uint16_t addr, uint16_t ele
}
BT_DBG("net_idx 0x%04x addr 0x%04x elem_addr 0x%04x label %s",
- net_idx, addr, elem_addr, label);
+ net_idx, addr, elem_addr, bt_hex(label, 16));
BT_DBG("mod_id 0x%04x cid 0x%04x", mod_id, cid);
bt_mesh_model_msg_i... |
doc ver update to 4.0.2 | @@ -53,7 +53,7 @@ These SDK libraries are managed by CARTO and include all the required libraries
// Add to your build.gradle file:
dependencies {
- compile 'com.carto:carto-mobile-sdk:4.0.1@aar'
+ compile 'com.carto:carto-mobile-sdk:4.0.2@aar'
}
{% endhighlight %}
@@ -64,7 +64,7 @@ These SDK libraries are managed by C... |
pbio/virtual/physics: Avoid simulation on read.
We'll stick to simulating on actuation only.
This was causing the simulation to call itself recursively if simulation was called on short intervals.
This was preventing the robot from working with the normal wall clock or a fuzzy counting clock. | @@ -152,10 +152,5 @@ class SimulationModel(ABC):
ratio = (time - self.times[i - 1]) / (self.times[i] - self.times[i - 1])
return self.outputs[:, i - 1] + ratio * (self.outputs[:, i] - self.outputs[:, i - 1])
- # If time is farther into the future than our tolerance, simulate up
- # to the given time. Otherwise we avoid... |
Fix comment in initCtl to match code behavior. | @@ -2814,12 +2814,13 @@ initCtl(config_t *cfg)
* and the config file to:
*
* - use a single IP:port/UNIX socket for events, metrics & remote commands
- * - set metrics to use ndjson
* - use a separate connection over the single IP:port/UNIX socket for payloads
* - include the abbreviated json header for payloads
- * - ... |
Don't need vulkan hooking in kiero | @@ -50,10 +50,6 @@ void renderTypes() {
{
render_types.push_back(kiero::RenderType::OpenGL);
}
- if (::GetModuleHandle(KIERO_TEXT("vulkan-1.dll")) != NULL)
- {
- render_types.push_back(kiero::RenderType::Vulkan);
- }
for (auto& _type : render_types)
kiero::init(_type);
}
|
s390x assembly pack: fix OPENSSL_s390xcap z15 cpu mask | @@ -578,7 +578,8 @@ static int parse_env(struct OPENSSL_s390xcap_st *cap)
S390X_CAPBIT(S390X_VX)
| S390X_CAPBIT(S390X_VXD)
| S390X_CAPBIT(S390X_VXE)
- | S390X_CAPBIT(S390X_MSA8),
+ | S390X_CAPBIT(S390X_MSA8)
+ | S390X_CAPBIT(S390X_MSA9),
0ULL},
/*.kimd = */{S390X_CAPBIT(S390X_QUERY)
| S390X_CAPBIT(S390X_SHA_1)
@@ -642,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.