News for hackers. Stuff that matters.
Re:Strcpycat by dchest on Saturday January 21, 2012 @08:14AM (#3493489)
If len overflows and wraps (i.e. the sum of string lengths is > SIZE_MAX-1), you'll allocate less memory than is required and memcpy will write outside of buffer bounds.
Re:Strcpycat by tedunangst on Saturday January 21, 2012 @03:40PM (#3494516)
While that may be possible in some segmented systems, it's worth noting that on just about any modern system having a set of strings bigger than all available memory is unlikely.