This presumably always wanted to check for SAL_MAX_UINT16, not USHRT_MAX
The check against USHRT_MAX was introduced with 9c034462 "INTEGRATION: CWS cmcfixes30: #i72614# crash in loading corrupt .doc", apparently to ensure the static_cast<sal_uInt16> in the call to ShortToSVBT16 below (which already was that same static_cast<sal_uInt16> back tehn) is OK. Change-Id: Ie385f0f490cab1c59bce07fa25bd9b92e3ad286a Reviewed-on: https://gerrit.libreoffice.org/48439Tested-by:Jenkins <ci@libreoffice.org> Reviewed-by:
Stephan Bergmann <sbergman@redhat.com>
Showing
Please
register
or
sign in
to comment