• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscapheguic翻訳omegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

TextMate is a graphical text editor for OS X 10.7+


Commit MetaInfo

Revision16b3fcecd7448170f5ac8359fe260f565e663221 (tree)
Time2012-08-24 00:15:12
AuthorAllan Odgaard <git@abet...>
CommiterAllan Odgaard

Log Message

Format string parser: fix infinite loop

This would happen if given an (incomplete) format string like: ‘${1:/’.

Change Summary

Incremental Difference

--- a/Frameworks/regexp/src/parser.cc
+++ b/Frameworks/regexp/src/parser.cc
@@ -162,6 +162,10 @@ bool parse_context_t::parse_variable (bool(parse_context_t::*parse_content)(char
162162 res.change |= options[i].change;
163163 }
164164 }
165+ else
166+ {
167+ break;
168+ }
165169 }
166170
167171 if(it[-1] == '}')