Package: ctn
Version: 3.0.6-13

While building the package using our research compiler infrastructure we noticed
the following conflicting declarations:

- apps/dcm_create_object/gram_mod.c:

{
        unsigned long   num;
        char            str[1024+1];
        char            *s;
        DCM_OBJECT      *o;
        DCM_ELEMENT     *e;
        LST_HEAD        *l;
        void            *v;
} YYSTYPE;

- apps/dcm_create_object/gram.h (included by lex_mod.c):

{
        unsigned long   num;
        char            str[DICOM_LO_LENGTH+1];     <<<---- DICOM_LO_LENGTH 
expands to 64
        char            *s;
        DCM_OBJECT      *o;
        DCM_ELEMENT     *e;
        LST_HEAD        *l;
        void            *v;
} YYSTYPE;

The differing array sizes of str (1025 vs. 65 characters) may cause undefined
behaviour if assumptions about the storage size of the union are made in either
code.

Best,
Michael

Attachment: pgpUWgU2wBHdS.pgp
Description: PGP signature

Reply via email to