| Ticket UUID: | 3477449 | |||
| Title: | Patch - segfault when mark out of -startline/-endline range | |||
| Type: | Patch | Version: | None | |
| Submitter: | fvogel | Created on: | 2012-01-22 19:58:30 | |
| Subsystem: | 18. [text] | Assigned To: | jan.nijtmans | |
| Priority: | 7 High | Severity: | ||
| Status: | Closed | Last Modified: | 2014-03-13 09:01:03 | |
| Resolution: | Fixed | Closed By: | nijtmans | |
| Closed on: | 2012-01-25 21:21:07 | |||
| Description: |
The attached patch fixes item 1630271: https://sourceforge.net/tracker/?func=detail&aid=1630271&group_id=12997&atid=112997 The patch is against the latest core-8-5-branch (from today). | |||
| User Comments: |
nijtmans added on 2012-01-26 04:21:07:
Merged to core-8-5-branch and trunk. Closing fvogelnew1 added on 2012-01-24 04:34:17: The C code part of patch 3476698 is needed for the present patch 3477449 to work, so I have included it in both since I could not know whether 3476698 would in fine be included or not. Please note that patch 3476698 also included comments, so it would be better to add it properly and then add 3477449, perhaps at the cost of a merge conflict (easy to solve!) in tkText.c:ConfigureText nijtmans added on 2012-01-24 04:24:03: Committed in branch bug-1630271, noting that - additionally - test text-31.11 (which failed before) now passes as well! I guess that makes patch 3476698 unnecessary, is that correct? fvogelnew1 added on 2012-01-23 03:05:34: What the patch does is the following: - Trying to access any mark (but current and insert marks) when they are not inside the -startline/-endline range of the widget errors out "bad text index". - The insert and current marks are special. They are not shared between peers, therefore they must always refer to a valid index in the widget. They are now clamped to the -startline/-endline range whenever these limits are changed in a configure command. - Several tests have been added. Test suite passes entirely. fvogelnew1 added on 2012-01-23 02:58:33: File Added - 433745: 1630271_V1.patch | |||
Attachments:
- 1630271_V1.patch [download] added by fvogelnew1 on 2012-01-23 02:58:33. [details]
