summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_record_layer.c
diff options
context:
space:
mode:
authorjsing <>2020-03-12 17:17:12 +0000
committerjsing <>2020-03-12 17:17:12 +0000
commit5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1 (patch)
treecbe1f5c6f04bd5de53bc196e0f48ecf824eef897 /src/lib/libssl/tls13_record_layer.c
parent1ff32d7d2a793d3705647cf8a01469592503cf75 (diff)
downloadopenbsd-5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1.tar.gz
openbsd-5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1.tar.bz2
openbsd-5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1.zip
Use calloc() rather than malloc() when allocating initial CBB buffer.
CBB uses recallocarray() to expand buffers, however was still using malloc() for the initial buffer, which could result in memory being leaked in incorrect use cases. While here also use calloc() to allocate internal structs. ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_record_layer.c')
0 files changed, 0 insertions, 0 deletions