Fix undefined behavior in libpng
authorscroggo <scroggo@chromium.org>
Fri, 3 Jun 2016 16:36:53 +0000 (09:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Jun 2016 16:36:53 +0000 (09:36 -0700)
commit1915b0bab2b48cf8bf85dc49e76994b033f25450
tree6954f5695e694dc3022f0cf3f716a4c5ad7c0604
parent7b9eabb392902e6e8f4206ba8aa041524258fd0f
Fix undefined behavior in libpng

Check for a null source before calling memcpy.

BUG=skia:5390
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2040433002

Review-Url: https://codereview.chromium.org/2040433002
third_party/libpng/README.google
third_party/libpng/pngpread.c