[
https://issues.apache.org/jira/browse/ORC-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun updated ORC-604:
------------------------------
Fix Version/s: 1.7.0
> Check in StringDictionary.getValueByIndex is too permissive
> -----------------------------------------------------------
>
> Key: ORC-604
> URL: https://issues.apache.org/jira/browse/ORC-604
> Project: ORC
> Issue Type: Bug
> Components: C++
> Reporter: Norbert Luksa
> Assignee: Norbert Luksa
> Priority: Major
> Fix For: 1.7.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The check
> [here|https://github.com/apache/orc/blob/5613a88a59a7c6656444605e6d24984d1ac335ce/c%2B%2B/include/orc/Vector.hh#L137]
> is too permissive, requires only that index < dictionaryOffset.size(), but a
> [few lines
> later|https://github.com/apache/orc/blob/5613a88a59a7c6656444605e6d24984d1ac335ce/c%2B%2B/include/orc/Vector.hh#L144]
> dictionaryOffset is indexed with index + 1.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)