Opened 12 years ago

Closed 12 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:
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 12 years ago.
Patch to fix the range checking bug.

Download all attachments as: .zip

Change History (3)

by AGMS, 12 years ago

Patch to fix the range checking bug.

comment:1 by AGMS, 12 years ago

patch: 01

comment:2 by zooey, 12 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.