Skip to content

iVector.Erase memmove pointer error. #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. a = iVector.Create(sizeof(int),10);
2. iVector.Add(a,&i);
3. iVector.Add(a,&i);
4. iVector.Erase(a,1)
5. iVector.Finalize(a) will report error when Mem Debug enabled

Please change line 652 in vector.c to 

memmove(p,p+AL->ElementSize,(AL->count-idx-1)*AL->ElementSize);



Original issue reported on code.google.com by zha...@gmail.com on 24 Apr 2013 at 7:46

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions