Re: [PATCH 1/3] wineps.drv: Add support for PostScript Format 1 glyph names.
7 Sep
2015
7 Sep
'15
8 a.m.
On Fri, Sep 04, 2015 at 10:28:50PM -0600, Erich E. Hoover wrote:
+ size = GetFontData(hdc, MS_MAKE_TAG('p','o','s','t'), 0, NULL, 0); + if(size == 0 || size == GDI_ERROR) + return;
Here you'll want to check that size >= sizeof(*post_header). In the 2nd patch you don't check that this size includes numberOfGlyphs. In the 3rd patch the size checks are repeated three times, it should be possible to simplify that. Huw.
3750
Age (days ago)
3750
Last active (days ago)
0 comments
1 participants
participants (1)
-
Huw Davies