freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] bug: valgrind uninit mem usage - linux freetype v2.7


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] bug: valgrind uninit mem usage - linux freetype v2.7
Date: Sun, 16 Apr 2017 10:51:10 -0400

This was fixed differently
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=6ca54c643094800c1915dd856b9ea36276fe1e97

On Sat, Apr 15, 2017 at 11:07 AM, - - <address@hidden> wrote:
> valgrind reports this problem originating in libfreetype (v2.7)
> ==10001== Conditional jump or move depends on uninitialised value(s)
>
> I have a fix. Tested and working. Just a small change on one line.
>
> File: /src/freetype-2.7/src/smooth/ftgrays.c
> Function: gray_raster_render(..)
> [line 1867]    gray_TWorker  worker[1];
> =>
> [line 1867]    gray_TWorker  worker[1]={0};
>
> The same bug is also in the v2.7.1 sources (line 1848).
> This problem may be indicative of a deeper problem as to why 'worker' is not 
> initialized later, but at least this
> fix gives us a solid base rather than /random values/, and keeps valgrind 
> clean.
>
> Thank you for the wonderful freetype library.
>
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel



-- 
Alexei A. Podtelezhnikov, PhD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]