libnui / nui3

libnui v3
http://libnui.net
Mozilla Public License 2.0
163 stars 31 forks source link

iOS keyboard character import infinite loop #27

Open mathieugarcia opened 12 years ago

mathieugarcia commented 12 years ago

On iOS, while inputting text from the system keyboard, some characters will make nglString::Import run into an infinite loop, while converting characters (UTF8 I guess).

The bug can be triggered by following these steps:

nglString::Import(int32&, const char*, int32, nglStringConv&) will loop forever in the do/while statement. (to_read = 2, to_write = 2, rOffset = 0)

Tested on iPad - iOS 5.0 and 5.1