mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
96092a8eea
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
|
||
---|---|---|
.. | ||
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 |