diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-08-23 23:19:55 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-08-23 23:19:55 -0400 |
commit | f34baf1a2f42259a4873f6d9733078003184d4e4 (patch) | |
tree | c135fb9a3da73074964d3acc39a7512bd5547660 /src/parse.c | |
parent | 43a59c487209293ee48b8d1f0215ceb643af8ad3 (diff) | |
download | bfs-f34baf1a2f42259a4873f6d9733078003184d4e4.tar.xz |
Work around https://github.com/llvm/llvm-project/issues/64946
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index 37940de..3861610 100644 --- a/src/parse.c +++ b/src/parse.c @@ -582,6 +582,9 @@ static const char *parse_int(const struct parser_state *state, char **arg, const } } + // https://github.com/llvm/llvm-project/issues/64946 + sanitize_init(&endptr); + if (endptr == str) { goto bad; } |