[Seaside] WAImage class>>fromByteArray: fix

Philippe Marschall philippe.marschall at gmail.com
Thu Mar 8 20:35:24 UTC 2007


Is this a VW specific class?

Philippe

2007/3/8, Boris Popov <boris at deepcovelabs.com>:
> 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].
>  ...
>
> Thanks!
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> boris at deepcovelabs.com
>
> CONFIDENTIALITY NOTICE
>
> 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
> attachments.
>
> Thank you.
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the Seaside mailing list