]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- taken from apache -r RA-branch
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 9 May 2003 11:38:36 +0000 (11:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-security_htdigest_bufferoverflow.patch -> 1.1

apache1-security_htdigest_bufferoverflow.patch [new file with mode: 0644]

diff --git a/apache1-security_htdigest_bufferoverflow.patch b/apache1-security_htdigest_bufferoverflow.patch
new file mode 100644 (file)
index 0000000..4e5c849
--- /dev/null
@@ -0,0 +1,13 @@
+--- apache_1.3.26/src/support/htdigest.c       2002-10-23 09:22:02.000000000 +0200
++++ apache_1.3.26/src/support/htdigest.c       2002-10-26 09:33:54.000000000 +0200
+@@ -255,8 +255,8 @@
+       fprintf(stderr, "Use -c option to create new one.\n");
+       exit(1);
+     }
+-    strcpy(user, argv[3]);
+-    strcpy(realm, argv[2]);
++    strncpy(user, argv[3], sizeof (user));
++    strncpy(realm, argv[2], sizeof (realm));
+     found = 0;
+     while (!(getline(line, MAX_STRING_LEN, f))) {
This page took 0.042503 seconds and 4 git commands to generate.