httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 55833] New: mod_disk_cache reads from closed files
Date Mon, 02 Dec 2013 00:34:14 GMT

            Bug ID: 55833
           Summary: mod_disk_cache reads from closed files
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cache_disk / mod_disk_cache

mod_disk_cache reads and closes hdrs.fd in recall_headers() but clearly closes
hdrs.fd in open_entity (the immediately preceding callback).

On unix, the read from the closed file seems to be tolerated because they are
open with buffering, but I think this is not intended.

IIUC, hdrs.fd should be left open from branches that return OK, and closed on
the others.  Or the relatively short data should be buffered explicitly
somewhere in memory / mod_disk_cache.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message