We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced669d commit 501482cCopy full SHA for 501482c
src/objects/value-serializer.cc
@@ -1202,7 +1202,8 @@ Maybe<T> ValueDeserializer::ReadZigZag() {
1202
1203
Maybe<double> ValueDeserializer::ReadDouble() {
1204
// Warning: this uses host endianness.
1205
- if (position_ > end_ - sizeof(double)) return Nothing<double>();
+ if (sizeof(double) > static_cast<unsigned>(end_ - position_))
1206
+ return Nothing<double>();
1207
double value;
1208
base::Memcpy(&value, position_, sizeof(double));
1209
position_ += sizeof(double);
0 commit comments