[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GJava_gnu_java_awt_peer_gtk_GdkGraphics_setFGColor possible crash
From: |
Christian Thalinger |
Subject: |
GJava_gnu_java_awt_peer_gtk_GdkGraphics_setFGColor possible crash |
Date: |
Mon, 25 Jul 2005 11:02:07 +0200 |
Hi!
We have some problems with the spec jvm applet and i think i've found a
problem. Java_gnu_java_awt_peer_gtk_GdkGraphics_setFGColor uses
NSA_GET_PTR to get the graphics pointer, which calls cp_gtk_get_state.
This function may return NULL in exception case, which lets this code
crash:
g = (struct graphics *) NSA_GET_PTR (env, obj);
gdk_color_alloc (g->cm, &color);
May this be a problem? In fact, this crashes currently for me, but there
is no exception, it just returns NULL.
TWISTI
- GJava_gnu_java_awt_peer_gtk_GdkGraphics_setFGColor possible crash,
Christian Thalinger <=