[PATCH v2] _scanf.c: Implement 'm' modifier for 'c' and '[' conversions.

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue May 26 20:28:32 UTC 2015


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 <jcmvbkbc at gmail.com> wrote:
> >On Fri, May 8, 2015 at 1:15 AM, Max Filippov <jcmvbkbc at gmail.com>
> >wrote:
> >> From: Will Newton <will.newton at imgtec.com>
> >>
> >> 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 <will.newton at imgtec.com>
> >> Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
> >> ---
> >> Changes v1->v2:
> >> - add testcase for %[...]/%c/%m[...]/%mc.
> >
> >Ping?
> 
> This is OK, will install the pending patches early next week.
> Thanks!

Applied, thanks!


More information about the uClibc mailing list