aboutsummaryrefslogtreecommitdiffstats
path: root/tools/zip
diff options
context:
space:
mode:
authorMichael T Farnworth <michael@turf.org>2020-02-22 14:20:49 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2020-03-29 18:47:32 +0200
commit96092a8eeadde1b868fb9b3345b361ed4e70c84d (patch)
treec7e52e260d8541e42055890d8b185d68a5adc738 /tools/zip
parentbf5ea2a8dc8397f7b0dd975c06f9fc5dd04cb91b (diff)
downloadupstream-96092a8eeadde1b868fb9b3345b361ed4e70c84d.tar.gz
upstream-96092a8eeadde1b868fb9b3345b361ed4e70c84d.tar.bz2
upstream-96092a8eeadde1b868fb9b3345b361ed4e70c84d.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> (cherry picked from commit b468353a373d181c4362ff690d7b22a08f5f6949)
Diffstat (limited to 'tools/zip')
0 files changed, 0 insertions, 0 deletions