summaryrefslogtreecommitdiffstats
path: root/arm-wt-22k/lib_src/eas_midi.h
diff options
context:
space:
mode:
authorPhil Burk <philburk@google.com>2018-08-18 11:52:03 -0700
committersyphyr <syphyr@gmail.com>2018-11-13 21:16:55 +0100
commit0e800891555945636e5590025da3b655dc9c7bd6 (patch)
treec42b22207fbf1d0dca9133249022254b4143a655 /arm-wt-22k/lib_src/eas_midi.h
parentee41d8e2a9e49c94cfa0f3ece93ef2b52c9524c3 (diff)
downloadandroid_external_sonivox-cm-11.0.tar.gz
android_external_sonivox-cm-11.0.tar.bz2
android_external_sonivox-cm-11.0.zip
sonivox: prevent rejection of good but large MIDI filescm-11.0
A security patch that was trying to detect infinite loops was accidentally rejecting very large MIDI files. This is because there is a scanning pass that looks at the entire file. That was generating a very high eventCount. With this change, we do not check event counts during the scanning pass. Bug: 112735915 Bug: 112575219 Bug: 68664359 Test: Generate a MIDI files with more than 50000 events. Test: There are some in b/112735915 and b/112575219 Test: mmma frameworks/av/cmds/stagefright Test: adb push out/target/product/marlin/system/bin/stagefright /system/bin/. Test: adb shell stagefright -a /sdcard/Download/verybigfile.mid Test: It should play correctly and not abort. Change-Id: Iddf2f5b178e9ca3867b14fcd78d538023d79240d Merged-In: Iddf2f5b178e9ca3867b14fcd78d538023d79240d (cherry picked from commit 123051dd0271ac0f245cb88c38878c6b21880632)
Diffstat (limited to 'arm-wt-22k/lib_src/eas_midi.h')
0 files changed, 0 insertions, 0 deletions