Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/external/bsd/libarchive/dist/libarchive



Module Name:    src
Committed By:   martin
Date:           Fri Sep 20 10:55:11 UTC 2024

Modified Files:
        src/external/bsd/libarchive/dist/libarchive [netbsd-10]:
            archive_read_disk_posix.c

Log Message:
Pull up following revision(s) (requested by rin in ticket #886):

        external/bsd/libarchive/dist/libarchive/archive_read_disk_posix.c: revision 1.3

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.6.1 \
    src/external/bsd/libarchive/dist/libarchive/archive_read_disk_posix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index