News for hackers. Stuff that matters.
Re:Signal on Android: Images sent to wrong contacts by hackinthebochs on Sunday July 25, 2021 @06:47PM (#27953659)
Using incrementing ids as your source of ownership is just asking for trouble. This just means a programming error can have a high probability of ids lining up and leaking resources. Guids make this practically impossible.
Re:Signal on Android: Images sent to wrong contacts by fulafel on Monday July 26, 2021 @02:17AM (#27956253)
I wonder if there's any widely implemented programming pattern that would catch this better, eg consisting of concatenated type code and id. Using GUIDs here would still hide the bug, not flag an error.
Re:Signal on Android: Images sent to wrong contacts by ultrarunner on Monday July 26, 2021 @11:40AM (#27960805)
I don’t know if it’s widely implemented, but the way Stripe IDs resources comes to mind.
Re:Signal on Android: Images sent to wrong contacts by rattray on Sunday July 25, 2021 @09:25PM (#27954532)
Interesting, I hadn't thought of that advantage of uuids/guids before.