Browse code

- updated RE bugs - added a workarround for [^something] matches new line, courtesy of Bogdan

Andrei Pelinescu-Onciul authored on 01/04/2004 13:40:43
Showing 1 changed files
... ...
@@ -15,16 +15,26 @@ Patch: http://www.mobile-ip.de/~andrei/ser/main_group.patch
15 15
 Workaround: update from cvs or  apply the corresponding patch
16 16
 CVS status: fixed
17 17
 --------------------------------------------------------------
18
-Desc: textops search REs like "^From" fails to match on RH8
18
+Desc: textops search REs like "^From" fail to match on RH8
19 19
 Ser version: all
20
-Reason: there is a bug in RH8 libc
20
+Reason: there is a bug in RH8 libc, this kind of REs will never match
21
+        in case insensitive mode
22
+Test:  compile test/re_test.c (gcc re_test.c -o re_test) and try
23
+        echo -e "From:\nTo:" |./re_test -v '^From'
24
+       if your system is ok you should see 1 match, if not (and 
25
+       your libc has this bug), 0 matches.
21 26
 Workarround: ?upgrade?
22 27
 --------------------------------------------------------------
23
-Desc: textops subst REs match newline in constructs such [^@]
24
-Ser version: 0.8.13?-unstable
25
-Reason: there is a bug in newer libc versions (at least in debian
26
-        libc6 2.3.x)
27
-Workarround: use an older or fixed libc6 or avoid [^something]
28
+Desc: textops REs match newline in constructs such [^@]
29
+Ser version: all 
30
+Reason: there is a bug in newer linux libc versions (at least in
31
+         Debian libc6 2.3.x, Gentoo 1.4 lib 2.3.2, RH8, RH9, Fedora)
32
+Test:  compile test/re_test.c (gcc re_test.c -o re_test) and try
33
+        echo -e "From:\nTo:" |./re_test -v '[^.]+'
34
+       if your system is ok you should see 2 matches, if not (and 
35
+       your libc has this bug), only 1 match.
36
+Workarround: - use an older or fixed libc6 or avoid [^something]
37
+             - rewrite [^something] as [^something[:cntrl:]]
28 38
 ---------------------------------------------------------------
29 39
 Desc: memory leaks occurs if SIP requests are processed in which
30 40
       a Via header field occurs in end of header and includes