Re: [PATCH v2] _scanf.c: Implement 'm' modifier for 'c' and '[' conversions.
Bernhard Reutner-Fischer <[email protected]> Tue, 26 May 2015 22:28:32 +0200
| Newsgroups | gmane.comp.lib.uclibc.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, May 15, 2015 at 10:00:23PM +0200, Bernhard Reutner-Fischer wrote: > On May 15, 2015 8:44:11 PM GMT+02:00, Max Filippov <[email protected]> wrote: > >On Fri, May 8, 2015 at 1:15 AM, Max Filippov <[email protected]> > >wrote: > >> From: Will Newton <[email protected]> > >> > >> The current code implements the 'm' modifier only for 's' > >> conversions and would cause a segfault if it was used for 'c' > >> or '[' conversions. This patch extends the code to cover these > >> cases too. > >> > >> The original version could write scanned data outside the passed > >buffer > >> because index i used in the '[' conversion handling block was > >clobbered. > >> > >> Signed-off-by: Will Newton <[email protected]> > >> Signed-off-by: Max Filippov <[email protected]> > >> --- > >> Changes v1->v2: > >> - add testcase for %[...]/%c/%m[...]/%mc. > > > >Ping? > > This is OK, will install the pending patches early next week. > Thanks! Applied, thanks!