This is why you sanitize your inputs, 1983 edition

(This is heavily expanded from a few Twitter posts of mine.) When you write an application that has to rename a file, you have your chosen language and platform’s standard library to do the heavy lifting for you. For example in C it’s usually int rename(const char* oldName, const char* newName), and a bunch of other … Continue reading This is why you sanitize your inputs, 1983 edition