]> git.pld-linux.org Git - packages/apache1.git/blame - apache1-security_htdigest_bufferoverflow.patch
- massive attack s/pld.org.pl/pld-linux.org/
[packages/apache1.git] / apache1-security_htdigest_bufferoverflow.patch
CommitLineData
edae8a83
JB
1--- apache_1.3.26/src/support/htdigest.c 2002-10-23 09:22:02.000000000 +0200
2+++ apache_1.3.26/src/support/htdigest.c 2002-10-26 09:33:54.000000000 +0200
3@@ -255,8 +255,8 @@
4 fprintf(stderr, "Use -c option to create new one.\n");
5 exit(1);
6 }
7- strcpy(user, argv[3]);
8- strcpy(realm, argv[2]);
9+ strncpy(user, argv[3], sizeof (user));
10+ strncpy(realm, argv[2], sizeof (realm));
11
12 found = 0;
13 while (!(getline(line, MAX_STRING_LEN, f))) {
This page took 0.070884 seconds and 4 git commands to generate.