cocos2d-x version: master branch
In cocos/editor-support/cocostudio/CCBone.cpp
bool Bone::init()
{
return Bone::init(nullptr);
}
bool Bone::init(const std::string& name)
{
....
}
The first overload calls the second overload with std::string set to nullptr. It's undefined behaviour.
The following program will crash at runtime (https://wandbox.org/permlink/3LOds99d8umEIGHm)
#include <iostream>
#include <string>
int main() {
std::string s = nullptr;
std::cout << s << std::endl;
return 0;
}