Details
- Reviewers
ruiu
Diff Detail
Event Timeline
| ELF/InputSection.h | ||
|---|---|---|
| 62–63 | My preference is to use std::vector instead of char * and size. | |
| ELF/InputSection.h | ||
|---|---|---|
| 62–63 | std::vector is still 3 pointers. What I want to do next is to always have a valid StringRef (or ArrayRef) with the data. Initially it points to the mmaped file. After decompression it points to UncompressedData and UncompressedDataSize can be removed. | |
| ELF/InputSection.h | ||
|---|---|---|
| 62 | Orthogonal to Rui's concerns, this needs to be std::unique_ptr<char[]> for operator delete[] to be called. Otherwise, it will delete just a single char and corrupt the heap. | |
Orthogonal to Rui's concerns, this needs to be std::unique_ptr<char[]> for operator delete[] to be called. Otherwise, it will delete just a single char and corrupt the heap.