<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Developers,<div><br></div><div>I've resurrected an old bug which has been closed as "wontfix", because we have run into the same issue recently:</div><div><br></div><div><a href="https://github.com/mapserver/mapserver/issues/2362">https://github.com/mapserver/mapserver/issues/2362</a><br></div><div><br></div><div>I don't think it is a good solution to leave mapserver in a memory corrupted state instead of providing a meningful error message and safely continue the operation. So I've created a pull request to provide a solution for this particular use case, however as far as I see it might also require some further investigation how a corrupted index file may cause troubles to mapserver.<br></div><div><br></div><div>For example I wonder if the index contains a feature id greater than the number of features, it may cause a buffer overrun in msSetBit (mapbits.c). Also what happens if a part of a file is missing, so an offset to a treenode points beyond the end of the file. </div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div></div></div></div>