If initstate() is called with size less than 8, it shall return
glibc sets errno to EINVAL for this case, but does not return NULL, thus violating the standard.
Created attachment 6990 [details]
Test case to demonstrate the bug
Thanks, fixed for glibc 2.18 now.
Author: Andreas Jaeger <email@example.com>
Date: Mon Apr 29 21:02:16 2013 +0200