Ticket #240 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by williams

  • status changed from new to accepted

Changed 4 years ago by williams

  • status changed from accepted to closed
  • resolution set to fixed

Incorrect arguments to bytes-copy!. Fixed in Version 1.4 and released to PLaneT.

Note: See TracTickets for help on using tickets.