View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031349 | Community | OCCT:Modeling Data | public | 2020-02-05 14:43 | 2023-08-01 15:06 |
Reporter | taoyouh | Assigned To | |||
Priority | normal | Severity | just a question | ||
Status | new | Resolution | open | ||
Platform | VC++ 2019 64 bit | OS | Windows | ||
Product Version | 6.3.1 | ||||
Target Version | Unscheduled | ||||
Summary | 0031349: Modeling Data - GC_MakeSegment causes reading from NULL when start point and end point are identical | ||||
Description | In OCCT 7.4.0, when start point and end point are identical, the constructor of GC_MakeSegment tries to read at address NULL and causes an access violation. | ||||
Steps To Reproduce | pload MODELING point p0 0 0 0 point p1 1 0 0 gcarc s1 seg p0 p1 # OK gcarc s0 seg p0 p0 # KO ** Exception ** 000002A848257B20 : StdFail_NotDone: GC_MakeLine::Value() - no result Compile and run the following code: gp_Pnt ps; GC_MakeSegment make_segment(ps, ps); | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
The current design of GC tools is throwing an exception only in Debug builds - so that it is expected that application will NEVER pass invalid input to these tools (e.g. pre-validate input):StdFail_NotDone_Raise_if (TheError != gce_Done, "GC_MakeArcOfHyperbola::Value() - no result"); So the current behavior - is by design. It might be reconsidered to throw exception in Release builds (shouldn't harm performance, I think). |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-02-05 14:43 | taoyouh | New Issue | |
2020-02-05 14:43 | taoyouh | Assigned To | => msv |
2020-03-04 12:01 | kgv | Summary | GC_MakeSegment causes reading from NULL when start point and end point are identical => Modeling Data - GC_MakeSegment causes reading from NULL when start point and end point are identical |
2020-03-04 12:07 | kgv | Steps to Reproduce Updated | |
2020-03-04 12:11 | kgv | Note Added: 0090809 | |
2020-03-04 12:13 | kgv | Severity | crash => just a question |
2020-03-04 12:13 | kgv | Product Version | => 6.3.1 |
2020-03-04 12:13 | kgv | Target Version | => 7.5.0 |
2020-09-15 12:13 |
|
Target Version | 7.5.0 => 7.6.0 |
2021-08-29 18:53 |
|
Target Version | 7.6.0 => 7.7.0 |
2022-10-24 10:43 |
|
Target Version | 7.7.0 => 7.8.0 |
2023-08-01 15:06 | dpasukhi | Target Version | 7.8.0 => Unscheduled |