Closed jonashoechst closed 8 years ago
Jeremy and Paul, please leave this merge to me.
Thanks for the patch. I prefer not to use strlen() to test for an empty string, because in the case of a non-empty string it costs more than necessary. Also, one should always think twice about using strlen() on data read directly from input, because it may lead to a potential denial of service bug if the nul terminator is missing. (However, in this case that is not a problem because the strings in question are carefully constructed to always have a nul terminator.)
Fixed by 404cc14 and e770998.
There where some null checks in referenced structs, that should better be checks for empty strings (in my opinion). Using LLVM those lead to a compiler error.