Commit 82de4f9d authored by Petr Písař's avatar Petr Písař Committed by A. Jesse Jiryu Davis
Browse files

Fix signed integer wrap in time2sub()

There is a signed integer wrap that has an undefined behevior and
GCC 7 knows about it that the compiled code just crashes.

Fix can be verified by building with -fsanitize=undefined option.

<https://jira.mongodb.org/browse/CDRIVER-2010

>

Signed-off-by: default avatarPetr Písař <ppisar@redhat.com>
Signed-off-by: default avatarA. Jesse Jiryu Davis <jesse@mongodb.com>
parent 13c00e9a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment