platform: msm_shared: Fix dt size overflow issue

Device tree size calculation based on number of entries
in the header could overflow and lead to buffer overread
issues. Fix the DT size calculation by checking for integer
overflow during multiplication.

CRs-Fixed: 681954
Change-Id: Ifa9a72845ef748a2198371ab3d0f83e886fe9a4c
1 file changed