Add assertion after malloc in the message class 18/307118/1 accepted/tizen/8.0/unified/20240306.173520
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 22 Feb 2024 10:20:40 +0000 (19:20 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Tue, 5 Mar 2024 05:37:58 +0000 (14:37 +0900)
commit12e823af26877797d5ff768955c9b18454736f1a
treed71fc6a26319e6b058df5b08f4d1ad5c019d8eda
parentc9d2dab94c4c6187571b65b9b0443ad48afc95e3
Add assertion after malloc in the message class

Since message class is written under presumtion that malloc will never
return NULL(there is no NULL-checking code), it is better to insert an
assertion after malloc was called.

This solves bug reported by SVACE with WGID:
696636 695764 696678 696677 696676 696638 696635 696654 696653 696652
696651 696650 696649 696648 696647 696646 696643 696641 696640 696639

Change-Id: I258a1d141a18283d9b5a5108e82f505ba610c86d
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/shared/message.cpp