From 31b1f52f774160e8880bdc1c8fb5fcdbd06bb398 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 20 Jan 2026 09:52:16 +0100 Subject: [PATCH] html: check code analysis warning at Debug runtime Signed-off-by: Simon Rozman --- include/stdex/html.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/stdex/html.hpp b/include/stdex/html.hpp index e456f866f..236cba03e 100644 --- a/include/stdex/html.hpp +++ b/include/stdex/html.hpp @@ -217,6 +217,7 @@ namespace stdex _In_reads_or_z_opt_(num_chars) const char* src, _In_ size_t num_chars) { num_chars = stdex::strnlen(src, num_chars); + stdex_assert(src || !num_chars); dst.reserve(dst.size() + num_chars + (num_chars >> 2)); for (size_t i = 0; i < num_chars; ++i) { switch (src[i]) {