View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0017432) Bill Hoffman (manager) 2009-09-14 12:30 |
It is 48+1 in CVS CMake, those strings are only about 20 chars long, should fit... |
(0017487) Andrey Rahmatullin (reporter) 2009-09-14 16:20 |
Those strings are 54+1, 57+1 and 61+1 in 2.6.4. |
(0018445) Andrey Rahmatullin (reporter) 2009-11-16 11:47 |
In 2.8.0 they are the same as in 2.6.4, so I don't know what were you speaking about. |
(0025266) David Cole (manager) 2011-02-03 18:53 |
There was another bug report on this one, too, and it is fixed in 2.8.4. |
(0026696) David Cole (manager) 2011-06-06 18:25 |
Closing resolved issues that have not been updated in more than 3 months. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |