Approval request: JDK-8156478: 3 Buffer overrun defect groups in jexec.c
Henry Jen
henry.jen at oracle.com
Tue May 24 14:39:49 UTC 2016
Please approve this fix for backporting to jdk8u.
Cheers,
Henry
On May 20, 2016 at 1:45:29 PM, Henry Jen (henry.jen at oracle.com) wrote:
> 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