On Tue, Mar 3, 2009 at 1:00 PM, <[email protected]> wrote:
> Author: j16sdiz
> Date: 2009-03-03 05:00:59 +0000 (Tue, 03 Mar 2009)
> New Revision: 25876
>
> Modified:
> trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
> Log:
> PNGFilter should throw DataFormatException
>
> It was throwing ArrayIndexOutOfBoundException and NegativeIndexException for
> invalid images.
Sorry for the whitespace changes, it was a mistake.
All actual code changed are the followings:
> + } catch (ArrayIndexOutOfBoundsException e) {
> + throwError("ArrayIndexOutOfBoundsException while
> filtering", "ArrayIndexOutOfBoundsException while filtering");
> + } catch (NegativeArraySizeException e) {
> + throwError("NegativeArraySizeException while
> filtering", "NegativeArraySizeException while filtering");
> + } catch (EOFException e) {
> + throwError("EOF Exception while filtering", "EOF
> Exception while filtering");
> } finally {
_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl