Anonymous | Login | 2021-01-24 06:42 MSK | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0031349 | Community | [OCCT] OCCT:Modeling Data | public | 2020-02-05 14:43 | 2020-09-15 12:13 | ||||||||
Reporter | taoyouh | ||||||||||||
Assigned To | msv | ||||||||||||
Priority | normal | Severity | just a question | ||||||||||
Status | new | Resolution | open | ||||||||||
Platform | VC++ 2019 64 bit | OS | Windows | OS Version | 10 | ||||||||
Product Version | [OCCT] 6.3.1 | ||||||||||||
Target Version | [OCCT] 7.6.0* | Fixed in Version | |||||||||||
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 | |||||||||||||
Attached Files | |||||||||||||
![]() |
|
(0090809) kgv (developer) 2020-03-04 12:11 |
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 | View Revisions |
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 | msv | Target Version | 7.5.0 => 7.6.0* |
Copyright © 2000 - 2021 MantisBT Team |