| Summary: | On Git master/1.10, application crashes when word wrap is enabled, selecting text, and refreshing diff | ||
|---|---|---|---|
| Product: | [Applications] kdiff3 | Reporter: | nyanpasu64 <nyanpasu64> |
| Component: | application | Assignee: | michael <reeves.87> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/sdk/kdiff3/-/commit/6585c91fea320d2f6d909766c836bcbc0c5b230d | Version Fixed/Implemented In: | 1.10.6 |
| Sentry Crash Report: | |||
|
Description
nyanpasu64
2023-08-15 07:39:24 UTC
Git commit 74792ce8aa795deb7397ca224f63543996b5de15 by Michael Reeves. Committed on 25/08/2023 at 03:30. Pushed by mreeves into branch 'master'. Correct miss-handling of empty m_diff3WrapLineVector DiffTextWindow::convertLineCoordsToD3LCoords can be called when m_diff3WrapLineVector is empty. This has always been then case but for some reason hasn't happened previously. Nothing in the way this function is used suggests it was ever guaranteed to be working with a non-empty m_diff3WrapLineVector In fact its called in KDiff3App::recalcWordWrap before the new word warp is computed. Therefor we can not assume m_diff3WrapLineVector is non-empty as it is cleared by default. FIXED-IN:1.10.6 M +2 -2 src/difftextwindow.cpp https://invent.kde.org/sdk/kdiff3/-/commit/74792ce8aa795deb7397ca224f63543996b5de15 Git commit 6585c91fea320d2f6d909766c836bcbc0c5b230d by Michael Reeves. Committed on 25/08/2023 at 03:30. Pushed by mreeves into branch '1.10'. Correct mishandling of empty m_diff3WrapLineVector DiffTextWindow::convertLineCoordsToD3LCoords can be called when m_diff3WrapLineVector is empty. This has always been then case but for some reason hasn't happened previously. Nothing in the way this function is used suggests it was ever guaranteed to be working with a non-empty m_diff3WrapLineVector In fact its called in KDiff3App::recalcWordWrap before the new word warp is computed. Therefor we can not assume m_diff3WrapLineVector is non-empty as it is cleared by default. FIXED-IN:1.10.6 M +2 -2 src/difftextwindow.cpp https://invent.kde.org/sdk/kdiff3/-/commit/6585c91fea320d2f6d909766c836bcbc0c5b230d |