diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-10-29 14:04:11 (GMT) |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-10-29 14:05:12 (GMT) |
commit | e8a79c9ec779168502402a8b834abf8cf38a325a (patch) | |
tree | 4d473feebe815ea3b76a21268e2642e748fb5e38 /arch | |
parent | 4a0fb4c44573759f878fc65f6ddbd46080748f8b (diff) | |
download | linux-e8a79c9ec779168502402a8b834abf8cf38a325a.tar.xz |
[S390] call home: fix string length handling
After copying uts->nodename to the static nodename array the static
version isn't necessarily zero termininated, since the size of the
array is one byte too short.
Afterwards doing strncat(data, nodename, strlen(nodename)); may copy
an arbitrary large amount of bytes.
Fix this by getting rid of the static array and using strncat with
proper length limit.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions