scripts: fixed an issue that could cause an infinite loop. [1/1]
authorJianxiong Pan <jianxiong.pan@amlogic.com>
Tue, 30 Jul 2019 01:57:56 +0000 (09:57 +0800)
committerLawrence Mok <lawrence.mok@amlogic.com>
Tue, 30 Jul 2019 02:34:21 +0000 (19:34 -0700)
commit4b47fce393eaa05cc401ac5b19ca4e349c6b3bf2
tree6a1c3b778eb7bed611f454e5d41b5f3ca2cbbae4
parent602b5bf65b424a12a4400a9dd7f104cf282c4718
scripts: fixed an issue that could cause an infinite loop. [1/1]

PD#SWPL-12025

Problem:
the merge_pre_check.pl script has an bug that may enter an infinite loop,
causing problems.

Solution:
add the length of the detection conditions.

Verify:
local test.

Change-Id: I48fe839678ea0884a9082197eab083a2b8f489cd
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
scripts/amlogic/merge_pre_check.pl