diff options
Diffstat (limited to 'pcre/pcre_xclass.c')
-rw-r--r-- | pcre/pcre_xclass.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pcre/pcre_xclass.c b/pcre/pcre_xclass.c index ad153be7851..c2b61f0f920 100644 --- a/pcre/pcre_xclass.c +++ b/pcre/pcre_xclass.c @@ -81,6 +81,11 @@ additional data. */ if (c < 256) { + if ((*data & XCL_HASPROP) == 0) + { + if ((*data & XCL_MAP) == 0) return negated; + return (((pcre_uint8 *)(data + 1))[c/8] & (1 << (c&7))) != 0; + } if ((*data & XCL_MAP) != 0 && (((pcre_uint8 *)(data + 1))[c/8] & (1 << (c&7))) != 0) return !negated; /* char found */ |