Index: Source/modules/crypto/NormalizeAlgorithm.cpp |
diff --git a/Source/modules/crypto/NormalizeAlgorithm.cpp b/Source/modules/crypto/NormalizeAlgorithm.cpp |
index ec458057bd7ffa58188ba6dc7a8791acbb3b8458..d5d08e49c8540eae9c08c0d105fa70c72e8d1d04 100644 |
--- a/Source/modules/crypto/NormalizeAlgorithm.cpp |
+++ b/Source/modules/crypto/NormalizeAlgorithm.cpp |
@@ -130,7 +130,7 @@ struct AlgorithmInfo { |
blink::WebCryptoAlgorithmId algorithmId; |
const char* algorithmName; |
- AlgorithmParamsForOperation paramsForOperation[NumberOfAlgorithmOperations]; |
+ AlgorithmParamsForOperation paramsForOperation[LastAlgorithmOperation + 1]; |
}; |
// AlgorithmRegistry enumerates each of the different algorithms and its |