fix rpm crash issue when there is multiple %files section in spec file 98/294198/1 accepted/tizen/base/tool/20230619.044911 submit/tizen_base/20230613.141030
authorwang biao <biao716.wang@samsung.com>
Wed, 14 Jun 2023 06:44:10 +0000 (14:44 +0800)
committerwang biao <biao716.wang@samsung.com>
Wed, 14 Jun 2023 06:44:13 +0000 (14:44 +0800)
commitf33b6fc7c4360b6df83e276230f0062fc6c9d823
treeb7a5eb12228d0ff44592fd167d706849a3ee17da
parent52fdf747b37d00f7c879e69772c2422139108206
fix rpm crash issue when there is multiple %files section in spec file
when writing multiple %files, it means they are packing for main package,
the variable will be NULL. It will happen segment fault at strncmp function.
Change-Id: I3e5bd6f9e1cb774b4d7f97a9f6522d66361009b8
Signed-off-by: wang biao <biao716.wang@samsung.com>
build/parseFiles.c
build/parsePreamble.c