8156478: 3 Buffer overrun defect groups in jexec.c

Reviewed-by: ksrini
This commit is contained in:
Henry Jen 2016-05-19 21:59:35 -07:00
parent 93f4f6c1b5
commit e988331331

@ -331,6 +331,7 @@ const char * isJar(const char * path) {
off_t end = start + xlen;
if (end <= count) {
end -= 4; // make sure there are 4 bytes to read at start
while (start < end) {
off_t xhid = SH(buf, start);
off_t xdlen = SH(buf, start + 2);