Skip to content

Commit 681b84f

Browse files
authored
Merge branch 'main' into test1234
2 parents 799032f + a3201f5 commit 681b84f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/ringbuffer_helper.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,11 @@ qb_rb_close_helper(struct qb_ringbuffer_s * rb, int32_t unlink_it,
359359
truncate_fallback);
360360

361361
/* the dirname part is assumed to be the same */
362-
assert(!strncmp(dir_path, hdr_path, sep - data_path));
362+
if (strncmp(dir_path, hdr_path, sep - data_path)) {
363+
qb_util_perror(LOG_DEBUG,
364+
"header path is corrupted: %s", hdr_path);
365+
res = -ENXIO;
366+
}
363367

364368
sep = hdr_path + (sep - data_path);
365369
/* now, don't touch neither data_path nor hdr_path */

tests/sock_ipc_wrapper.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/sh -e
1+
#!/bin/sh -e
22
# filesystem socket IPC test
33
if [ "$(uname -s)" = "Linux" ] && [ "`id -u`" = "0" ]
44
then

0 commit comments

Comments
 (0)