Summary
vector->string adds \x00 to the output
Metadata
- Id: 92e36fd9940db05424cbff8a2ce90513d1b8ad80
- Trac id: 1869
- Type: defect
- Reporter: zilti
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty: easy
- Resolution: duplicate
- Priority: major
- Milestone: someday
- Version: 6.0.0
- Changetime: 2026-07-06 20:40:58 UTC
- Created: 2026-03-21 02:01:53 UTC
- Keywords:
Description
vector->string adds NULL bytes to the output in increasing frequency:
(vector->string '#(#\a #\b #\c #\d #\e)) ;;=> "ab\x00;c\x00;\x00;\x00;d\x00;\x00;\x00;\x00;\x00;\x00;\x00;e\x00;\x00;\x00;\x00;\x00;\x00;\x13;\x00;"
Even worse, this:
(vector->string (string->vector (vector->string '#(#\a #\b #\c #\d #\e))))
results in a segmentation violation error.