message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
avois warning on library build | @@ -44,7 +44,7 @@ DEP_LIB := $(OBJ_LIB:.o=.d)
LST_LIB := $(SRC_LIB_C:.c=.lst)
INCS_LIB := -I$(INCLUDE_LIB) -I$(SRC_LIB) -I$(RES_LIB)
-DEFAULT_FLAGS_LIB := -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin $(INCS_LIB) -B$(BIN)
+DEFAULT_FLAGS_LIB := -m68000 -Wall -Wextra -Wno-shift-negative-value -fno-builtin ... |
add timer to metric types | @@ -46,6 +46,7 @@ func (mt MetricType) String() string {
var metricTypesToCodes map[string]MetricType = map[string]MetricType{
"counter": Count,
"gauge": Gauge,
+ "timer": Timer,
}
// Reader reads dogstatsd metrics from a file
|
driver/usb_mux/pi3usb3x532.h: Format with clang-format
BRANCH=none
TEST=none | * dp0-1 : rx1, tx1
* hpd+/-: rfu2, rfu1
*/
-#define PI3USB3X532_MODE_DP_USB_SWAP (PI3USB3X532_MODE_DP_USB | \
- PI3USB3X532_BIT_SWAP)
+#define PI3USB3X532_MODE_DP_USB_SWAP \
+ (PI3USB3X532_MODE_DP_USB | PI3USB3X532_BIT_SWAP)
/* Get Vendor ID */
int pi3usb3x532_check_vendor(const struct usb_mux *me, int *val);
|
Add module feature in KConfig. | @@ -118,14 +118,11 @@ menu "Memory Management"
if RT_USING_HEAP
- choice USING_HEAP
-
config RT_USING_SMALL_MEM
bool "The memory management for small memory"
config RT_USING_SLAB
bool "Using SLAB memory management for large memory"
- endchoice
endif
@@ -153,4 +150,8 @@ menu "Kernel Device Object"
endmenu
+config RT_USI... |
btc: fix issue with channel-js part 2 | @@ -3,7 +3,7 @@ import { store } from './store';
export class Subscription {
start() {
- if (api.authTokens) {
+ if (api.ship) {
this.initializeBtcWallet();
this.initializeCurrencyPoll();
} else {
@@ -12,7 +12,8 @@ export class Subscription {
}
initializeBtcWallet() {
- api.bind('/all', 'PUT', api.authTokens.ship, 'btc... |
update requirements for using appscope | @@ -38,19 +38,13 @@ AppScope 1.2, Cribl Stream 4.0, Cribl Edge 4.0, and Cribl Search 1.0 are mutuall
### Known Limitations
-**Only** these runtimes are supported:
-
-- Open JVM 7 and later, Oracle JVM 7 and later, go1.9 through go1.19.
-
AppScope cannot:
- Unload the libscope library, once loaded.
- Instrument static e... |
Use Y_PYTHON as executable name/prefix when sys.executable is empty.
Otherwise the importer accepts importing anything. | @@ -11,7 +11,7 @@ import __res as __resource
env_entry_point = 'Y_PYTHON_ENTRY_POINT'
env_source_root = 'Y_PYTHON_SOURCE_ROOT'
-executable = sys.executable
+executable = sys.executable or 'Y_PYTHON'
sys.modules['run_import_hook'] = __resource
find_py_module = lambda mod: __resource.find('/py_modules/' + mod)
|
Get rid of unsigned integer overflow in column calculation
While unsigned integer overflow is well-defined, Android sanitizers treat it
as an error. We also have some in the SipHash implementation but those won't
be easy to get rid of. | @@ -1768,13 +1768,14 @@ PREFIX(updatePosition)(const ENCODING *enc, const char *ptr, const char *end,
# define LEAD_CASE(n) \
case BT_LEAD##n: \
ptr += n; \
+ pos->columnNumber++; \
break;
LEAD_CASE(2)
LEAD_CASE(3)
LEAD_CASE(4)
# undef LEAD_CASE
case BT_LF:
- pos->columnNumber = (XML_Size)-1;
+ pos->columnNumber = 0;
p... |
Sort tests when generating cases | @@ -82,7 +82,7 @@ class BaseTarget:
@classmethod
def generate_tests(cls):
"""Generate test cases for the target subclasses."""
- for subclass in cls.__subclasses__():
+ for subclass in sorted(cls.__subclasses__(), key=lambda c: c.__name__):
yield from subclass.generate_tests()
|
session BUGFIX avoid unsafe variable reading
Fixes | @@ -283,11 +283,6 @@ nc_session_rpc_lock(struct nc_session *session, int timeout, const char *func)
}
}
} else if (!timeout) {
- if (*session->opts.server.rpc_inuse) {
- /* immediate timeout */
- return 0;
- }
-
/* LOCK */
ret = pthread_mutex_trylock(session->opts.server.rpc_lock);
if (!ret) {
|
readme: Fix links to gadgets documentation.
Fixes: ("docs: Rename guides to gadgets") | @@ -28,35 +28,35 @@ Inspektor Gadget tools are known as gadgets. You can deploy one, two or many gad
Explore the following documentation to find out which tools can help you in your investigations.
- `advise`:
- - [`network-policy`](docs/guides/advise/network-policy.md)
- - [`seccomp-profile`](docs/guides/advise/seccom... |
testcase/filesystem : Test more negative cases of setvbuf()
1. Fail to file open
2. Invalid mode check
3. If a buffer pointer is provided, then it must have a non-zero size
4. Reuse buffer
5. EBUSY test
IMXRT1050-EVKB log :
[tc_libc_stdio_setvbuf] PASS | @@ -2445,12 +2445,44 @@ static void tc_libc_stdio_setvbuf(void)
char buffer[64];
char *filename = VFS_FILE_PATH;
int ret;
+ int fp_fd;
/* setvbuf_test: DEFAULT buffering */
fp = fopen(filename, "w");
TC_ASSERT_NEQ("fopen", fp, NULL);
+ /* setvbuf_test: fail to file open */
+
+ fp_fd = fp->fs_fd;
+ fp->fs_fd = ERROR;
+ ... |
tests: Use 0.5 msec flush interval instead of 1 sec
This reflects the feeback in the pull request. Modify to use a sub-
second flush interval and revise the test schedule accordingly. | @@ -95,41 +95,35 @@ void do_test(char *system, ...)
TEST_CHECK(out_ffd >= 0);
TEST_CHECK(flb_output_set(ctx, out_ffd, "match", "test", NULL) == 0);
- TEST_CHECK(flb_service_set(ctx, "Flush", "3",
+ TEST_CHECK(flb_service_set(ctx, "Flush", "0.5",
"Grace", "1",
NULL) == 0);
/* The following test tries to check if an inpu... |
Run All: Allow script to access terminal directly
Before this change the output of `ninja run_all` was buffered.
Consequently we could not see which sub-command caused problems if we
terminated the script before it finished. This behaviour was especially
problematic, if Travis killed the script cause it ran for too lon... | @@ -35,10 +35,15 @@ macro (do_test source)
)
endmacro (do_test)
+if (NOT CMAKE_VERSION VERSION_LESS 3.2)
+ set (USES_TERMINAL USES_TERMINAL)
+endif (NOT CMAKE_VERSION VERSION_LESS 3.2)
+
add_custom_target(run_all
COMMAND "${CMAKE_SOURCE_DIR}/scripts/run_all"
"$<CONFIGURATION>"
- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")... |
Always use TLSv1.0 for record layer version in TLSv1.3
TLSv1.3 freezes the record layer version and ensures that it is always set
to TLSv1.0. Some implementations check this. | @@ -784,7 +784,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
/* Clear our SSL3_RECORD structures */
memset(wr, 0, sizeof wr);
for (j = 0; j < numpipes; j++) {
- unsigned int version = s->version;
+ unsigned int version = SSL_IS_TLS13(s) ? TLS1_VERSION : s->version;
unsigned char *compressdata = NUL... |
Add some string/check-set tests. | (assert (deep= (parser/status p) (parser/status p2)) "parser 2")
(assert (deep= (parser/state p) (parser/state p2)) "parser 3")
+# String check-set
+(assert (string/check-set "abc" "a") "string/check-set 1")
+(assert (not (string/check-set "abc" "z")) "string/check-set 2")
+(assert (string/check-set "abc" "abc") "strin... |
updating nagios core to v4.3.1 | %global _hardened_build 1
Name: %{pname}%{PROJ_DELIM}
-Version: 4.1.1
+Version: 4.3.1
Release: 1%{?dist}
Summary: Host/service/network monitoring program
Group: %{PROJ_NAME}/admin
|
Rename conn_send_client_initial as conn_write_client_initial | @@ -1047,8 +1047,8 @@ static ssize_t conn_write_handshake_ack_pkt(ngtcp2_conn *conn, uint8_t *dest,
}
/*
- * conn_send_client_initial writes Client Initial packet in the buffer
- * pointed by |dest| whose length is |destlen|.
+ * conn_write_client_initial writes Client Initial packet in the
+ * buffer pointed by |dest|... |
gall: review cleanups | ?: ?=([* %pass * %g %deal * * %leave *] move)
=/ =wire p.move.move
?> ?=([%use @ @ %out @ @ *] wire)
- =/ short-wire t.t.t.t.t.t.wire
+ =/ sub-wire t.t.t.t.t.t.wire
=/ =dock [q.p q]:q.move.move
=. outbound.watches.yoke
- (~(del by outbound.watches.yoke) [short-wire dock])
+ (~(del by outbound.watches.yoke) [sub-wire do... |
brya: Remove duplicate keyboard support defines
This removes some duplicate keyboard defines that crept in from
splitting larger patches and merging. sorry.
BRANCH=none
TEST=buildall passes | #define CONFIG_EXTPOWER_GPIO
-/* Common Keyboard Defines */
-#define CONFIG_CMD_KEYBOARD
-#define CONFIG_KEYBOARD_BOARD_CONFIG
-#define CONFIG_KEYBOARD_COL2_INVERTED
-#define CONFIG_KEYBOARD_KEYPAD
-#define CONFIG_KEYBOARD_PROTOCOL_8042
-#ifdef CONFIG_KEYBOARD_VIVALDI
-#define CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI2
-#else... |
Conan build time optimization.
Build release version to avoid building everything. | @@ -21,7 +21,7 @@ jobs:
- name: Setup Conan Profile
run: |
conan profile new default --detect
- conan profile update settings.build_type=RelWithDebInfo default
+ conan profile update settings.build_type=Release default
- name: Install Dependencies
env:
CONAN_BUILD_OPTIONS: |
@@ -41,6 +41,9 @@ jobs:
source activate_run.... |
multiline: always validate stream_id with lru_parser | @@ -524,7 +524,6 @@ static int ml_append_try_parser(struct flb_ml_parser_ins *parser,
/* Parse incoming content */
ret = flb_parser_do(parser->ml_parser->parser, (char *) buf, size,
&out_buf, &out_size, &out_time);
-
if (flb_time_to_double(&out_time) == 0.0) {
flb_time_copy(&out_time, tm);
}
@@ -623,7 +622,8 @@ int flb... |
c2d2: increase the usart1_to_usb size
Set the usart1_to_usb size to 1024 to match the other consoles.
BRANCH=servo
TEST=none | @@ -220,7 +220,7 @@ static struct usart_config const usart1;
struct usb_stream_config const usart1_usb;
static struct queue const usart1_to_usb =
- QUEUE_DIRECT(128, uint8_t, usart1.producer, usart1_usb.consumer);
+ QUEUE_DIRECT(1024, uint8_t, usart1.producer, usart1_usb.consumer);
static struct queue const usb_to_usar... |
Fix use-after-free in deallocate_vmap | @@ -368,8 +368,9 @@ vmap allocate_vmap(rangemap rm, range q, struct vmap k)
void deallocate_vmap(rangemap rm, vmap vm)
{
if (vm->fsf) {
+ filesystem fs = fsfile_get_fs(vm->fsf);
fsfile_release(vm->fsf);
- filesystem_release(fsfile_get_fs(vm->fsf));
+ filesystem_release(fs);
}
deallocate(rm->h, vm, sizeof(struct vmap));... |
test: fix the e2e test to use the configured manifest | @@ -20,10 +20,10 @@ func (e *e2e) testCaseReDeployOperator([]string) {
e.seccompOnlyTestCase()
// Clean up the operator
- e.cleanupOperator(manifest)
+ e.cleanupOperator(e.operatorManifest)
// Deploy the operator again
- e.deployOperator(manifest)
+ e.deployOperator(e.operatorManifest)
}
func (e *e2e) testCaseReDeployN... |
denied to use toredis in new projects | @@ -160,3 +160,8 @@ ALLOW sandbox/projects/mail/Load/ShootingComparison -> contrib/python/jsonlib
ALLOW sandbox/projects/mail/Load/WebApiAmmoGen -> contrib/python/jsonlib
ALLOW sandbox/projects/mail/Load/WebApiShooting -> contrib/python/jsonlib
DENY .* -> contrib/python/jsonlib
+
+ALLOW antiadblock/libs/tornado_redis -... |
docs: explains when one should use "easy commit" | @@ -39,6 +39,9 @@ References:
# Easy Commit
+If you have problems to submit clean pull requests without introducing merge commits,
+you can use this method, otherwise please use your git commands.
+
This section explains how to submit changes and pull requests the easy
and cleanest way without causing any merge conflic... |
Reword documentation of CMAC operations
Change the wording of the documentation for some CMAC functions,
as the existing wording, while technically correct, can be
easy to misunderstand. The reworded docs explain the flow of
a CMAC computation a little more fully. | @@ -67,9 +67,17 @@ struct mbedtls_cmac_context_t
#endif /* !MBEDTLS_CMAC_ALT */
/**
- * \brief This function sets the CMAC key, and prepares to authenticate
+ * \brief This function starts a new CMAC computation
+ * by setting the CMAC key, and preparing to authenticate
* the input data.
- * Must be called with an init... |
tests/float/cmath_fun.py: Fix truncation of small real part of complex. | @@ -50,6 +50,6 @@ for f_name, f, test_vals in functions:
else:
# some test (eg cmath.sqrt(-0.5)) disagree with CPython with tiny real part
real = ret.real
- if abs(real) < 1e15:
+ if abs(real) < 1e-6:
real = 0.
print("complex(%.5g, %.5g)" % (real, ret.imag))
|
Enable PBR for Release builds | @@ -52,7 +52,6 @@ else()
set(CMAKE_BUILD_TYPE Debug)
add_definitions(
-DDEBUG_BUILD
- -DPLAYBACK_RECORD_SUPPORTED
)
endif()
@@ -114,6 +113,7 @@ add_definitions(
-DOS_BUILD
-DPCD_CACHE_ENABLED
-D__VERSION_NUMBER__=${IPMCTL_VERSION_STRING}
+ -DPLAYBACK_RECORD_SUPPORTED
)
if(MSVC)
|
libc: Partially support ADDFB2 ioctl | @@ -796,6 +796,7 @@ int socketpair(int domain, int type, int proto, int *fds) {
}
#include <libdrm/drm.h>
+#include <libdrm/drm_fourcc.h>
int ioctl(int fd, unsigned long request, void *arg) {
// frigg::infoLogger() << "mlibc: ioctl with"
@@ -1183,6 +1184,57 @@ int ioctl(int fd, unsigned long request, void *arg) {
retur... |
Support for ecbuild v3.4. Changes to ecbuild_add_option and REQUIRED_PACKAGES | @@ -99,10 +99,11 @@ ecbuild_add_option( FEATURE JPG_LIBOPENJPEG
CONDITION ENABLE_JPG
DEFAULT ON )
+find_package( PNG )
ecbuild_add_option( FEATURE PNG
DESCRIPTION "Support for PNG decoding/encoding"
DEFAULT OFF
- REQUIRED_PACKAGES PNG )
+ CONDITION PNG_FOUND )
if( HAVE_PNG )
set( HAVE_LIBPNG 1 ) # compatibility with au... |
khan: handle multiple %fards in one event | $>(?(%arow %avow) gift) :: thread result
== == ::
+$ khan-state ::
- [%0 hey=duct] :: current unix duct
+ $: %0 :: state v0
+ hey=duct :: unix duct
+ tic=@ud :: tid counter
+ == ::
-- ::
=>
|%
=* state -
|= [now=@da eny=@uvJ rof=roof]
=* khan-gate .
+=. tic 0
^?
|%
:: +call: handle a +task request
::
%fard
=/ tid=@ta
-... |
while we still have the in-process crash, default plugin session to
auto-start named pipe. For existing prefs, warn if it's set to in-process
and do auto-start pipe instead anyway, but don't modify the exisitng prefs. | @@ -168,10 +168,7 @@ namespace
{
OptionVars()
: asyncMode("AsynchronousMode", 1)
- , sessionType(
- "SessionType",
- static_cast<int>(HAPI_SESSION_INPROCESS)
- )
+ , sessionType( "SessionType", 2) // named pipe
, thriftServer("ThriftServer", "localhost")
, thriftPort("ThriftPort", 9090)
, sessionPipeCustom("SessionPipe... |
authors: add copy-on-write | @@ -161,7 +161,7 @@ notification system, I/O bindings
## Maximilian Irlinger
-documentation, Python bindings for elektraMerge
+documentation, Python bindings for elektraMerge, copy-on-write functionality of Key and KeySet
- email: max@maxirlinger.at
- GitHub user: [atmaxinger](https://github.com/atmaxinger)
|
ENHANCE: skip build_complete_strings() when nsegtok is 0. | @@ -579,9 +579,11 @@ int tokenize_sblocks(mblck_list_t *blist, int length, char delimiter, int keycnt
if (finish_flag == false) {
return -1; /* some errors */
}
+ if (nsegtok > 0) {
if (build_complete_strings(blist, segtoks, nsegtok, tokens, ntokens) != 0) {
return -2; /* out of memory */
}
+ }
return 0; /* OK */
}
#en... |
Add link to LLVM bug | @@ -473,6 +473,7 @@ ParallelRegion::Verify()
* is safe. Given an instruction reading from memory,
* IsLoadUnconditionallySafe should return whether it is safe under
* (unconditional, unpredicated) speculative execution.
+ * See https://bugs.llvm.org/show_bug.cgi?id=46666
*/
void
ParallelRegion::AddParallelLoopMetadata(... |
scripts: Ensure non-zero exit code on error | @@ -82,12 +82,12 @@ if [ "$EC2FASTINSTALL" = "true" ]; then
FASTINSTALL=true
echo "Using fast pre-compiled install for riscv-tools"
else
- echo "Error: hash of precompiled toolchain doesn't match the riscv-tools submodule hash."
- exit
+ error 'error: hash of precompiled toolchain does not match the riscv-tools submodu... |
added units for SeasonalClimate Files | @@ -305,10 +305,24 @@ def ProcessClimatefile(climatefile, data, body, GridOutputOrder):
def ProcessSeasonalClimatefile(prefix, data, body, name):
file = list(csv.reader(open('SeasonalClimateFiles/' + prefix + '.' + name + '.0')))
key_name = body + '_' + name
- if key_name in data:
- data[key_name].append(file)
+ units ... |
update ya tool crypta version with task | },
"crypta": {
"formula": {
- "sandbox_id": 334422043,
+ "sandbox_id": 338265308,
"match": "crypta"
},
"executable": {
|
decisions: update man pages | .\" generated with Ronn-NG/v0.10.1
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1.pre1
-.TH "ELEKTRA\-LIBS" "7" "January 2021" ""
+.TH "ELEKTRA\-LIBS" "7" "May 2022" ""
.SH "NAME"
\fBelektra\-libs\fR \- libs overview
.SH "Highlevel APIs"
@@ -24,7 +24,9 @@ Using asynchronous I/O bindings \fIhttps://www\.libelektra\.o... |
Restructure docs for the CC2538 CPU | * OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
- * \addtogroup platform
- * @{
- *
- * \defgroup cc2538-platforms TI cc2538-powered platforms
- *
- * Documentation for all platforms powered by the TI cc2538 System-on-Chip
- * @{
- *
- * \defgroup cc2538 The TI cc2538 System-on-Chip
- * CPU-Specific functionality - availab... |
out_es: fix fractional second formatting | @@ -237,7 +237,7 @@ static char *elasticsearch_format(void *data, size_t bytes,
s = strftime(time_formatted, sizeof(time_formatted) - 1,
ctx->time_key_format, &tm);
len = snprintf(time_formatted + s, sizeof(time_formatted) - 1 - s,
- ".%" PRIu64 "Z", (uint64_t) tms.tm.tv_nsec);
+ ".%03" PRIu64 "Z", (uint64_t) tms.tm.tv... |
typo in the workflow | @@ -39,7 +39,7 @@ jobs:
- name: Get Tag
id: tag
run: |
- if [ -z "${GITHUB_REF%%ref/tags/v*}" -a "true" = "${{ steps.version.outputs.is-semver }}" ]; then
+ if [ -z "${GITHUB_REF%%refs/tags/v*}" -a "true" = "${{ steps.version.outputs.is-semver }}" ]; then
echo "::set-output name=tag::${{ steps.version.outputs.version-w... |
use smaller fonts for subsubsection to improve readability | @@ -28,7 +28,7 @@ sudo apt-get install -y libcurl4-openssl-dev libssl-dev
\* If you do not have Ubuntu or Debian but have Windows 10, you can install WSL2 and get either Ubuntu or Debian [here](https://docs.microsoft.com/en-us/windows/wsl/install-win10).
-### Compile
+#### Compile
```
make bot-echo
```
@@ -44,10 +44,10... |
sh2 update
fixed wrong offset | @@ -685,9 +685,9 @@ void Init()
injector::WriteMemory(pattern.count(3).get(0).get<void>(2), &fneg190, true);
injector::WriteMemory(pattern.count(3).get(2).get<void>(2), &fneg190, true);
pattern = hook::pattern("C7 05 ? ? ? ? ? ? ? ? E9 ? ? ? ? 8B 15"); //004A314F
- injector::WriteMemory<float>(pattern.get_first(2), fne... |
fix RGB brightness missing | @@ -135,7 +135,8 @@ Blockly.Arduino.display_rgb_init=function(){
var Brightness = Blockly.Arduino.valueToCode(this, 'Brightness',Blockly.Arduino.ORDER_ATOMIC);
Blockly.Arduino.definitions_['include_Adafruit_NeoPixel'] = '#include <Adafruit_NeoPixel.h>';
Blockly.Arduino.definitions_['var_declare_rgb_display' + dropdown_... |
Add ksceKernelSearchModuleByName | @@ -102,6 +102,8 @@ int ksceKernelStopUnloadModuleForPid(SceUID pid, SceUID modid, SceSize args, voi
int ksceKernelMountBootfs(const char *bootImagePath);
int ksceKernelUmountBootfs(void);
+int ksceKernelSearchModuleByName(const char* module_name, const char* path, int pid);
+
#ifdef __cplusplus
}
#endif
|
Update Autotools instructions.
Not fully tested, but these updated instructions should cause less
issues than the previous one. | Building Libtcod using Autotools
================================
-The following instructions have been tested on 32 and 64-bit versions of
-Ubuntu 14.04 and Fedora 22.
-
Dependencies
------------
-For Ubuntu 14.04, install these dependencies:
+For Ubuntu 16.04, install these dependencies:
- $ sudo apt-get install curl... |
Docs - update PostGIS version compatibility | <row class="- topic/row ">
<entry colname="col1" class="- topic/entry ">MADlib machine
learning<sup>1</sup></entry>
- <entry colname="col3" class="- topic/entry ">MADlib 1.16</entry>
+ <entry colname="col3" class="- topic/entry ">MADlib 1.17, 1.16</entry>
</row>
<row>
<entry>PL/Java</entry>
<row class="- topic/row ">
<... |
symtrack: fixing typo in comment with parameter description | @@ -6702,7 +6702,7 @@ int SYMTRACK(_set_bandwidth)(SYMTRACK() _q, \
\
/* Adjust internal NCO by requested frequency */ \
/* _q : symtrack object */ \
-/* _dphi : NCO phase adjustment [radians] */ \
+/* _dphi : NCO frequency adjustment [radians/sample] */ \
int SYMTRACK(_adjust_frequency)(SYMTRACK() _q, \
T _dphi); \
\
|
Added parsing support for Ascii password files
so the dimm lockstate can be changed | @@ -1683,6 +1683,19 @@ ParseSourcePassFile(
goto Finish;
}
+ // Verify if it is Unicode file:
+ //If it is not a Unicode File Convert the File String
+ if (*((CHAR16 *)pFileBuffer) != UTF_16_BOM) {
+ pFileString = AllocateZeroPool((FileBufferSize * sizeof(CHAR16)) + sizeof(L'\0'));
+ if (pFileString == NULL) {
+ Print(... |
Fix compile-time warn in pg_basebackup code.
Change sprintf function to snprintf, to check resulting
buffer size overflow. | @@ -1986,7 +1986,7 @@ BaseBackup(void)
char *path = unconstify(char *, get_tablespace_mapping(PQgetvalue(res, i, 1)));
char path_with_subdir[MAXPGPATH];
- sprintf(path_with_subdir, "%s/%d/%s", path, target_gp_dbid, GP_TABLESPACE_VERSION_DIRECTORY);
+ snprintf(path_with_subdir, MAXPGPATH, "%s/%d/%s", path, target_gp_dbi... |
luci-app-serverchan: bump to 1.89 | include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-serverchan
-PKG_VERSION:=1.87
+PKG_VERSION:=1.89
PKG_RELEASE:=9
include $(INCLUDE_DIR)/package.mk
|
OcAppleKernelLib: Include non-local VTable entries when counting. | @@ -507,8 +507,9 @@ InternalInitializeVtablePatchData (
IN OUT OC_MACHO_CONTEXT *MachoContext,
IN CONST MACH_NLIST_64 *VtableSymbol,
IN OUT UINT32 *MaxSize,
- OUT UINT32 *NumEntries,
OUT UINT64 **VtableDataPtr,
+ OUT UINT32 *NumEntries,
+ OUT UINT32 *NumSymbols,
OUT MACH_NLIST_64 **SolveSymbols
)
{
@@ -517,7 +518,7 @@ ... |
Fix test/recipes/01-test_symbol_presence.t to allow for stripped libraries
It's a small change to the 'nm' call, to have it look at dynamic symbols
rather than the normal ones.
Fixes | @@ -48,12 +48,12 @@ foreach my $libname (@libnames) {
*OSTDOUT = *STDOUT;
open STDERR, ">", devnull();
open STDOUT, ">", devnull();
- my @nm_lines = map { s|\R$||; $_ } `nm -Pg $shlibpath 2> /dev/null`;
+ my @nm_lines = map { s|\R$||; $_ } `nm -DPg $shlibpath 2> /dev/null`;
close STDERR;
close STDOUT;
*STDERR = *OSTDER... |
grid: remove native webkit appearance on SystemMenu | @@ -57,7 +57,7 @@ export const SystemMenu = ({ className, menu, open, navOpen }: SystemMenuProps)
as={Link}
to="/system-menu"
className={classNames(
- 'circle-button default-ring',
+ 'appearance-none circle-button default-ring',
open && 'text-gray-300',
navOpen &&
menu !== 'system-preferences' &&
@@ -66,7 +66,7 @@ expo... |
[mod_dirlisting] hide unused variable on MacOS
(quiet compiler warning) | @@ -851,7 +851,9 @@ static int http_list_directory(request_st * const r, plugin_data * const p, buff
char * const path = malloc(dlen + name_max + 1);
force_assert(NULL != path);
memcpy(path, dir->ptr, dlen+1);
+ #if defined(HAVE_XATTR) || defined(HAVE_EXTATTR) || !defined(_ATFILE_SOURCE)
char *path_file = path + dlen;
... |
hfuzz_cc: logging | @@ -183,11 +183,11 @@ static int ldMode(int argc, char **argv)
int main(int argc, char **argv)
{
if (argc <= 1) {
- LOG_I("No arguments provided");
+ LOG_I("'%s': No arguments provided", argv[0]);
return execCC(argc, argv);
}
if (argc > (ARGS_MAX - 4)) {
- LOG_F("Too many positional arguments: %d", argc);
+ LOG_F("'%s'... |
server session FEATURE handle expired accounts
Fixes | @@ -700,6 +700,9 @@ auth_password_get_pwd_hash(const char *username)
if (!spwd) {
VRB("Failed to retrieve the shadow entry for \"%s\".", username);
return NULL;
+ } else if ((spwd->sp_expire > -1) && (spwd->sp_expire <= (time(NULL) / (60 * 60 * 24)))) {
+ WRN("User \"%s\" account has expired.", username);
+ return NULL... |
controller: fix typo in get_lport_type_str() | @@ -881,7 +881,7 @@ get_lport_type_str(enum en_lport_type lport_type)
case LP_CHASSISREDIRECT:
return "CHASSISREDIRECT";
case LP_L3GATEWAY:
- return "L3GATEWAT";
+ return "L3GATEWAY";
case LP_LOCALNET:
return "PATCH";
case LP_LOCALPORT:
|
Coder spec: move function argument error check
One less pallene file to compile.
Now the same functions are used to test for argument errors and working
function calls. | @@ -60,69 +60,6 @@ describe("Pallene coder /", function()
end)
end)
- describe("Function arguments /", function()
- setup(compile([[
- function id_int(x: integer): integer
- return x
- end
-
- function id_float(x: float): float
- return x
- end
- ]]))
-
- it("missing arguments", function()
- run_test([[
- local ok, err... |
Changed an OSPRay exception from ospray::Exception to EXCEPTION1 | @@ -339,6 +339,10 @@ avtOSPRaySamplePointExtractor::DoSampling(vtkDataSet *ds, int idx)
// Kevin Griffin, Fri Apr 22 16:31:57 PDT 2016
// Added support for polygons.
//
+// Eric Brugger, Thu Apr 18 14:15:53 PDT 2019
+// Converted the generation of the exception from ospray::Exception
+// to EXCEPTION1.
+//
// *********... |
VirtIOFS: RHBZ#2024518: fix FUSE_READ input buffer size
FUSE_READ input buffer contains only header. | @@ -1588,7 +1588,7 @@ static NTSTATUS Read(FSP_FILE_SYSTEM *FileSystem, PVOID FileContext0,
read_in.read.lock_owner = 0;
read_in.read.flags = 0;
- FUSE_HEADER_INIT(&read_in.hdr, FUSE_READ, FileContext->NodeId, Length);
+ FUSE_HEADER_INIT(&read_in.hdr, FUSE_READ, FileContext->NodeId, sizeof(read_in.read));
Status = Virt... |
connection_ssl_new log errors to stderr
added error logs for evhtp_connection_ssl_new when any
context allocation errors occur. (M<3D) | @@ -5318,7 +5318,7 @@ evhtp_connection_ssl_new(struct event_base * evbase,
{
evhtp_connection_t * conn;
struct sockaddr_in sin;
- int8_t err;
+ const char * errstr;
if (evbase == NULL)
{
@@ -5330,20 +5330,24 @@ evhtp_connection_ssl_new(struct event_base * evbase,
}
conn->evbase = evbase;
- err = -1;
+ errstr = NULL;
do... |
ci: add single parent commit case on check-signed-off-by script | # See the License for the specific language governing permissions and
# limitations under the License.
-# this retrieves the merge commit created by GH
parents=(`git log -n 1 --format=%p HEAD`)
-if [[ "${#parents[@]}" -ne 2 ]]; then
- echo "This PR's merge commit is missing a parent!"
- exit 1
-fi
-
+if [[ "${#parents[... |
Rust: Remove error/key TODO | @@ -162,8 +162,6 @@ impl<'a> KDBErrorWrapper<'a> {
KDBErrorWrapper { error_key }
}
- // TODO: For which of these error/* can we be sure that they exist?
-
/// Returns the error number.
pub fn number(&self) -> String {
self.error_key
|
dbuild: Trim white-space from hostname
A username of github is used for hostname.
Trim white-space from hostname for a case with spaces in the username. | @@ -413,7 +413,7 @@ function BUILD()
DOCKER_OPT="-i"
fi
- HOSTNAME="-h=`git config user.name`" # set github username instead of hostname, "-h=`hostname`"
+ HOSTNAME="-h=`git config user.name | tr -d ' '`" # set github username instead of hostname, "-h=`hostname`"
LOCALTIME="-v /etc/localtime:/etc/localtime:ro"
DOCKER_I... |
Fix CID 168603 | @@ -1315,13 +1315,13 @@ sctp_shutdown(struct socket *so)
if (!((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||
(inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) {
/* Restore the flags that the soshutdown took away. */
-#if (defined(__FreeBSD__) && __FreeBSD_version >= 502115) || defined(__Windows__)
SOCKBUF_LOCK(&so->so_rc... |
Fixed issue where the incorrect bone was used for sole effects. | |- ^- (pair (list move) (list sole-effect))
?~ moves [~ ~]
=+ mor=$(moves t.moves)
- ?: ?& =(ost.hid p.i.moves)
+ ?: ?& =(id.cli p.i.moves)
?=({$diff $sole-effect *} q.i.moves)
==
[p.mor [+>.q.i.moves q.mor]]
?~ q.yop ~
?~(t.q.yop `i.q.yop `[%mor (flop `(list sole-effect)`q.yop)])
==
+ ?~ foc
+ moz
+ ?~ id.cli
+ ~& %no... |
docs(codes): Windows Support: Language/International Inputs | @@ -3383,7 +3383,7 @@ export default [
],
documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=86",
os: {
- windows: null,
+ windows: false,
linux: true,
android: false,
macos: null,
@@ -3404,7 +3404,7 @@ export default [
],
documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=86",
os: {
-... |
Add ifdef guard around water audio | @@ -502,7 +502,9 @@ void update(uint32_t time_ms) {
if (water_dist < 0) {
water_dist = 0;
}
+#ifdef __AUDIO__
audio::channels[0].volume = 4000 + (sin(float(time_ms) / 1000.0f) * 3000);
+#endif
if (game_state == enum_state::menu) {
if(pressed & button::B) {
|
Add WorldId offset to AgentLobby.cs | @@ -13,6 +13,7 @@ namespace FFXIVClientStructs.FFXIV.Client.UI.Agent {
[FieldOffset(0x0)] public AgentInterface AgentInterface;
[FieldOffset(0x818)] public ulong SelectedCharacterId;
[FieldOffset(0x820)] public byte DataCenter;
+ [FieldOffset(0x824)] public ushort WorldId;
[FieldOffset(0x840)] public uint IdleTime;
}
}... |
chip/stm32/usart-stm32f4.c: Format with clang-format
BRANCH=none
TEST=none | @@ -31,7 +31,6 @@ static void usart_variant_enable(struct usart_config const *config)
{
configs[config->hw->index] = config;
-
/* Use single-bit sampling */
STM32_USART_CR3(config->hw->base) |= STM32_USART_CR3_ONEBIT;
|
minor change to java project | <?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk7"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpath... |
Dockerfile: minor fix | @@ -98,8 +98,8 @@ RUN ant -q -f ${CONTIKI_NG}/tools/cooja/build.xml jar
# Working directory
WORKDIR ${CONTIKI_NG}
-# Enable IPv6 -- must be done at runtime, not in Dockerfile
-RUN echo "sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 > /dev/null" >> /home/user/.profile
+# Enable IPv6 -- must be done at runtime, hence a... |
ixfr-out, fix to not alloc skipped compression pointer insertions. | @@ -141,14 +141,14 @@ static uint16_t pktcompression_find(struct pktcompression* pcomp,
static void pktcompression_insert(struct pktcompression* pcomp, uint8_t* dname,
size_t len, uint16_t offset)
{
- struct rrcompress_entry* entry = pktcompression_alloc(pcomp,
- sizeof(*entry));
- if(!entry)
- return;
+ struct rrcompr... |
README.md: Use version 2.05.30 | @@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
### Install deCONZ
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.29-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.30-qt5.deb
2. Install deCON... |
vere: checks on boot that we have write permissions for $pier | @@ -249,6 +249,10 @@ _main_getopt(c3_i argc, c3_c** argv)
fprintf(stderr, "normal usage: %s %s\n", argv[0], u3_Host.dir_c);
exit(1);
}
+ else if ( 0 != access(u3_Host.dir_c, W_OK) ) {
+ fprintf(stderr, "urbit: write permissions are required for %s\n", u3_Host.dir_c);
+ exit(1);
+ }
}
c3_t imp_t = ((0 != u3_Host.ops_u.w... |
mINI: Use macros to describe return values | #include <kdbhelper.h>
+/* -- Macros ---------------------------------------------------------------------------------------------------------------------------- */
+
+#define KEYSET_UNCHANGED 0
+#define KEYSET_MODIFIED 1
+
/* -- Functions --------------------------------------------------------------------------------... |
core: fixed format bug by casting to void* | @@ -1663,7 +1663,7 @@ static void elektraSetCommit (Split * split, Key * parentKey)
}
keySetName (parentKey, keyName (split->parents[i]));
- ELEKTRA_LOG_DEBUG ("elektraSetCommit: %p # %zu with %s - %s\n", backend, p, keyName (parentKey),
+ ELEKTRA_LOG_DEBUG ("elektraSetCommit: %p # %zu with %s - %s\n", (void *) backend... |
* added SPR_defragVRAM() function | @@ -172,7 +172,7 @@ typedef struct
u16 numSprite;
VDPSpriteInf **vdpSpritesInf;
Collision *collision;
- TileSet *tileset;
+ TileSet *tileset; // TODO: have a tileset per VDP sprite (when rescomp will be optimized for better LZ4W compression)
s16 w;
s16 h;
u16 timer;
@@ -420,9 +420,14 @@ Sprite* SPR_addSprite(const Spri... |
fixed mv(move) command parameter for travis. | @@ -53,7 +53,7 @@ if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi
# install 3rd party libraries
git clone https://github.com/JonHub/Filters.git
echo -n "INSTALL Filters Library: "
-DEPENDENCY_OUTPUT=$(mv $HOME/Arduino/libraries/Filters 2>&1)
+DEPENDENCY_OUTPUT=$(mv Filters $HOME/Arduino/li... |
Initialize vxlan-gpe bypass mode | @@ -1200,6 +1200,22 @@ VLIB_CLI_COMMAND (set_interface_ip6_vxlan_gpe_bypass_command, static) = {
};
/* *INDENT-ON* */
+/* *INDENT-OFF* */
+VNET_FEATURE_INIT (ip4_vxlan_gpe_bypass, static) =
+{
+ .arc_name = "ip4-unicast",
+ .node_name = "ip4-vxlan-gpe-bypass",
+ .runs_before = VNET_FEATURES ("ip4-lookup"),
+};
+
+VNET_... |
Fix initialization of FDW batching in ExecInitModifyTable
ExecInitModifyTable has to initialize batching for all result relations,
not just the first one. Furthermore, when junk filters were necessary,
the pointer pointed past the mtstate->resultRelInfo array.
Per reports from multiple non-x86 animals (florican, locust... | @@ -2797,9 +2797,16 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
* Determine if the FDW supports batch insert and determine the batch
* size (a FDW may support batching, but it may be disabled for the
* server/table).
+ *
+ * We only do this for INSERT, so that for UPDATE/DELETE the batch
+ * s... |
VERSION bump to version 2.1.62 | @@ -64,7 +64,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 1)
-set(SYSREPO_MICRO_VERSION 61)
+set(SYSREPO_MICRO_VERSION 62)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
BugID:25799401: fix issue of adding app Config.in twice | @@ -101,13 +101,14 @@ def write_depends_config(config_file, board, app=None):
if comp_info:
mandatory_deps = get_comp_mandatory_depends(comp_info, comps)
mandatory_deps.append(board)
- if app:
- mandatory_deps.append(app)
for comp in mandatory_deps:
if comp in comp_info:
config = comp_info[comp]["config_file"]
if confi... |
Feat:fix the problem"undefined reference to `fibocom_task_entry'" | @@ -6,10 +6,8 @@ DESCRIPTION
===========================================================================*/
/* MA510 Includes ---------------------------------------------------------*/
-//#include "test_app_module.h"
#include "test_utils.h"
#include "qflog_utils.h"
-#include "odm_ght_log.h"
#include "qapi_uart.h"
#incl... |
oc_csr: return CSR in PEM format instead of DER | @@ -30,38 +30,22 @@ get_csr(oc_request_t *request, oc_interface_mask_t iface_mask, void *data)
size_t device = request->resource->device;
-#ifdef OC_DYNAMIC_ALLOCATION
- unsigned char *csr =
- (unsigned char *)calloc(OC_PDU_SIZE, sizeof(unsigned char));
- if (!csr) {
- oc_send_response(request, OC_STATUS_INTERNAL_SERVE... |
session: fix app attach on error
Type: fix | @@ -661,13 +661,12 @@ vl_api_app_attach_t_handler (vl_api_app_attach_t * mp)
}
done:
-
- ctrl_thread = vlib_num_workers ()? 1 : 0;
- ctrl_mq = session_main_get_vpp_event_queue (ctrl_thread);
/* *INDENT-OFF* */
REPLY_MACRO2 (VL_API_APP_ATTACH_REPLY, ({
if (!rv)
{
+ ctrl_thread = vlib_num_workers ()? 1 : 0;
+ ctrl_mq = s... |
ci: Run the cancel workflow on generic workers and update action
No need to bottleneck on the self hosted worker(s) when this is a light
job that needs to run as soon as possible so that it can cancel early. | @@ -15,9 +15,9 @@ on:
jobs:
cancel-redundant-workflows:
- runs-on: [self-hosted, Linux]
+ runs-on: ubuntu-latest
steps:
- - uses: styfle/cancel-workflow-action@0.9.1
+ - uses: styfle/cancel-workflow-action@0.10.0
with:
all_but_latest: true
workflow_id: ${{ github.event.workflow.id }}
|
closing procedure improvements | @@ -1611,10 +1611,7 @@ io_readable(neat_ctx *ctx, neat_flow *flow,
retval = recv(flow->socket->fd, buffer, 1, MSG_PEEK);
if (retval <= 0) {
neat_log(ctx, NEAT_LOG_INFO, "%s - TCP connection peek: %d - connection closed", __func__, retval);
- if (flow->operations->on_close) {
- READYCALLBACKSTRUCT;
- flow->operations->o... |
vioserial: Remove all uses of bEnableInterruptSuppression
The field has no effect and will be removed. | @@ -374,7 +374,6 @@ VIOSerialGetQueueParamCallback(
{
PPORTS_DEVICE pContext = CONTAINING_RECORD(pVDevice, PORTS_DEVICE, VDevice);
- pQueueParam->bEnableInterruptSuppression = false;
if (uQueueIndex == 2 || uQueueIndex == 3) {
// control queues
pQueueParam->Interrupt = pContext->WdfInterrupt;
|
Fixes a forgotten (gcc only) example function | @@ -75,11 +75,10 @@ static void gccExample(activator_data_t *data) {
result = calc->calc(calc->handle, 1);
}
- celix_service_use_options_t opts;
- memset(&opts, 0, sizeof(opts));
+ celix_service_use_options_t opts = CELIX_EMPTY_SERVICE_USE_OPTIONS;
- opts.serviceName = EXAMPLE_CALC_NAME;
- opts.callbackHandle = NULL; /... |
Fix SYNOPSIS for ASN1_ENUMERATED_get_int64 and ASN1_ENUMERATED_set_int64 | @@ -22,10 +22,10 @@ ASN1_INTEGER_get_int64, ASN1_INTEGER_get, ASN1_INTEGER_set_int64, ASN1_INTEGER_s
ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai);
BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn);
- int ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_INTEGER *a);
+ int ASN1_ENUME... |
Fixed issue where messages got stored in the wrong order. | ?~ old
:: new message
%_ +>.$
- grams [gam grams]
+ grams (welp grams [gam ~])
count +(count)
known (~(put by known) uid.tot.gam count)
==
|
ruby: suppress format overflow warning in generated SWIG code | @@ -56,6 +56,7 @@ if (DEPENDENCY_PHASE)
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-literal-suffix")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-attributes")
set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-pedantic")
+ set (SWIG_COMPILE_FLAGS "${SWIG_COMPILE_FLAGS} -Wno-format-overflow")
endif ()
se... |
Register core/file abstract type | @@ -416,4 +416,7 @@ void janet_lib_io(JanetTable *env) {
janet_core_def(env, "stdin",
makef(stdin, IO_READ | IO_NOT_CLOSEABLE | IO_SERIALIZABLE),
JDOC("The standard input file."));
+
+ janet_register_abstract_type(&cfun_io_filetype);
+
}
|
drv_time: fix debug timer on f0 | @@ -14,6 +14,7 @@ volatile unsigned long systickcount = 0;
#warning SYS_CLOCK_FREQ_HZ not present
#endif
+#ifdef F405
void debug_timer_init() {
DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk;
@@ -38,8 +39,6 @@ void debug_timer_delay_us(uint32_t us) {
}
}
-#ifdef F405
-
// divider by 8 is enabled in this systick config
static __IN... |
vppapigen: supports backwards compatible marking of enums
enum bar_enum {
BAR1 = 0,
BAR2,
BAR3 [backwards_compatible],
BAR4 = 9 [backwards_compatible],
};
This allows adding backwards compatible (as guaranteed by the developer) enums.
The enums marked backwards compatible are not considered in the CRC calculation.
Type... | @@ -142,11 +142,6 @@ class VPPAPILexer(object):
t_ignore = ' \t'
-def crc_block_combine(block, crc):
- s = str(block).encode()
- return binascii.crc32(s, crc) & 0xffffffff
-
-
def vla_is_last_check(name, block):
vla = False
for i, b in enumerate(block):
@@ -227,7 +222,12 @@ class Using():
else:
a = {'type': alias.field... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.