chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #664: simple-sha1's sha1sum segfaults when passed a d


From: Chicken Trac
Subject: [Chicken-janitors] #664: simple-sha1's sha1sum segfaults when passed a directory
Date: Sat, 30 Jul 2011 11:19:00 -0000

#664: simple-sha1's sha1sum segfaults when passed a directory
----------------------------------------------+-----------------------------
 Reporter:  ckeen                             |       Owner:  felix
     Type:  defect                            |      Status:  new  
 Priority:  major                             |   Milestone:  4.8.0
Component:  extensions                        |     Version:  4.7.x
 Keywords:  sha1sum segfault save-the-robots  |  
----------------------------------------------+-----------------------------
 When passing a nonexistent path to sha1sum file-open returns an error.
 However if the programmer is stupid and passes a directory to sha1sum it
 segfaults due to the mmaping stuff.

 The attached patch changes the sha1sum behaviour to return #f on a
 nonexistant file or being passed a directory.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/664>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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