qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1381642] [NEW] ecovec.c:66: buffer too small by one.


From: dcb
Subject: [Qemu-devel] [Bug 1381642] [NEW] ecovec.c:66: buffer too small by one.
Date: Wed, 15 Oct 2014 17:00:19 -0000

Public bug reported:

[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.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1381642

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

Status in QEMU:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1381642/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]