0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 07:20:55 +01:00

ircd::buffer: Add canary on copy/move.

This commit is contained in:
Jason Volk 2019-05-07 23:05:38 -07:00
parent 41d60ec2f7
commit bc82a5a12c

View file

@ -287,6 +287,7 @@ ircd::buffer::copy(const mutable_buffer &dst,
template<class it> template<class it>
it it
__attribute__((stack_protect))
ircd::buffer::move(it &dest, ircd::buffer::move(it &dest,
const it &stop, const it &stop,
const const_buffer &src) const const_buffer &src)
@ -307,6 +308,7 @@ ircd::buffer::move(it &dest,
template<class it> template<class it>
it it
__attribute__((stack_protect))
ircd::buffer::copy(it &dest, ircd::buffer::copy(it &dest,
const it &stop, const it &stop,
const const_buffer &src) const const_buffer &src)