Skip to content
Permalink
Browse files

ofz#860 clear old data before reading new data

Change-Id: I3bf5c2072a328052004c4c0551c2b125cb8ab19b
Reviewed-on: https://gerrit.libreoffice.org/35165
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
  • Loading branch information...
Caolán McNamara
Caolán McNamara committed Mar 14, 2017
1 parent 42f2a87 commit 65dcd1d8195069c8c8acb3a188b8e5616c51029c
Showing with 2 additions and 0 deletions.
  1. +2 −0 hwpfilter/source/hwpfile.cxx
@@ -357,6 +357,8 @@ void HWPFile::TagsRead()
return;
}

_hwpInfo.back_info.data.clear();

//read potentially compressed data in blocks as its more
//likely large values are simply broken and we'll run out
//of data before we need to realloc

4 comments on commit 65dcd1d

@carnil

This comment has been minimized.

Copy link

replied Apr 15, 2017

Thie issue fixed by this commit has been assigned CVE-2017-7882, from libreoffice: Container-overflow in inflate.

@caolanm

This comment has been minimized.

Copy link

replied Apr 21, 2017

This was a bug fix on March 14, 2017 for a bug introduced on March 2, 2017 and was never present in any release

@carnil

This comment has been minimized.

Copy link

replied Apr 21, 2017

@caolanm

This comment has been minimized.

Copy link

replied Apr 21, 2017

don't know who requested the CVE, presumably this is easy to look up, but a casual search doesn't give me the answer

Please sign in to comment.
You can’t perform that action at this time.