| Index: components/webcrypto/algorithms/aes_ctr.cc
|
| diff --git a/components/webcrypto/algorithms/aes_ctr.cc b/components/webcrypto/algorithms/aes_ctr.cc
|
| index dd7f012f254c98dd17dd3bba6879163ccd08caa4..3525c5ff37d8771ef4f64a79136edc1d2ce9a1c1 100644
|
| --- a/components/webcrypto/algorithms/aes_ctr.cc
|
| +++ b/components/webcrypto/algorithms/aes_ctr.cc
|
| @@ -166,7 +166,7 @@ Status AesCtrEncryptDecrypt(const blink::WebCryptoAlgorithm& algorithm,
|
| return Status::ErrorUnexpected();
|
|
|
| const CryptoData counter_block(params->counter());
|
| - buffer->resize(output_max_len.ValueOrDie());
|
| + buffer->resize(base::ValueOrDieForType<size_t>(output_max_len));
|
|
|
| // The total number of possible counter values is pow(2, counter_length_bits)
|
| bssl::UniquePtr<BIGNUM> num_counter_values(BN_new());
|
|
|