3 ms·
Doesn't memcpy_s not take into account the sources size though? You could still read past the end of an object with it, right?
by ndesaulniers 5y ago
Doesn't memcpy_s not take into account the sources size though? You could still read past the end of an object with it, right?
- rurban 5y agonope, it checks both. How could you call it secure without checking both sizes? memcpy_s(dest,dmax,src,slen) and my implementation safeclib even at compile-time, similar to glibc's FORTIFY.