I mean there was the Voyager 1 patch to work around faulty memory as well.
But really I think NASA/JPL flight software has a much lower defect rate than most of the rest of us.
I don't think most companies software practices really deserve to be called "engineering" yet.
Writing low defect software is more expensive and time consuming than just winging it.
"Move fast and break things" is not an engineers motto.
@dabeaz
Also I was thinking of the NASA software reliability handbook
https://swehb.nasa.gov/display/SWEHBVC/8.02+-+Software+Reliability