#664 closed defect (fixed)
simple-sha1's sha1sum segfaults when passed a directory
Reported by: | Christian Kellermann | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | major | Milestone: | 4.9.0 |
Component: | extensions | Version: | 4.7.x |
Keywords: | sha1sum segfault save-the-robots | Cc: | |
Estimated difficulty: |
Description
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.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
patch to return #f on filename being a directory or nonexistent file