View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033140 | Open CASCADE | PRODUCTS:JT Import | public | 2022-09-13 10:20 | 2023-03-19 22:47 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | VC++ 2022 | ||
Product Version | 7.7.0 | ||||
Target Version | 7.7.0 | Fixed in Version | 7.7.0 | ||
Summary | 0033140: Coding, Jt Import - Incrorrect layer's string conversion [REGRESSION since 0033125] | ||||
Description | There is danger piece of code after changing type of `myActiveLayer` from `TCollection_ExtendedString` to `TCollection_AsciiString`. myActiveLayer = aLFProperty->Value; myActiveLayer.Remove(1, aAFName.Length() + 1); The problem is that the length of myActiveLayer could not equal the length of `aLFProperty->Value`. So, we should firstly trim `TCollection_ExtendedString` string, and only after this casting it to `TCollection_AsciiString`. | ||||
Steps To Reproduce | Not required | ||||
Tags | No tags attached. | ||||
Test case number | Not required | ||||
|
somethins wrong with issue summery and with commit description For example: 0032748 I thins the discription should be -> 033140: Coding, JtImport - Incrorrect layer's string conversion" or something equal. I think we can not use a "033140: Coding, JtImport - Incrorrect layer's string conversion [REGRESSION]" but you can. The important thing - this thicket should be *Child of * ticket contains regression |
|
@dpasukhi, i have fully recycled the commit title and commit message, as BUG title / message. Please, see it. |
|
Branch CR33140 was reviewed |
|
Combination - OCCT branch : IR-2022-09-23 master SHA - changes and them, and you can discard any commits you make in this b3284f3ba911e4d18477ff1788ace3d7201a8827 changes and them, and you can discard any commits you make in this e0ceb716c70188b98130b1550914140d0502a6f9 Products branch : IR-2022-09-23 SHA - f1708bcb12b969ae6e6578ab6d46bb65e135a733 was compiled on Linux, MacOS and Windows platforms and tested in optimize mode. Number of compiler warnings: No new/fixed warnings Regressions/Differences/Improvements: No regressions/differences CPU differences: Debian80-64: OCCT Total CPU difference: 18666.730000000585 / 18776.180000000597 [-0.58%] Products Total CPU difference: 11867.75000000012 / 11959.870000000119 [-0.77%] Windows-64-VC14: OCCT Total CPU difference: 20851.8125 / 20857.796875 [-0.03%] Products Total CPU difference: 14092.984375 / 14084.640625 [+0.06%] Image differences : No differences that require special attention Memory differences : No differences that require special attention |
occt-products: master fe27126e 2022-09-12 11:14:05
Committer: |
0033140: Coding, Jt Import - Incrorrect layer's string conversion [REGRESSION since 0033125]. There is danger piece of code after changing type of `myActiveLayer` from `TCollection_ExtendedString` to `TCollection_AsciiString`. myActiveLayer = aLFProperty->Value; myActiveLayer.Remove(1, aAFName.Length() + 1); The problem is that the length of myActiveLayer could not equal the length of `aLFProperty->Value`. So, we should firstly trim `TCollection_ExtendedString` string, and only after this casting it to `TCollection_AsciiString`. |
Affected Issues 0033140 |
|
mod - src/JTCAFControl/JTCAFControl_Reader.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-09-13 10:20 |
|
New Issue | |
2022-09-13 10:20 |
|
Assigned To | => ddzama |
2022-09-13 10:27 |
|
Assigned To | ddzama => dpasukhi |
2022-09-13 10:27 |
|
Status | new => resolved |
2022-09-13 10:27 |
|
Steps to Reproduce Updated | |
2022-09-13 13:17 | dpasukhi | Note Added: 0111011 | |
2022-09-13 13:17 | dpasukhi | Note Edited: 0111011 | |
2022-09-14 00:00 | dpasukhi | Assigned To | dpasukhi => ddzama |
2022-09-14 00:00 | dpasukhi | Status | resolved => assigned |
2022-09-15 00:58 |
|
Summary | [Regression]: 0033125: Coding, TKXDEJT - fix msvc compiler error C2666 "number overloads have similar conversions" => Coding, TKXDEJT - type casting potentially may cause a problem [regression since 0033125] |
2022-09-15 00:58 |
|
Description Updated | |
2022-09-15 01:02 |
|
Note Added: 0111053 | |
2022-09-15 01:02 |
|
Note Edited: 0111053 | |
2022-09-15 01:03 |
|
Note Edited: 0111053 | |
2022-09-15 01:07 |
|
Assigned To | ddzama => dpasukhi |
2022-09-15 01:07 |
|
Status | assigned => resolved |
2022-09-15 01:09 |
|
Description Updated | |
2022-09-15 01:15 |
|
Summary | Coding, TKXDEJT - type casting potentially may cause a problem [regression since 0033125] => Coding, Jt Import - Incrorrect layer's string conversion [REGRESSION since 0033125] |
2022-09-15 01:17 |
|
Description Updated | |
2022-09-23 13:00 | dpasukhi | Assigned To | dpasukhi => bugmaster |
2022-09-23 13:00 | dpasukhi | Status | resolved => reviewed |
2022-09-23 13:00 | dpasukhi | Note Added: 0111207 | |
2022-09-25 13:31 |
|
Status | reviewed => tested |
2022-09-25 13:31 |
|
Note Added: 0111246 | |
2022-09-25 13:36 |
|
Test case number | => Not required |
2022-09-25 13:38 |
|
Changeset attached | => occt-products master fe27126e |
2022-09-25 13:38 |
|
Assigned To | bugmaster => ddzama |
2022-09-25 13:38 |
|
Status | tested => verified |
2022-09-25 13:38 |
|
Resolution | open => fixed |
2022-10-25 17:22 |
|
Assigned To | ddzama => bugmaster |
2022-11-09 16:53 |
|
Category | PRODUCTS:Coding => PRODUCTS:JT Import |
2023-03-19 22:47 | vglukhik | Status | verified => closed |
2023-03-19 22:47 | vglukhik | Fixed in Version | => 7.7.0 |