Bug#440951: isutf8 accepts overlong UTF-8 sequences

2007-11-12 Thread Lars Wirzenius
package moreutils tag 440951 patch thanks Attached is a patch to fix bug #440951 (isutf8 accepts overlong UTF-8 sequences) in isutf8, part of the moreutils package. I ended re-implementing the core logic of the program, but on the other hand it is now clearer than before (read: I couldn't

Bug#440951: isutf8 accepts overlong UTF-8 sequences

2007-09-05 Thread Jakub Wilk
Package: moreutils Version: 0.20 Severity: normal $ man utf-8 | grep 'Security' -A 9 | sed -e '1d; s/^ *//' The Unicode and UCS standards require that producers of UTF-8 shall use the shortest form possible, for example, producing a two-byte sequence with first byte 0xc0 is non-conforming.