From: Arran Cudbard-Bell Date: Fri, 8 Oct 2021 16:21:36 +0000 (-0500) Subject: Protect buffers from direct manpiulation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2de462b651a2aec25a3cb84f4fbc7f71683e785e;p=thirdparty%2Ffreeradius-server.git Protect buffers from direct manpiulation --- diff --git a/src/lib/util/value.h b/src/lib/util/value.h index bdfc88ed1eb..1dad5074742 100644 --- a/src/lib/util/value.h +++ b/src/lib/util/value.h @@ -106,9 +106,9 @@ struct value_box_s { */ struct { union { - char const *strvalue; //!< Pointer to UTF-8 string. - uint8_t const *octets; //!< Pointer to binary string. - void *ptr; //!< generic pointer. + char const * _CONST strvalue; //!< Pointer to UTF-8 string. + uint8_t const * _CONST octets; //!< Pointer to binary string. + void * _CONST ptr; //!< generic pointer. }; };