Bug 165910 - F&R dialog shows match count modulo 64K
Summary: F&R dialog shows match count modulo 64K
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:25.8.0 target:25.2.3
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-26 07:03 UTC by Mike Kaganski
Modified: 2025-03-26 12:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-03-26 07:03:15 UTC
Create a text document, and put 70 000 times of character 'a'. Ctrl+H to open F&R dialog, put the character 'a' into the "Find" box, and use [Find All] button.

Since version 7.5 (tdf#126535), the number of matches is shown; but it's wrapped at 65536. The example above will show "4464" instead of the expected 70000.
Comment 1 Mike Kaganski 2025-03-26 07:22:00 UTC
https://gerrit.libreoffice.org/c/core/+/183324
Comment 2 Commit Notification 2025-03-26 09:06:43 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a62d9e9bb6b565e83c422066cf1f428173cdc0e0

tdf#165910: use sal_Int32 for match count

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2025-03-26 12:40:18 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/c24f23de3e4399cfa199ef61f5c8e837b5457c60

tdf#165910: use sal_Int32 for match count

It will be available in 25.2.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.