diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-18 12:46:29 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-10-02 14:58:31 +0200 |
commit | 182bd71df302f768928357febab70bc6233761e6 (patch) | |
tree | a7142d0e8c10191ad7d041bfabf526191fd30de3 /sc | |
parent | d8b2bac2c962e08684366e8422d52e3c46ba7712 (diff) |
check stream status and string lengths
(cherry picked from commit 7af19f45b35c428d3e06972806e5a05489f45955)
if nSize was 1 with unicode encoding
nSize would wrap around in lcl_getMaxSafeStrLen
(cherry picked from commit f6368c29bdc3a9017bcae3f064d2cd8c7e37ed10)
rework this so we don't read the string, backup and re-read the string again
(cherry picked from commit 8523e57e427ef5b0b7f7067dcdd07f01176d2160)
Change-Id: I99f3d4a2ec760228f485d01fce856deb9c068431
Reviewed-on: https://gerrit.libreoffice.org/18691
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sc')
0 files changed, 0 insertions, 0 deletions