|
From: | Eric Noulard |
Subject: | Re: [certi-dev] Memory issues |
Date: | Fri, 28 Aug 2015 10:21:39 +0200 |
Hi.
I have just found some code try to access some uninitialized bytes
Please find attached is the valgrind dump.
I have had a look at libHLA/MessageBuffer.cc and I'm concerned about the code safety with the strict aliasing rule.
See https://channel9.msdn.com/Events/CPP/C-PP-Con-2014/Lightning-Talks-The-Perils-of-Strict-Aliasing for strict aliasing rule.
and http://dbp-consulting.com/tutorials/StrictAliasing.html
There are also many hard coded magic numbers...
I also mention I encountered another bug when using isAttributeOwnedByFederate.
In libRTI/hla-1_3/RTIambassador.cc, in RTI::RTIambassador::isAttributeOwnedByFederate
the rep.getTag() gives me "RTI_TRUE0" at some point.
I can reproduce the bug, I'll try to figure it tomorrow.
I'm not sure if that issue is linked to the strict aliasing rule
--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |