quote: we must do unsigned comparison to get length of octal escape
commit13028a5a1965588743c61ed2b40781a0cb08b090
authorH. Peter Anvin <hpa@zytor.com>
Wed, 15 Jul 2009 20:22:47 +0000 (15 16:22 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 15 Jul 2009 20:22:47 +0000 (15 16:22 -0400)
tree90f33e9475d4feb615674681b3f14dc6f7d32026
parent89cee57ad0fec822d8ee999cb46f6a7da2bd8d18
quote: we must do unsigned comparison to get length of octal escape

When computing the length of an octal escape, we need to do an
unsigned compare, otherwise we only allocate space for one character
for bytes in the \200..\377 range, which is obviously incorrect.

Reported-by: Ed Beroset <beroset@mindspring.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
quote.c