Nicolas Holzschuch on Nostr: I just spent a few days tracking an interesting bug in iOS: if <filename> contains ...
I just spent a few days tracking an interesting bug in iOS: if <filename> contains non-strict UTF-8 characters, and <filename2> is the conversion to strict UTF-8, then the system call "rename(filename, filename2)" does not do anything, but "rename(filename, filename2.ext)" does.
Published at
2024-12-21 11:10:29Event JSON
{
"id": "8332c8356595212e3e1449b05901be137ca0e3a8f0c06e201102b2ac63845350",
"pubkey": "666313b447663c98fb72e31c8e5513957bc407e50ccf6ec34a61f8009fc39db7",
"created_at": 1734779429,
"kind": 1,
"tags": [
[
"proxy",
"https://piaille.fr/users/nholzschuch/statuses/113690504677929001",
"activitypub"
]
],
"content": "I just spent a few days tracking an interesting bug in iOS: if \u003cfilename\u003e contains non-strict UTF-8 characters, and \u003cfilename2\u003e is the conversion to strict UTF-8, then the system call \"rename(filename, filename2)\" does not do anything, but \"rename(filename, filename2.ext)\" does.",
"sig": "df0aa6920da5a90290c49d0e4989d48ae5ef35fe841abd79201269de35de23bbe49fc847e0c5a3d9bb74d81d101839777eb480c0f25eac02a93f67e4fc4ad854"
}