Back port request: JDK-8156478: 3 Buffer overrun defect groups in jexec.c
Henry Jen
henry.jen at oracle.com
Fri May 20 20:45:29 UTC 2016
Hi,
Please review this backport request for launcher, the fix is trivial,
diff -r 561c1038f71a src/solaris/bin/jexec.c
--- a/src/solaris/bin/jexec.c Fri May 13 18:39:58 2016 +0300
+++ b/src/solaris/bin/jexec.c Fri May 20 13:44:51 2016 -0700
@@ -331,6 +331,7 @@
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);
Cheers,
Henry
More information about the jdk8u-dev
mailing list