From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7197 invoked by alias); 5 Nov 2004 19:51:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7168 invoked by uid 48); 5 Nov 2004 19:51:44 -0000 Date: Fri, 05 Nov 2004 19:51:00 -0000 From: "sven at physto dot se" To: gcc-bugs@gcc.gnu.org Message-ID: <20041105195138.18312.sven@physto.se> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug AWT/18312] New: Component.createImage() doesn't clear bitmap X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg00594.txt.bz2 List-Id: An image created with Component.createImage() is supposed to be filled with the default component background gray. Currently, it simply mallocs the pixmap data without initializing it, which is also a mild security flaw. Suggested fix is to do a fillRect() after creating the graphics context in GtkComponentPeer.java. An (faster) alternative would be to do a memset in the c method Java_gnu_java_awt_peer_gtk_GdkGraphics_initState__II. -- Summary: Component.createImage() doesn't clear bitmap Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: AWT AssignedTo: fitzsim at redhat dot com ReportedBy: sven at physto dot se CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18312