summaryrefslogtreecommitdiff
path: root/pcretest.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Add support for linking pcretest with libedit instead of libreadline.ph102012-02-251-7/+19
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@936 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Add support for PCRE_INFO_MAXLOOKBEHIND.ph102012-02-241-2/+6
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@932 2f5784b3-3f2a-0410-8824-cb99058d5e15
* (*MARK) support, set_SOM optimization and other fixes in JITzherczeg2012-02-241-1/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@929 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Re-implement /S++ and -s++ in pcretest in a thread-safe way, using JIT ph102012-02-221-4/+9
| | | | | | | callback. Removed the PCRE_EXTRA_USED_JIT flag. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@926 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Make it possible for pcretest to select which JIT compile options are used.ph102012-02-211-9/+27
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@923 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Set PCRE_EXTRA_USED_JIT when JIT was actually used at runtime. Add /S++ andph102012-02-201-23/+43
| | | | | | | -s++ to pcretest to show whether JIT was used or not. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@922 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Partial matching support is added to the JIT compilerzherczeg2012-02-131-2/+6
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@914 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Final source and document tidies for 8.30.ph102012-02-041-1/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@909 2f5784b3-3f2a-0410-8824-cb99058d5e15
* One more cast to avoid compiler warning about 'const'.ph102012-01-301-1/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@908 2f5784b3-3f2a-0410-8824-cb99058d5e15
* fix local symbol issues in pcre_printint.czherczeg2012-01-231-2/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@905 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Additional casts to avoid compiler warnings, originally from a MS compiler, but ph102012-01-231-2/+3
| | | | | | | also given by gcc if you turn on enough warnings. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@904 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Source file tidies for 8.30-RC1 release; fix Makefile.am bugs for building ph102012-01-211-9/+9
| | | | | | | symbolic links to man pages. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@903 2f5784b3-3f2a-0410-8824-cb99058d5e15
* More tidies and documentation for stack frame measurement.ph102012-01-211-1/+1
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@901 2f5784b3-3f2a-0410-8824-cb99058d5e15
* Modified, and made non-default the stack size info experimental code.ph102012-01-201-3/+7
| | | | git-svn-id: svn://vcs.exim.org/pcre/code/trunk@895 2f5784b3-3f2a-0410-8824-cb99058d5e15