Koen Vandeputte c5bf408ed6 ramips: fix image generation for mt76x8
Buildbot fails to generate images for targets also generating a
Sercomm binary with following error:

Opening file: /mnt/ramdisk/koen/firmware/builds/owrt_mt76x8/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-netgear_r6120-squashfs-factory.img.rootfs.zip
Filesize: 3648606 .
mksercommfw: malloc.c:2427: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Makefile:287: recipe for target '/mnt/ramdisk/koen/firmware/builds/owrt_mt76x8/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-netgear_r6120-squashfs-factory.img' failed

Debugging using valgrind shows stack corruption due to a buffer overflow.
The author of the generator assumes the filename ends with "root",
while it should be "rootfs".

Fix this by accounting for the 2 missing characters which solves the build issues.

More work is required to cleanup this source, which will be done later on.

Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-11-06 15:29:51 +01:00
..
2016-12-16 22:39:22 +01:00
2018-11-05 14:04:26 +01:00
2018-11-01 13:49:52 +01:00
2018-10-07 02:10:15 +02:00
2017-01-03 14:24:33 +01:00
2017-05-25 19:01:07 +02:00
2016-12-16 22:39:22 +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
2018-04-11 21:02:50 +02:00
2018-10-07 02:10:15 +02:00
2016-12-16 22:39:22 +01:00
2018-01-17 08:52:54 +01:00
2018-05-05 07:13:41 +02:00
2018-06-08 09:56:26 +02:00
2018-01-20 20:22:01 +01:00