eif: cope with huge section offsets
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 12:53:55 +0000 (13:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Nov 2024 15:54:02 +0000 (16:54 +0100)
commit619d144751e6685b24ded9029fe9c484c0494c30
tree75788eb1f3e576a92b5c5d0c678cfda67e1df0d4
parent8fa11a4df344f58375eb26b3b65004345f21ef37
eif: cope with huge section offsets

Check for overflow to avoid that fseek() receives a sign-extended value.

Cc: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/eif.c
include/qemu/osdep.h