Skip to content
Snippets Groups Projects
Commit d2e0c7a5 authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Fix Jira issues #ROOT-8722 and ROOT-8723

Add a few tests like "if (obj->IsA() != TClass::Class())" to prevent casting a TClass object to its class type.
For example: if (obj->InheritsFrom("TDirectory")) returns true in the case of obj being a TClass (of a TDirectory class); then, calling ((TDirectory *)obj)->GetListOfKeys() fails (crash or random behavior)
parent 1467fb38
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment