Skip to content
Browse files

Strip the invalid characters from the string used as mspdbsrv endpoint.

Patch from sebmarchand@chromium.org.

R=scottmg@chromium.org
BUG=335607

Review URL: https://codereview.chromium.org/141163014

git-svn-id: http://gyp.googlecode.com/svn/trunk@1840 78cadc50-ecff-11dd-a971-7dbc132099af
  • Loading branch information...
1 parent c8a5d4f commit d09e5f258d175b0f35771c71734ce7b529366452 scottmg@chromium.org committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 pylib/gyp/win_tool.py
View
3 pylib/gyp/win_tool.py
@@ -48,7 +48,8 @@ def _UseSeparateMspdbsrv(self, env, args):
for arg in args:
m = _LINK_EXE_OUT_ARG.match(arg)
if m:
- endpoint_name = '%s_%d' % (m.group('out'), os.getpid())
+ endpoint_name = re.sub(r'\W+', '',
+ '%s_%d' % (m.group('out'), os.getpid()))
break
if endpoint_name is None:

0 comments on commit d09e5f2

Please sign in to comment.
Something went wrong with that request. Please try again.