g10: Fix out-of-bounds read.