Fix typo in pcre2_study().
This commit is contained in:
parent
21ca32717f
commit
5b543bf660
|
@ -79,6 +79,9 @@ not do this, leading to bad output from pcre2test when it was checking for
|
||||||
buffer overflow. It no longer assumes a binary zero at the end of a too-small
|
buffer overflow. It no longer assumes a binary zero at the end of a too-small
|
||||||
regerror() buffer.
|
regerror() buffer.
|
||||||
|
|
||||||
|
17. Fixed typo ("&&" for "&") in pcre2_study(). Fortunately, this could not
|
||||||
|
actually affect anything, by sheer luck.
|
||||||
|
|
||||||
|
|
||||||
Version 10.21 12-January-2016
|
Version 10.21 12-January-2016
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
|
@ -1452,7 +1452,7 @@ do
|
||||||
for (c = 0; c < 16; c++) re->start_bitmap[c] |= classmap[c];
|
for (c = 0; c < 16; c++) re->start_bitmap[c] |= classmap[c];
|
||||||
for (c = 128; c < 256; c++)
|
for (c = 128; c < 256; c++)
|
||||||
{
|
{
|
||||||
if ((classmap[c/8] && (1 << (c&7))) != 0)
|
if ((classmap[c/8] & (1 << (c&7))) != 0)
|
||||||
{
|
{
|
||||||
int d = (c >> 6) | 0xc0; /* Set bit for this starter */
|
int d = (c >> 6) | 0xc0; /* Set bit for this starter */
|
||||||
re->start_bitmap[d/8] |= (1 << (d&7)); /* and then skip on to the */
|
re->start_bitmap[d/8] |= (1 << (d&7)); /* and then skip on to the */
|
||||||
|
|
Loading…
Reference in New Issue