8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Fix buffer overflow using string_view.

This commit is contained in:
Adriano dos Santos Fernandes 2024-11-27 23:07:05 -03:00
parent 6551af1fcb
commit 31d8495a1f

View File

@ -249,6 +249,9 @@ namespace
constexpr Format::Patterns mapFormatStrToFormatPattern(std::string_view pattern)
{
if (pattern.empty())
return Format::NONE;
switch (pattern[0])
{
case 'Y':