diff options
author | Gianluca Merlo <gianluca.merlo@gmail.com> | 2016-03-19 02:32:51 +0100 |
---|---|---|
committer | Gianluca Merlo <gianluca.merlo@gmail.com> | 2016-03-19 07:21:14 -0500 |
commit | aa2fcd244eaf9e6099479d289f1833ae471fb2ba (patch) | |
tree | 814fd4dbcafd0bc4f1a075ce0b1641397db0b84c /funcs/func_rand.c | |
parent | 9444ddadf8525d1ce66a1faf1db97f9f6c265ca4 (diff) |
func_aes: fix misuse of strlen on binary data
The encryption code for AES_ENCRYPT evaluates the length of the data to
be encoded in base64 using strlen. The data is binary, thus the length
of it can be underestimated at the first NULL character.
Reuse the write pointer offset to evaluate it, instead.
ASTERISK-25857 #close
Change-Id: If686b5d570473eb926693c73461177b35b13b186
Diffstat (limited to 'funcs/func_rand.c')
0 files changed, 0 insertions, 0 deletions