• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

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:/’.

更改概述

差异

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