diff options
author | Torbjörn Andersson | 2013-06-04 06:11:41 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2013-06-04 06:11:41 +0200 |
commit | 08be91604900f0d43380b3429a2aef87378c710f (patch) | |
tree | 120af1528730843f22d40039330040092bf6af7a /engines/hopkins/talk.h | |
parent | 1cc0e9cb8813a39c9f9d95287b811dbb534e3868 (diff) | |
download | scummvm-rg350-08be91604900f0d43380b3429a2aef87378c710f.tar.gz scummvm-rg350-08be91604900f0d43380b3429a2aef87378c710f.tar.bz2 scummvm-rg350-08be91604900f0d43380b3429a2aef87378c710f.zip |
SCUMM: Verify sample width in Digital iMUSE callback. CID 1002112
Verify that 'bits' really is one of 8, 12 or 16 before decoding
the data. It's probably always the case (unless the data files are
damaged) but if it isn't we'll either try to queue NULL to the
audio stream, or queue the same buffer more than once, or free the
buffer more than once. All of which are bad, though Coverity only
noticed the last of these cases.
Diffstat (limited to 'engines/hopkins/talk.h')
0 files changed, 0 insertions, 0 deletions