bug-hurd
[Top][All Lists]
Advanced

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

[bug #20906] libstore segfaults when failing to open multiple stores


From: Carl Fredrik Hammar
Subject: [bug #20906] libstore segfaults when failing to open multiple stores
Date: Sun, 26 Aug 2007 15:59:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.4) Gecko/20070603 Firefox/2.0.0.4

URL:
  <http://savannah.gnu.org/bugs/?20906>

                 Summary: libstore segfaults when failing to open multiple
stores
                 Project: The GNU Hurd
            Submitted by: hammy
            Submitted on: Sunday 08/26/2007 at 17:59
                Category: Hurd
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Reproducibility: Every Time
              Size (loc): None
         Planned Release: None
                  Effort: 0.00
Wiki-like text discussion box: 

    _______________________________________________________

Details:

When layering a store over multiple stores that fail to open, `libchannel'
generates a segfault.

To test it just do `settrans -ac foo /hurd/storeio -T file one two', where
`one' and `two' doesn't exist.  `foo' will crash after a `echo bar > foo'.

This is due to two `of by one' bugs in `store_parsed_open' and
`store_open_children' functions of `libstore'.

I have attached a patch fixing them and as a bonus slightly restructures the
affected code in `store_open_children' to match `store_parsed_open'.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sunday 08/26/2007 at 17:59  Name: libstore-multiple-stores-cleanup.diff
 Size: 864B   By: hammy

<http://savannah.gnu.org/bugs/download.php?file_id=13805>

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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