Undefined behaviour in nbcd

Description

Running unittests in debug mode compiled with Clang, I get a core because of undefined behaviour in nbcd.cpp:

-> 1054 while (digits[hi] == 0 && hi >= lo)

hi is -1, lo is 0. Should the && operands be reversed?

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Created July 2, 2020 at 8:56 AM
Updated July 2, 2020 at 12:56 PM
Resolved July 2, 2020 at 12:56 PM