[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH for-2.12] hw/block/pflash_cfi: fix off-by-one er
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-block] [PATCH for-2.12] hw/block/pflash_cfi: fix off-by-one error |
Date: |
Mon, 9 Apr 2018 11:56:32 +0200 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
Am 05.04.2018 um 01:32 hat Philippe Mathieu-Daudé geschrieben:
> ASAN reported:
>
> hw/block/pflash_cfi02.c:245:33: runtime error: index 82 out of bounds for
> type 'uint8_t [82]'
>
> Since the 'cfi_len' member is not used, remove it to keep the code safer.
>
> Reported-by: AddressSanitizer
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Cc: address@hidden
Thanks, applied to the block branch.
Kevin