You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
imap server doesn't send untagged response if uid or message-sequence number requested in FETCH command doesn't exist.
it sends just only tagged response with OK status in that situation.
msg = std::move(found_messages.begin()->second);
So above code line can generate segmentation fault since it trys to access found_messages.begin() even though there is no element in it.
How about moving the logic which checks if the uid data exists to following handling tagged response?
mailio/src/imap.cpp
Lines 341 to 347 in 75db981
imap server doesn't send untagged response if uid or message-sequence number requested in
FETCH
command doesn't exist.it sends just only tagged response with
OK
status in that situation.So above code line can generate segmentation fault since it trys to access
found_messages.begin()
even though there is no element in it.How about moving the logic which checks if the uid data exists to following handling tagged response?
mailio/src/imap.cpp
Lines 445 to 460 in 75db981
Of course, it is good to check if
found_messages
is empty before callingbegin()
The text was updated successfully, but these errors were encountered: