Mercurial > hg > nginx-quic
comparison src/core/ngx_string.c @ 7395:9ca82f273967
Core: ngx_explicit_memzero().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 15 Nov 2018 21:28:02 +0300 |
parents | 874171c3c71a |
children | a42a6dfeb01a |
comparison
equal
deleted
inserted
replaced
7394:650574a44505 | 7395:9ca82f273967 |
---|---|
2011 | 2011 |
2012 ngx_free(p); | 2012 ngx_free(p); |
2013 } | 2013 } |
2014 | 2014 |
2015 | 2015 |
2016 void | |
2017 ngx_explicit_memzero(void *buf, size_t n) | |
2018 { | |
2019 ngx_memzero(buf, n); | |
2020 ngx_memory_barrier(); | |
2021 } | |
2022 | |
2023 | |
2016 #if (NGX_MEMCPY_LIMIT) | 2024 #if (NGX_MEMCPY_LIMIT) |
2017 | 2025 |
2018 void * | 2026 void * |
2019 ngx_memcpy(void *dst, const void *src, size_t n) | 2027 ngx_memcpy(void *dst, const void *src, size_t n) |
2020 { | 2028 { |