A fix for Bug#1098517 "An out of bounds memory access in lua iterator"