diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-03-02 17:38:08 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-03-02 17:38:08 -0800 |
commit | 73733f079c086562d8e7c2943ed16cf6f95b2c42 (patch) | |
tree | 1187a3efbdcc990f3338a0c0b08172f6879eb2ad /test | |
parent | d87b20e1ae765cb65281c5bd7c12fc41e8a86780 (diff) | |
download | pdfium-73733f079c086562d8e7c2943ed16cf6f95b2c42.tar.xz |
Check that the names buffer is not empty before passing to GetNameFromTT.
Due to implicit conversion if the names buffer is empty then nullptr will
be passed to GetNameFromTT which blindly dereferences it leading to a NPD
if an invalid font file is read.
BUG=583037
Patch by forshaw@
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1763493003 .
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions