[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH][RESEND] qdev-properties: Fix (u)intXX parsers
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH][RESEND] qdev-properties: Fix (u)intXX parsers |
Date: |
Mon, 28 Jun 2010 15:54:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Kevin Wolf <address@hidden> writes:
> scanf calls must not use PRI constants, they have probably the wrong size and
> corrupt memory. We could replace them by SCN ones, but strtol is simpler than
> scanf here anyway. While at it, also fix the parsers to reject garbage after
> the number ("4096xyz" was accepted before).
>
> Signed-off-by: Kevin Wolf <address@hidden>
Ping... this secures an open deathtrap, please apply.