Georgii Rymar
8590b5ccd5
[libObject, llvm-readobj] - Reimplement ELFFile<ELFT>::getEntry.
...
Currently, `ELFFile<ELFT>::getEntry` does not check an index of
an entry. Because of that the code might read past the end of the symbol
table silently. I've added a test to `llvm-readobj\ELF\relocations.test`
to demonstrate the possible issue. Also, I've added a unit test for
this method.
After this change, `getEntry` stops reporting the section index and
reuses the `getSectionContentsAsArray` method, which already has
all the validation needed. Our related warnings now provide
more and better context sometimes.
Differential revision: https://reviews.llvm.org/D93209
2020-12-18 16:52:27 +03:00
..
2020-10-09 11:10:03 +08:00
2020-11-18 13:08:46 +03:00
2020-10-15 11:11:41 +03:00
2020-11-06 12:44:42 -08:00
2020-10-15 11:11:41 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-10-15 11:11:41 +03:00
2020-08-20 11:40:51 +03:00
2020-12-04 13:45:47 +03:00
2020-10-30 16:18:53 +03:00
2020-08-20 11:40:51 +03:00
2020-08-18 16:09:28 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-10-20 16:25:33 +03:00
2020-08-20 11:40:51 +03:00
2020-10-15 11:11:41 +03:00
2020-10-15 11:22:02 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-10-15 11:11:41 +03:00
2020-10-19 15:13:01 +03:00
2020-10-15 11:11:41 +03:00
2020-08-20 11:40:51 +03:00
2020-10-15 11:11:41 +03:00
2020-08-20 11:40:51 +03:00
2020-10-15 11:11:41 +03:00
2020-08-20 11:40:51 +03:00
2020-10-19 15:13:01 +03:00
2020-08-20 11:40:51 +03:00
2020-10-27 13:03:38 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-11-09 13:00:50 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-10-15 11:11:41 +03:00
2020-12-14 12:03:00 +03:00
2020-10-15 11:11:41 +03:00
2020-08-20 11:40:51 +03:00
2020-10-02 12:01:50 +03:00
2020-11-09 12:53:53 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-12-18 16:52:27 +03:00
2020-10-15 11:22:02 +03:00
2020-11-02 11:56:32 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-12-16 13:49:57 +03:00
2020-08-20 11:40:51 +03:00
2020-12-16 13:49:57 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-08-20 11:40:51 +03:00
2020-10-15 11:11:41 +03:00
2020-10-15 11:11:41 +03:00
2020-10-15 11:11:41 +03:00