summaryrefslogtreecommitdiff
path: root/tests/benchmark.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-03-23 19:16:44 +0100
committerPeter Wu <peter@lekensteyn.nl>2016-03-23 19:16:53 +0100
commit3269496e11eb08a4847d8c11f4a6a8b421cf5ad6 (patch)
tree19c9eae0eef7180ee8ffcedde1eb2bc298e88051 /tests/benchmark.c
parente709d86fe596a4bcf235799468947c13ae657d78 (diff)
downloadlibgcrypt-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