Mike Hearn [ARCHIVE] on Nostr: 📅 Original date posted:2014-07-15 📝 Original message:> > Unicode guarantees ...
📅 Original date posted:2014-07-15
📝 Original message:>
> Unicode guarantees that null-terminated strings still work.
UTF-8 guarantees that. Other encodings do not, you can have null bytes in
UTF-16 strings for example. Indeed most languages that use pascal-style
encodings internally allow null characters in strings, it's just not a good
idea to exploit that fact ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140715/db5f1b26/attachment.html>
Published at
2023-06-07 15:23:58Event JSON
{
"id": "428087f48758edaa7be59357633894881d84c0b70feeae1d08872f0e8622a3d0",
"pubkey": "f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2",
"created_at": 1686151438,
"kind": 1,
"tags": [
[
"e",
"60726055f5690f49a0698605fd9e440f1a7b0fbf2e702b7f0382a84f86474ca9",
"",
"root"
],
[
"e",
"c0e97ce07828cb81968fa684fac32944a497e3d11592098bcac8a8d73336ab53",
"",
"reply"
],
[
"p",
"b25e10e25d470d9b215521b50da0dfe7a209bec7fedeb53860c3e180ffdc8c11"
]
],
"content": "📅 Original date posted:2014-07-15\n📝 Original message:\u003e\n\u003e Unicode guarantees that null-terminated strings still work.\n\n\nUTF-8 guarantees that. Other encodings do not, you can have null bytes in\nUTF-16 strings for example. Indeed most languages that use pascal-style\nencodings internally allow null characters in strings, it's just not a good\nidea to exploit that fact ...\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20140715/db5f1b26/attachment.html\u003e",
"sig": "196a280535ebdf4a880818683ea45e403a041cb7382b0b5795bef09240ba3e830738ee4c84df3bf23810792c771d52dd2d2c479d876f387462feb1dfbed1efea"
}