Polyspace (either bug finder or code prover) is capable of detecting overflow on iteration variable?
Afficher commentaires plus anciens
I have a compiler reported bug stating that a loop may iterate more than expected. It is quite a corner case, but when dealing with ISO26262, corner cases need to be taken into consideration. Now I wonder if Polyspace could help to anticipate the issue. Would it detect and report about an overflow in the following code construct:
for (uint8_t i=100;i>1;i+=255) do_something();
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur IEC Certification Kit (for ISO 26262 and IEC 61508) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!