On Sun, 1 Mar 2020, Patrick Monnerat via curl-library wrote:
About curl_version*:
...
If we change the code to only overwrite struct/buffer bytes with the same
value, we should make these function thread-safe without having to to
implement alternate functions. The only thing that I would recommend is to
declare (at least conceptually) the existing functions result as const.
Among the changes to perform is avoiding the use of functions that store a
null-terminator after strings (like strcpy, strcat, msnprintf) directly
targetting the static buffer.
Ah of course! Yes, that certainly sounds totally reasonable and it should be
doable. Thanks!
--
/ daniel.haxx.se | Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html