RFR: 8164501: Uninitialised memory in byteArrayToPacket of SharedMemoryConnection.c
Staffan Larsen
staffan.larsen at oracle.com
Fri Oct 21 09:28:01 UTC 2016
Can you change:
185 if (total_length < 11) {
to
185 if (total_length < sizeof(pktHeader) {
?
> On 21 Oct 2016, at 09:41, Robbin Ehn <robbin.ehn at oracle.com> wrote:
>
> Hi all, please review!
>
> This patch makes sure pktHeader is not used uninitialized and that total_length is at least 11.
> The bug is confidential, but subject and patch says alot.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8164501
> Webrev: http://cr.openjdk.java.net/~rehn/8164501/webrev/
>
> Thanks!
>
> /Robbin
More information about the serviceability-dev
mailing list