diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2009-10-30 13:22:36 +0100 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2009-10-30 13:22:36 +0100 |
commit | 09d85652245626a0b4f489f8bc74bb80f03973f4 (patch) | |
tree | aca79a4f9bf983bd7cd1b739ef8222502d1addbb /vcl/source/gdi/region.cxx | |
parent | 953559b4f9446b14280611d35d5391b92640cab6 (diff) |
vcl107: #i105197# avoid enless loop on premature EOF
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r-- | vcl/source/gdi/region.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 43bb224aaa94..4b8a49959c9b 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -2459,6 +2459,14 @@ SvStream& operator>>( SvStream& rIStrm, Region& rRegion ) } } + if( rIStrm.IsEof() ) + { + DBG_ERROR( "premature end of region stream" ); + delete rRegion.mpImplRegion; + rRegion.mpImplRegion = (ImplRegion*)&aImplEmptyRegion; + return rIStrm; + } + // get next header rIStrm >> nTmp16; } |