Package: pilot-qof
Version: 0.1.6-2
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

Line 76 is

        qa->entry[19] = strdup ("");

and Address_t contains:

  char *entry[19];

so obviously the array goes from 0 - 18 and assigning [19] is invalid.


> Automatic build of pilot-qof_0.1.6-2 on em64t by sbuild/amd64 0.53
...
> make[3]: Entering directory `/build/tbm/pilot-qof-0.1.6/src'
> cc -DHAVE_CONFIG_H -I. -I. -I..    -I.. -I../.. -g   
> -DLOCALE_DIR=\""/usr/share/locale"\" -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include   -I/usr/include/qof -I/usr/include/libxml2 
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -g -Wall -O2 -g2 -Wall 
>  -Werror -Wdeclaration-after-statement -Wno-pointer-sign -c qof-address.c
> cc1: warnings being treated as errors
> qof-address.c: In function 'address_create':
> qof-address.c:76: error: array subscript is above array bounds
> make[3]: *** [qof-address.o] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to