You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Heena Bansal (Jira)" <ji...@apache.org> on 2022/01/27 19:15:00 UTC

[jira] [Updated] (ORC-1101) Improve malformed STRUCT handling

     [ https://issues.apache.org/jira/browse/ORC-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Heena Bansal updated ORC-1101:
------------------------------
    Description: 
*Why Improvement is needed*

apache/orc is crashing with segmentation fault when Protobuf message of type struct is illformed with fieldnames less than subtypes. Issue  was reproducible. Refer GitHub issue for more details : [https://github.com/apache/orc/issues/1021.] 
h3. What changes were done as Improvement.

The changes are made to validate the indices in the Protobuf message type tree especially for the Type_Kind_STRUCT when fieldnames are less than the subtypes_size() , so it won't crash when we convert the proto::Types to TypeImpls.

> Improve malformed STRUCT handling
> ---------------------------------
>
>                 Key: ORC-1101
>                 URL: https://issues.apache.org/jira/browse/ORC-1101
>             Project: ORC
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: 1.8.0
>            Reporter: Dongjoon Hyun
>            Assignee: Heena Bansal
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> *Why Improvement is needed*
> apache/orc is crashing with segmentation fault when Protobuf message of type struct is illformed with fieldnames less than subtypes. Issue  was reproducible. Refer GitHub issue for more details : [https://github.com/apache/orc/issues/1021.] 
> h3. What changes were done as Improvement.
> The changes are made to validate the indices in the Protobuf message type tree especially for the Type_Kind_STRUCT when fieldnames are less than the subtypes_size() , so it won't crash when we convert the proto::Types to TypeImpls.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)