Kaydet (Commit) fa4071bb authored tarafından Mike's avatar Mike Kaydeden (comit) David Tardon

tdf#63054: pdf_string_parser incorrectly handles escapes

This patch fixes the escapes handling by avoiding boost built-in
functions that skip whitespaces behind the scenes.

Change-Id: I9607ecd9e2e052aadcba69cf30ec25c981743c49
Reviewed-on: https://gerrit.libreoffice.org/15562Tested-by: 's avatarJenkins <ci@libreoffice.org>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst a2c02f3f
......@@ -116,8 +116,8 @@ public:
else if( c == '\\' ) // ignore escaped braces
{
++len;
++scan;
if( scan.at_end() )
++scan.first; // tdf#63054: avoid skipping spaces
if( scan.first == scan.last ) // tdf#63054: avoid skipping spaces
break;
}
++len;
......
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