Re: report a bug of gcc implementation of std::vsnprintf()

2023-03-30 Thread Jakub Jelinek via Gcc-bugs
On Thu, Mar 30, 2023 at 08:29:45AM +, Qiang Ren via Gcc-bugs wrote: > I found a bug in the result of std::vsnprintf(), here is the test app that > can reproduce it. > I tested with g++ 11.2 and 12.2 and both have the bug, and this issue does > not happen with visual c++. gcc-bugs is not the

report a bug of gcc implementation of std::vsnprintf()

2023-03-30 Thread Qiang Ren via Gcc-bugs
Hi, I found a bug in the result of std::vsnprintf(), here is the test app that can reproduce it. I tested with g++ 11.2 and 12.2 and both have the bug, and this issue does not happen with visual c++. #include #include #include #include int Sprintf(std::string& s, const char* pszFormat, ..