[OpenJDK 2D-Dev] RFR [XS]: 8231445: check ZALLOC return values in awt coding

Baesken, Matthias matthias.baesken at sap.com
Wed Sep 25 07:39:39 UTC 2019

Hello, please review this small fix .  It deals with return value checking of ZALLOC .

ZALLOC is a macro using calloc, please  see :

/* allocated and initialize a structure */
#define ZALLOC(T) ((struct T *)calloc(1, sizeof(struct T)))

    ...   so the return value has to be checked which is missing at some places.

Bug/webrev :



Thanks, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20190925/355b557c/attachment-0001.html>

More information about the 2d-dev mailing list