summaryrefslogtreecommitdiffstats
path: root/commands/led.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-07-28 08:33:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-07-29 12:02:21 +0200
commitb626a746a025c112eb4d00aec2ec78f4a7132324 (patch)
tree53adfe899faa24c9e6f2fabc8455c45344d1fa65 /commands/led.c
parent4cc463f9425585e7ad1c17b26841b762ae2ee4ca (diff)
downloadbarebox-b626a746a025c112eb4d00aec2ec78f4a7132324.tar.gz
barebox-b626a746a025c112eb4d00aec2ec78f4a7132324.tar.xz
Fix memory corruption bug in dev_id()
The size of the static buffer in dev_id was only 8 bytes (sizeof(long) * 2). This is completely bogus, so give the buffer a sane length and also make sure we don't write beyond the buffer using snprintf. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/led.c')
0 files changed, 0 insertions, 0 deletions