Compare ls script hash without execution status

Last byte of the entry in the slot applet contains the execution
status. Ignore this byte while comparing the Hash of the script.
Also fix OOB write of buffer containing hash of ls-script.

Bug: 119540129
Test: LS Update, VTS
Change-Id: I9be3229f48c190a80a729f9068894af8296f57f0
3 files changed