• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

TextMate is a graphical text editor for OS X 10.7+


Commit MetaInfo

修訂16b3fcecd7448170f5ac8359fe260f565e663221 (tree)
時間2012-08-24 00:15:12
作者Allan 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

差異

--- 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] == '}')