As machines become smarter, European regulations are putting software-and its vulnerabilities-under the microscope for safety compliance.