Re: mudflap and socket()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joe Bassis <joe.bassis@xxxxxxxxx> writes:

> I would like to know why mudflap says there is an error on line 22. Is
> it a false positive ?

>     if(getaddrinfo("localhost", "25", &hints, &result) != 0)
>     {
>         return -1;
>     }
>
>     int newsocket = socket(result->ai_family, result->ai_socktype,
> result->ai_protocol); // line 22

I think the problem is that mudflap does not know about the getaddrinfo
function, and does not understand that it sets result to point to an
initialized memory block.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux