https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113922
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- From https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-access-function-attribute : >When no size-index argument is specified, the pointer argument must be either >null or point to a space that is suitably aligned and large for at least one >object of the referenced type (this implies that a past-the-end pointer is not >a valid argument). I think this is a bug in glibc and its (mis)use of the access and write only attribute without a size. It has: __attribute__ ((__access__ (__write_only__, 2))) but the documentation for this attribute does not correspond with the above.