mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8643
This commit is contained in:
parent
be5d5a33e6
commit
a7b3f36393
1 changed files with 1 additions and 1 deletions
|
|
@ -1070,7 +1070,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue