quote: we must do unsigned comparison to get length of octal escape
commit4d5029dd76423277ccf4fb2cdf7200968aef3a8b
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:30:22 +0000 (15 16:30 -0400)
treec2654590ab00b18a913f0ef93e9eb97daaccb542
parentb93c1881f60c349755b4a369074360a4da497cd0
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