Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-08 Thread JonY
On 1/7/2016 22:12, Tim Kosse wrote: > Hi, > > sorry, must have mixed something up, here's the correct patch. > > Regards, > Tim > Done, applied to master. Next time, do generate the patches with format-patch, preferably with a sign off line. Thanks. 0xD4EBC740.asc Description: application/

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-08 Thread Tim Kosse
Hi, sorry, must have mixed something up, here's the correct patch. Regards, Tim On 2016-01-04 08:16, Tim Kosse wrote: > Hi, > > the reverse function mbsrtowcs (mingw-w64-crt/misc/mbrtowc.c) suffers > from the same problem. This second patch fixes this function as well. > > Regards, > Tim Kosse

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-05 Thread JonY
On 1/5/2016 23:09, Kai Tietz wrote: > Patch is ok. Could somebody please apply? > > Thanks, > Kai > Applied first patch to master, waiting for 2nd patch. 0xD4EBC740.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-05 Thread JonY
On 1/4/2016 15:16, Tim Kosse wrote: > Hi, > > the reverse function mbsrtowcs (mingw-w64-crt/misc/mbrtowc.c) suffers > from the same problem. This second patch fixes this function as well. > > Regards, > Tim Kosse > Wrong patch attached? 0xD4EBC740.asc Description: application/pgp-keys sig

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-05 Thread Kai Tietz
Patch is ok. Could somebody please apply? Thanks, Kai 2016-01-05 11:51 GMT+01:00 JonY : > On 1/4/2016 15:16, Tim Kosse wrote: >> Hi, >> >> the reverse function mbsrtowcs (mingw-w64-crt/misc/mbrtowc.c) suffers >> from the same problem. This second patch fixes this function as well. >> >> Regards,

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-05 Thread JonY
On 1/4/2016 15:16, Tim Kosse wrote: > Hi, > > the reverse function mbsrtowcs (mingw-w64-crt/misc/mbrtowc.c) suffers > from the same problem. This second patch fixes this function as well. > > Regards, > Tim Kosse > Kai, Care to take a look? Patch looks strange to me. 0xD4EBC740.asc Descrip

[Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-04 Thread Tim Kosse
Hi, there's a bug in wcsrtombs (mingw-w64-crt/misc/wcrtomb.c) if null is passed as destination buffer. In this case, wcsrtombs does not ignore the len argument. Yet, according to the C99 standard, if the dst is null, the len argument is ignored. The attached patch fixes this bug. Regards, Tim Ko

Re: [Mingw-w64-public] Patch: wcsrtombs with null dst must ignore len

2016-01-04 Thread Tim Kosse
Hi, the reverse function mbsrtowcs (mingw-w64-crt/misc/mbrtowc.c) suffers from the same problem. This second patch fixes this function as well. Regards, Tim Kosse On 2016-01-04 01:19, Tim Kosse wrote: > Hi, > > there's a bug in wcsrtombs (mingw-w64-crt/misc/wcrtomb.c) if null is > passed as des