parallels: Incorrect condition in out-of-image check
authorAlexander Ivanov <alexander.ivanov@virtuozzo.com>
Mon, 24 Apr 2023 09:31:47 +0000 (11:31 +0200)
committerHanna Czenczek <hreitz@redhat.com>
Mon, 5 Jun 2023 11:13:59 +0000 (13:13 +0200)
commit029136f2611eaf6d1eea2d5e4bdc4492bb8ffa0c
tree2f563701777435def705ef2d3b3034083bd171c6
parentc0fc051dd475a3b76c9200c8bcb192710cdc1338
parallels: Incorrect condition in out-of-image check

All the offsets in the BAT must be lower than the file size.
Fix the check condition for correct check.

Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Message-Id: <20230424093147.197643-13-alexander.ivanov@virtuozzo.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
block/parallels.c