diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-05-16 23:04:25 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-05-30 17:35:01 +0400 |
commit | a03d85b70271c0664caf15ea10d3e232848082d0 (patch) | |
tree | 96f214850fc8d0571d859974a86a55876e1a2810 /Documentation/cpu-freq | |
parent | b5bcd909bef8caf59cfc85f02ac2879419c89ab3 (diff) | |
download | linux-a03d85b70271c0664caf15ea10d3e232848082d0.tar.xz |
drivers/char/ipmi: memcpy, need additional 2 bytes to avoid memory overflow
commit a5f2b3d6a738e7d4180012fe7b541172f8c8dcea upstream.
When calling memcpy, read_data and write_data need additional 2 bytes.
write_data:
for checking: "if (size > IPMI_MAX_MSG_LENGTH)"
for operating: "memcpy(bt->write_data + 3, data + 1, size - 1)"
read_data:
for checking: "if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH)"
for operating: "memcpy(data + 2, bt->read_data + 4, msg_len - 2)"
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'Documentation/cpu-freq')
0 files changed, 0 insertions, 0 deletions