Skip to content

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

@K-Be

Description

@K-Be

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions