Feature #8548

want memset_s(3C)

Added by Yuri Pankov 26 days ago. Updated 10 days ago.

Status:In ProgressStart date:2017-07-28
Priority:NormalDue date:
Assignee:Yuri Pankov% Done:


Category:lib - userland libraries
Target version:-
Difficulty:Bite-size Tags:


memset_s is C11 addition, and is already required by some software out there (libressl?).

FreeBSD has recently introduced it, so we can port their implementation.


Related issues

Related to illumos gate - Feature #4869: need libc secure enhancements for libressl New 2014-05-18


#1 Updated by Yuri Pankov 26 days ago

  • Related to Feature #4869: need libc secure enhancements for libressl added

#2 Updated by Robert Mustacchi 25 days ago

Are we going to need to implement the whole of Annex K?

#3 Updated by Yuri Pankov 25 days ago

I think that memset_s() and the constraint handlers that it needs can be done separately (as was done in FreeBSD), and will set a start for other parts.

#4 Updated by Yuri Pankov 23 days ago

Re-reading the standard, looks like we guarantee all of the bounds-checked functions to be available only if we define __STDC_LIB_EXT1__, so with partial implementation we can avoid the definition for the moment.

#5 Updated by Yuri Pankov 10 days ago

  • Status changed from New to In Progress
  • Tags deleted (needs-triage)
  • Category set to lib - userland libraries
  • Difficulty changed from Medium to Bite-size
  • % Done changed from 0 to 50
  • Assignee set to Yuri Pankov

Also available in: Atom