From nobody@hyperreal.com Fri Sep 27 17:37:48 1996 Received: by taz.hyperreal.com (8.7.5/V2.0) id RAA24423; Fri, 27 Sep 1996 17:37:48 -0700 (PDT) Message-Id: <199609280037.RAA24423@taz.hyperreal.com> Date: Fri, 27 Sep 1996 17:37:48 -0700 (PDT) From: Reply-To: ldl@cs.utah.edu To: apbugs@hyperreal.com Subject: code not handling zero bytes correctly X-Send-Pr-Version: 3.2 >Number: 2 >Category: mod_dir >Synopsis: code not handling zero bytes correctly >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Sep 27 17:40:01 1996 >Last-Modified: Tue Oct 8 00:30:29 PDT 1996 >Originator: ldl@cs.utah.edu >Organization: >Release: 1.1.1 >Environment: Solaris 2.x >Description: caught SIGBUS, dumping core. The error occurs when dir listing is turned on and the mod_dir.c module has 0 num_ent. The palloc() call in index_directory() doesn't seem to handle size zero properly. I fixed the problem by checking that num_ent > 0 in order to do any of the code from the palloc() call through the qsort(). output_directories() handles num_ent of zero just fine and problem is avoided. >How-To-Repeat: >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: brian State-Changed-When: Tue Oct 8 00:30:28 PDT 1996 State-Changed-Why: Fix made sense, patch has been applied. Woohoo! >Unformatted: