| 600 | } |
| 601 | |
| 602 | unsigned buffer::ptr::append_zeros(unsigned l) |
| 603 | { |
| 604 | ceph_assert(_raw); |
| 605 | ceph_assert(l <= unused_tail_length()); |
| 606 | char* c = _raw->get_data() + _off + _len; |
| 607 | // FIPS zeroization audit 20191115: this memset is not security related. |
| 608 | memset(c, 0, l); |
| 609 | _len += l; |
| 610 | return _len + _off; |
| 611 | } |
| 612 | |
| 613 | void buffer::ptr::copy_in(unsigned o, unsigned l, const char *src, bool crc_reset) |
| 614 | { |