Skip to content

Commit

Permalink
SECURITY: CVE-2010-3872 (cve.mitre.org)
Browse files Browse the repository at this point in the history
Fix possible stack buffer overwrite.

PR:  49406
Reported and diagnosed by: Edgar Frank <ef-lists email.de>


git-svn-id: https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk@1030894 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
trawick committed Nov 4, 2010
1 parent ed89a6f commit b1afa70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES-FCGID
@@ -1,6 +1,10 @@
-*- coding: utf-8 -*-
Changes with mod_fcgid 2.3.6

*) SECURITY: CVE-2010-3872 (cve.mitre.org)
Fix possible stack buffer overwrite. Diagnosed by the reporter.
PR 49406. [Edgar Frank <ef-lists email.de>]

*) Change the default for FcgidMaxRequestLen from 1GB to 128K.
Administrators should change this to an appropriate value based on
site requirements. [Jeff Trawick]
Expand Down
2 changes: 1 addition & 1 deletion modules/fcgid/fcgid_bucket.c
Expand Up @@ -96,7 +96,7 @@ static apr_status_t fcgid_header_bucket_read(apr_bucket * b,

/* Initialize header */
putsize = fcgid_min(bufferlen, sizeof(header) - hasread);
memcpy(&header + hasread, buffer, putsize);
memcpy((apr_byte_t *)&header + hasread, buffer, putsize);
hasread += putsize;

/* Ignore the bytes that have read */
Expand Down

0 comments on commit b1afa70

Please sign in to comment.