ORC-273: [C++] add range check to prevent bad memory access
ORC-273: [C++] add range check to prevent bad memory access

Fixes #214

Signed-off-by: Deepak Majeti <ac74a751f8042cdea853d6c3daf0ad34bd511bbe@apache.org>

omalley/orc,majetideepak/orc,omalley/orc,majetideepak/orc,omalley/orc,apache/orc,apache/orc,omalley/orc,omalley/orc,apache/orc,omalley/orc,majetideepak/orc,apache/orc,apache/orc,omalley/orc,majetideepak/orc,apache/orc,apache/orc,majetideepak/orc,majetideepak/orc,majetideepak/orc,apache/orc