summaryrefslogtreecommitdiffstats
path: root/tests/xtouch.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-08-23 23:19:55 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-08-23 23:19:55 -0400
commitf34baf1a2f42259a4873f6d9733078003184d4e4 (patch)
treec135fb9a3da73074964d3acc39a7512bd5547660 /tests/xtouch.c
parent43a59c487209293ee48b8d1f0215ceb643af8ad3 (diff)
downloadbfs-f34baf1a2f42259a4873f6d9733078003184d4e4.tar.xz
Work around https://github.com/llvm/llvm-project/issues/64946
Diffstat (limited to 'tests/xtouch.c')
-rw-r--r--tests/xtouch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/xtouch.c b/tests/xtouch.c
index 50416ba..4a02bf3 100644
--- a/tests/xtouch.c
+++ b/tests/xtouch.c
@@ -3,6 +3,7 @@
#include "../src/bfstd.h"
#include "../src/config.h"
+#include "../src/sanity.h"
#include "../src/xtime.h"
#include <errno.h>
#include <fcntl.h>
@@ -172,6 +173,8 @@ int main(int argc, char *argv[]) {
if (marg) {
char *end;
long mode = strtol(marg, &end, 8);
+ // https://github.com/llvm/llvm-project/issues/64946
+ sanitize_init(&end);
if (*marg && !*end && mode >= 0 && mode < 01000) {
args.fmode = args.dmode = mode;
} else {