Bug 392027 - Crash in SVG Text Tool when input is multiline with a single character per line
Summary: Crash in SVG Text Tool when input is multiline with a single character per line
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Victor Wåhlström
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-18 21:34 UTC by Victor Wåhlström
Modified: 2018-03-19 12:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Wåhlström 2018-03-18 21:34:53 UTC
Repro:

1. Create a new document
2. Activate the new SVG Text Tool
3. Input e.g. "h" <enter> "i"
4. Click Save
5. Observe crash

I can't reproduce this with appimages. It's a 100% out of bounds crash with my local build, and the responsible code is 10 months old.

This should theoretically affect the 4.0 build too, but I haven't tested that.
Comment 1 Victor Wåhlström 2018-03-18 21:39:29 UTC
Git commit bacc6a476ab5daff64a12343775afc3fba2c3d26 by Victor Wåhlström.
Committed on 18/03/2018 at 21:36.
Pushed by victorw into branch 'master'.

Fix potential crash when the last text input line in the SVG Text Tool is a single character

M  +3    -4    libs/flake/text/KoSvgTextShape.cpp

https://commits.kde.org/krita/bacc6a476ab5daff64a12343775afc3fba2c3d26
Comment 2 Dmitry Kazakov 2018-03-19 12:23:21 UTC
Git commit d07fcafcd1f1a06436da09ae1a8477b3cb779f27 by Dmitry Kazakov.
Committed on 19/03/2018 at 12:21.
Pushed by dkazakov into branch 'master'.

Merge branch 'master' of git://anongit.kde.org/krita

# Conflicts:
#	libs/flake/text/KoSvgTextShape.cpp


https://commits.kde.org/krita/d07fcafcd1f1a06436da09ae1a8477b3cb779f27