mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 15:23:03 +01:00
Fix buffer overflow using string_view.
This commit is contained in:
parent
6551af1fcb
commit
31d8495a1f
@ -249,6 +249,9 @@ namespace
|
||||
|
||||
constexpr Format::Patterns mapFormatStrToFormatPattern(std::string_view pattern)
|
||||
{
|
||||
if (pattern.empty())
|
||||
return Format::NONE;
|
||||
|
||||
switch (pattern[0])
|
||||
{
|
||||
case 'Y':
|
||||
|
Loading…
Reference in New Issue
Block a user