Skip to content

memalign report mistake #139

@jiqimaogou

Description

@jiqimaogou
#define ALIGNED_MALLOC(ptr, type, size)    {  ptr = (type *)memalign(16, sizeof(type) * size); }


    ALIGNED_MALLOC(p_test, float, 100 + 1);

    for (int i = 0; i <= 100; i++)
    {
        p_test[i] = pow(xxx);
    }

2020-02-21 11:25:53.210 4297-4297/? I/wrap.sh: WRITE of size 4 at 0x0040000401d0 thread T18
2020-02-21 11:25:53.265 4297-4297/? I/wrap.sh: 0x0040000401d1 is located 0 bytes to the right of 401-byte region [0x004000040040,0x0040000401d1)

why is 401 byte not 404 byte

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