We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09007c commit ca86100Copy full SHA for ca86100
util/version.cpp
@@ -112,7 +112,7 @@ namespace mongo {
112
f.open("/proc/self/numa_maps", /*read_only*/true);
113
if ( f.is_open() && ! f.bad() ) {
114
char line[100]; //we only need the first line
115
- read(f.fd, line, sizeof(line));
+ assert( read(f.fd, line, sizeof(line)) <= 100 );
116
117
// just in case...
118
line[98] = ' ';
0 commit comments