ecovec.c:66: buffer too small by one.

Bug #1381642 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

[qemu-2.1.2/roms/u-boot/board/renesas/ecovec/ecovec.c:66]: (error) Buffer is accessed out of bounds.

    sprintf(env_mac, "%02X:%02X:%02X:%02X:%02X:%02X",
        mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);

but

    char env_mac[17];

and 18 into 17 won't go. Suggest increase size of env_mac.

Revision history for this message
Peter Maydell (pmaydell) wrote : Re: [Qemu-devel] [Bug 1381642] [NEW] ecovec.c:66: buffer too small by one.

On 15 October 2014 19:00, dcb <email address hidden> wrote:
> Public bug reported:
>
> [qemu-2.1.2/roms/u-boot/board/renesas/ecovec/ecovec.c:66]: (error)
> Buffer is accessed out of bounds.

This is in the u-boot code which we just carry a copy of
to produce certain boot ROMs. You should report these
issues directly to u-boot upstream.

Thanks
-- PMM

Revision history for this message
Thomas Huth (th-huth) wrote :
Changed in qemu:
status: New → Fix Released
Revision history for this message
Peter Maydell (pmaydell) wrote :

...and we don't build u-boot for the renesas ecovec, so we don't need to worry about updating our copy of u-boot to something with the fix in it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.