Skip to content
Snippets Groups Projects
Commit 794228e1 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correctly indicate the end of the list of parsed arguments to avoid a stack buffer overflow.

parent f37c38a3
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,7 @@ int main(int argc, char *argv[]) {
OPT_INTEGER('Y', "threadpool-dumps", &dump_threadpool,
"Time-step frequency at which threadpool tasks are dumped.",
NULL, 0, 0),
OPT_END(),
};
struct argparse argparse;
argparse_init(&argparse, options, swift_usage, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment