Hi Luiz, On Fri, Dec 17, 2010, Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> > > In this case the buffer returned by mmap is not NULL terminated so > functions like strpbrk that expect a string goes out of bounds. > > To fix this strpbrk_len was introduced which takes the size of the buffer > making sure it never goes out of bounds. > --- > src/textfile.c | 38 +++++++++++++++++++++++++++++++++----- > 1 files changed, 33 insertions(+), 5 deletions(-) Thanks. The patch looks good and seems to compile and run fine too. It has been pushed upstream. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html