]> www.infradead.org Git - mtd-utils.git/commit
ubi: tests: Replace variable-length array with malloc()
authorDavid Gstir <david@sigma-star.at>
Mon, 22 Feb 2016 13:52:03 +0000 (14:52 +0100)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 21 Feb 2017 09:13:11 +0000 (10:13 +0100)
commitd600419ef43dd04c0e83e4ce0fc714d2f4e5ac8c
tree5de1e3cadef2bde3526b0657b78eabc6016f12d6
parent1710e0c53e5d3768ba7a58e26ffc8cb105d2ae62
ubi: tests: Replace variable-length array with malloc()

io_read and io_update of mtd-utils use variable-length arrays for test data.
Since this could result in allocating many megabytes using alloca(), switch
to malloc().

Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/ubi-tests/io_read.c
tests/ubi-tests/io_update.c
tests/ubi-tests/rsvol.c