Georgii Rymar
2ad0ef6ef1
[llvm-readelf] - Do not try to read past the end of the file when dumping the the SHT_GNU_HASH.
...
We have unobvious issue in the condition that is used to check
that we do not read past the EOF.
The problem is that the result of "GnuHashTable->nbuckets * 4" expression is uint32.
Because of that it was still possible to overflow it and pass the check.
There was no such problem with the "GnuHashTable->maskwords * sizeof(typename ELFT::Off)"
condition, because of `sizeof` on the right (which gives 64-bits value on x64),
but I've added an explicit conversion to 64-bit value for `GnuHashTable->maskwords` too.
Differential revision: https://reviews.llvm.org/D81103
2020-06-04 12:00:44 +03:00
..
2020-04-24 09:40:14 +02:00
2020-02-11 16:20:06 -08:00
2020-05-26 09:38:32 -07:00
2020-05-20 11:56:06 +02:00
2020-05-14 23:57:22 -04:00
2020-05-04 16:47:52 -07:00
2020-03-20 13:19:44 -07:00
2020-05-14 13:03:50 -07:00
2020-05-18 13:28:46 -07:00
2020-02-10 07:07:40 -08:00
2020-05-15 11:50:24 -07:00
2020-02-10 07:07:40 -08:00
2020-04-24 09:40:14 +02:00
2020-05-27 15:57:03 -04:00
2020-01-28 23:25:25 +01:00
2020-05-21 17:43:47 -04:00
2020-06-02 11:06:11 -07:00
2020-04-25 18:59:41 +07:00
2020-02-10 07:07:40 -08:00
2020-06-02 10:10:01 +02:00
2020-05-21 21:18:37 -04:00
2020-02-13 17:24:55 -08:00
2020-03-04 19:14:08 -08:00
2020-04-01 10:49:06 -04:00
2020-03-17 14:01:30 +01:00
2020-05-28 20:31:50 -07:00
2020-04-07 15:46:01 -07:00
2020-03-25 13:55:42 -04:00
2020-03-17 14:01:30 +01:00
2020-04-14 15:07:07 -07:00
2020-03-17 14:01:30 +01:00
2020-05-18 02:21:22 +07:00
2020-05-18 02:21:22 +07:00
2020-03-17 14:01:30 +01:00
2020-05-20 16:17:31 -04:00
2020-03-17 14:01:30 +01:00
2020-05-06 17:01:20 +08:00
2020-05-29 20:24:53 +07:00
2020-05-30 18:03:43 -07:00
2020-05-20 09:58:37 +01:00
2020-01-28 23:25:25 +01:00
2020-02-11 15:12:51 -08:00
2020-05-12 15:06:03 -07:00
2020-05-28 15:26:31 +01:00
2020-06-04 12:00:44 +03:00
2020-02-05 14:15:11 -05:00
2020-01-28 23:25:25 +01:00
2020-05-22 14:40:43 +02:00
2020-05-06 17:01:20 +08:00
2020-05-18 13:28:46 -07:00
2020-04-03 18:00:33 -07:00
2020-05-13 09:39:25 -07:00
2020-05-20 16:17:31 -04:00
2020-04-24 14:41:56 -07:00
2020-03-17 14:01:30 +01:00
2020-06-02 14:38:26 +08:00
2020-05-29 20:08:21 -07:00
2020-03-25 22:38:55 +01:00
2020-05-26 14:36:44 -07:00
2020-01-30 05:53:56 +00:00
2020-02-07 09:35:00 -08:00
2020-04-09 16:13:18 +01:00