Hi all,<div><br></div><div>Writing my own LLVM client I've noticed a potential null pointer dereference in EngineBuilder::selectTarget.</div><div><br></div><div>The class has an optional pointer to the ErrorStr, which can be initialzied through setErrorStr() method. Although, it's strictly optional, selectTarget doesn't verify its value before assignment.</div>
<div><br></div><div>Please find patch for branch release_31, revision 155051 attached.</div><div><div><br></div><div>- Yury</div></div><div><br></div>