gnachman/iTerm2 — pull request #83 by saitoha (2012-06-17 11:12:34+00:00)
Title: prevent OSC parser with entering infinite loop

Hello.

With this change(https://github.com/gnachman/iTerm2/commit/b2794f890536e03f72cd954dfbffe5b0876dbe1f#L0L843),
ill-formed OSC terminated ^G (ex. echo -en "\033]abc\007") will be correctly skipped.

But other hand, following commands will cause infinite loop.

echo -en "\033]\033\\"; sleep 1
echo -en "\033]abc\033\\"; sleep 1