projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix UBSAN failure in b64decode_tinc()
[tinc]
/
src
/
fsck.c
diff --git
a/src/fsck.c
b/src/fsck.c
index
8d818a3
..
b44b775
100644
(file)
--- a/
src/fsck.c
+++ b/
src/fsck.c
@@
-64,6
+64,7
@@
again:
goto again;
}
goto again;
}
+static void print_tinc_cmd(const char *format, ...) ATTR_FORMAT(printf, 1, 2);
static void print_tinc_cmd(const char *format, ...) {
if(confbasegiven) {
fprintf(stderr, "%s -c %s ", exe_name, confbase);
static void print_tinc_cmd(const char *format, ...) {
if(confbasegiven) {
fprintf(stderr, "%s -c %s ", exe_name, confbase);
@@
-141,6
+142,11
@@
static void check_conffile(const char *nodename, bool server) {
++total_vars;
}
++total_vars;
}
+ if(!total_vars) {
+ splay_empty_tree(&config);
+ return;
+ }
+
const size_t countlen = total_vars * sizeof(int);
int *count = alloca(countlen);
memset(count, 0, countlen);
const size_t countlen = total_vars * sizeof(int);
int *count = alloca(countlen);
memset(count, 0, countlen);