Ticket #2372 (closed defect: fixed)
Buffer overflow when calling GTIFDirectoryInfo in GTIFGetOGISDefn
| Reported by: | copycd | Owned by: | rouault |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.2 |
| Component: | GDAL_Raster | Version: | 1.5.1 |
| Severity: | normal | Keywords: | gtiff |
| Cc: | warmerdam |
Description
Please, look at line 230 of gt_wkt_srs.cpp file.
source code ------------
int nVersion; if( hGTIF != NULL )
GTIFDirectoryInfo( hGTIF, &nVersion, &nKeyCount );
--------------------------------
but, GTIFDirectoryInfo function parameter receive "int nVersion[]". and, use nVersion[0], nVersion[1], nVersion[3].
Why?
Change History
Note: See
TracTickets for help on using
tickets.
