[Seaside-dev] WACodecTest>>testCodecUtf8ShortestForm

Philippe Marschall philippe.marschall at gmail.com
Sun Jun 28 13:40:00 UTC 2009


2009/6/22 Michael Lucas-Smith <mlucas-smith at cincom.com>:
> Hi All,
>
> This test has a non-shorted form for the characters 'abc'.

It should be 'ABC'.

> The specification
> that you should reject -illegal- sequences, but non-shortest are okay.
> You're not meant to -generate- non-shortest, perhaps the test should be
> flipped to make sure the non-shorted form is produced when encoding 'ABC'.
> However, this seems a little redundant as I can't imagine any Smalltalker
> would go out of his/her way to make a UTF8 encoder that produces the
> non-shortest of the letters ABC.

If you wanted to attack a system, eg. bypass certain word filters, it
might well be the case [1]

 [1] http://blogs.sun.com/xuemingshen/entry/the_big_overhaul_of_java

Cheers
Philippe


More information about the seaside-dev mailing list