Hey,
I wondered about the function:
gethostbyname(argv[2]);
can this be exploited by an Bufferoverflow attack?
Thank you!
Hey,
I wondered about the function:
gethostbyname(argv[2]);
can this be exploited by an Bufferoverflow attack?
Thank you!
If we exclude possible implementation-specific bugs, no.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
OBS: gethostbyname() and gethostbyaddr() are deprecated since 2008 (POSIX-1:2008). Use getaddrinfo() and getnameinfo().