forked from OSchip/llvm-project
Fix use-after-free in OptionValueString.
We were assigning a temporary std::string to a StringRef. Somehow this worked on every platform but Windows. llvm-svn: 238041
This commit is contained in:
parent
101a82bf8b
commit
4f2a9726d4
|
@ -70,7 +70,7 @@ OptionValueString::SetValueFromString (llvm::StringRef value,
|
|||
error.SetErrorString("mismatched quotes");
|
||||
return error;
|
||||
}
|
||||
value = value.drop_front().drop_back().str();
|
||||
value = value.drop_front().drop_back();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue