Kaydet (Commit) efbd217a authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#123815 null terminator included in string

regression from...

commit 18d63606
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Mon Jun 19 09:46:31 2017 +0100

    ofz: use OString instead of bare char*

this is no use to the reporter though, as the document format is
10 and 11 is the oldest the filter will open

Change-Id: I4cdfe92e37f047493a6eab95f0e8e9f5dced1a35
Reviewed-on: https://gerrit.libreoffice.org/68745
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 64d28780
......@@ -290,7 +290,9 @@ CBenTOCReader::ReadTOC()
return Err;
}
OString sName(sBuffer, Length);
OString sName;
if (Length)
sName = OString(sBuffer, Length - 1);
CUtListElmt * pPrevNamedObjectListElmt;
if (FindNamedObject(&cpContainer->GetNamedObjects(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment