onlineupdate/source/libmar/sign/nss_secutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1baf55c0ab7cc003225fd9adcaf702a511db575a Author: Markus Mohrhard <markus.mohrh...@googlemail.com> AuthorDate: Thu Oct 11 00:10:48 2018 +0200 Commit: Markus Mohrhard <markus.mohrh...@googlemail.com> CommitDate: Sun Nov 18 05:20:02 2018 +0100 fix off by one error BLRG-PT-18-004 Change-Id: I9cd2582aebf2b33d40f23254047c35c8dee90f4b Reviewed-on: https://gerrit.libreoffice.org/63508 Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/onlineupdate/source/libmar/sign/nss_secutil.c b/onlineupdate/source/libmar/sign/nss_secutil.c index 9fe5fe4d49e2..875c14309ec0 100644 --- a/onlineupdate/source/libmar/sign/nss_secutil.c +++ b/onlineupdate/source/libmar/sign/nss_secutil.c @@ -122,7 +122,7 @@ SECU_FilePasswd(PK11SlotInfo *slot, PRBool retry, void *arg) return 0; /* no good retrying - the files contents will be the same */ } - phrases = PORT_ZAlloc(maxPwdFileSize); + phrases = PORT_ZAlloc(maxPwdFileSize + 1); if (!phrases) { return 0; /* out of memory */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits