orcexecutor: Don't use negative values on arrays
authorEdward Hervey <bilboed@bilboed.com>
Fri, 11 Apr 2014 14:03:16 +0000 (16:03 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 11 Apr 2014 14:06:05 +0000 (16:06 +0200)
commit9070fc8fc31f421a0137af92aa3712a17cc93642
treec3120c4007fb35fb1742fb28b3ccf9db9ab6e435
parent0df464556928237e816cee74899be57af4ae1a92
orcexecutor: Don't use negative values on arrays

orc_program_find_var_by_name() can return -1 on errors, if that
happens, don't try to read/write in random memory :)

CID #1146974
CID #1146975
CID #1146976
orc/orcexecutor.c