Send 'NULL' string if there is no private data 52/279052/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 1 Aug 2022 07:13:48 +0000 (16:13 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 1 Aug 2022 07:18:11 +0000 (16:18 +0900)
commit6215ade4eeaa95a363ee4ddf0221fbf6d2c99651
tree56fc3b9e40f2c2093703272cd04948d7e85e27d2
parent55aca38dfb920eb3e8882e42b584f8e687454b03
Send 'NULL' string if there is no private data

- Issue:
When server sends null pointer through TIDL parameter, client may
receive unhanlded error.

- Solution:
This is because null pointer can occur invalid access on TIDL logic. To
prevent this situation, this patch sends 'NULL' string instead of null
pointer. Through this change, client always can access valid memory
pointer.

Change-Id: I2685ca0a836c360b3a784da804bbabfabb7df783
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_server.c
server/ttsd_tidl.c