Closed
Description
This has happened since #53896
Here is a MWE.
julia> a = Memory{UInt8}(undef, 10);
julia> fill!(a, 0x01);
julia> String(view(a, 1:2))
"\x01\x01"
julia> a
0-element Memory{UInt8}
I expected a
to not be changed.
This is causing issues in JuliaWeb/HTTP.jl#1166
And I am also using String(view(
in https://github.com/JuliaIO/ZipArchives.jl/blob/5bacade2f71e0c28e2aeba09d21a665ecad131cd/src/reader.jl#L106
Metadata
Metadata
Assignees
Labels
No labels