[patch] 2/4 clearing mlbuf

andrzej zaborowski balrogg at gmail.com
Tue Dec 4 12:09:21 CET 2007


On 03/12/2007, Sean Chiang <sean_chiang at openmoko.com> wrote:
> Without clearing mlbuf, when get multi-line response, extrsp_parse will
> be failed. because the garbage data left from the last time(line).

This doesn't look like the correct approach, I think a bug must be
somewhere else. The mlbuf is always null-terminated when it is
submitted to cmd->cb, so it would mean that the cmd->cb() or
extrsp_parse() reads beyond the end of the string. Can you give
example modem response that triggers this?

More information about the gsmd-devel mailing list