Skip to content
Permalink
Browse files Browse the repository at this point in the history
OGRExpatRealloc(): fix double-free when size to allocate is above the…
… default 10MB threshold. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16178. Credit to OSS Fuzz
  • Loading branch information
rouault committed Aug 4, 2019
1 parent 79f9a61 commit 148115f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gdal/ogr/ogr_expat.cpp
Expand Up @@ -89,7 +89,6 @@ static void* OGRExpatRealloc( void *ptr, size_t size )
if( CanAlloc(size) )
return realloc(ptr, size);

free(ptr);
return nullptr;
}

Expand Down

0 comments on commit 148115f

Please sign in to comment.