MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0009267 | CMake | CMake | public | 2009-07-13 14:42 | 2011-06-06 18:25 | |||||
Reporter | Andrey Rahmatullin | |||||||||
Assigned To | Bill Hoffman | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | duplicate | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-6 | |||||||||
Target Version | Fixed in Version | CMake 2.8.4 | ||||||||
Summary | 0009267: Buffer overflows in SystemInformation.cxx | |||||||||
Description | In file included from /usr/include/stdio.h:913, from /home/wrar/tmp/BUILD/cmake-2.6.4/Source/kwsys/SystemInformation.cxx:68: In function 'int sprintf(char*, const char*, ...)', inlined from 'bool cmsys::SystemInformationImplementation::RetrieveClassicalCPUIdentity()' at /home/wrar/tmp/BUILD/cmake-2.6.4/Source/kw sys/SystemInformation.cxx:1899: /usr/include/bits/stdio2.h:35: warning: call to int __builtin___sprintf_chk(char*, int, unsigned int, const char*, ...) will always overflow destination buffer In function 'int sprintf(char*, const char*, ...)', inlined from 'bool cmsys::SystemInformationImplementation::RetrieveClassicalCPUIdentity()' at /home/wrar/tmp/BUILD/cmake-2.6.4/Source/kw sys/SystemInformation.cxx:1900: /usr/include/bits/stdio2.h:35: warning: call to int __builtin___sprintf_chk(char*, int, unsigned int, const char*, ...) will always overflow destination buffer In function 'int sprintf(char*, const char*, ...)', inlined from 'bool cmsys::SystemInformationImplementation::RetrieveClassicalCPUIdentity()' at /home/wrar/tmp/BUILD/cmake-2.6.4/Source/kw sys/SystemInformation.cxx:1901: /usr/include/bits/stdio2.h:35: warning: call to int __builtin___sprintf_chk(char*, int, unsigned int, const char*, ...) will always overflow destination buffer That's because string literals in lines 1899..1901 are longer than CHIPNAME_STRING_LENGTH. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2009-07-13 14:42 | Andrey Rahmatullin | New Issue | ||||||||
2009-09-14 12:30 | Bill Hoffman | Note Added: 0017432 | ||||||||
2009-09-14 12:30 | Bill Hoffman | Status | new => assigned | |||||||
2009-09-14 12:30 | Bill Hoffman | Assigned To | => Bill Hoffman | |||||||
2009-09-14 16:20 | Andrey Rahmatullin | Note Added: 0017487 | ||||||||
2009-09-14 16:20 | Andrey Rahmatullin | Note Added: 0017488 | ||||||||
2009-09-14 16:20 | Andrey Rahmatullin | Note Deleted: 0017488 | ||||||||
2009-11-16 11:47 | Andrey Rahmatullin | Note Added: 0018445 | ||||||||
2011-02-03 18:53 | David Cole | Note Added: 0025266 | ||||||||
2011-02-03 18:53 | David Cole | Relationship added | duplicate of 0011018 | |||||||
2011-02-03 18:53 | David Cole | Status | assigned => resolved | |||||||
2011-02-03 18:53 | David Cole | Fixed in Version | => CMake 2.8.4 | |||||||
2011-02-03 18:53 | David Cole | Resolution | open => duplicate | |||||||
2011-06-06 18:25 | David Cole | Status | resolved => closed | |||||||
2011-06-06 18:25 | David Cole | Note Added: 0026696 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|