]> git.ipfire.org Git - thirdparty/grub.git/commit
syslinux_parse: assorted issues found by Coverity
authorAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 19 Jun 2015 15:38:25 +0000 (18:38 +0300)
commit48cd9dc104082d4106ccd81fa3feec0d514ddd08
treeedd6c20af327e483165e8020a29d22061d205133
parent8067fe28edcedacf2507132baaab65dc3c4bb3d5
syslinux_parse: assorted issues found by Coverity

1. Remove unneeded NULL check
CID: 96607

2. Do not allocate storage for initrd, copy it directly from input
buffer. Avoids memory leak in failure path.
CID: 96604

3. Unchecked error return from print()
CID: 96601, 73595
grub-core/lib/syslinux_parse.c