mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
The file in question had a "empty" line with CR/LF line ending at the end of the file. When reading this on linux (using getline) you get a non-empty string containing the CR token. For these cases GetRecord returns true with a empty record vector, and this expected in the calling code. Crash happens when accessing the first (non-existing) element of the empty vector when trying to provide error message. Fixed by having GetRecord return false when vector is empty. Fixes #12654.
How to update the source code files contained in NRLib ------------------------------------------------------ Download the latest boost files needed and place them in the boost folder: https://github.com/CRAVA/crava/tree/master/libs/boost Download the latest nrlib sub folders from here and replace the contents: https://github.com/CRAVA/crava/tree/master/libs/nrlib The following sub folders are currently used: exception grid iotools stormgrid surface volume well