Opened 7 years ago

Closed 7 years ago

#9217 closed bug (fixed)

BTextView::Select() fails to do Range Checking

Reported by: AGMS Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/alpha4.1
Keywords: BTextView, Select Cc: agmsmith@…
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

The starting offset isn't properly range checked, which causes crashes when you do something like Select(1000000000, 1000000000) to move the selection point to the end of the text. Works fine in BeOS R5.0.3.

Affects TTAnywhere 3rd party software, and maybe also bug #9066.

Attachments (1)

0001-Handle-BTextView-Select-out-of-range-values-better.patch (1.2 KB ) - added by AGMS 7 years ago.
Patch to fix the range checking bug.

Download all attachments as: .zip

Change History (3)

by AGMS, 7 years ago

Patch to fix the range checking bug.

comment:1 by AGMS, 7 years ago

Has a Patch: set

comment:2 by zooey, 7 years ago

Resolution: fixed
Status: newclosed

Applied (an extended version of) the patch in hrev44902 - thanks!

Note: See TracTickets for help on using tickets.