loader: Fix stack overflow with large manifests
authorLenny Komow <lenny@lunarg.com>
Fri, 23 Apr 2021 21:02:18 +0000 (15:02 -0600)
committerLenny Komow <lenny@lunarg.com>
Sat, 24 Apr 2021 19:54:27 +0000 (13:54 -0600)
commitd0f1abe22e7a6233c02437993fa1d185021bd171
treec24a079ce9f2582423a4f5621d3732c617305e82
parent8e3f63f525a964c39da46632fbecc5937bfe758b
loader: Fix stack overflow with large manifests

If the json manifest file was too large, the loader would do a stack
allocation that would fail, throwing an exception or creating
undefined behavior. This changes to a heap allocation.
loader/loader.c