Use heap instead of alloca in res012.c

Test: run the poc with and without the patch
Bug: 62872015
Change-Id: I80448d4a08aac212e597433b413306a7593e9bff
(cherry picked from commit 70f5300e5abbb62f1902c1860d32219bf385d89d)
1 file changed