Skip to content

Commit 02ab289

Browse files
committed
Fix vuln OSV-2024-380
1 parent 966454a commit 02ab289

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/H5FL.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,9 @@ H5FL__blk_gc_list(H5FL_blk_head_t *head)
11991199
/* Get the pointer to the next node */
12001200
next = list->next;
12011201

1202+
if (!next) {
1203+
break;
1204+
}
12021205
/* Free the block */
12031206
H5MM_free(list);
12041207

0 commit comments

Comments
 (0)