It is specifically trying to prevent people from making firearms that is not detectable with a metal detector. You are allowed to create your own firearm. As long as it is detectable with a metal detector.
I'm not here to argue their method of enforcement. I'm just saying what the purpose is.
No. Regular notepad.exe does not have vulnerabilities.