alive2 icon indicating copy to clipboard operation
alive2 copied to clipboard

Assume initialized memory

Open DaKnig opened this issue 1 year ago • 1 comments

I'd like to say that "both src and tgt take a struct (by value)" and in C that is equivalent to the assumption that all values there are not poison nor undef (in C it is UB to call by value with uninitialized memory, UB in caller side), how can I do it?

DaKnig avatar Oct 19 '24 10:10 DaKnig

Could you give an example? I'm not sure I understand what you want. BTW, the -disable-poison-input guarantees that the initial memory is not poison. Is that what you want?

nunoplopes avatar Oct 19 '24 12:10 nunoplopes

oh that was the option I was missing! thanks!

DaKnig avatar Oct 24 '24 11:10 DaKnig