Messages in this thread | | | Date | Wed, 19 Sep 2012 13:50:16 +0200 | From | Oleg Nesterov <> | Subject | Re: [PATCH -mm v2] coredump: extend core dump note section to contain file names of mapped files |
| |
On 09/18, Oleg Nesterov wrote: > > Hmm. And I just noticed that 'filename = ""' case does not verify > there is a room to write a single '\0' :/ > > So, afaics you also need > > - if (-ENAMETOOLONG) > + if (-ENAMETOOLONG || !remaining)
No, please ignore.
d_path() always starts with prepend("\0", 1), it should always return ENAMETOOLONG if !remaining.
Oleg.
| |