[cairo-bugs] [Bug 29010] New: Compile time asserts triggered when checking sizes of truetype structs.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 11 12:25:08 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29010

           Summary: Compile time asserts triggered when checking sizes of
                    truetype structs.
           Product: cairo
           Version: 1.9.11
          Platform: ARM
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: jpihlaja at cc.helsinki.fi
         QAContact: cairo-bugs at cairographics.org


The compile time checks against the sizes of the tt_head_t, tt_name_t and
tt_glyph_data_t structs fail when compiling cairo-truetype-subset.c on an ARM
Debian Linux virtual machine image using gcc 4.3.2.  The image in question is
from http://people.debian.org/~aurel32/qemu/arm/debian_lenny_arm_small.qcow2.
Also, the check for tt_name_t's size is duplicated.

 gcc -DHAVE_CONFIG_H -I. -I.. -I. -D_REENTRANT
-I/home/user/build/prefix/include/pixman-1 -I/usr/include/libpng12 -Wall
-Wextra -Wold-style-definition -Wdeclaration-after-statement
-Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs
-Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes
-Wmissing-prototypes -Wpacked -Wswitch-enum -Wmissing-format-attribute
-Wbad-function-cast -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self
-Wunsafe-loop-optimizations -Wno-missing-field-initializers
-Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -Wlogical-op
-fno-strict-aliasing -fno-common -W,-D_FORTIFY_SOURCE=2 -O0 -MT
cairo-truetype-subset.lo -MD -MP -MF .deps/cairo-truetype-subset.Tpo -c
cairo-truetype-subset.c  -fPIC -DPIC -o .libs/cairo-truetype-subset.o
cairo-truetype-subset.c:103: error: size of array
âcompile_time_assertion_at_line_103_failedâ is negative
cairo-truetype-subset.c:107: error: size of array
âcompile_time_assertion_at_line_107_failedâ is negative
cairo-truetype-subset.c:108: error: size of array
âcompile_time_assertion_at_line_108_failedâ is negative
cairo-truetype-subset.c:110: error: size of array
âcompile_time_assertion_at_line_110_failedâ is negative
make[3]: *** [cairo-truetype-subset.lo] Error 1
airo-pthreads/src'
make[2]: *** [all] Error 2
airo-pthreads/src'

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list