bug-gnu-pspp
[Top][All Lists]
Advanced

[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:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-1)

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
allowed.

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:

  <http://savannah.gnu.org/bugs/?18922>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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