[patch] Fix pr23650

Filipe Cabecinhas filcab at gmail.com
Tue Jul 7 12:20:02 PDT 2015


Then why are you testing the size and not Str.Data()?

The semantic check should be for the nullptr.

Thanks,

  Filipe

On Tuesday, July 7, 2015, Rafael EspĂ­ndola <rafael.espindola at gmail.com>
wrote:

> Passing a null pointer to memcpy is undefined behavior.
>
>
> Cheers,
> Rafael
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu <javascript:;>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>

-- 
  F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150707/765a5dc0/attachment.html>


More information about the llvm-commits mailing list