Take a look at this site; it’s a fairly detailed explanation. Basically, strncpy()
doesn’t require NUL termination, and is therefore susceptible to a variety of exploits.
Take a look at this site; it’s a fairly detailed explanation. Basically, strncpy()
doesn’t require NUL termination, and is therefore susceptible to a variety of exploits.