Menu

#384 Wrong assertion in qep_hsm.

QP
closed
None
1
2026-02-24
2025-05-08
Anonymous
No

With QP/C version 8.0.2, an assertion in qep_hsm.c has been wrongly modified. It is the one on line 498 (v8.0.3): Q_INVARIANT_INCRIT(711, ip < (QHSM_MAX_NEST_DEPTH_ - 1)).
The variable ip can have the value of (QHSM_MAX_NEST_DEPTH_ - 1) after the while-loop. Therefore, the correct assertion is as follows: Q_INVARIANT_INCRIT(711, ip < QHSM_MAX_NEST_DEPTH_). This is for example correctly done on line 605 (v8.0.3).

Discussion

  • Quantum Leaps

    Quantum Leaps - 2025-05-09

    Thank you for reporting. This will be investigated.
    --MMS

     
  • Quantum Leaps

    Quantum Leaps - 2026-02-24
    • status: open --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2026-02-24

    Fixed in QP/C/C++ 8.1.2, where ascrutinizedll assertions have been scruitinized and tested (100% MC/DC).
    --MMS

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB