Skip to content

Commit 7567d41

Browse files
authored
Fix comparison operator for buffer size check (#2307)
Signed-off-by: Christoph Gohlke <cgohlke@cgohlke.com>
1 parent ab06a5d commit 7567d41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/OpenEXRCore/internal_zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ apply_zip_impl (exr_encode_pipeline_t* encode)
374374

375375
if (rv == EXR_ERR_SUCCESS)
376376
{
377-
if (compbufsz > encode->packed_bytes)
377+
if (compbufsz >= encode->packed_bytes)
378378
{
379379
memcpy (
380380
encode->compressed_buffer,

0 commit comments

Comments
 (0)