diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-02-13 17:36:38 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-02-13 17:36:38 +0000 |
commit | 2daca9b1036d86eeddcfdefd8672da42257a9540 (patch) | |
tree | 4a85cff3c6ca9caa03d9e80cdfb0f028723a08ec /pcre_internal.h | |
parent | 3fe1df6131224adfbec7506c2f7041127a58274e (diff) | |
download | pcre-2daca9b1036d86eeddcfdefd8672da42257a9540.tar.gz |
Fix various save/revert cases for capture_last in recursion and also don't
diagnose overflow when it has reverted.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1248 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_internal.h')
-rw-r--r-- | pcre_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcre_internal.h b/pcre_internal.h index f3cb001..78c4030 100644 --- a/pcre_internal.h +++ b/pcre_internal.h @@ -2431,6 +2431,7 @@ typedef struct recursion_info { unsigned int group_num; /* Number of group that was called */ int *offset_save; /* Pointer to start of saved offsets */ int saved_max; /* Number of saved offsets */ + int saved_capture_last; /* Last capture number */ PCRE_PUCHAR subject_position; /* Position at start of recursion */ } recursion_info; @@ -2472,7 +2473,6 @@ typedef struct match_data { const pcre_uint8 *lcc; /* Points to lower casing table */ const pcre_uint8 *fcc; /* Points to case-flipping table */ const pcre_uint8 *ctypes; /* Points to table of type maps */ - BOOL offset_overflow; /* Set if too many extractions */ BOOL notbol; /* NOTBOL flag */ BOOL noteol; /* NOTEOL flag */ BOOL utf; /* UTF-8 / UTF-16 flag */ @@ -2493,7 +2493,7 @@ typedef struct match_data { PCRE_PUCHAR start_used_ptr; /* Earliest consulted character */ int partial; /* PARTIAL options */ int end_offset_top; /* Highwater mark at end of match */ - int capture_last; /* Most recent capture number */ + pcre_int32 capture_last; /* Most recent capture number + overflow flag */ int start_offset; /* The start offset value */ int match_function_type; /* Set for certain special calls of MATCH() */ eptrblock *eptrchain; /* Chain of eptrblocks for tail recursions */ |