Skip to content

CBMC malloc should fail if called for a size CBMC cannot represent #4604

Closed
@danielsn

Description

@danielsn

I believe that CBMC can only represent allocations of size 2**(64-number-object-bits). And yet

    int *p = malloc(SIZE_MAX);
    assert(p);

succeeds. This should either return NULL, or block with an assume that the input to malloc is a representable size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awsBugs or features of importance to AWS CBMC users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions