Fix an invalid memory access in libavoid.
Merge branch 'master' into onebendgraph