sys_eeprom.c:353: buffer too small

Bug #1381639 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/matrix_vision/mvblx/sys_eeprom.c:353]: (error) Buffer is accessed out of bounds.

        char ethaddr[9];

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

18 into 9 won't go. Suggest increase size of ethaddr.

Revision history for this message
Thomas Huth (th-huth) wrote :

roms/u-boot is not under control of the QEMU project - you should report such bugs to the u-boot project instead. Anyway, looks like the problem has been fixed there:
http://git.denx.de/?p=u-boot.git;a=commitdiff;h=cc87d18a6ec74180784a6b

Changed in qemu:
status: New → Fix Released
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.