VICARKeywordHandler::Ingest() broken for End Of file Labels after 2.0.2 update
|Reported by:||swalter75||Owned by:||warmerdam|
Description (last modified by )
There were potential buffer overflows in pre-2.0 versions of gdal, which have been corrected in  and later changesets. The correction was to truncate the amount of bytes read to that of the buffer. This resulted in non-functional (but secure) code.
Here we introduce another buffer variable with the correct size to read the full EOL label.
There are also other minor corrections in the patch, as well as a new label entry to let the user know that the driver is handling the #5941 bug correctly.