diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-11-07 16:03:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-11-08 09:20:23 +0100 |
commit | 6d6a143913603b040c10a5db83c2103557899011 (patch) | |
tree | 448ad1fbf51ec0d72ed8173269a2ee8515e9f0c3 /toolkit/JunitTest_toolkit_unoapi_1.mk | |
parent | c4fc1dda75fe7aefce50d77ad05319cd143e6e25 (diff) |
Address some of the sprintf in vcl/source/fontsubset/cff.cxx
...(which cause -Werror,-Wdeprecated-declarations with macOS 13 SDK), by making
CffSubsetterContext::getString, and in turn CffSubsetterContext::getGlyphName,
return OString. Which in turn required adding rtl::OStringConstExpr and
OString::unacquired counterparts of rtl/ustring.hxx functionality to
rtl/string.hxx.
(It's not quite clear to me whether the nMaxLen clipping in
CffSubsetterContext::getString was only there to avoid overflow of the--
somewhat arbitrarily sized?---static aNameBuf, so could go now, or rather served
as a more general safety measure to not read past the mpReadPtr buffer end and
should thus remain. Hence, I added a TODO comment for now.)
Change-Id: I473d5a54a4be5b02917e197391e4f0982dcf690c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142412
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'toolkit/JunitTest_toolkit_unoapi_1.mk')
0 files changed, 0 insertions, 0 deletions