Details
-
Bug
-
Resolution: Duplicate
-
Critical - P2
-
None
-
2.3.0
-
None
-
Windows
Description
In v8_db.cpp, the GETNS macro generates an automatic variable-length array variable, except on Windows where we just allocate memory on the heap and never free it:
#ifdef _WIN32
|
#define GETNS char * ns = new char[args[0]->ToString()->Utf8Length()]; args[0]->ToString()->WriteUtf8( ns );
|
#else
|
#define GETNS char ns[args[0]->ToString()->Utf8Length()]; args[0]->ToString()->WriteUtf8( ns );
|
#endif
|
Attachments
Issue Links
- is related to
-
SERVER-2407 Switch to v8
-
- Closed
-