[LLVMdev] Null pointer dereference
Jim Grosbach
grosbach at apple.com
Wed May 9 16:37:35 PDT 2012
Hi Yury,
No need for the "{" "}" since it's a single statement in the compound statement. Other than that minor style detail, this looks fine assuming it applies cleanly to trunk.
Do you have commit access?
Regards,
-Jim
On May 9, 2012, at 3:40 PM, Yury Mikhaylov wrote:
> Hi all,
>
> Writing my own LLVM client I've noticed a potential null pointer dereference in EngineBuilder::selectTarget.
>
> 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.
>
> Please find patch for branch release_31, revision 155051 attached.
>
> - Yury
>
> <TargetSelect.patch>_______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list