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 b468353a373d181c4362ff690d7b22a08f5f6949)
2020-03-29 18:47:32 +02:00
..
2019-05-22 21:27:44 +02:00
2019-09-04 13:18:42 +02:00
2019-09-04 13:34:08 +02:00
2019-09-04 13:46:12 +02:00
2019-11-07 19:42:42 +01:00
2018-11-25 19:23:03 +01:00
2019-09-04 13:26:24 +02:00
2017-01-03 14:24:33 +01:00
2019-02-26 23:20:04 +01:00
2016-12-16 22:39:22 +01:00
2016-12-16 22:39:22 +01:00
2018-01-18 08:04:18 +01:00
2019-02-10 20:51:09 +01:00
2018-12-24 17:05:57 +01:00
2016-12-16 22:39:22 +01:00
2019-05-18 21:17:45 +02:00
2019-02-10 20:48:25 +01:00
2018-06-08 09:56:26 +02:00
2019-03-10 21:36:28 +01:00
2019-09-04 13:47:11 +02:00
2019-04-07 15:25:28 +02:00