bugThe GNU Hurd - Bugs: bug #20906, libstore segfaults when failing to...

 
 

bug #20906: libstore segfaults when failing to open multiple stores

Submitted by:  Carl Fredrik Hammar <hammy>
Submitted on:  Sun 26 Aug 2007 03:59:55 PM UTC  
 
Category:  Hurd Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Ready For Test Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 26 Aug 2007 03:59:55 PM UTC, original submission:

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

Carl Fredrik Hammar <hammy>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #13805:  libstore-multiple-stores-cleanup.diff added by hammy (864B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hammy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-26 hammy Attached File- => Added libstore-multiple-stores-cleanup.diff, #13805

    Back to the top


    Powered by Savane 3.3