[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #18922] Crashes if filenames differ only in case.

From: Ben Pfaff
Subject: PSPP-BUG: [bug #18922] Crashes if filenames differ only in case.
Date: Thu, 01 Feb 2007 17:42:29 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061205 Iceweasel/ (Debian-

Update of bug #18922 (project pspp):

                  Status:                    None => Ready for Test/Review  


Follow-up Comment #1:

The problem is that we're using a single member in struct file_handle, the
"name" field, for more than one purpose.  When it begins with '"', it's a
file name; otherwise, it's a token that can be used to identify it.  When
that assertion fires, it's because we searched for the name case-sensitively
as a file name (so that there was no match), and then we try to insert it
case-insensitively as a token, which fails because duplicates aren't

Solution: break the two purposes into two separate fields.  This fixes the
problem and likely makes the code easier to read too.

Patch attached.

(file #11906)

Additional Item Attachment:

File name: fh-crash.patch                 Size:9 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]