Modify to limit the size of message for socket ipc 86/309886/9 accepted/tizen/unified/20240424.063525 accepted/tizen/unified/x/20240425.051112
authorJiyong <jiyong.min@samsung.com>
Wed, 17 Apr 2024 23:47:42 +0000 (08:47 +0900)
committerJiyong <jiyong.min@samsung.com>
Tue, 23 Apr 2024 00:54:37 +0000 (09:54 +0900)
commit26f6dd0e5bd3669089d3c313b7e571804c893ad7
tree7d390be109a5bc178c83ce283c81f1b1fdaa7643
parentef903b3c87dee47ce7e590849cc539afdb2481a2
Modify to limit the size of message for socket ipc

[Problem]
  DoS is available by calling g_malloc0 with too big msg_size value.

[Solution]
  The size of messages with socket has been limited to 10kbytes and
  large messages will be sent as file.

Change-Id: Ie2cf9f4f3a3ec111fcf220724427f29b5157729a
include/media_controller_private.h
packaging/capi-media-controller.spec
src/media_controller_db.c
src/media_controller_ipc.c
src/media_controller_util.c
svc/include/media_controller_socket.h
svc/media_controller_cynara.c
svc/media_controller_db_util.c
svc/media_controller_svc.c