5 ms·
No regression tests? ಠ_ಠ
by stock_toaster 7y ago
No regression tests? ಠ_ಠ
- mehrdadn 7y agoI mean... does every single patch need a regression test? If I did free(p); p[i] = 1; and then I fixed it by doing p[i] = 1; free(p); do I really need a regression test to trigger the dumb use-after-free I'd introduced?
- reacweb 7y agoI think the answer to your question is not obvious. Here, it would have prevented the problem of Apple. 12 years ago while working on a military project on sun, I have encountered a similar vulnerability caused by a regression https://blog.erratasec.com/2007/02/trivial-remote-solaris-0day-disable.html#.XV0RbegzbmE https://blog.erratasec.com/2007/02/trivial-remote-solaris-0d... Adding this kind of non regression test is costly, but it protects against source code management mistakes.
- threeseed 7y agoIt looks like a bad merge in which if there was a test it would've not been merged either.
- m0xte 7y ago(again). Goto fail comes to mind.