[BUG] invalid address alignment in default_decompress_parms at line
190 in file "jdapimin.c"
briggs at parc.com
briggs at parc.com
Thu May 20 00:54:05 UTC 2004
I was running with VM 3.6-3 found an address alignment error in the
JPEGReadWriter2 plugin, which Ian Piumarta diagnosed as:
This looks like a problem with the plugin code failing to respect the
minimum alignment restrictions on the "cinfo" structure (which would be
8-byte alignment on Sparc for the 'double' members). A cursory look at
the Squeak glue for the plugin reveals that the space for the struct is
allocated in a ByteArray, which would only guarantee 4-byte alignment
(and would move it around with GC, meaning padding could not be used to
guarantee minimum 8-byte alignment either).
The only way to fix this properly for Sparc would be for the plugin
author to copy the info structure out of the ByteArray into a local
buffer before passing it to the jpeglib routines (and copy it back into
the byte array if/when it's modified).
Is the author of JPEGReadWriter2Plugin around to fix this?
More information about the Squeak-dev
mailing list
|