CVE-2008-1685

Publication date 6 April 2008

Last updated 4 August 2025


Ubuntu priority

Description

gcc 4.2.0 through 4.3.0 in GNU Compiler Collection, when casts are not used, considers the sum of a pointer and an int to be greater than or equal to the pointer, which might lead to removal of length testing code that was intended as a protection mechanism against integer overflow and buffer overflow attacks, and provide no diagnostic message about this removal. NOTE: the vendor has determined that this compiler behavior is correct according to section 6.5.6 of the C99 standard (aka ISO/IEC 9899:1999)

Read the notes from the security team

Status

Package Ubuntu Release Status
gcc-4.2 9.10 karmic Ignored
9.04 jaunty Ignored
8.10 intrepid Ignored
8.04 LTS hardy Ignored
7.10 gutsy Ignored end of life, was needed
7.04 feisty Not in release
6.10 edgy Not in release
6.06 LTS dapper Not in release
gcc-4.3 9.10 karmic Ignored
9.04 jaunty Ignored
8.10 intrepid Ignored
8.04 LTS hardy Not in release
7.10 gutsy Not in release
7.04 feisty Not in release
6.10 edgy Not in release
6.06 LTS dapper Not in release

Notes


jdstrand

gcc-4.3 exists in main, so watch for Intrepid and later


mdeslaur

upstream says this isn't an issue: http://gcc.gnu.org/ml/gcc/2008-04/msg00115.html


Access our resources on patching vulnerabilities