Beat Hangartner
a9354d67ba
Initialise the BorderTitleBlock members its constructor compares
...
The constructor of BorderTitleBlock sets the border and title block
properties through importBorder() and importTitleBlock(). Their setters
(displayColumns(), setColumnsCount(), ...) compare the new value with
the member before storing it, and at that point the members have never
been written: display_columns_, display_rows_, the counts and sizes,
and m_edge are read uninitialised. UndefinedBehaviorSanitizer stops
every command-line run of the binary on the first of them:
bordertitleblock.cpp:455:23: runtime error: load of value 190,
which is not a valid value for type 'bool'
#0 BorderTitleBlock::displayColumns(bool)
#1 BorderTitleBlock::importBorder(BorderProperties const&)
#2 BorderTitleBlock::BorderTitleBlock(QObject*)
Give those members a default value in the header: false, 0 and
Qt::BottomEdge. The constructor then compares against known values. No
behaviour changes: the only effect of the comparisons in the constructor
is a displayChanged() signal nobody is connected to yet, and the
defaults of BorderProperties and TitleBlockProperties are all non-zero,
so no setter skips its clamp.
No file-format change. Tests: the sanitizer build of the Linux CI job
(separate PR) fails on master with the report above and passes with
this change; ctest on macOS 56/57, the failure being tst_elementautonumids
as on master.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
Signed-off-by: Beat Hangartner <beat@hangartners.ch >
2026-10-06 17:25:59 +02:00
..
2026-10-04 01:04:44 +02:00
2026-10-06 16:18:25 +02:00
2026-10-03 18:09:33 +02:00
2026-01-16 15:24:35 +01:00
2026-01-26 18:47:43 +01:00
2026-10-06 16:23:53 +02:00
2026-10-02 13:13:33 +02:00
2026-10-02 07:56:25 +02:00
2026-08-17 10:25:44 +02:00
2026-10-01 07:40:57 +13:00
2026-09-30 10:31:12 +13:00
2026-10-02 05:47:40 -05:00
2026-10-03 18:09:33 +02:00
2026-07-31 09:52:32 +12:00
2026-10-05 17:24:11 +13:00
2026-09-30 10:31:12 +13:00
2025-05-22 21:33:32 +02:00
2026-10-06 16:18:25 +02:00
2026-10-06 09:46:17 +02:00
2026-09-07 10:44:30 +02:00
2026-01-16 15:24:35 +01:00
2026-09-30 10:31:12 +13:00
2026-10-06 16:36:58 +02:00
2026-10-03 12:20:38 -05:00
2026-09-25 23:25:27 +12:00
2026-01-16 15:24:35 +01:00
2026-10-06 22:02:11 +13:00
2026-09-30 10:31:12 +13:00
2026-10-06 08:17:16 +13:00
2026-10-04 11:52:56 +02:00
2026-10-05 22:14:31 +13:00
2026-01-16 15:24:35 +01:00
2026-09-28 09:19:59 +13:00
2026-08-09 09:11:40 +02:00
2026-08-09 09:11:40 +02:00
2026-10-05 22:08:44 +13:00
2026-10-05 22:08:44 +13:00
2026-09-26 08:22:12 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-27 21:54:44 +13:00
2026-10-06 17:25:59 +02:00
2026-09-26 21:18:35 +12:00
2026-09-26 21:06:13 +12:00
2026-10-05 22:08:44 +13:00
2026-10-05 22:08:44 +13:00
2026-09-26 21:34:02 +12:00
2026-09-26 21:34:02 +12:00
2026-08-03 13:19:51 +12:00
2026-01-16 15:24:35 +01:00
2026-10-02 06:20:17 +13:00
2026-09-12 23:06:15 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-10-01 23:10:15 +13:00
2026-10-01 23:10:15 +13:00
2026-10-03 08:43:27 +13:00
2026-10-03 08:43:27 +13:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-30 10:31:12 +13:00
2026-01-16 15:24:35 +01:00
2026-09-09 11:45:36 +12:00
2026-09-27 21:54:44 +13:00
2026-09-27 21:54:44 +13:00
2026-10-04 11:52:56 +02:00
2026-10-04 11:23:26 +13:00
2026-10-04 01:04:44 +02:00
2026-10-03 18:09:33 +02:00
2026-09-29 23:23:32 +13:00
2026-09-29 23:23:32 +13:00
2026-10-02 21:04:54 +13:00
2026-09-22 09:07:27 +02:00
2026-09-28 06:16:17 +13:00
2026-09-26 21:40:32 +12:00
2026-09-26 21:40:46 +12:00
2026-09-26 21:40:46 +12:00
2026-09-27 11:16:37 +13:00
2026-01-16 15:24:35 +01:00
2026-09-07 20:54:18 +12:00
2026-10-04 11:52:56 +02:00
2026-10-01 10:29:34 +13:00
2026-10-05 18:00:26 +02:00
2026-09-27 21:54:44 +13:00
2026-09-07 10:44:30 +02:00
2026-09-07 10:44:30 +02:00
2026-09-30 10:31:12 +13:00
2026-04-26 10:48:47 +02:00
2026-07-14 19:27:16 +02:00
2026-01-16 15:24:35 +01:00
2026-09-30 10:31:12 +13:00
2026-01-16 15:24:35 +01:00
2026-09-19 12:22:24 -05:00
2026-01-16 15:24:35 +01:00
2026-09-29 23:23:32 +13:00
2026-09-29 23:23:32 +13:00
2026-10-02 05:47:40 -05:00
2026-05-13 19:42:11 +02:00
2026-10-03 18:09:33 +02:00
2026-08-04 16:36:23 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-26 10:36:40 +12:00
2026-09-26 10:22:50 +12:00
2026-10-04 01:32:03 +13:00
2026-09-27 21:54:36 +13:00
2026-08-08 08:09:45 +02:00
2026-08-06 21:37:40 +02:00
2026-08-09 19:25:56 +02:00
2026-08-06 21:37:40 +02:00
2026-10-02 16:15:51 +13:00
2026-04-19 10:44:52 +02:00
2026-09-28 14:55:04 +02:00
2026-09-28 14:55:04 +02:00
2026-09-16 15:40:41 +12:00
2026-09-16 15:40:41 +12:00
2026-09-17 00:07:46 +02:00
2026-06-20 22:31:06 +12:00
2026-10-02 23:15:05 +02:00
2026-10-04 10:16:34 -05:00
2026-01-16 15:24:35 +01:00
2026-09-20 22:58:08 +02:00
2026-09-26 21:17:19 +12:00
2026-10-05 21:43:28 +13:00
2026-10-04 08:54:13 +13:00
2026-09-18 18:28:48 +02:00
2026-08-12 12:29:56 +02:00
2026-10-01 15:21:51 +13:00
2026-10-01 15:21:51 +13:00
2026-10-03 09:33:24 +13:00
2026-10-03 19:44:12 +13:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-10-05 22:54:49 +13:00
2026-10-03 19:44:12 +13:00
2026-10-04 07:28:56 -05:00
2026-10-03 12:20:38 -05:00
2026-09-16 18:51:34 +12:00
2026-10-03 18:09:33 +02:00
2026-10-05 22:54:49 +13:00
2026-09-30 10:42:26 +13:00
2026-08-05 05:26:57 +12:00
2026-08-05 05:26:57 +12:00
2026-09-21 22:05:31 +02:00
2026-09-20 12:20:01 -05:00
2026-10-04 01:04:44 +02:00
2026-10-03 18:09:33 +02:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-20 12:45:07 -05:00
2026-09-19 12:26:06 -05:00
2026-08-16 07:16:33 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 00:07:46 +02:00
2026-07-17 10:25:49 +02:00
2026-08-08 00:32:31 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 00:07:46 +02:00
2026-09-17 00:07:46 +02:00
2026-08-09 01:34:22 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 00:07:46 +02:00
2026-01-16 15:24:35 +01:00
2026-07-17 10:29:13 +02:00
2026-07-17 10:29:13 +02:00
2026-09-27 09:09:44 +02:00
2026-09-27 09:09:44 +02:00
2026-10-06 08:17:16 +13:00
2026-10-06 08:17:16 +13:00
2026-10-04 00:07:16 +13:00
2026-10-04 00:07:16 +13:00
2026-09-30 18:12:43 +13:00
2026-09-26 10:22:50 +12:00
2026-10-06 09:53:49 +02:00
2026-10-05 17:53:38 +02:00
2020-09-07 22:03:40 +02:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-29 09:59:21 +13:00
2026-09-29 09:59:21 +13:00
2026-09-17 00:07:46 +02:00
2026-09-17 00:07:46 +02:00
2026-10-01 21:18:12 +13:00
2026-10-01 21:18:12 +13:00
2026-10-01 16:50:56 +13:00
2026-10-01 16:50:56 +13:00
2026-10-04 01:43:37 +13:00
2026-10-04 01:43:37 +13:00