alac: fix integer overflow leading to subsequent out of array accesses.