Summary

Buffer overflow in file_info_2

Metadata

Attachments

Description

 #;> (file-exists? (list->string (map (lambda (x) #\a) (iota 4135))))
 Segmentation fault (core dumped)

Patch attached. Also fixes a couple other overflows in Win32 code and adds a safety check for fmode size (which should never overflow, but...)

Changes and comments

[2009-07-31 06:29:46 UTC] zbigniew attached file_info_overflow.diff.txt (description=#f)

[2009-07-31 22:08:35 UTC] felix changed status from new to closed

[2009-07-31 22:08:35 UTC] felix set resolution to fixed

[2009-07-31 22:08:35 UTC] felix wrote:

Patch applied in r15292. Danke.