Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(823)

Unified Diff: third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp

Issue 1841363003: Replace RELEASE_ASSERT_WITH_SECURITY_IMPLICATION with SECURITY_CHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp b/third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp
index 15f24e6eebbb4cd634982982ec4baac4a316ed3a..19620d911463914ad7a7a11ae6a9b5996a8994a5 100644
--- a/third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp
@@ -44,8 +44,7 @@ void BiquadDSPKernel::updateCoefficientsIfNecessary(int framesToProcess)
float gain[AudioUtilities::kRenderQuantumFrames];
float detune[AudioUtilities::kRenderQuantumFrames]; // in Cents
- RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(
- static_cast<unsigned>(framesToProcess) <= AudioUtilities::kRenderQuantumFrames);
+ SECURITY_CHECK(static_cast<unsigned>(framesToProcess) <= AudioUtilities::kRenderQuantumFrames);
if (getBiquadProcessor()->hasSampleAccurateValues()) {
getBiquadProcessor()->parameter1().calculateSampleAccurateValues(cutoffFrequency, framesToProcess);

Powered by Google App Engine
This is Rietveld 408576698