This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
seekdir dereferences null
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sources dot redhat dot com" <newlib at sources dot redhat dot com>
- Date: Wed, 3 Dec 2008 14:44:05 -0600
- Subject: seekdir dereferences null
Hi,
Another bug picked up by the RTEMS test suite.
seekdir(NULL, 0) core dumps.
2008-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/posix/telldir.c (_seekdir): Do not dereference NULL dirp.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985