cpml: fix access violation in cpml_segment_put_next
commitfa5aa0507366886476c80411224cf162b300ad3f
authorNicola Fontana <ntd@entidi.it>
Fri, 30 Apr 2021 09:57:45 +0000 (30 11:57 +0200)
committerNicola Fontana <ntd@entidi.it>
Fri, 30 Apr 2021 09:57:45 +0000 (30 11:57 +0200)
tree808d1345b616caf230f7cdcb5afbe7212338037b
parent8e9ed6367c30e479ad357e72864b6c3c49a3861b
cpml: fix access violation in cpml_segment_put_next

In the unlikely case there is a path with trailing CPML_MOVE, a next
iteration on the last segment was accessing a single item outside the
CpmlPath.
src/cpml/cpml-segment.c