[Seaside] WAImage class>>fromByteArray: fix

Boris Popov boris at deepcovelabs.com
Thu Mar 8 19:05:55 UTC 2007

Just came across this when trying to load files less than 6 bytes in
size where outer handler tests the file for being a picture by catching
NotAnImage exception; fix just adds the size check on the first line,

WAImage class>>fromByteArray: aByteArray
 | dim gifHeaders header |
 aByteArray size < 6 ifTrue: [NotAnImage raise].



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

More information about the Seaside mailing list