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 15757] New: - Assumption of sizeof (void*)/int begin equal (64-bit-unclean)
Date Thu, 02 Jan 2003 07:26:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15757>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15757

Assumption of sizeof (void*)/int begin equal (64-bit-unclean)

           Summary: Assumption of sizeof (void*)/int begin equal (64-bit-
                    unclean)
           Product: Apache httpd-2.0
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_dav
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: j-devenish@users.sourceforge.net


ints are being cast to/from void*s. I don't use the DAV module (well, I tried a
long time ago but it crashed, perhaps for different reasons) so I don't know
the practical impact of this. However, it's the sort of thing that can be
expected to cripple software by causing memory corruption.

main/liveprop.c:

83 gstein   1.5  value = (int)apr_hash_get...
90 gstein   1.5  apr_hash_set(...
91               ...(void *)++dav_liveprop_count);
96 gstein   1.5  return (int)apr_hash_get...
110              void *val;
115 trawick 1.10 s = apr_psprintf(p, " xmlns:lp%d=\"%s\"", (int)val...

fs/dbm.c:

345 gstein  1.19 int ns_id = (int)apr_hash_get...
499 gstein  1.19 (void *)ns);
609 gstein  1.19 int ns_id = (int)apr_hash_get(db->uri_index, uri, uri_len);
619 gstein  1.19 (void *)(db->ns_count + 1));

fs/repos.c:

2000 gstein  1.1 *context = (void *)(value == 'T');
2042 gstein  1.1 *rollback_ctx = (dav_liveprop_rollback *)old_value;

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


Mime
View raw message