[OpenJDK 2D-Dev] Potential problem in X11GraphicsDevice
Roman Kennke
roman.kennke at aicas.com
Wed Mar 25 13:58:46 UTC 2009
Hi,
While looking through X11GraphicsDevice I found a potential problem. The
array returned by getConfigurations() is the real thing, and is mutable.
Client code could get the array and write crap into it (e.g. null). This
will most likely turn out to be the problem of the caller in the end,
but I'm not sure if it couldn't be used to do nasty things as well when
sneaking in manipulated GC objects. Maybe this should be made so that it
returns a copy of the real array instead?
/Roman
--
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com * Tel: +49-721-663 968-48
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt
More information about the 2d-dev
mailing list