Closed DataSoft closed 12 years ago
Offending config file: https://gist.github.com/3350989
The culprit seems to be the error condition at line 635 of config.c:
errx(1, "%s: cannot find interface");
This is a function like printf, which takes a format string as the second parameter, then extra arguments afterward. In this case, it takes a %s value, but never specifies a string as an argument to fill it. At which point bad things happen.
Fixed in 1ffe21f504a882a9c6ae913118ea7f631599dd92
Waiting to be verified.
I was able to reproduce this error condition. Note that the segfault happens in the call to errx(), meaning that even though this fix does solve the segfault, honeyd will still quit. Though we can make a separate Issue to handle that case if/when it comes up again.
Nodes with addresses beyond what any of the given interfaces can use should be (and usually are) handled much earlier in the parsing process.
Backtrace: