project-hatohol/hatohol — pull request #830 by yoshfuji (2014-12-05 10:23:34+00:00)
Title: mlpl ParsableString: Fix signedness issues which prevent us from using on multibyte strings.

An array (m_separatorArray[]) is used for checking if each character is
one of separators or not. Array index was converted from char and
multi-byte characters are evaluated as negative value. We screw up
here.

I do think we can assume that all separators must be evaluated as
positive intergers, but user-supplied string must not cause accessing
outside of the array.

Signed-off-by: YOSHIFUJI Hideaki