Skip to content

Wrong with alloc_size #232

Description

@dingiso

I’ve used llvm-cbe, but encountered many errors related to alloc_size. I discovered that the issue can be resolved by adding 1 to the argument of alloc_size. For example:

chown-8.2.cbe.c:1635:83: error: 'alloc_size' attribute argument may only refer to a function parameter of integer type
 1635 | void* realloc(void* _9237, uint64_t _9238) __ATTRIBUTELIST__((nothrow, alloc_size(1)));
      |               ~~~~~~~~~~~                                                         ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions