]> git.ipfire.org Git - thirdparty/curl.git/commit
strerror: skip errnum >= 0 assertion on windows
authorJay Satiro <raysatiro@yahoo.com>
Thu, 21 Jan 2021 07:46:07 +0000 (02:46 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 22 Jan 2021 06:47:04 +0000 (01:47 -0500)
commitd3a3bdb5ef867e270f4be205f36024ad1e48beb3
tree73ed1ab5fa69a69ecb797461e4253d0dca857d2b
parentb97a60f5f4d3fb63002bc76fcbc6cdeb4572189e
strerror: skip errnum >= 0 assertion on windows

On Windows an error number may be greater than INT_MAX and negative once
cast to int.

The assertion is checked only in debug builds.

Closes https://github.com/curl/curl/pull/6504
lib/strerror.c