Re:Xerox scanners/photocopiers randomly alter numbers in sca...
by kevinpet on Monday November 15, 2021 @01:09PM
(#29230451)
This isn't the kind of issue a code review would catch. Code review will find when the code isn't written to standards or doesn't look maintainable. It isn't going to catch a subtle misuse of a technique that should be valid.
Re:Xerox scanners/photocopiers randomly alter numbers in sca...
by kragen on Tuesday November 16, 2021 @02:25AM
(#29237844)
That depends on what kind of code review you're doing. Code reviews intended to find bugs are very good at finding bugs that would be hard to find by testing.
Re:Xerox scanners/photocopiers randomly alter numbers in sca...
by flatiron on Monday November 15, 2021 @01:56PM
(#29231105)
the review should also be reviewing the tests, and you should really have a test if you have a standard.
Re:Xerox scanners/photocopiers randomly alter numbers in sca...
by tablespoon on Monday November 15, 2021 @03:00PM
(#29231925)
> the review should also be reviewing the tests, and you should really have a test if you have a standard.
Codes reviews and unit tests aren't a substitute for QA or acceptance testing. It's great when code reviews do catch stuff like this, but that's not going to catch everything. To me this bug points to deficiencies in another part of the process.
Re:Xerox scanners/photocopiers randomly alter numbers in sca...
by mypalmike on Tuesday November 16, 2021 @01:57AM
(#29237701)
One would have to know about this failure mode to write a test for it. Would you think to write this particular test?
Re:Xerox scanners/photocopiers randomly alter numbers in sca...
by flatiron on Tuesday November 16, 2021 @07:22AM
(#29239696)
I know nothing about this encoding but I would think each implementable feature of the standard should have some tests that you can implement. Maybe some sample data and then process it’s encoded counter part. I bet I am trivializing it but I would hope they are thinking twice about shoring up their process.
Which brings up another point: How did Xerox's SW development process take place? Was it done in-house with frequent code reviews or was it outsourced to a low bidder and then thrown back over the wall with no real quality assurance process?