зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 327384: fixed an off-by-one error in the size of the 'genenc'
array. The patch is contributed by Andreas Sterbenz <Andreas.Sterbenz@sun.com>. r=wtc,nelsonb
This commit is contained in:
Родитель
f0861909a7
Коммит
f84184efdf
|
@ -136,7 +136,8 @@ EC_FillParams(PRArenaPool *arena, const SECItem *encodedParams,
|
|||
SECOidTag tag;
|
||||
SECItem oid = { siBuffer, NULL, 0};
|
||||
const ECCurveParams *curveParams;
|
||||
char genenc[2 + 2 * 2 * MAX_ECKEY_LEN];
|
||||
/* 2 ['0'+'4'] + MAX_ECKEY_LEN * 2 [x,y] * 2 [hex string] + 1 ['\0'] */
|
||||
char genenc[3 + 2 * 2 * MAX_ECKEY_LEN];
|
||||
|
||||
#if EC_DEBUG
|
||||
int i;
|
||||
|
|
Загрузка…
Ссылка в новой задаче