lld change: https://reviews.llvm.org/D45580
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 17034 Build 17034: arc lint + arc unit
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 | It will be nice to add an error check to see if Size < Ptr - NameStart |
lib/Object/WasmObjectFile.cpp | ||
---|---|---|
184 | 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. |
It will be nice to add an error check to see if Size < Ptr - NameStart