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 Revert "bc: update to 1.07.1" 2019-05-22 21:27:44 +02:00
bison tools/bison: Update to 3.4.1 2019-09-04 13:18:42 +02:00
cbootimage tools: add cbootimage for tegra 2019-04-06 14:48:46 +02:00
cbootimage-configs tools: add cbootimage-configs for tegra 2019-04-06 14:48:46 +02:00
ccache ccache: update to 3.7.2 2019-09-04 13:34:08 +02:00
cmake tools/cmake: Update to 3.15.1 2019-09-04 13:46:12 +02:00
coreutils
dosfstools
e2fsprogs tools/e2fsprogs: Update to version 1.45.4 2019-11-07 19:42:42 +01:00
elftosb
expat expat: Update to version 2.2.9 2019-11-07 19:42:42 +01:00
findutils
firmware-utils mkrasimage: fix segmentation fault 2020-03-29 18:47:32 +02:00
flex
flock
genext2fs
gengetopt tools/gengetopt: Update to 2.23 2019-09-04 13:26:24 +02:00
gmp
include
isl
kernel2minor
libelf tools: libelf: fix headers to trigger -Wundef warnings 2019-09-04 13:46:55 +02:00
libressl tools: libressl: fix compilation for non-glibc clib (FS#2400) 2019-09-04 13:31:40 +02:00
libtool
lzma
lzma-old
m4
make-ext4fs
missing-macros
mkimage tools: mkimage: fix __u64 typedef conflict with new glibc 2019-09-12 02:25:03 +00:00
mklibs
mm-macros
mpc
mpfr
mtd-utils tools/mtd-utils: update to 2.1.1 2019-08-27 10:31:06 +02:00
mtools
padjffs2
patch tools/patch: apply upstream patch for cve-2019-13638 2019-08-14 07:29:32 +02:00
patch-image
patchelf
pkg-config
qemu
quilt
scons scons: update to 3.0.5 2019-05-18 21:17:45 +02:00
sdimage
sed
sparse
squashfs
squashfskit4 tools: squashfskit4: fix build with GCC10 2020-03-29 18:47:15 +02:00
sstrip
tar
upslug2 upslug2: Update to git repository 2019-09-04 13:47:11 +02:00
wrt350nv2-builder
xz tools/xz: Compile with PIC to fix linking errors 2019-04-06 19:14:06 +02:00
zip
zlib
Makefile tools: cbootimage: depend on automake 2019-04-07 15:25:28 +02:00