4 ms·
It has a classic C buffer overflow - there's a read where the amount read can exceed the buffer size. This is a consequence of C's biggest design flaw - the lan
by Animats 9y ago
It has a classic C buffer overflow - there's a read where the amount read can exceed the buffer size. This is a consequence of C's biggest design flaw - the language doesn't know the size of arrays. That's the root cause of most buffer overflow vulnerabilities.
It also means that Intel didn't do much code review. There are automated tools which recognize that specific class of bug.
- adrianN 9y agoI doubt that there is a tool that recognizes buffer overflows without a terrible false positive rate. Otherwise there would be far fewer such bugs.
- mmjaa 9y agoCoverity does a pretty good job. Of course it requires human interaction - but then, thats the only way to good code quality anyway.
- jahnu 9y agoThis is true but experience shows us that optional safe practices don't seem to be enough. A safe by default language looks like it makes the most sense in practice.
- jahnu 9y agoI'd wager that only a minority of projects use linters, static analysers, etc in continuous integration. I'd also wager that only a minority treat warnings as errors.
- tripzilch 9y agoI mean, it's only a piece of software that will literally run on nearly every PC in the world ...
- Animats 9y agoWith total control over the PC, external network access, and critical security functions. And Intel couldn't be bothered to run Coverity. Or this was a deliberately inserted but deniable backdoor.