]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: set ENOSHARE and ECASECLASH _sys_errlist[] entries to empty
authorChristian Franke <christian.franke@t-online.de>
Tue, 27 Feb 2024 16:21:45 +0000 (17:21 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 28 Feb 2024 08:59:07 +0000 (09:59 +0100)
commitee97ae1d5f4d42d47d828a1b4d9b05ec9cbfe042
tree6f9f39599c9f67f1dd3a8af1308026a40a8f944a
parent6f996d7751bf25f7e4282da631eb79b93662e484
Cygwin: set ENOSHARE and ECASECLASH _sys_errlist[] entries to empty

These errno values are no longer used by Cygwin.  Change the entries
to empty strings instead of NULL to avoid crashes in existing
binaries directly accessing the table.  Enhance strerror_worker()
such that empty strings also result in "Unknown error ..." messages.
Also add a static_assert check for the _sys_errlist[] size.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
winsup/cygwin/errno.cc
This page took 0.02957 seconds and 5 git commands to generate.