diff options
author | sevan <sevan@FreeBSD.org> | 2017-03-30 02:02:48 +0000 |
---|---|---|
committer | sevan <sevan@FreeBSD.org> | 2017-03-30 02:02:48 +0000 |
commit | 1f92d8fc2ce972ffd2720119cfa10a4217a25c7f (patch) | |
tree | 4b69613ddc256ecaacd9718c67e085b0cfdb8ba5 /usr.sbin | |
parent | d25c279a1f8a54616980532eb8b63ec22a9327ae (diff) | |
download | FreeBSD-src-1f92d8fc2ce972ffd2720119cfa10a4217a25c7f.zip FreeBSD-src-1f92d8fc2ce972ffd2720119cfa10a4217a25c7f.tar.gz |
MFC r309192
Fix null dereference when running out of nodes during rename.
PR: 212370
Submitted by: Sascha Wildner <swildner AT gmail>
Reviewed by: bcr (mentor)
Approved by: bapt
Obtained from: NetBSD
Differential Revision: https://reviews.freebsd.org/D8643
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/makefs/cd9660.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c index e05e52a..55acd72 100644 --- a/usr.sbin/makefs/cd9660.c +++ b/usr.sbin/makefs/cd9660.c @@ -1066,7 +1066,7 @@ cd9660_rename_filename(cd9660node *iter, int num, int delete_chars) tmp = malloc(ISO_FILENAME_MAXLENGTH_WITH_PADDING); - while (i < num) { + while (i < num && iter) { powers = 1; count = 0; digits = 1; |