• Jeffrey Lee's avatar
    Fix alignment fault when reporting the "This file doesn't contain a BASIC program" error · 38fd341c
    Jeffrey Lee authored
    Detail:
      rlib/c/txtedit - Rather than generating a proper error block to send to Wimp_ReportError, txtedit__validbasicfile was just subtracting 4 from the pointer to the error string.
      The resulting address isn't guaranteed to be aligned properly, resulting in an alignment fault on ARMv7 when Wimp_ReportError examines the error number.
      The new code just reuses the 'buff' array to build a temporary error block.
    Admin:
      Fixes alignment fault on beagleboard when attempting to load a detokenized BASIC file into !Edit.
    
    
    Version 5.57. Tagged as 'RISC_OSLib-5_57'
    38fd341c
VersionASM 1018 Bytes