DescriptionImprove input handling for WaveAudioHandler.
Improperly-formatted WAV data causes this class to attempt to divide by
zero in the constructor. Check for this condition, and invalidate
internal state if the WAV data does not parse properly. It should be able
to accept any data without crashing. Add unittests to verify.
Bug: b/21759728
BUG=
TEST=wav_audio_handler_unittest.cc
Committed: https://crrev.com/344528fe16c4daf1d34bd59e09fc8e07d12a27f4
Cr-Commit-Position: refs/heads/master@{#361147}
Patch Set 1 #Patch Set 2 : Correct typo #
Total comments: 8
Patch Set 3 : Remove is_valid_ #Patch Set 4 : Add factory method for WavAudioHandler #Patch Set 5 : Remove VLOG()s #
Total comments: 6
Patch Set 6 : Address nits. #Patch Set 7 : More comments, more test cases. #
Total comments: 14
Patch Set 8 : Address comments #
Total comments: 2
Patch Set 9 : Update FileSource #
Total comments: 6
Patch Set 10 : Address comments. #Patch Set 11 : clean-up #Patch Set 12 : Export FileSource for component build + rebase #Patch Set 13 : Allow tests to build on Win #Patch Set 14 : Formatting #
Messages
Total messages: 38 (11 generated)
|