aboutsummaryrefslogtreecommitdiffstats
path: root/tools/wrt350nv2-builder/Makefile
diff options
context:
space:
mode:
authorMichael T Farnworth <michael@turf.org>2020-02-22 14:20:49 +0000
committerPetr Štetiar <ynezz@true.cz>2020-03-01 21:36:00 +0100
commitb468353a373d181c4362ff690d7b22a08f5f6949 (patch)
treea14f73f26944fed298a30d6c02486ee4b4babd4c /tools/wrt350nv2-builder/Makefile
parentc60be196933807cc0db90a36704e4505edd83eeb (diff)
downloadupstream-b468353a373d181c4362ff690d7b22a08f5f6949.tar.gz
upstream-b468353a373d181c4362ff690d7b22a08f5f6949.tar.bz2
upstream-b468353a373d181c4362ff690d7b22a08f5f6949.zip
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>
Diffstat (limited to 'tools/wrt350nv2-builder/Makefile')
0 files changed, 0 insertions, 0 deletions