Fix to catch std::bad_array_new_length when allocating array using new
The exception std::bad_array_new_length is thrown when the size of new
array is negative or too big to allocate.
Also, this exception cannot be suppressed by std::nothrow, so it should
be catched explicitly when allocating array using 'new' with variable
size.
To make code more reliable, try-catch statements are added to the array
allocating codes using 'new' with variable size.
Change-Id: If1d8b3ce57dace4bb4bc1d976394e4be879ac9ca
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>