commit | c9b74f3f0306a3305ad62644a7c7ef1e4a3f19f1 | [log] [tgz] |
---|---|---|
author | Connor Abbott <cwabbott0@gmail.com> | Sat Jan 14 18:08:11 2017 -0500 |
committer | Connor Abbott <cwabbott0@gmail.com> | Sat Jan 14 18:18:17 2017 -0500 |
tree | 9ba956776cec33f32e037852be1e630f400a8070 | |
parent | bf8e1f9e7b26acecab1fc63a526ce3d10eae4c61 [diff] |
nir/gcm: fix a bug with metadata handling We were using impl->num_blocks, but that isn't guaranteed to be up-to-date until after the block_index metadata is required. If we were unlucky, this could lead to overwriting memory. Noticed by inspection. Signed-off-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>