openssl: [BUG] Use of strnlen() is not portable
strnlen() in fuzz/provider.c is not portable. Causes build failures on NonStop (at least).
found_len = strnlen((const char *) *buf, *len);
^
"/home/ituglib/randall/openssl-klt/fuzz/provider.c", line 163: error(114):
identifier "strnlen" is undefined
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Fix regression on Nonstop from use of strnlen The provider fuzzer calls strnlen, whcih isn't implemented on non-stop (and possibly other) platforms. Fix it by replacing usage with OPENSSL_strnlen F... — committed to nhorman/openssl by nhorman 2 years ago
- Change strnlen() to OPENSSL_strnlen() in fuzz/provider. strnlen() is not portable. It is preferable to use the wrapper. Fixes: #24908 Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca> — committed to rsbeckerca/openssl by rsbeckerca 2 years ago
- Change strnlen() to OPENSSL_strnlen() in fuzz/provider. strnlen() is not portable. It is preferable to use the wrapper. Fixes: #24908 Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca> ... — committed to maximmasiutin/openssl by rsbeckerca 2 years ago
actually, scratch that, we have an implementation of OPENSSL_strnlen already, just need to switch to using it