]> git.dujemihanovic.xyz Git - u-boot.git/commit
driver: video: Check allocated pointers
authorBin Meng <bmeng.cn@gmail.com>
Wed, 18 May 2022 05:36:18 +0000 (13:36 +0800)
committerAnatolij Gustschin <agust@denx.de>
Sat, 25 Jun 2022 06:10:21 +0000 (08:10 +0200)
commit5f71b2f105e5d71e0c5204ba9b1b4def48733af7
treed94cdc7e371e469132337c335f31faf577744bf0
parentc527e3f52db34ce945ebea55e8d16c6e8fda2705
driver: video: Check allocated pointers

The codes that call STBTT_malloc() / stbtt__new_active() do not check
the return value at present which may cause segfault.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/video/stb_truetype.h