Re: [ft-devel] gray_render_scanline: very hot when fuzzing

2015-10-06 Thread Kostya Serebryany
BTW, w/o rendering the profile looks like this: 25.92% tt_cmap4_next 15.37% tt_cmap4_char_next 7.32% FT_Get_Next_Char 5.11% memset Does this look normal? --kcc On Tue, Oct 6, 2015 at 9:09 PM, Alexei Podtelezhnikov wrote: > On Tue, Oct 6, 2015 at 11:43 PM, Kostya

Re: [ft-devel] gray_render_scanline: very hot when fuzzing

2015-10-06 Thread Kostya Serebryany
On Tue, Oct 6, 2015 at 7:59 PM, Alexei Podtelezhnikov wrote: > On Tue, Oct 6, 2015 at 9:42 PM, Kostya Serebryany wrote: > > 51.76% repro_orig repro_orig [.] gray_render_scanline > > That's been FreeType workhorse since 2.0. You gotta draw

Re: [ft-devel] gray_render_scanline: very hot when fuzzing

2015-10-06 Thread Alexei Podtelezhnikov
On Tue, Oct 6, 2015 at 11:43 PM, Kostya Serebryany wrote: > On Tue, Oct 6, 2015 at 7:59 PM, Alexei Podtelezhnikov >> Anyhow, there is not much left to do or fuzz after >> rendering, so do not render > > If you think that fuzzing the rendering is not that

[ft] RasterInfo.ttf

2015-10-06 Thread Werner LEMBERG
I guess you might enjoy this :-) http://freetype.org/freetype2/docs/rasterinfo/rasterinfo.html Werner ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype

[ft-devel] RasterInfo.ttf

2015-10-06 Thread Werner LEMBERG
I guess you might enjoy this :-) http://freetype.org/freetype2/docs/rasterinfo/rasterinfo.html Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: [ft-devel] More fuzzing for freetype2?

2015-10-06 Thread Kostya Serebryany
On Tue, Oct 6, 2015 at 9:46 AM, Ben Wagner wrote: > I am interested in gx variation fonts being fuzzed. I've created an simple > SIL licensed example font of this type, which can be found at > https://skia.googlesource.com/skia/+/master/resources/fonts/Distortable.ttf > ,

Re: [ft-devel] Load font with incorrect header

2015-10-06 Thread Chenchen Zhou
Hi Werner, Thanks for your efforts and inputs. That’s a really a good news for me. My dev environment is VS 2013, I will try to run ftview against my fonts. I will keep you post. Chenchen > 在 2015年10月6日,13:14,Werner LEMBERG 写道: > > >> Recently I have come across some fonts

Re: [ft-devel] gray_render_scanline: very hot when fuzzing

2015-10-06 Thread Alexei Podtelezhnikov
On Tue, Oct 6, 2015 at 9:42 PM, Kostya Serebryany wrote: > 51.76% repro_orig repro_orig [.] gray_render_scanline That's been FreeType workhorse since 2.0. You gotta draw those glyphs on a bitmap. It is funny you should mention how expensive divisions there,

[ft-devel] gray_render_scanline: very hot when fuzzing

2015-10-06 Thread Kostya Serebryany
Hi, When fuzzing freetype ( https://github.com/kcc/libfuzzer-example/wiki/FreeType-Fuzzer-Bot) 50% of time is spent in a single function: gray_render_scanline. This is the profile when running this function on a large corpus of tests: