Sublime Forum

BUG: Copy is not binary-safe

#1

Very simply just have a 0 byte anywhere, either in the output of a program…

image

or in a file you downloaded…

and it will only copy the parts before the 0 byte, so “hello” and “HEAD”, respectively.

I repro’d this on Ubuntu and Windows, respectively, so it doesn’t seem to be OS-specific.

0 Likes

#2

Actually, I’m toying around with this some more on Windows, and it seems the GlobalSize of CF_UNICODETEXT is actually correct, but there is no data beyond the null byte, it is entirely zeroed out.

0 Likes

#3

See also:

0 Likes