commit | 6a4718a3a0584c976b10d4e3a2cc58dc5f4a8242 | [log] [tgz] |
---|---|---|
author | Sebastian Rasmussen <sebras@gmail.com> | Tue Mar 05 17:25:19 2019 +0800 |
committer | Werner Lemberg <wl@gnu.org> | Tue Mar 05 11:28:19 2019 +0100 |
tree | 41441b604d03ae09274ef833d3bc3a67d6374ac6 | |
parent | 6d65c60fca0ebce88e2bcfeac92a7a791e03bf42 [diff] |
Fix use of uninitialized memory. * src/psaux/psintrp.c (cf2_interpT2CharString): The call to `cf2_arrstack_setCount' may fail because the allocator ran out of memory. When this happens the stack is still written to before the error condition is checked. This means that FreeType writes outside of allocated memory. This commit moves the error check prior to the stack assignment, hence the function now properly returns with an error condition.