Fixing two crashes on corrupted files

Created by  pmeunier  on September 7, 2021
VRAQTH26BACG74FXYGWKXWNWDBKF27Y6DX5KJ7XSLZ3HIUKVLTSQC
Change contents