summaryrefslogtreecommitdiff
path: root/util/cbfstool/lz4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/lz4/lib')
-rw-r--r--util/cbfstool/lz4/lib/lz4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/lz4/lib/lz4.c b/util/cbfstool/lz4/lib/lz4.c
index 9c9a9a0d00..e393690203 100644
--- a/util/cbfstool/lz4/lib/lz4.c
+++ b/util/cbfstool/lz4/lib/lz4.c
@@ -1206,6 +1206,7 @@ FORCE_INLINE int LZ4_decompress_generic(
if ((length=(token>>ML_BITS)) == RUN_MASK)
{
unsigned s;
+ if ((endOnInput) && unlikely(ip>=iend-RUN_MASK)) goto _output_error; /* overflow detection */
do
{
s = *ip++;