This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

hash-set! segmentation fault [FIXED]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]