]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Protect buffers from direct manpiulation
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Oct 2021 16:21:36 +0000 (11:21 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Oct 2021 16:22:56 +0000 (11:22 -0500)
src/lib/util/value.h

index bdfc88ed1eb8e62d4b75c744d0f6037f45c5e4ec..1dad5074742c99017b898f6e2c6cdce0364ace00 100644 (file)
@@ -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.
                        };
                };