DescriptionAdded ROBUST_PNG_CODEC to ImageDecoder
ROBUST_JPEG_CODEC was added in the past because using the default
decoder, that accepts various image formats, in login screens
is potentially dangerous.
However, JPEG format does not support transparent pixels, hence
profile images with transparent pixels are rendered incorrectly.
Per discussion with jorgelo@ and mdempsky@, this patch introduces
ROBUST_PNG_CODEC, that accepts only PNG data on top of the libpng
decoder.
BUG=587289
TEST=run the newly added browser tests
Committed: https://crrev.com/f7e76f065f7ee1843fd82753ec998bf95ccc1b7b
Cr-Commit-Position: refs/heads/master@{#380086}
Patch Set 1 #Patch Set 2 : just rebase #Patch Set 3 : add #ifdef #
Total comments: 2
Patch Set 4 : just rebase #Patch Set 5 : address comments #
Messages
Total messages: 14 (5 generated)
|