fix(discovery): use QString to avoid dangling QStringBuilder. - #10550
Conversation
|
/backport to stable-34.0 |
5f18785 to
8375783
Compare
Fix for #10535. auto on a QString concat keeps a QStringBuilder referencing destroyed temporaries, giving a garbage size allocation that crashes on Qt 6.4.2. Assisted-by: Claude Code:claude-opus-4-8 Signed-off-by: Camila Ayres <hello@camilasan.com>
8375783 to
c26101e
Compare
|
Just for info, this bug with auto+QString was fixed in a newer version of Qt (don't know which one) |
@CarlSchwan It might be related to QTBUG-104354 (Document QStringBuilder's auto gotcha) which was closed in Release 6.6.0 |
|
Artifact containing the AppImage: nextcloud-appimage-pr-10550.zip Digest: To test this change/fix you can download the above artifact file, unzip it, and run it. Please make sure to quit your existing Nextcloud app and backup your data. |
|
I know, this is fixed in 6.10 which we use in our AppImage, but the PPA package uses 6.4. that is why the PR. |



Fix for #10535.
auto on a QString concat keeps a QStringBuilder referencing destroyed temporaries, giving a garbage size allocation that crashes on Qt 6.4.2.
Checklist
AI (if applicable)