summaryrefslogtreecommitdiff
path: root/vcl/test
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2013-06-23 23:07:51 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-24 12:15:05 +0000
commitcf003b228efc9d95d85fafceb7095e85c882277c (patch)
tree849af734ab145d214a722d2412bef8190d966bb5 /vcl/test
parent732640c353b39cff7a9d5b5906f8975102cbed11 (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/test')
0 files changed, 0 insertions, 0 deletions