This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
hash-set! segmentation fault [FIXED]
- To: Guile Mailing List <guile at sourceware dot cygnus dot com>, Guile Bug Mailing List <bug-guile at gnu dot org>
- Subject: hash-set! segmentation fault [FIXED]
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Fri, 7 Jul 2000 17:32:03 +0200 (MEST)
Hello!
Guile segfaults with each of the following inputs:
guile> (hash-set! (make-vector 0) #f #f)
or
guile> (hash-set! (make-hash-table 0) #f #f)
I have fixed this by signalling a misc-error when the attempts is made to
add entries to a zero-size hash table. It would also have been possible
to disallow the creation of zero size hash tables. But, since hash tables
are vectors, it would still have been possible to pass empty vectors to
hash-set!.
Best regards
Dirk