dsw / oink-stack

Oink is a collaboration of C++ static analysis tools.
http://danielwilkerson.com/oink/index.html
153 stars 34 forks source link

Update locstr.h to fix issue #18. #19

Closed sam-ellis closed 8 years ago

sam-ellis commented 8 years ago

Fix for issue #18. As per the comments in locstr.h the str field is permitted to be NULL. This fix protects against NULL pointer dereference in the << operators. This allows elkhound/elkhound elkhound/examples/crash1.gr to pass (not segfault) on Mac OS X.