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

Max Filippov jcmvbkbc at gmail.com
Fri May 15 18:44:11 UTC 2015


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?

-- 
Thanks.
-- Max


More information about the uClibc mailing list