2 |
------------------ |
------------------ |
3 |
|
|
4 |
|
|
5 |
|
Version 1.03 18-Dec-97 |
6 |
|
---------------------- |
7 |
|
|
8 |
|
1. A erroneous regex with a missing opening parenthesis was correctly |
9 |
|
diagnosed, but PCRE attempted to access brastack[-1], which could cause crashes |
10 |
|
on some systems. |
11 |
|
|
12 |
|
2. Replaced offsetof(real_pcre, code) by offsetof(real_pcre, code[0]) because |
13 |
|
it was reported that one broken compiler failed on the former because "code" is |
14 |
|
also an independent variable. |
15 |
|
|
16 |
|
3. The erroneous regex a[]b caused an array overrun reference. |
17 |
|
|
18 |
|
4. A regex ending with a one-character negative class (e.g. /[^k]$/) did not |
19 |
|
fail on data ending with that character. (It was going on too far, and checking |
20 |
|
the next character, typically a binary zero.) This was specific to the |
21 |
|
optimized code for single-character negative classes. |
22 |
|
|
23 |
|
5. Added a contributed patch from the TIN world which does the following: |
24 |
|
|
25 |
|
+ Add an undef for memmove, in case the the system defines a macro for it. |
26 |
|
|
27 |
|
+ Add a definition of offsetof(), in case there isn't one. (I don't know |
28 |
|
the reason behind this - offsetof() is part of the ANSI standard - but |
29 |
|
it does no harm). |
30 |
|
|
31 |
|
+ Reduce the ifdef's in pcre.c using macro DPRINTF, thereby eliminating |
32 |
|
most of the places where whitespace preceded '#'. I have given up and |
33 |
|
allowed the remaining 2 cases to be at the margin. |
34 |
|
|
35 |
|
+ Rename some variables in pcre to eliminate shadowing. This seems very |
36 |
|
pedantic, but does no harm, of course. |
37 |
|
|
38 |
|
6. Moved the call to setjmp() into its own function, to get rid of warnings |
39 |
|
from gcc -Wall, and avoided calling it at all unless PCRE_EXTRA is used. |
40 |
|
|
41 |
|
7. Constructs such as \d{8,} were compiling into the equivalent of |
42 |
|
\d{8}\d{65527} instead of \d{8}\d* which didn't make much difference to the |
43 |
|
outcome, but in this particular case used more store than had been allocated, |
44 |
|
which caused the bug to be discovered because it threw up an internal error. |
45 |
|
|
46 |
|
8. The debugging code in both pcre and pcretest for outputting the compiled |
47 |
|
form of a regex was going wrong in the case of back references followed by |
48 |
|
curly-bracketed repeats. |
49 |
|
|
50 |
|
|
51 |
|
Version 1.02 12-Dec-97 |
52 |
|
---------------------- |
53 |
|
|
54 |
|
1. Typos in pcre.3 and comments in the source fixed. |
55 |
|
|
56 |
|
2. Applied a contributed patch to get rid of places where it used to remove |
57 |
|
'const' from variables, and fixed some signed/unsigned and uninitialized |
58 |
|
variable warnings. |
59 |
|
|
60 |
|
3. Added the "runtest" target to Makefile. |
61 |
|
|
62 |
|
4. Set default compiler flag to -O2 rather than just -O. |
63 |
|
|
64 |
|
|
65 |
Version 1.01 19-Nov-97 |
Version 1.01 19-Nov-97 |
66 |
---------------------- |
---------------------- |
67 |
|
|