]> www.infradead.org Git - mtd-utils.git/commit
libubigen: do not create huge arrays on stack
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 14 Jun 2010 10:33:39 +0000 (13:33 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 14 Jun 2010 10:54:31 +0000 (13:54 +0300)
commitd1c12c6f45db38c7c8264ac9cda25bc05bfda430
tree106d9e450ed07bce16ab0f2a6c9208f21be0da1e
parent5e77e9d5a72d4f7bafc74373d5e44a106a369ceb
libubigen: do not create huge arrays on stack

Stop creating 128KiB and larger arrays on stack - allocate RAM
using malloc() instead.

This patch also teaches libubigen to always set errno.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/libubigen.c