[Lldb-commits] [lldb] r176438 - <rdar://problem/12897838>

Dmitri Gribenko gribozavr at gmail.com
Mon Mar 4 09:24:15 PST 2013


On Mon, Mar 4, 2013 at 7:20 PM, Enrico Granata <egranata at apple.com> wrote:
> Author: enrico
> Date: Mon Mar  4 11:20:57 2013
> New Revision: 176438
>
> URL: http://llvm.org/viewvc/llvm-project?rev=176438&view=rev
> Log:
> <rdar://problem/12897838>
>
> Making sure we do not try to copy memory at address 0 - that would make us crash

Enrico,

I don't know what the radar is about, but this looks fragile: touching
any other address that is not mapped would still lead to a crash,
won't it?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the lldb-commits mailing list