Open wolframroesler opened 4 years ago
Hmm, I'm not the original author of that code, but it sure does look suspicious, and quite dangerous. Personally I'd go back to the spec and rewrite that code altogether ...
I just checked with Coverity Scan, it doesn't trigger on that part of the code, but the function preceding it; _label()
. I've sent you guys an invite to view Coverity findings, if you're interested.
Thanks, looking forward to your implementation. I must admit that I have only a vague idea of what's going on in these functions.
Sorry, I meant to say that's what I would do, but I don't have the time right now to do it. Sorry for my being unclear.
I'm validating mDNS with clang-tidy and fixed a lot of findings already, but there's one that requires more intimate knowledge of the
_lmatch
function than I have. The reported problem is:Here's the full checker output:
Please note that line numbers refer to our copy of 10.35.c which is not necessarily identical to the one on master.