diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-10-29 15:04:11 +0100 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-10-29 15:05:12 +0100 |
commit | e8a79c9ec779168502402a8b834abf8cf38a325a (patch) | |
tree | 4d473feebe815ea3b76a21268e2642e748fb5e38 /arch/s390/include/asm | |
parent | 4a0fb4c44573759f878fc65f6ddbd46080748f8b (diff) | |
download | op-kernel-dev-e8a79c9ec779168502402a8b834abf8cf38a325a.zip op-kernel-dev-e8a79c9ec779168502402a8b834abf8cf38a325a.tar.gz |
[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/s390/include/asm')
0 files changed, 0 insertions, 0 deletions