<AWT Dev> RFR(S): 8161923: Fix two memory issues.

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Wed Jul 20 13:13:41 UTC 2016


This changes fixes two memory issues.

In awt_PrintControl.cpp, a wrong pointer is freed.

In LigatureSubstProc2.cpp, line 157:
    stack[++mm] = componentGlyph;
can overwrite the stack by one element. It will write
stack[nComponents], because ++mm increments before
accessing the array.

Fix: increase the size of the array by one.

Please review this change:

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160720/ca720ff0/attachment.html>

More information about the awt-dev mailing list