[net]: Fix buffer overflow in send_cred_buffer().
authorAndre Noll <maan@systemlinux.org>
Sat, 25 Apr 2009 13:17:58 +0000 (15:17 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 25 Apr 2009 13:17:58 +0000 (15:17 +0200)
commit1c4fca3000b98973a433bfd80290d159fd6696a7
treee588f052963b8645e91484e90b677e795ee09cb0
parent3d0706fb869570dde858227b02aab558439c3d6a
[net]: Fix buffer overflow in send_cred_buffer().

As pointed out by Johannes Wörner, para_audioc crashes on recent
Ubuntu systems due to stack smashing. This is caused by writing past
the end of the control buffer which stores the message header and
the socket credentials.

This patch fixes the bug by allocating a properly sized buffer.
net.c