View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031073 | Open CASCADE | OCCT:Coding | public | 2019-10-17 05:48 | 2023-08-01 15:09 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Target Version | Unscheduled | ||||
Summary | 0031073: Coding - Image_PixMapData shall have data fields private | ||||
Description | Implementation of the class Image_PixMapData is unsafe: its fields that characterize internal structure of data (SizeBPP, SizeX, SizeY, SizeRowBytes, TopToDown) are public and can be changed arbitrarily, thus the class does not guarantee integrity of its internal state. I propose that these fields should be private, and relevant methods added to access them (read-only). Field TopToDown should not be accessible as is (i.e. with value either 1 or UINT_MAX) but as Boolean flag. Method Image_PixMap::TopDownInc() is confusing (documented to return either +1 or -1 but returns unsigned) and does not seem useful, better shall be removed. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
child of | 0031048 | closed | Visualization - runtime error reported by Clang undefined behavior sanitizer in Image_AlienPixMap::Save() |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-10-17 05:48 |
|
New Issue | |
2019-10-17 05:48 |
|
Assigned To | => kgv |
2019-10-17 05:48 |
|
Relationship added | child of 0031048 |
2020-08-28 14:28 | kgv | Target Version | 7.5.0 => 7.6.0 |
2021-08-24 14:59 | kgv | Target Version | 7.6.0 => 7.7.0 |
2022-08-17 12:01 | kgv | Target Version | 7.7.0 => 7.8.0 |
2022-10-19 15:56 |
|
Assigned To | kgv => vpozdyayev |
2023-08-01 15:09 | dpasukhi | Target Version | 7.8.0 => Unscheduled |