Instead of SIGFPE when bytespersample is zero or negative, return OV_EINVAL
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 13 Apr 2020 16:55:21 +0000 (18:55 +0200)
committerRalph Giles <giles@thaumas.net>
Wed, 15 Apr 2020 16:03:19 +0000 (09:03 -0700)
commit0a4beb1d04f802c48016b11fb939690e24173168
tree3d0c3a446cb901e06421dd493b4990d3c8f6c7a0
parent4d963fe0b4ba3bdb45233de4b959ce2f36963f7a
Instead of SIGFPE when bytespersample is zero or negative, return OV_EINVAL

Based on0002-Avoid-SIGFPE-when-bytespersample-is-zero.patch from Debian,
see https://bugs.debian.org/635906 , adjusted with input from Ralph
Giles.

Signed-off-by: Ralph Giles <giles@thaumas.net>
lib/vorbisfile.c