]> git.ozlabs.org Git - ppp.git/commit
radius: Prevent buffer overflow in rc_mksid()
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 4 Jan 2020 01:01:32 +0000 (12:01 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 4 Jan 2020 01:01:32 +0000 (12:01 +1100)
commit858976b1fc3107f1261aae337831959b511b83c2
tree9a43e04ebc0fdf6383be0a666e07f4ac04334a00
parent78cd384ce0f48bb5edb84e4fe9a574eab4a4ad14
radius: Prevent buffer overflow in rc_mksid()

On some systems getpid() can return a value greater than 65535.
Increase the size of buf[] to allow for this, and use slprintf()
to make sure we never overflow it.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/plugins/radius/util.c