]>
Commit | Line | Data |
---|---|---|
76652ff6 AM |
1 | --- cvs-1.12.13.orig/debian/patches/11_check_method_crash |
2 | +++ cvs-1.12.13/debian/patches/11_check_method_crash | |
3 | @@ -0,0 +1,21 @@ | |
4 | +# | |
5 | +# Do a basic sanity check on the method in the CVSROOT - don't crash | |
6 | +# if one is not specified! Bug#274020 | |
7 | +# | |
8 | +# Patch from Steve McIntyre <steve@einval.com> | |
9 | +diff -ruN cvs-1.12.13-old/src/root.c cvs-1.12.13/src/root.c | |
10 | +--- cvs-1.12.13-old/src/root.c 2005-09-25 08:38:29.000000000 +0800 | |
11 | ++++ cvs-1.12.13/src/root.c 2006-02-26 17:48:32.000000000 +0800 | |
12 | +@@ -535,6 +535,12 @@ | |
13 | + method = ""; | |
14 | + #endif /* defined (CLIENT_SUPPORT) || defined (SERVER_SUPPORT) */ | |
15 | + | |
16 | ++ if (NULL == method) | |
17 | ++ { | |
18 | ++ error (0, 0, "Missing method in CVSROOT."); | |
19 | ++ goto error_exit; | |
20 | ++ } | |
21 | ++ | |
22 | + /* Now we have an access method -- see if it's valid. */ | |
23 | + | |
24 | + if (!strcasecmp (method, "local")) |