• Blue Swirl's avatar
    lan9118: fix a buffer overflow · c46a3ea0
    Blue Swirl authored
    
    
    Fix a buffer overflow, reported by cppcheck:
    [/src/qemu/hw/lan9118.c:849]: (error) Buffer access out-of-bounds: s.eeprom
    
    All eeprom handling code assumes that the size of eeprom is 128,
    except lan9118_eeprom_cmd. Fix this by restricting the address passed.
    
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    c46a3ea0