Skip to content

Commit 6b79464

Browse files
committed
fix fuzzing test where images are allocated without heif_context
1 parent 3e48c1b commit 6b79464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libheif/security_limits.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ Error MemoryHandle::alloc(size_t memory_amount, const heif_security_limits* limi
166166
sstr.str()};
167167
}
168168

169-
if (limits_context == &global_security_limits) {
169+
if (limits_context == &global_security_limits ||
170+
limits_context == &disabled_security_limits) {
170171
return Error::Ok;
171172
}
172173

0 commit comments

Comments
 (0)