Skip to content

Function clang_Type_getObjCEncoding causes segmentation fault if called with Invalid type #131078

Open
@YSakhno

Description

@YSakhno

If the libclang function clang_Type_getObjCEncoding() is called with an invalid type (that is type whose kind is CXType_Invalid), it fails with a segmentation fault.

Expected behavior

The function should not fail for any input that can be legitimately obtained from other libclang functions. If the type is 'unsupported', an empty string can be returned (for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions