Hi, all,
I am using sonarqube versión 8.9, scanner 4.6.0 and SonarCFamily 6.20.
And here comes a captured bug
It doesn’t look like a bug.
and the description is also wierd, what is "?"condition?
Wonder if it’s a false positive?
Hi, all,
I am using sonarqube versión 8.9, scanner 4.6.0 and SonarCFamily 6.20.
And here comes a captured bug
It doesn’t look like a bug.
and the description is also wierd, what is "?"condition?
Wonder if it’s a false positive?
Hello @deron.chen,
Thanks for reporting this, it might be a false positive indeed.
Could you tell me what is inside the macro CMSG_FIRSTHDR
please?
And could you provide me a reproducer file? It would be very helpful for me to understand the issue.
To generate a reproducer file in SonarQube:
sonar.cfamily.reproducer= "Full path to the .cpp file that has or include the file that has the false-positive"
sonar-cfamily.reproducer
in the project folder.Thank you
Hi,
thanks for replying.
Let me check with my supervisor first.
as I understand CMSG_FIRSTHDR is defined in sys/socket.h, the description of the macro is
struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *msgh);
* CMSG_FIRSTHDR() returns a pointer to the first cmsghdr in the
ancillary data buffer associated with the passed msghdr. It
returns NULL if there isn't enough space for a cmsghdr in the
buffer.
Best Regards,
Deron.Chen
Hi @deron.chen,
Any update on this?
Thanks,