fdo#72468 Remove memory overflow on static memory.

Change-Id: Id294931921499bacb4590c82a5824d3b26d61171
Reviewed-on: https://gerrit.libreoffice.org/7087
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>