Chromium Code Reviews
Description[CSS Grid Layout] ASSERTION FAILED: repetitions > 0
If the author specifies an absurdly large number of repetitions it might
happen that the double value contained in the CSSParserValue does not fit in
a size_t, so it is clamped down to 0 during the type casting.
From now on we limit the value of repetitions to kGridMaxTracks (1 million)
before casting the double value to a size_t.
BUG=425001
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184154
Patch Set 1 #
Total comments: 5
Patch Set 2 : Use clampTo() instead of std::min() #
Total comments: 2
Patch Set 3 : Patch for landing #
Messages
Total messages: 15 (4 generated)
|
||||||||||||||||||||||||||||