RFR(xs): 8225225: stringStream internal buffer should always be zero terminated
coleen.phillimore at oracle.com
coleen.phillimore at oracle.com
Tue Jun 4 17:13:18 UTC 2019
Looks good to me.
thanks,
Coleen
On 6/4/19 4:06 AM, Thomas Stüfe wrote:
> Hi all,
>
> please review this small fix and the associated test:
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8225225
> Webrev:
> http://cr.openjdk.java.net/~stuefe/webrevs/8225225-stringstream-should-always-be-zero-terminated/webrev.00/webrev/
>
> This patch makes sure the internal buffer of stringStream is always zero
> terminated.
>
> It also extends existing gtests to assert this.
>
> In addition, gtests are expanded to test fixed sized stringStream variants
> too, and to test for buffer overflow for both bufferedStream and
> stringStream (not strictly related to this fix but I was in the area so..).
>
> Thanks, Thomas
More information about the hotspot-runtime-dev
mailing list