lld change: https://reviews.llvm.org/D45580
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good to me. I would also add error check to ensure that name fits into the section.
lib/Object/WasmObjectFile.cpp | ||
---|---|---|
184 ↗ | (On Diff #142208) | It will be nice to add an error check to see if Size < Ptr - NameStart |
lib/Object/WasmObjectFile.cpp | ||
---|---|---|
184 ↗ | (On Diff #142208) | I generaly we don't yes handle that kind of malformedness gracefully. Probably we could want to change all the uses of Ptr (such as the argument to readString) to contain the end ptr too. That is probably separate change. |