From: helly Date: Thu, 29 Dec 2005 15:49:20 +0000 (+0000) Subject: - Check for illegal chars with 0Xnnnn notation X-Git-Tag: 0.13.6~552 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2127a75e971e8536fbc24deec3917569d837f6bc;p=re2c - Check for illegal chars with 0Xnnnn notation --- diff --git a/actions.cc b/actions.cc index 53bcc8d4..3e7c9255 100644 --- a/actions.cc +++ b/actions.cc @@ -574,6 +574,11 @@ uint Scanner::unescape(SubStr &s) const + (uint)((p3 - hex) << 4) + (uint)((p4 - hex)); + if (v >= nRealChars) + { + fatal("Illegal hexadecimal character code"); + } + return v; }