RFR: 8315074: Possible null pointer access in native glass

Marius Hanl mhanl at openjdk.org
Tue Aug 29 07:06:20 UTC 2023


On Mon, 28 Aug 2023 04:58:31 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> At multiple places in native glass code we don't have appropriate NULL checks which might result in null pointer access.
> 
> Added appropriate checks and all test run is green.

modules/javafx.graphics/src/main/native-glass/gtk/GlassApplication.cpp line 270:

> 268:         // we release this context in call_runnable
> 269:     } else {
> 270:         fprintf(stderr, "malloc failed in GtkApplication__1submitForLaterInvocatio\n");

an `n` is missing in `submitForLaterInvocatio` <-

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1223#discussion_r1308303308


More information about the openjfx-dev mailing list