<format>
: Should we verify character arrays being null-terminated when creating basic_format_arg
?
#5094
Labels
<format>
: Should we verify character arrays being null-terminated when creating basic_format_arg
?
#5094
There're Preconditions specified in [format.arg]/5 for constructing a
basic_format_arg
:And character arrays are decayed per [format.arg]/6.9:
It seems that we can check the content of the array (of known bound) in this internal factory function.
STL/stl/inc/__msvc_ranges_tuple_formatter.hpp
Lines 277 to 293 in 44a276f
Should we verify that the array is null-terminated? Note that the checking is not O(1) but still seems cheap in formatting to me.
The text was updated successfully, but these errors were encountered: