]> git.pld-linux.org Git - packages/apache1.git/blob - apache1-security_htdigest_bufferoverflow.patch
- rel 0.2
[packages/apache1.git] / apache1-security_htdigest_bufferoverflow.patch
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.021404 seconds and 3 git commands to generate.