Ticket #240 (closed defect: fixed)
Pack of strings is incorrect.
Reported by: | David Brown <plt@…> | Owned by: | williams |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | williams/packed-binary.plt | Keywords: | |
Cc: | Version: | (1 3) | |
Racket Version: | 4.2.3 |
Description
(pack "4s" "inte")
#"\0\0\0\0"
(pack "4s" "longer")
#"er\0\0"
(pack "4s" "longerst")
(pack "4s" "longerstill")
bytes-copy!: not enough room in target byte string: #"longerstill"
The bytes-copy! at the end of pack-string has an incorrect last argument. I'm not why it should even be present, since the copy should always be from the beginning of the source string.
Change History
Note: See
TracTickets for help on using
tickets.