-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Server Security
-
Security 2024-03-04, Security 2024-04-01, Security 2024-04-15, Security 2024-04-29
The code in uses fmtlib and std::back_inserter to write out the UUID. This results in many function to fmt::v7::formatter<unsigned int, char, void>::format and fmt::v7::detail::concat as it builds the string.
format_to( std::back_inserter(buffer), FMT_COMPILE( R"({{"$uuid":"{:02x}{:02x}{:02x}{:02x}-{:02x}{:02x}-{:02x}{:02x}-{:02x}{:02x}-{:02x}{:02x}{:02x}{:02x}{:02x}{:02x}"}})"), static_cast<uint8_t>(data[0]), static_cast<uint8_t>(data[1]), static_cast<uint8_t>(data[2]), static_cast<uint8_t>(data[3]), static_cast<uint8_t>(data[4]), static_cast<uint8_t>(data[5]), static_cast<uint8_t>(data[6]), static_cast<uint8_t>(data[7]), static_cast<uint8_t>(data[8]), static_cast<uint8_t>(data[9]), static_cast<uint8_t>(data[10]), static_cast<uint8_t>(data[11]), static_cast<uint8_t>(data[12]), static_cast<uint8_t>(data[13]), static_cast<uint8_t>(data[14]), static_cast<uint8_t>(data[15]));