1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 22:15:13 -05:00
curl/tests/server
Jay Satiro 07cf042ece strerror: Fix an error looking up some Windows error strings
- Use FORMAT_MESSAGE_IGNORE_INSERTS to ignore format specifiers in
  Windows error strings.

Since we are not in control of the error code we don't know what
information may be needed by the error string's format specifiers.

Prior to this change Windows API error strings which contain specifiers
(think specifiers like similar to printf specifiers) would not be shown.
The FormatMessage Windows API call which turns a Windows error code into
a string could fail and set error ERROR_INVALID_PARAMETER if that error
string contained a format specifier. FormatMessage expects a va_list for
the specifiers, unless inserts are ignored in which case no substitution
is attempted.

Ref: https://devblogs.microsoft.com/oldnewthing/20071128-00/?p=24353
2019-11-09 18:07:59 -05:00
..
.gitignore git: add tests/server/disabled to .gitignore 2019-09-30 18:01:05 +02:00
base64.pl scripts: allow all perl scripts to be run directly 2018-01-07 15:42:11 -05:00
CMakeLists.txt whitespace fixes 2018-09-23 22:24:02 +00:00
disabled.c tests: have runtests figure out disabled features 2019-06-17 16:08:00 +02:00
fake_ntlm.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
getpart.c cppcheck: fix warnings 2018-06-11 11:14:48 +02:00
getpart.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
Makefile.am makefile: make checksrc and hugefile commands "silent" 2019-03-14 20:11:24 +01:00
Makefile.inc tests: have runtests figure out disabled features 2019-06-17 16:08:00 +02:00
resolve.c code style: use spaces around equals signs 2017-09-11 09:29:50 +02:00
rtspd.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
server_setup.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
server_sockaddr.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
sockfilt.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
socksd.c build: fix Codacy warnings 2019-06-05 20:38:06 +02:00
sws.c sws: remove unused variables 2019-06-05 20:37:56 +02:00
testpart.c whitespace fixes 2018-09-23 22:24:02 +00:00
tftp.h URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
tftpd.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
util.c strerror: Fix an error looking up some Windows error strings 2019-11-09 18:07:59 -05:00
util.h timediff: return timediff_t from the time diff functions 2017-10-25 09:54:37 +02:00