summaryrefslogtreecommitdiff
path: root/sys/modules/exec_script
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2023-06-10 12:46:32 +0000
committerlukem <lukem@NetBSD.org>2023-06-10 12:46:32 +0000
commitd699df57f2043a28c4faea6d069231ef5b5af673 (patch)
tree4336521b0a2f6e2b1449953e38cf503c46ff929f /sys/modules/exec_script
parentbd16a966721f7125d818c88bdf6384455f8b2194 (diff)
libarchive: fail if name_max is 0
Add error handling to the USE_READDIR_R code paths that set name_max from struct statfs or statvfs; if the determined name_max == 0 then return an error. Avoids a crash in tree_dir_next_posix() when the calculation of dirent_size from name_max is too small for the memory allocated for struct dirent. Submitted to upstream in pull request https://github.com/libarchive/libarchive/pull/1903 Should fix PR bin/56080
Diffstat (limited to 'sys/modules/exec_script')
0 files changed, 0 insertions, 0 deletions