jp3d: Replace sprintf() by snprintf() in volumetobin() 1101/head
authorKarol Babioch <karol@babioch.de>
Sat, 3 Mar 2018 09:10:32 +0000 (10:10 +0100)
committerKarol Babioch <karol@babioch.de>
Sat, 3 Mar 2018 09:11:39 +0000 (10:11 +0100)
commite351c22ee8c4d8cef0f212831a00447bc0400601
treec103bbeded81ead1b7ede9c7ae3840eea74786ee
parent564fbfb67830e2eb234bc16b3db8fecf54261f95
jp3d: Replace sprintf() by snprintf() in volumetobin()

This replaces the unsafe sprintf() invocation by the safer snprintf()
one, with the correct buffer size to prevent buffer overflows.

This fixes #1085.
src/bin/jp3d/convert.c