[exim-dev] [Bug 2410] New: integer overflow macros.h

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: admin
Data:  
Para: exim-dev
Asunto: [exim-dev] [Bug 2410] New: integer overflow macros.h
https://bugs.exim.org/show_bug.cgi?id=2410

            Bug ID: 2410
           Summary: integer overflow macros.h
           Product: Exim
           Version: 4.92
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Unfiled
          Assignee: nigel@???
          Reporter: metadalek@???
                CC: exim-dev@???


My compiler complains about this.


line 408 in macros.h causes integer overflow.
enums are size int (32 bit on LP64 systems)

the line expands to

Di_verify = ( 407 - Di_iota ) , D_verify = ( 1 << ( Di_verify ) ),

where Di_iota is

Di_iota = ( 377 - 2 + 1 )

which means D_verify is initialized to (1 << 31)
which results in integer overflow and the compiler rightfully
complains.

I am not sure if this results in a run time bug or not.

I think this is a bug.

--
You are receiving this mail because:
You are on the CC list for the bug.