Re:Massacring C Pointers
by TomVDB on Tuesday June 26, 2018 @01:54AM
(#17398201)
It returns the result r, which is a temporary, stack allocated array that becomes undefined by the time your return from the function. That’s the worst violation.
Furthermore, r is a fixed 100 bytes. There is no overflow checking whatsoever.
Furthermore, r is a fixed 100 bytes. There is no overflow checking whatsoever.