Skip to content

Clang changes behaviour of MemIntrinsic functions before we instrument their arguments #4

@ramosian-glider

Description

@ramosian-glider

Originally reported on Google Code with ID 4

char * s = (char*)malloc(4096);
memset(s+4095, 0, 2);

Here Clang changes "memset 2 bytes" to a single "store i16" instruction, and we don't
instrument (and fail on) access to the memory outside allocated array.

Reported by samsonov@google.com on 2011-08-10 10:08:36

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions