core/elflink: Fix off-by-one error
commite955e5c00a852883f6972e1a9bc304413ff79627
authorMatt Fleming <matt.fleming@intel.com>
Tue, 27 Nov 2012 20:12:58 +0000 (27 20:12 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 27 Nov 2012 21:09:45 +0000 (27 21:09 +0000)
tree2d929acae19f02414d5fb7a8a68a3f776675ce6c
parent6f4575c2ad3950af53bcdfd40fe2cce6171179fe
core/elflink: Fix off-by-one error

We need to remember to allocate space for the terminating NULL in
create_args_and_load() otherwise we will write a NUL-byte past the
bounds of 'argv[]' to some random part of the stack.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/elflink/load_env32.c