Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 614052
Collapse All | Expand All

(-)pcretest.c (-2 / +2 lines)
Lines 426-436 Link Here
426
#define PCRE_COPY_NAMED_SUBSTRING32(rc, re, bptr, offsets, count, \
426
#define PCRE_COPY_NAMED_SUBSTRING32(rc, re, bptr, offsets, count, \
427
    namesptr, cbuffer, size) \
427
    namesptr, cbuffer, size) \
428
  rc = pcre32_copy_named_substring((pcre32 *)re, (PCRE_SPTR32)bptr, offsets, \
428
  rc = pcre32_copy_named_substring((pcre32 *)re, (PCRE_SPTR32)bptr, offsets, \
429
    count, (PCRE_SPTR32)namesptr, (PCRE_UCHAR32 *)cbuffer, size/2)
429
    count, (PCRE_SPTR32)namesptr, (PCRE_UCHAR32 *)cbuffer, size/4)
430
430
431
#define PCRE_COPY_SUBSTRING32(rc, bptr, offsets, count, i, cbuffer, size) \
431
#define PCRE_COPY_SUBSTRING32(rc, bptr, offsets, count, i, cbuffer, size) \
432
  rc = pcre32_copy_substring((PCRE_SPTR32)bptr, offsets, count, i, \
432
  rc = pcre32_copy_substring((PCRE_SPTR32)bptr, offsets, count, i, \
433
    (PCRE_UCHAR32 *)cbuffer, size/2)
433
    (PCRE_UCHAR32 *)cbuffer, size/4)
434
434
435
#define PCRE_DFA_EXEC32(count, re, extra, bptr, len, start_offset, options, \
435
#define PCRE_DFA_EXEC32(count, re, extra, bptr, len, start_offset, options, \
436
    offsets, size_offsets, workspace, size_workspace) \
436
    offsets, size_offsets, workspace, size_workspace) \
(-)ChangeLog (+3 lines)
Lines 37-43 Link Here
37
8. The alternative matching function, pcre_dfa_exec() misbehaved if it
37
8. The alternative matching function, pcre_dfa_exec() misbehaved if it
38
encountered a character class with a possessive repeat, for example [a-f]{3}+.
38
encountered a character class with a possessive repeat, for example [a-f]{3}+.
39
39
40
9. When pcretest called pcre_copy_substring() in 32-bit mode, it set the buffer 
41
length incorrectly, which could result in buffer overflow.
40
42
43
41
Version 8.40 11-January-2017
44
Version 8.40 11-January-2017
42
----------------------------
45
----------------------------
43
46

Return to bug 614052