seekdir dereferences null

Joel Sherrill
Thu Dec 4 12:38:00 GMT 2008


Another bug picked up by the RTEMS test suite.

seekdir(NULL, 0) core dumps.

2008-12-03  Joel Sherrill <>

    * libc/posix/telldir.c (_seekdir): Do not dereference NULL dirp.

Joel Sherrill, Ph.D.             Director of Research & Development        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

More information about the Newlib mailing list