httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55833] New: mod_disk_cache reads from closed files
Date Mon, 02 Dec 2013 00:34:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55833

            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
          Assignee: bugs@httpd.apache.org
          Reporter: covener@gmail.com

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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message