]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: guid: restrict guid format
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 27 Mar 2024 14:15:19 +0000 (15:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 5 Apr 2024 13:40:42 +0000 (15:40 +0200)
commit1009ca41607af76a7aadd7c6fd64448abb887be2
treed7421a1c5ae007e50f90d5a1064307789a8fbb35
parent84fa6b344a16651f690faaa76027e6377fb5099e
MINOR: guid: restrict guid format

GUID format is unspecified to allow users to choose the naming scheme.
Some restrictions however are added by this patch, mainly to ensure
coherence and memory usage.

The first restriction is on the length of GUID. No more than 127
characters can be used to prevent memory over consumption.

The second restriction is on the character set allowed in GUID. Utility
function invalid_char() is used for this : it allows alphanumeric
values and '-', '_', '.' and ':'.
include/haproxy/guid-t.h
src/guid.c