1
0
Fork 0
forked from mirror/openwrt
openwrt/tools
Michael T Farnworth 96092a8eea mkrasimage: fix segmentation fault
Code was attempting to determine the size of the file
before it was actually known and allocating insufficient
memory space.  Images above a certain size caused a
segmentation fault.  Moving the calloc() ensured ensured
that large images didn't result in a buffer overflow on
memcpy().

Signed-off-by: Michael T Farnworth <michael@turf.org>
[fixed name in From to match one in SoB]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b468353a37)
2020-03-29 18:47:32 +02:00
..
autoconf
automake
b43-tools
bc
bison
cbootimage
cbootimage-configs
ccache
cmake
coreutils
dosfstools
e2fsprogs
elftosb
expat
findutils
firmware-utils
flex
flock
genext2fs
gengetopt
gmp
include
isl
kernel2minor
libelf
libressl
libtool
lzma
lzma-old
m4
make-ext4fs
missing-macros
mkimage
mklibs
mm-macros
mpc
mpfr
mtd-utils
mtools
padjffs2
patch
patch-image
patchelf
pkg-config
qemu
quilt
scons
sdimage
sed
sparse
squashfs
squashfskit4
sstrip
tar
upslug2
wrt350nv2-builder
xz
zip
zlib
Makefile