diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-03-06 22:54:58 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-03-17 08:00:34 -0700 |
commit | 2351c83a77a478b49cba6beb2ad386835e264744 (patch) | |
tree | 3e7cb031534603d7655e95e6bcad1311c4b4645e /COPYING | |
parent | 78c2e3d70d29698244f70164428bd2868c0ab34c (diff) |
bdfReadCharacters: ensure metrics fit into xCharInfo struct [CVE-2015-1804]
We use 32-bit ints to read from the bdf file, but then try to stick
into a 16-bit int in the xCharInfo struct, so make sure they won't
overflow that range.
Found by afl-1.24b.
v2: Verify that additions won't overflow 32-bit int range either.
v3: As Julien correctly observes, the previous check for bh & bw not
being < 0 reduces the number of cases we need to check for overflow.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions