Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/common/cvt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,10 +839,15 @@ void CVT_string_to_datetime(const dsc* desc,

description[i] = SPECIAL;

while (++p < end)
// Note: p points to the first character not consumed as a part of
// the word, so it must be checked too.

while (p < end)
{
if (*p != ' ' && *p != '\t' && *p != '\0')
CVT_conversion_error(desc, cb->err);

++p;
}

// fetch the current datetime
Expand Down
Loading