Opened 16 years ago
Closed 16 years ago
#3673 closed bug (fixed)
[patch] Calling SetText on a BTextView crash when given a bad text_run_array
Reported by: | oco | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
The problem was discovered on a badly written application that send an unitialized text_run_array struct.
This application run ok under BeOS, but not under Haiku (page fault).
After investigation, the BTextView was not stylable. According to the BeBook, in this case, the text_run_array should be ignored. It was not the case under Haiku.
So, i propose this patch made with hints from Korli. It also fixe SetRunArray which have the same problem.
http://www.haiku-os.org/legacy-docs/bebook/BTextView.html#BTextView_SetText http://www.haiku-os.org/legacy-docs/bebook/BTextView.html#BTextView_SetRunArray
Attachments (1)
Change History (2)
by , 16 years ago
Attachment: | TextView_r29384.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Applied in hrev29911.