Re: [PATCH] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Sebastian Huber
Hm, yes, there is more wrong here. The returned name must be NUL-terminated. Attached is a patch. Maybe we should replace the MIN() with a static assertion that IMFS_NAME_MAX < sizeof(((struct dirent *)0)->d_name). - Joel Sherrill schrieb: > > > On 3/16/2015 1:18 PM, Sebastian Huber wro

Re: [PATCH] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Joel Sherrill
On 3/16/2015 1:18 PM, Sebastian Huber wrote: > Thanks for the fix, I checked it in. I commented on the commit. If there is a missing NULL at the readdir() point, that means that it wasn't put there at either creation or rename. Sounds like this is a necessary patch but covering up what I think i

Re: [PATCH] IMFS: don't strlen() an unterminated string in IMFS_dir_read().

2015-03-16 Thread Sebastian Huber
Thanks for the fix, I checked it in. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel