View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023842 | Community | OCCT:Visualization | public | 2013-03-20 12:27 | 2013-04-29 15:24 |
Reporter | Pawel | Assigned To | kgv | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | A | OS | L | ||
Product Version | 6.4.0 | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0023842: Undefined behavior: Variable 'thePsFont' is used as parameter and destination in s[n]printf() | ||||
Description | In OpenGl_Text.cxx, line 96: sprintf (thePsFont, "%s%s", thePsFont, TheItalic[aFontId]); cppcheck message: "The variable 'thePsFont' is used both as a parameter and as destination in s[n]printf(). The origin and destination buffers overlap. Quote from glibc (C-library) documentation (http://www.gnu.org/software/libc/manual/html_mono/libc.html#Formatted-Output-Functions): "If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined."" | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
The offending code has been introduced in 0023457 |
|
> The offending code has been introduced in 0023457 No it didn't. |
|
Patch is ready for review in CR23842 branch. |
|
Branch CR23842 reviewed without remarks, ready for testing. |
|
Dear BugMaster, Branch CR23842 (and products from GIT master) was compiled on Linux and Windows platforms and tested without rebase. SHA-1: 6903904a719f26c7f17d93bfd0a31a1208d68f98 Number of compiler warnings: occt component : Linux: 3 (3 on master) Windows: 11 (11 on master) products component : Linux: 0 (0 on master) Windows: 50 (50 on master) Regressions: No regressions Improvements: No improvements Testing cases: Not needed Testing on Linux: Total MEMORY difference: 243477684 / 241671364 Total CPU difference: 17405.350000000162 / 14694.200000000103 Testing on Windows: Total MEMORY difference: 352774980 / 354810080 Total CPU difference: 21124.578125 / 22916.015625 There are not serious differences in images found by testdiff. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-20 12:27 | Pawel | New Issue | |
2013-03-20 12:27 | Pawel | Assigned To | => bugmaster |
2013-03-20 12:38 |
|
Note Added: 0023812 | |
2013-03-20 12:38 |
|
Assigned To | bugmaster => kgv |
2013-03-20 12:38 |
|
Status | new => assigned |
2013-03-20 12:38 |
|
Relationship added | child of 0023457 |
2013-03-20 12:39 |
|
Target Version | 6.7.0 => 6.6.0 |
2013-03-20 13:18 | kgv | Note Added: 0023813 | |
2013-03-20 13:18 | kgv | Product Version | 6.5.4 => 6.4.0 |
2013-03-20 13:18 | kgv | Note Edited: 0023813 | |
2013-03-20 15:07 | kgv | Note Added: 0023817 | |
2013-03-20 15:07 | kgv | Assigned To | kgv => san |
2013-03-20 15:07 | kgv | Status | assigned => resolved |
2013-03-20 17:32 |
|
Note Added: 0023826 | |
2013-03-20 17:32 |
|
Assigned To | san => bugmaster |
2013-03-20 17:32 |
|
Status | resolved => reviewed |
2013-03-20 18:21 |
|
Assigned To | bugmaster => mkv |
2013-03-21 08:29 | kgv | Relationship deleted | child of 0023457 |
2013-03-21 18:24 |
|
Note Added: 0023839 | |
2013-03-21 18:24 |
|
Test case number | => Not needed |
2013-03-21 18:24 |
|
Assigned To | mkv => bugmaster |
2013-03-21 18:24 |
|
Status | reviewed => tested |
2013-03-25 18:39 | kgv | Changeset attached | => occt master 8b224a09 |
2013-03-25 18:39 | kgv | Assigned To | bugmaster => kgv |
2013-03-25 18:39 | kgv | Status | tested => verified |
2013-03-25 18:39 | kgv | Resolution | open => fixed |
2013-04-23 13:35 |
|
Status | verified => closed |
2013-04-29 15:24 |
|
Fixed in Version | => 6.6.0 |