Created by: chumarshal1
Solve one problem that bad_array_new_length is not thrown for certain scenarios "int n=-1; new char[n];".
Becase the scenarios "int n=-1; new char[n];" does not follow C++ spec: "std::bad_array_new_length is the type of the object thrown as exceptions by the new-expressions to report invalid array lengths if array length is negative."