HIVE-6382: PATCHED_BLOB encoding in ORC will corrupt data in some cases (Patch by Prasanth J, reviewed by Sergey Shelukhin)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1570426 13f79535-47bb-0310-9956-ffa450edef68