Adapt odd USHRT_MAX/4 limit in FIELD_PROP_PROP_SEQ handler
The code was added with 8ff71b59 "TextField and FieldMaster 'Bibliography' completed", but, according to private communication with Oliver, that specific values was chosen rather randomly. Still, other parts of the code assume m_SortKeyArr to be indexed by sal_uInt16, so use SAL_MAX_UINT16 here to ensure the array is not getting to big causing overflow in those other places. Change-Id: I18ed75ed7c88b04e174a82194ae7d93a5f7f7c76 Reviewed-on: https://gerrit.libreoffice.org/48443Tested-by:Jenkins <ci@libreoffice.org> Reviewed-by:
Stephan Bergmann <sbergman@redhat.com>
Showing
Please
register
or
sign in
to comment