NetBSD-Bugs archive

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

PR/56080 CVS commit: src/external/bsd/libarchive/dist/libarchive



The following reply was made to PR bin/56080; it has been noted by GNATS.

From: "Luke Mewburn" <lukem%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/56080 CVS commit: src/external/bsd/libarchive/dist/libarchive
Date: Sat, 10 Jun 2023 12:46:32 +0000

 Module Name:	src
 Committed By:	lukem
 Date:		Sat Jun 10 12:46:32 UTC 2023
 
 Modified Files:
 	src/external/bsd/libarchive/dist/libarchive: archive_read_disk_posix.c
 
 Log Message:
 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.3 \
     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