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:
wtchang%redhat.com 2006-02-16 22:33:13 +00:00
Родитель f0861909a7
Коммит f84184efdf
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;