summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-09-23 12:23:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-09-23 14:04:07 +0200
commit7346edfee5c2391f828b09baa3dc94d5834d3cd8 (patch)
tree03a3ba11281c4b6f9e61f48876369a6bf86348d1 /officecfg
parent1b9fa11a0869246fe0433b79aab30dd216cf92b6 (diff)
These PDFium-provided string sizes must always be multiples of 2
...as both FPDFTextObj_GetText (see workdir/UnpackedTarball/pdfium/public/fpdf_edit.h) and FPDFAnnot_GetStringValue (see workdir/UnpackedTarball/pdfium/public/fpdf_annot.h) return UTF-16LE strings but measure their sizes in bytes. So half the returned sizes early, which avoids over-allocating double sized sal_Unicode arrays, and is a prerequisite for a follow-up endianness-issue fix. Change-Id: I4565819044a44ca9435f9bffdea083d5807cfe4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103242 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'officecfg')
0 files changed, 0 insertions, 0 deletions