Summary: | Valgrind warning in gs_type0_next_char_glyph (gschar0.c:450) | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Alex Cherepanov <alex> |
Component: | PS Interpreter | Assignee: | Masaki Ushizaka <masaki.ushizaka> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Customer: | Word Size: | --- |
Description
Alex Cherepanov
2010-05-11 03:14:59 UTC
I thought even pte->fstack.items[fdepth].index is not initialized, the effect was harmless, i.e. the equivalent of 'if' block was already done and there is no harm to do that again. However, several test I performed today indicates that there is a possibility of another path, and it may do it harmful way. I will look into it and remove valgrind warnings. Thank you Alex for pointing this out. A fix is committed in r11281. ------------------------------------------------------------------------ r11281 | masaki | 2010-05-19 19:09:05 +0900 (Wed, 19 May 2010) | 9 lines Bug 691291. Fix reading uninitialized memory. The change I made in r10603 had a problem comparing with uninitialized data when using Roman fonts. The side effect was slowing down font rendering a little. In this change I added extra initializer and made intention of the 'if' condition more clear. No difference on outputs expected nor observed by localcluster tests. ------------------------------------------------------------------------ If you still find more errors, please reopen this bug and assign to me. |