Skip to content
Permalink
Browse files Browse the repository at this point in the history
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 committed Mar 14, 2017
1 parent 42f2a87 commit 65dcd1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hwpfilter/source/hwpfile.cxx
Expand Up @@ -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
Expand Down

4 comments on commit 65dcd1d

@carnil
Copy link

@carnil carnil commented on 65dcd1d Apr 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@caolanm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link

@carnil carnil commented on 65dcd1d Apr 21, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caolanm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.