[haiku-commits] Change in haiku[master]: Use BUnicodeChar for unicode char manipulation

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 11 Dec 2018 20:50:20 +0000

From Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>:

Adrien Destugues has uploaded this change for review. ( 
https://review.haiku-os.org/759


Change subject: Use BUnicodeChar for unicode char manipulation
......................................................................

Use BUnicodeChar for unicode char manipulation

It is not allowed to use isspace, tolower, etc, on character outside of
the char type range (and EOF). Use BUnicodeChar instead to avoid out of
bound accesses.

Fixes the second crash in #14753
---
M src/kits/interface/Menu.cpp
1 file changed, 14 insertions(+), 8 deletions(-)



  git pull ssh://git.haiku-os.org/haiku refs/changes/59/759/1
--
To view, visit https://review.haiku-os.org/759
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c33d68afb16f109765d162c1f1cea551f8c4d9e
Gerrit-Change-Number: 759
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>

Other related posts:

  • » [haiku-commits] Change in haiku[master]: Use BUnicodeChar for unicode char manipulation - Gerrit