Skip to content

Commit df1936a

Browse files
Missing test for security limits being disabled
1 parent 1a131f9 commit df1936a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libheif/nclx.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ Error Box_colr::parse(BitstreamRange& range, const heif_security_limits* limits)
378378
}
379379

380380
uint64_t profile_size_64 = get_box_size() - get_header_size() - 4;
381-
if (profile_size_64 > limits->max_color_profile_size) {
381+
if (limits->max_color_profile_size && profile_size_64 > limits->max_color_profile_size) {
382382
return Error(heif_error_Invalid_input, heif_suberror_Security_limit_exceeded, "Color profile exceeds maximum supported size");
383383
}
384384

0 commit comments

Comments
 (0)