BlockInjection icon indicating copy to clipboard operation
BlockInjection copied to clipboard

Question: xCode warning in method - (void*)invokeWithTarget:(id)target args:(va_list*)args

Open K-Be opened this issue 11 years ago • 0 comments

My english not very well, but I will try.

In method - (void_)invokeWithTarget:(id)target args:(va_list_)args of BIItem class you are using __builtin_alloca(returnLength);

This method allocate memory in a current stack, xCode has showed that in some case you can return pointer to the memory. And it can make crash.

May be I am wrong, and pointer will change after __builtin_alloca method, but it is very danger place.

K-Be avatar Aug 22 '13 07:08 K-Be