Commit c546b77
committed
Fix Codacy CWE-126: replace strlen with std::char_traits::length
Replace strlen(s) with std::char_traits<char>::length(s) in
unescaper_func to silence Codacy static analysis warning about
potential over-read on non-null-terminated strings. The MHD API
guarantees s is null-terminated, but using the C++ equivalent
avoids false positives from C-focused analyzers.1 parent 9ec8c40 commit c546b77
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| |||
0 commit comments