Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Fixed
-
2.6.1, 2.7.1
-
Fully Compatible
-
ALL
-
-
Server 2.7.3
Description
https://github.com/mongodb/mongo/blob/master/src/mongo/tools/restore.cpp#L735 reads data from a file, then passes the beginning of that data to 'mongo::fromjson'. However, it does not ensure that there is a terminating NULL character at the end of the buffer.
Found with address sanitizer.