Skip to content

Commit

Permalink
Fix CVE-2021-3520 affected components Lz4 1.9.3 in p7zip17 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuai007 authored Oct 17, 2024
1 parent a45b883 commit d9c3d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C/lz4/lz4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ LZ4_decompress_generic(
const size_t dictSize /* note : = 0 if noDict */
)
{
if (src == NULL) { return -1; }
if ((src == NULL) || (outputSize < 0)) { return -1; }

{ const BYTE* ip = (const BYTE*) src;
const BYTE* const iend = ip + srcSize;
Expand Down

0 comments on commit d9c3d15

Please sign in to comment.