Server 2016 - msvcrt.dll - %z formatting crash

Clint Dovholuk <[email protected]> Thu, 10 Dec 2020 11:22:31 -0500
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
I tried hard to search for this answer so forgive me if I did not find the
proper thread. Basically this simple program will crash on windows server

2016



    int main() {

        size_t val = -42;

        printf("this will crash %zd(%s)\n", val, "this is some string");

        return 0;

    }



Msvcrt.dll and this program run fine on Windows 10 so it appears MS has
patched this particular issue in recent versions of Windows.



Does anyone know how to update Windows Server 2016 to get an
updated/patched msvcrt.dll? I've seen the threads around using UCRT but
recompiling the whole toolset seems to be overkill when all I really seem
to need is a patched msvcrt.dll in %WINDIR%\System32.



Thank you for reading

-Clint

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Posting Etiquette, as described at https://mingw.osdn.io/index.html?page=mailing.html#list-etiquette.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe