~ubuntu-branches/ubuntu/hoary/cvs/hoary-security

« back to all changes in this revision

Viewing changes to debian/patches/55_keyword_alphanumerics

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2004-06-09 20:42:37 UTC
  • Revision ID: james.westby@ubuntu.com-20040609204237-xdqypwnaqxd965tc
Tags: 1:1.12.9-1
* New upstream version.
  + Several security fixes: CAN-2004-0414, CAN-2004-0416,
    CAN-2004-0417 & CAN-2004-0418

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ur cvs-1.12.9/src/rcs.c cvs-1.12.4.new/src/rcs.c
 
2
--- cvs-1.12.9/src/rcs.c        2003-01-16 15:10:55.000000000 +0000
 
3
+++ cvs-1.12.9.new/src/rcs.c    2003-01-29 23:52:44.000000000 +0000
 
4
@@ -3657,13 +3657,18 @@
 
5
        srch_len -= (srch_next + 1) - srch;
 
6
        srch = srch_next + 1;
 
7
 
 
8
-       /* Look for the first non alphabetic character after the '$'.  */
 
9
+    /*
 
10
+     * Accept alphanumerics, not just alphabetics.  XFree86, anyone?
 
11
+     * Branden Robinson  Sat,  7 Sep 2002 02:04:59 -0500
 
12
+     */
 
13
+
 
14
+    /* Look for the first non alphanumeric character after the '$'.  */
 
15
        send = srch + srch_len;
 
16
        for (s = srch; s < send; s++)
 
17
-           if (! isalpha ((unsigned char) *s))
 
18
+           if (! isalnum ((unsigned char) *s))
 
19
                break;
 
20
 
 
21
-       /* If the first non alphabetic character is not '$' or ':',
 
22
+       /* If the first non alphanumeric character is not '$' or ':',
 
23
            then this is not an RCS keyword.  */
 
24
        if (s == send || (*s != '$' && *s != ':'))
 
25
            continue;