Skip to content

The overflow intrinsics have surprising behaviour on pointer arithmatic #6627

@danielsn

Description

@danielsn

x+1 on a pointer is x+sizeof(*x)*1. The overflow check is treating it as (int)x+1

Ideally, we'd love to have a __pointer_<op>_overflow() intrinsic which would do the right thing for pointers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    More info neededawsBugs 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