[PATCH] D43819: [ELF] - Restrict section offsets that exceeds file size.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 2 03:23:46 PST 2018
grimar added a comment.
> As things stand, an empty section at the very end of the file will cause an error.
I think I was able to imagine that part. So if we have an empty section and overflow of its offset, so that it is placed at the very end of file. That would not cause crash
during writing because it is empty. It is too specific to support, I do not think it worth to add code here, we will report an error saying that script has overflows and that will be true anyways.
https://reviews.llvm.org/D43819
More information about the llvm-commits
mailing list