polarssl/polarssl — pull request #10 by mpg (2012-11-17 12:52:26+00:00)
Title: Fix possible segfault in mpi_shift_r()

Hi,

`mpi_shift_r(X, count)` would segfault if `count > X->n * biL`. This branch fixes this and adds test cases accordingly in the test suite.

While at it, I added a forgotten `mpi_free()` which caused a memory leak in the test suite.

Best,
Manuel.