libio: Avoid ptrdiff_t overflow in IO_validate_vtable
authorFlorian Weimer <fweimer@redhat.com>
Wed, 20 Jun 2018 07:45:19 +0000 (09:45 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 20 Jun 2018 07:45:19 +0000 (09:45 +0200)
commit2d1c89a5d7c872a1109768f50e2508cf9a4b0348
treee81572572f2a074b00e25caa3610efd138af62ca
parent646c2833ee84aa5ecc7e219f0cc6156e61c371d3
libio: Avoid ptrdiff_t overflow in IO_validate_vtable

If the candidate pointer is sufficiently far away from
__start___libc_IO_vtables, the result might not fit into ptrdiff_t.
ChangeLog
libio/libioP.h