From 2127a75e971e8536fbc24deec3917569d837f6bc Mon Sep 17 00:00:00 2001 From: helly Date: Thu, 29 Dec 2005 15:49:20 +0000 Subject: [PATCH] - Check for illegal chars with 0Xnnnn notation --- actions.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.50.1