Fix crash when opening an ENVI dataset with unhandled file type (#2778)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16102 f0d54148-0727-0410-94bb-9a71ac55c965
Fix initial value for nGCPCount in HDF5ImageDataset (#2774)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16115 f0d54148-0727-0410-94bb-9a71ac55c965
avoid crash for zero point rings (#2792)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16123 f0d54148-0727-0410-94bb-9a71ac55c965
Fix crash in OGRLinearRing::isClockwise() and ::get_Area() when nPointCount < 2 (#2792)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16127 f0d54148-0727-0410-94bb-9a71ac55c965
support xml: metadata domain as XML documents (#2786)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16151 f0d54148-0727-0410-94bb-9a71ac55c965
fix modest memory leak in DirectRasterIO() (#2796)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16154 f0d54148-0727-0410-94bb-9a71ac55c965
Fix BSB driver to handle properly more than 256 GCPs (by Chaitanya kumar CH), and additionnal security/memory usage related fixes (#2777)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16168 f0d54148-0727-0410-94bb-9a71ac55c965
* Fix several issues with BSB files reading. PARTIAL backport r16174 and r16176 from trunk (#2782) 
- Enable to read IS1612_4.NOS product which has a \0 character in the middle of row data (derived from Chaitanya's patch) 
- Make BSBGetc set an error flag when I/O error (like file truncation) to avoid endless loops when reading corrupted/hostile files
- Avoid crashes with invalid color table index
- Avoid reading images with negative dimensions

--> The reading of the index table has not been introduced as it is a too significant new feature.



git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16178 f0d54148-0727-0410-94bb-9a71ac55c965
Latest fix for #2782.

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16182 f0d54148-0727-0410-94bb-9a71ac55c965
Add data validation in sgidataset.cpp to avoid crashes when reading corrupted images (#2803)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16189 f0d54148-0727-0410-94bb-9a71ac55c965
Fix crash in OGRStyleTable::AddStyle (#2810 and #2531)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16198 f0d54148-0727-0410-94bb-9a71ac55c965
Fix inversion of dictionnary filename and GEOGCS/PROJCS name in OGRSpatialReference::exportToERM() (#2819)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16217 f0d54148-0727-0410-94bb-9a71ac55c965
Fix size of szPartialCell to avoid buffer overflow and stack corruption (#2824)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16240 f0d54148-0727-0410-94bb-9a71ac55c965
Avoid segfault when calling GDALVersionInfo(NULL) (#2826)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16246 f0d54148-0727-0410-94bb-9a71ac55c965
Fix potential stack buffer overflow in DOQ2 metadata reading (#2835)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16289 f0d54148-0727-0410-94bb-9a71ac55c965
Fix wrong initialization of destination buffer in VRTSourcedRasterBand::IRasterIO() in case of not standard pixel/line spacing. Was revealed by testing on cascaded VRTs (#2867)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16477 f0d54148-0727-0410-94bb-9a71ac55c965
Fix crash on Ubuntu 8.10 in GetFieldAsString() because of (too) strict guard logic (#2896)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16613 f0d54148-0727-0410-94bb-9a71ac55c965
Fixed situation where 'type' attribute values have colon terminated prefixes (#2493)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16649 f0d54148-0727-0410-94bb-9a71ac55c965
Seperate namespace name and the location of schema document

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16744 f0d54148-0727-0410-94bb-9a71ac55c965
fixes to type classification, and to avoid listing subdatsets for unsupported pixel data types (#2941)

git-svn-id: https://svn.osgeo.org/gdal/branches/1.5@16748 f0d54148-0727-0410-94bb-9a71ac55c965