From edae8a8387feacd841762fa95af90a4eba03f7e0 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 9 May 2003 11:38:36 +0000 Subject: [PATCH] - taken from apache -r RA-branch Changed files: apache1-security_htdigest_bufferoverflow.patch -> 1.1 --- apache1-security_htdigest_bufferoverflow.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apache1-security_htdigest_bufferoverflow.patch diff --git a/apache1-security_htdigest_bufferoverflow.patch b/apache1-security_htdigest_bufferoverflow.patch new file mode 100644 index 0000000..4e5c849 --- /dev/null +++ b/apache1-security_htdigest_bufferoverflow.patch @@ -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))) { -- 2.44.0