]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
utf8_to_ucs2() should check for malloc failure
authortsoome <tsoome@FreeBSD.org>
Tue, 16 Jan 2018 20:35:54 +0000 (20:35 +0000)
committertsoome <tsoome@FreeBSD.org>
Tue, 16 Jan 2018 20:35:54 +0000 (20:35 +0000)
commit3cbec545e777ba7db5752ccf9d66e1c0471987d7
tree20e27661d3dcc2c3d1e0f65802af8b028905d092
parent9614593728164e144912f93b4bbca10b1d6a1aa9
utf8_to_ucs2() should check for malloc failure

utf8_to_ucs2() is calling malloc() without checking the result.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D13933
stand/efi/libefi/efichar.c