1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
msv ef59b5e064 0031292: Data Exchange - SIGSEGV on reading STEP file with references to invalid entities
Changes:

- in StepData_StepReaderData::ReadEntity, make sure that entity handle is not null before calling IsKind() of it.

- in StepData_StepReaderData::SetEntityNumbers, do not invert the sign of entity number of referenced parameter if the second pass is not required. Otherwise, the number -1 (obviously invalid) becomes 1 (invalid, but not obviously) without further correction of it.

- in StepData_UndefinedEntity::ReadRecord, consider the case when the entity number is positive but refers to non-existing entity. In this case literal value will be used instead of null entity for the problematic parameter.
2020-01-13 16:16:48 +03:00
..
2012-12-28 18:50:48 +04:00
2016-06-23 18:14:45 +03:00
2016-06-23 18:14:45 +03:00
2016-06-23 18:14:45 +03:00
2016-06-23 18:14:45 +03:00
2012-12-21 16:39:38 +04:00
2012-12-21 16:39:38 +04:00
2016-06-23 18:14:45 +03:00
2016-06-23 18:14:45 +03:00
2017-10-12 12:23:55 +03:00
2013-02-01 17:32:08 +04:00
2017-08-10 13:56:12 +03:00
2017-08-24 21:24:34 +03:00
2017-10-06 10:28:34 +03:00
2019-04-02 21:24:57 +03:00