avinfo: Fix buffer overflow when parsing broken/malicious data
authorPali Rohár <pali.rohar@gmail.com>
Sun, 23 Dec 2018 10:40:12 +0000 (11:40 +0100)
committerhimanshu <h.himanshu@samsung.com>
Wed, 22 Jan 2020 07:23:14 +0000 (12:53 +0530)
commit31e8e269a9351f867416b249d40e41d4e1aa5cad
tree740ba4a10839c54b21846fc949891f905bcee47f
parent82e8c8b4c4d9bee630739241b225e7c0840cbcdf
avinfo: Fix buffer overflow when parsing broken/malicious data

Check size of buffer prior casting it to struct.

Change-Id: I8a3ee8d8bf2dfef7b37a7075f2062804268de639
Signed-off-by: himanshu <h.himanshu@samsung.com>
tools/avinfo.c