Re:The Following Code Causes Segfault in Clang
by lindig on Sunday August 03, 2014 @04:32AM
(#8127440)
If your are looking for code to break a C compiler, you can try my tool Quest https://github.com/lindig/quest. It tries to to generate code that shows that a C compiler handles parameter passing wrong. I usually run it in a loop, like here on Mac OS X 10.9.4 witch gcc:
This means the tool found C code where parameter passing is not compiled properly. It took about 10 seconds to find this. The test case is pretty small:
The generated code that where the assertion checks that parameters are received correctly looks like this:
[ Parent
| on HN ]
There are no comments on this comment yet.