Train firmware reverse engineering discovers bogus lock up code