freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Uninitialized variable somewhere?


From: George Williams
Subject: [Devel] Uninitialized variable somewhere?
Date: 01 Aug 2004 13:20:39 -0700

When trying to debug the pfm code I got the following comment from
valgrind: (this is against 2.1.9, vanilla, except from my pfm patch)
$ valgrind test
==18445== Memcheck, a.k.a. Valgrind, a memory error detector for
x86-linux.
==18445== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
==18445== Using valgrind-20030725, a program supervision framework for
x86-linux.
==18445== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
==18445== Estimated CPU clock rate is 500 MHz
==18445== For more details, rerun with: -v
==18445== 
==18445== Conditional jump or move depends on uninitialised value(s)
==18445==    at 0x4024CEA8: FT_Attach_Stream (ftobjs.c:1789)
==18445==    by 0x4024CDF5: FT_Attach_File (ftobjs.c:1750)
==18445==    by 0x804866E: main (test.c:17)
==18445==    by 0x402CF8C6: __libc_start_main (in /lib/libc-2.3.2.so)
==18445==    by 0x8048570: (within /home/gww/frommac/test)
==18445== 
==18445== ---- Attach to GDB ? --- [Return/N/n/Y/y/C/c] ---- n
x=-103 y=0
==18445== 
==18445== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==18445== malloc/free: in use at exit: 76164 bytes in 70 blocks.
==18445== malloc/free: 362 allocs, 292 frees, 298349 bytes allocated.
==18445== For a detailed leak analysis,  rerun with: --leak-check=yes
==18445== For counts of detected errors, rerun with: -v

(I'm attaching my little test program. If the font files are needed, I
can provide them)

Attachment: test.c
Description: Text Data


reply via email to

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