testbn: add a missing initialisation in argument setup.

The code that parses hexadecimal test arguments out of test lines
writes them into a buffer in binary form, and sets ptrs[i] to be the
starting point of each argument. The idea is that ptrs[i+1]-ptrs[i] is
the length of each argument - but for that to apply to the _final_
argument, we need to have set one final element in ptrs[], which I
forgot to do.
This commit is contained in:
Simon Tatham 2018-12-01 14:13:51 +00:00
Родитель b2078a3c51
Коммит 915be1f6f0
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -90,6 +90,9 @@ int main(int argc, char **argv)
}
}
if (ptrnum < lenof(ptrs))
ptrs[ptrnum] = q;
if (!strcmp(buf, "mul")) {
Bignum a, b, c, p;