mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-12 10:21:22 +02:00
wc_GenerateSeed only checked os for NULL, so a NULL output passed straight into the entropy backend. glibc's vDSO getrandom() dereferences the buffer without validating it and segfaults instead of returning an error. Add the output NULL check (matching wc_RNG_GenerateBlock's convention) so the public seed API fails cleanly with BAD_FUNC_ARG.