From 1e6edd2e33954ef0645d249245d4a512268fa220 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Tue, 9 Jun 2015 16:33:44 +0000 Subject: [PATCH] Fix table entry for \l in EBCDIC environments. --- ChangeLog | 3 +++ src/pcre2_compile.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37e4c96..544ca76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -148,6 +148,9 @@ overflows. 37. There was no check for integer overflow in subroutine calls such as (?123). +38. The table entry for \l in EBCDIC environments was incorrect, leading to its +being treated as a literal 'l' instead of causing an error. + Version 10.10 06-March-2015 --------------------------- diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c index 3855b85..7acd1d5 100644 --- a/src/pcre2_compile.c +++ b/src/pcre2_compile.c @@ -330,7 +330,7 @@ because it is defined as 'a', which of course picks up the ASCII value. */ static const short int escapes[] = { /* 80 */ 7, -ESC_b, 0, -ESC_d, ESC_e, ESC_f, 0, /* 88 */-ESC_h, 0, 0, '{', 0, 0, 0, 0, -/* 90 */ 0, 0, -ESC_k, 'l', 0, ESC_n, 0, -ESC_p, +/* 90 */ 0, 0, -ESC_k, 0, 0, ESC_n, 0, -ESC_p, /* 98 */ 0, ESC_r, 0, '}', 0, 0, 0, 0, /* A0 */ 0, '~', -ESC_s, ESC_tee, 0,-ESC_v, -ESC_w, 0, /* A8 */ 0,-ESC_z, 0, 0, 0, '[', 0, 0,