qdm2: fix out of stack array read.