www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Davydoff <vv...@svzserv.kemerovo.su>
Subject mod_mime/3427: apache core dump when started with locale other then C
Date Fri, 20 Nov 1998 04:34:13 GMT

>Number:         3427
>Category:       mod_mime
>Synopsis:       apache core dump when started with locale other then C
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Nov 19 20:40:00 PST 1998
>Last-Modified:
>Originator:     vvdav@svzserv.kemerovo.su
>Organization:
apache
>Release:        1.3.3
>Environment:
FreeBSD 2.2.7
>Description:
In mod_mime.c structure array hash_buckets has 27 elements. When locale
is set to national language, is_alpha returns "true" not only for [A-Z,a-z]
and hash() may be > 27. In function find_ct:
" || (type = ap_table_get(hash_buckets[hash(*ext)], ext))) { "
                          ^^^^^^^^^^^^^^^^^^^^^^^^
is out of memory.
>How-To-Repeat:
Access to file "any.русский.html"
>Fix:
1. Increase MIME_HASHSIZE to 258 :-)
2. Fix hash()
3. Start apache with environment setting locale to C
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]




Mime
View raw message