diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-10-11 00:10:48 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-18 05:20:02 +0100 |
commit | 1baf55c0ab7cc003225fd9adcaf702a511db575a (patch) | |
tree | 12f6492a15bb2a39e6559f71ed1fd368fb32cee8 /onlineupdate | |
parent | a146438bdbe043357b6c729a6136d1aeef269d97 (diff) |
fix off by one error
BLRG-PT-18-004
Change-Id: I9cd2582aebf2b33d40f23254047c35c8dee90f4b
Reviewed-on: https://gerrit.libreoffice.org/63508
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'onlineupdate')
-rw-r--r-- | onlineupdate/source/libmar/sign/nss_secutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |