]> git.alsa-project.org Git - alsa-lib.git/commit
topology: Check address and length before string copy
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 20 Jul 2016 01:53:12 +0000 (09:53 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Jul 2016 05:46:45 +0000 (07:46 +0200)
commit9797e9893093dbbde9745faad5163c93be3ca3a6
tree80557a82fa836bc853b64c30b67cd512fc6a1ee4
parent1a0d49be70d716de4f40f50d6393aead56b748de
topology: Check address and length before string copy

elem_copy_text() is widely used for string copy in topology. Because some
name fields are not mandatory for users, sometimes the source can be
invalid and we should not do the copy. So we add check here.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/tplg_local.h