diff options
author | Mark Wielaard <mark@klomp.org> | 2013-06-23 23:07:51 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-06-24 12:15:05 +0000 |
commit | cf003b228efc9d95d85fafceb7095e85c882277c (patch) | |
tree | 849af734ab145d214a722d2412bef8190d966bb5 /vcl/vcl.headless.component | |
parent | 732640c353b39cff7a9d5b5906f8975102cbed11 (diff) |
Robustify GraphicDescriptor::ImpDetect* reading SvStream.
The >>operator of SvStream doesn't initialize a variable if the stream
is faulty. So initialize the variables before usage to prevent accidental
matches. Also explicitly check stream status in while loop to prevent
looping on eof or error.
Change-Id: I21c0acc1c9217b4523c593cbcef5718f4cdc7597
Reviewed-on: https://gerrit.libreoffice.org/4469
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/vcl.headless.component')
0 files changed, 0 insertions, 0 deletions