QCanDbcFileParser: fix the size of Unique Id
The unique id can contain 11 or 29 bits, so apply a mask when
extracting it.
Update the unit-tests to use a bus value with the 31-st bit set,
to make sure that we handle such values correctly.
Fixes: QTBUG-114043
Pick-to: 6.6 6.5
Change-Id: I1164bc13980af998007e35a3dcb4c22db2bda755
Reviewed-by: André Hartmann <aha_1980@gmx.de>
| commit | 42cbbe9b681e6e8c2a6e1b9a88679e5158ec3977 |
| parent | 477d29031d521a90c6936407e4da6fa76a488a1a |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 9 Jun 2023 10:27:21 +0200 |
- M src/serialbus/qcandbcfileparser.cpp
- M tests/auto/qcandbcfileparser/data/different_data_types.dbc
- M tests/auto/qcandbcfileparser/data/extended_multiplexing.dbc
- M tests/auto/qcandbcfileparser/data/message_signals_in_one_line.dbc
- M tests/auto/qcandbcfileparser/data/messages_with_comments.dbc
- M tests/auto/qcandbcfileparser/data/value_descriptions.dbc
- M tests/auto/qcandbcfileparser/tst_qcandbcfileparser.cpp