Closed BadAimWeeb closed 1 week ago
Tested on version 1.06, MSVC build.
https://github.com/DiscordMessenger/dm/blob/53951a09061b04836d61589815761142891d6c89/src/discord/FormattedText.cpp#L745
Not sure why it crashed since the for loop LGTM, maybe bad optimization?
for
Because size_t is unsigned, so str.size()-2 has the chance to overflow. Oops, I'll fix it
size_t
str.size()-2
Tested on version 1.06, MSVC build.
https://github.com/DiscordMessenger/dm/blob/53951a09061b04836d61589815761142891d6c89/src/discord/FormattedText.cpp#L745
Not sure why it crashed since the
for
loop LGTM, maybe bad optimization?