Esri / file-geodatabase-api

FileGeodatabaseAPI_1.4 (1.4.0.183) The File Geodatabase C++ API for Windows, MacOS and Linux
Apache License 2.0
154 stars 60 forks source link

Assert Failure and Stack Buffer Overrun Calling FileGDBAPI::Geodatabase::OpenTable #55

Open mikec-bmg opened 1 month ago

mikec-bmg commented 1 month ago

I have a large GDB dataset (couple of GB) and am getting the following ASSERT failure in debug. This is then followed by stack buffer overrun detections and finally a crash of the entire application in Debug in Visual Studio 2022 - Windows 11.

IndexCursor.cpp - Line: 353

prefixLen <= MaxStringLength is what fails.

I get the same error in both 1.5.1 and the latest 1.5.3.

It fails on a number of fields, but one example is a child database name of '\geophys' and a feature class of '\geophys\NationalMapGrid'.

I can likely provide the data if needed, but I suspect just the .cpp and line number of the assert should be enough to track down the issue.