mlibc icon indicating copy to clipboard operation
mlibc copied to clipboard

memset_s like BSD

Open jonnygrant opened this issue 2 months ago • 1 comments

Hello Would be great to see the Annex K safe functions added, or at least the easy ones such as memset_s like BSD has https://man.freebsd.org/cgi/man.cgi?query=memset_s&sektion=3

These are the simplest to support and avoid thousands of security vulnerabilities their non bounds safe versions have caused.

memset_s, memcpy_s, memmove_s, strcpy_s, strncpy_s, strcat_s

Jonny

jonnygrant avatar Nov 16 '25 02:11 jonnygrant

While we do not have any Annex K functionality yet, we would open to contributions in that area. If you want to provide an implementation, feel free to submit a PR.

avdgrinten avatar Nov 16 '25 12:11 avdgrinten