libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit ad19e7fe0adc99d5710eff1ed48d91a7b75a950e
parent 4348024d220b1da6ad56d9a4da2e3fdca66574bf
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 12 Jul 2018 21:22:19 +0200

fix stack smashing issue reported by 54kinghuang@163.com as crash-19b19795b4eb9a0b31689ba9bf2c08d4c2de0621 on the mailinglist

Diffstat:
Msrc/common/unzip.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/unzip.c b/src/common/unzip.c @@ -1347,7 +1347,7 @@ ec_read_file_func (voidpf opaque, { ret = ec->read (ec->cls, &ptr, - size); + size - done); if (ret <= 0) return done; memcpy (buf + done, ptr, ret);