diff options
author | Anton Blanchard <anton@samba.org> | 2016-01-03 21:37:52 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-03-23 08:58:52 +1100 |
commit | d8c292e7e39f038374d2a6aecf6383f91a236ebc (patch) | |
tree | 9030ddaca9360946333d98c106abaa3930fb4d17 /test | |
parent | 5c3c324cc42f179fb41ca825fbce06bc445c730b (diff) | |
download | petitboot-d8c292e7e39f038374d2a6aecf6383f91a236ebc.zip petitboot-d8c292e7e39f038374d2a6aecf6383f91a236ebc.tar.gz |
test/lib: Avoid array overflow of child_argv[]
We allocate 3 elements in child_argv, but write 4.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/test-process-stdout-eintr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test-process-stdout-eintr.c b/test/lib/test-process-stdout-eintr.c index b62d570..68df5ed 100644 --- a/test/lib/test-process-stdout-eintr.c +++ b/test/lib/test-process-stdout-eintr.c @@ -20,7 +20,7 @@ int main(int argc, char **argv) { struct waitset *waitset; struct process *process; - const char *child_argv[3]; + const char *child_argv[4]; void *ctx; if (argc == 3 && !strcmp(argv[1], "child")) |