[PATCH 1/5] winedbg: Add _snscanf function to safely parse packets.
Alexandre Julliard
julliard at winehq.org
Tue Mar 31 05:14:45 CDT 2020
Rémi Bernon <rbernon at codeweavers.com> writes:
> We don't build winedbg with msvcrt so it's not actually available but we
> can fake it instead.
>
> Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
> ---
> programs/winedbg/gdbproxy.c | 20 +++++++++++++++++---
> 1 file changed, 17 insertions(+), 3 deletions(-)
There are other functions that would have the same issue, I'd suggest
to always null-terminate the packet before parsing it.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list