View Issue Details

IDProjectCategoryView StatusLast Update
0033665CommunityOCCT:Data Exchangepublic2024-05-15 13:46
Reporterlin789 Assigned Todpasukhi  
PrioritynormalSeveritycrash 
Status resolvedResolutionopen 
Product Version7.8.0 
Target Version7.9.0 
Summary0033665: Data Exchange, Step Import - TransferRoots crashes for invalid STEP files
DescriptionHello everyone,

I would like to report an issue that I encountered. I am new here, so if I am doing this the wrong way, please let me know :)
I have played around with an example model and have attached the following:
box_invalid1.step: Here, I removed the entity #/18
box_invalid2.step: Here, I removed the first parameter of entity #/11.
Both files lead to a crash (segmentation fault) when calling TransferRoots, see below to reproduce.
Can you please have a look at this issue?
Steps To ReproduceSTEPControl_Reader reader;
IFSelect_ReturnStatus stat = reader.ReadFile('box_invalid1.step');
reader.TransferRoots();
TagsNo tags attached.
Test case number

Attached Files

  • box_invalid1.step (16,042 bytes)
  • box_invalid2.step (16,069 bytes)

Activities

lin789

2024-04-04 18:37

reporter  

box_invalid1.step (16,042 bytes)
box_invalid2.step (16,069 bytes)

lin789

2024-04-04 18:55

reporter   ~0115590

I can't edit the issue description, so I'll add it here:
When I wrote number(#) 18 as the entity number, it was automatically converted to a ticket number.
The lines above should be
box_invalid1.step: Here, I removed the entity number 18
box_invalid2.step: Here, I removed the first parameter of entity number 11

git

2024-04-11 18:00

administrator   ~0115686

Branch CR33665 has been created by ichesnokova.

SHA-1: d22aa2cac5f1f008f84dcfe7d073b6c730a16561


Detailed log of new commits:

Author: ichesnok
Date: Thu Apr 11 14:12:41 2024 +0100

    0033665: Data Exchange, Step Import - TransferRoots crashes for invalid STEP files
    
    IsNull() check added for StepShape_FaceBound.

ichesnokova

2024-04-12 16:15

developer   ~0115696

Dear dpasukhi,
please review branch CR33665.

Issue History

Date Modified Username Field Change
2024-04-04 18:37 lin789 New Issue
2024-04-04 18:37 lin789 Assigned To => ika
2024-04-04 18:37 lin789 File Added: box_invalid1.step
2024-04-04 18:37 lin789 File Added: box_invalid2.step
2024-04-04 18:55 lin789 Note Added: 0115590
2024-04-04 19:10 dpasukhi Product Version 7.7.0 => 7.8.0
2024-04-04 20:19 dpasukhi Summary TransferRoots crashes for invalid STEP files => Data Exchange, Step Import - TransferRoots crashes for invalid STEP files
2024-04-04 20:19 dpasukhi Assigned To ika => ichesnokova
2024-04-04 20:19 dpasukhi Description Updated
2024-04-04 20:20 dpasukhi Description Updated
2024-04-04 20:20 dpasukhi Assigned To ichesnokova => dpasukhi
2024-04-04 20:20 dpasukhi Assigned To dpasukhi => ichesnokova
2024-04-04 20:20 dpasukhi Target Version => 7.9.0
2024-04-11 18:00 git Note Added: 0115686
2024-04-12 16:15 ichesnokova Assigned To ichesnokova => dpasukhi
2024-04-12 16:15 ichesnokova Status new => resolved
2024-04-12 16:15 ichesnokova Note Added: 0115696