summaryrefslogtreecommitdiff
path: root/pcretest.c
Commit message (Collapse)AuthorAgeFilesLines
* Final source file tidies for 8.33 release.ph102013-05-281-3/+3
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1335 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix segfault when pcre_dfa_exec() is called with an output vector of length ph102013-05-151-1/+1
| | | | | | | less than 2. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1334 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix pcretest crash with a data line longer than 65536 bytes.ph102013-05-101-5/+8
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1327 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix spelling mistakes in comments.ph102013-05-101-1/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1325 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Source tidies (trails spaces, html updates) for 8.33-RC1.ph102013-05-011-9/+9
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1320 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Code (but not yet documentation) for *LIMIT_MATCH and *LIMIT_RECURSION.ph102013-04-241-14/+31
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1313 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Implement PCRE_NEVER_UTFph102013-04-051-0/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1309 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcretest: Fix UTF-16 surrogate printing in test outputchpe2013-02-271-1/+1
| | | | | | 0xDFFF is a valid low surrogate value. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1263 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Correct Unicode string checking in the light of corrigendum #9.ph102013-02-271-16/+4
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1261 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Added some #ifdef __VMS code to pcretest.c.ph102013-02-221-6/+28
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1254 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Pass back the bumpalong value for partial matches.ph102013-02-201-4/+7
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1251 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix various save/revert cases for capture_last in recursion and also don't ph102013-02-131-2/+4
| | | | | | | diagnose overflow when it has reverted. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1248 2f5784b3-3f2a-0410-8824-cb99058d5e15
* File tidies, preparing for 8.32-RC1.ph102012-11-111-7/+7
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1221 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix pcretest -C pcre8/pcre16 bug.ph102012-11-071-0/+2
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1211 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Lose compiler warnings.ph102012-11-041-0/+7
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1202 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Temporarily remove 32-bit maskingchpe2012-11-031-23/+1
| | | | | | | Remove the masking via the PCRE_NO_UTF32_CHECK. It will be reintroduced as a dedicated runtime option later, with support for JIT and non-JIT cases. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1200 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcretest was not diagnosing characters > 0x7fffffff in 8-bit mode.ph102012-10-301-0/+6
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1190 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Add PCRE_ERROR_BADLENGTH for a negative length.ph102012-10-301-1/+3
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1189 2f5784b3-3f2a-0410-8824-cb99058d5e15
* JIT native interface.zherczeg2012-10-291-1/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1187 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Include character values in error messages for invalid conversions to 16 and 32 ph102012-10-231-4/+4
| | | | | | | bit strings. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1164 2f5784b3-3f2a-0410-8824-cb99058d5e15
* valgrind: pcretest: Mark data buffer as unaddressable after the end of the datachpe2012-10-211-3/+22
| | | | | | | | | | The data buffer is (usually) bigger than the actual data processed. This patch explicitly marks the excess buffer as unaddressable, so that running under valgrind will signal invalid memory accesses to it. This seems a better solution than memmove'ing the data to the end of the buffer to use the allocated memory region as the valgrind marker. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1153 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix byte order issue when the result of badmode is shown.zherczeg2012-10-211-2/+6
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1150 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix bugs in pcretest when different combinations of 8-, 16-, and 32-bit ph102012-10-191-40/+26
| | | | | | | | libraries were compiled. For example, test 2 segfaulted when only 16- and 32-bit libraries were compiled. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1142 2f5784b3-3f2a-0410-8824-cb99058d5e15
* I found a neater way of defining the macros in the case where 2 out of 3 modes ph102012-10-191-383/+105
| | | | | | | are compiled. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1140 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Remove unused variablechpe2012-10-181-3/+0
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1127 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix uninitialised variable warningschpe2012-10-181-1/+2
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1126 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Add extra parentheses around && inside ||chpe2012-10-181-2/+1
| | | | | | Fixes warnings from -Wparentheses. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1125 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix pcretest compiler warnings and make it compile with only 2 out of 3 bit ph102012-10-171-32/+511
| | | | | | | sizes. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1122 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: Remove masking from UTF-32 validationchpe2012-10-161-0/+1
| | | | | | | It's now required and documented that to pass character strings with high bits set (which will be masked off), it's necessary to pass PCRE_NO_UTF32_CHECK. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1118 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Add -32+ optionchpe2012-10-161-6/+64
| | | | | | | | Add -32+ option that selects 32-bit mode like -32, but additionally modifies the characters in the data strings to have the bits > 21 set, to test that the masking works. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1117 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: Rename new values to pcre32_fullinfochpe2012-10-161-4/+4
| | | | | | | | Rename to PCRE_INFO_FIRSTCHARACTER[FLAGS] (unfortunately PCRE_INFO_FIRSTCHAR was already taken) and PCRE_INFO_REQUIREDCHAR[FLAGS]. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1113 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Add missing pcre32 checkschpe2012-10-161-2/+22
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1101 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Add explicit -8 optionchpe2012-10-161-0/+9
| | | | | | | Even though 8-bit mode is the default, it's still useful to have an -8 option for symmetry. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1097 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Don't convert data line to UTF-8 firstchpe2012-10-161-89/+145
| | | | | | | | | | | While reading the data lines, directly put them into the 8, 16 or 32 bit buffers instead of first converting them into UTF-8 and only afterwards converting that buffer to 16/32 bit. This is necessary so the in 32 bit mode the \x{} escapes can use the full 32-bit range (while the non-standard 5/6 byte UTF-8 sequences can only express characters up to 31-bits). git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1090 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Comment fixeschpe2012-10-161-3/+3
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1087 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: More 32-bit fixeschpe2012-10-161-12/+14
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1086 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Fix pchar for 32-bitchpe2012-10-161-5/+3
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1085 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: 32-bit cleanlinesschpe2012-10-161-6/+7
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1082 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: fullinfo: Add variants of (FIRST|LAST)LITERAL that are 32-bit cleanchpe2012-10-161-10/+13
| | | | | | | Since for pcre32 the whole range of the output is already used up for the character itself, return the special values separately. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1080 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: pcretest: Make pchar 32-bit cleanchpe2012-10-161-3/+3
| | | | | | Use pcre_uint32 for characters. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1079 2f5784b3-3f2a-0410-8824-cb99058d5e15
* pcre32: Add 32-bit librarychpe2012-10-161-153/+734
| | | | | | | | | | Create libpcre32 that operates on 32-bit characters (UTF-32). This turned out to be surprisingly simple after the UTF-16 support was introduced; mostly just extra ifdefs and adjusting and adding some tests. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1055 2f5784b3-3f2a-0410-8824-cb99058d5e15
* All the remaining changes for handling characters with more than one other ph102012-09-251-1/+2
| | | | | | | case. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1046 2f5784b3-3f2a-0410-8824-cb99058d5e15
* General spring-clean of EBCDIC-related issues in the code, which had decayed ph102012-09-101-20/+37
| | | | | | | | over time. Also the documentation. Added one test that can be run in an ASCII world to do a little testing of EBCDIC-related things. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1033 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix -C option in pcretest for EBCDIC environments.ph102012-09-081-12/+39
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1030 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Small patches for the z/OS port that don't affect other OS.ph102012-09-031-1/+6
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1027 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Add support for PCRE_STUDY_EXTRA_NEEDED.ph102012-08-281-13/+32
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1022 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Tidies to pcretest to ensure freeing memory and closing files.ph102012-08-261-8/+25
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1017 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Document update for 8.31-RC1 test release.ph102012-06-021-10/+10
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@975 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix ovector overrun when backreferences need temporary memory and the highest ph102012-04-211-0/+1
| | | | | | | block is not used. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@963 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Fix long-standing DFA testing restart bug in pcretest, and add some ph102012-04-191-44/+66
| | | | | | | plausibility checks when restarting in pcre_dfa_exec(). git-svn-id: svn://vcs.exim.org/pcre/code/trunk@960 2f5784b3-3f2a-0410-8824-cb99058d5e15