httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52780] New: Some memory buglets in AddOutputFilterByType in 2.4.1
Date Mon, 27 Feb 2012 15:15:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52780

             Bug #: 52780
           Summary: Some memory buglets in AddOutputFilterByType in 2.4.1
           Product: Apache httpd-2
           Version: 2.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_filter
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: morlovich@google.com
    Classification: Unclassified


Created attachment 28393
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28393
patch

Hi.. I stumbled on a couple of bugs in handling of AddOutputFilterByType in
2.4.1 when running mod_pagespeed's integration tests against it, which the
attached patch should fix:

1) in filter_bytype, there is an off-by-one in writing the null termination of
the  types array.

2) In add_filter, only one of the ->types or ->expr fields is written, but the
structure is allocated without zeroing, so you can end up with a junk value of
the other field.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message