Hi,
Thank you for your work.
In file src/schubfach_32.h, there is the following declaration:
constexpr int FtoaMinBufferLength = 32;
But when calling Ftoa with a negative number (for example -10), the function writes at least to buffer[32]. Because the negative causes buffer to advance
buffer += v.SignBit();
and then there are the two
std::memset(buffer + 0, '0', 16);
std::memset(buffer + 16, '0', 16);
This is for instance flagged by asan.
Keep up the good work!
Best regards,
JH.
Hi,
Thank you for your work.
In file src/schubfach_32.h, there is the following declaration:
constexpr int FtoaMinBufferLength = 32;But when calling
Ftoawith a negative number (for example -10), the function writes at least to buffer[32]. Because the negative causes buffer to advancebuffer += v.SignBit();and then there are the two
std::memset(buffer + 0, '0', 16);std::memset(buffer + 16, '0', 16);This is for instance flagged by asan.
Keep up the good work!
Best regards,
JH.