Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix buffer overflow / memory leak in mapuvraster.c #5148
So checking for -1 for itemindexes on a uninitialized array was wrong. Returning from the item loop early in msUVRASTERLayerInitItemInfo would result in uninitialized values in itemindexes and eventually propagated to values as well. Perhaps because msUVRASTERLayerGetItems was never called?