Chromium Code Reviews
Description[Fallback icons] Redoing http://crrev.com/988863002/, fixing use-after-free bug.
http://crrev.com/988863002/ triggered use-after-free in ASAN because it passes
("#" + color_str).c_str()
to FindColor() (which takes char*), then dereferences the returned pointer, which
has been deallocated. This is a redo of the CL that fixes the problem.
BUG=455063
Committed: https://crrev.com/bf33cc08aa8b255e082d0b0a242950d45693435d
Cr-Commit-Position: refs/heads/master@{#319875}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Comment fix; IsHexColorString() length check change. #
Total comments: 2
Patch Set 3 : Comment fix, add const. #Patch Set 4 : Fix compile error. #
Messages
Total messages: 11 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||