mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-05 23:27:48 +00:00
Merge pull request #29327 from aiburegit/main
rootless: fix heap-buffer-overflow in preexec hooks
This commit is contained in:
commit
de06abeb56
1 changed files with 0 additions and 1 deletions
|
|
@ -447,7 +447,6 @@ do_preexec_hooks_dir (const char *dir, char **argv, int argc)
|
|||
|
||||
strncpy (buffer + nfiles * (NAME_MAX + 1), de->d_name, NAME_MAX + 1);
|
||||
nfiles++;
|
||||
buffer[nfiles * (NAME_MAX + 1)] = '\0';
|
||||
}
|
||||
|
||||
qsort (buffer, nfiles, NAME_MAX + 1, (int (*)(const void *, const void *)) strcmp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue