diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-03-23 19:16:44 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-03-23 19:16:53 +0100 |
commit | 3269496e11eb08a4847d8c11f4a6a8b421cf5ad6 (patch) | |
tree | 19c9eae0eef7180ee8ffcedde1eb2bc298e88051 /tests/benchmark.c | |
parent | e709d86fe596a4bcf235799468947c13ae657d78 (diff) | |
download | libgcrypt-3269496e11eb08a4847d8c11f4a6a8b421cf5ad6.tar.gz |
Avoid false out of bounds reports.
* cipher/md.c: add explicit type cast from char [1] to char *.
--
Fixes four UBSan error reports while running tests which look like:
cipher/md.c:671:42: runtime error: index 400 out of bounds for type
'char [1]'
#0 0x7f83c43fe90e in md_final cipher/md.c:671:42
#1 0x7f83c43fceb7 in _gcry_md_ctl cipher/md.c:781:7
#2 0x7f83c44046fa in _gcry_md_read cipher/md.c:868:3
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'tests/benchmark.c')
0 files changed, 0 insertions, 0 deletions