Re: [Mingw-w64-public] Patch: Fix stack overflow in __mingw_wcstof and __mingw_wcstold

2020-02-21 Thread Liu Hao
在 2020/2/18 19:51, Tim Kosse via Mingw-w64-public 写道: > Hi, > > the attached patch fixes a stack overflow in __mingw_wcstof and > __mingw_wcstold. > > I've also attached a small reproducer for the bug. > > Interestingly the bugged functions are only called if using C++ and if > windows.h is incl

Re: [Mingw-w64-public] snprintf() is broken in mingw-w64

2020-02-21 Thread Liu Hao
在 2020/2/21 2:27, Pali Rohár 写道: > Hello! Based on raymod2 suggestion on IRC, I prepared full patch and > tested it that snprintf() and vsnprintf() works correctly. > > Patch is attached in email as jon_y on IRC suggested. I fixed directly > __ms_snprintf() and __ms_vsnprintf() wrappers (around ms