[LLVMdev] [cfe-dev] RFC: Adding attribute(nonnull) to things in libc++

Joerg Sonnenberger joerg at britannica.bec.de
Mon Jun 1 10:35:28 PDT 2015


On Mon, Jun 01, 2015 at 09:57:17AM -0700, Reid Kleckner wrote:
> Why should memset / memcpy be attribute nonnull? Is there standardese that
> supports that?

The generic entry text of the standard section. IMO this is a standard
bug and someone should *please* get it fixed. It is ridiculous that zero
sized operations are considered UB.

Joerg



More information about the llvm-dev mailing list