You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Null character is written at buf[3] for zero.
If we provide uninitialized buffer, buf[1] and buf[2] contains garbage and printf/cout does not work well when we don't use returned the number of string length(e.g. directly construct std::string from char[] buffer)
Possible fix would be
buffer[0] = '0';
buffer[1] = '\0';
?
The text was updated successfully, but these errors were encountered:
floaxie/include/floaxie/ftoa.h
Line 124 in 05c6259
Null character is written at
buf[3]
for zero.If we provide uninitialized buffer,
buf[1]
andbuf[2]
contains garbage and printf/cout does not work well when we don't use returned the number of string length(e.g. directly construct std::string fromchar[]
buffer)Possible fix would be
?
The text was updated successfully, but these errors were encountered: