Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Crash in 'katana_stringify_value_list'. #22

Open
vs-savchenko opened this issue Mar 29, 2019 · 0 comments
Open

Crash in 'katana_stringify_value_list'. #22

vs-savchenko opened this issue Mar 29, 2019 · 0 comments

Comments

@vs-savchenko
Copy link

vs-savchenko commented Mar 29, 2019

Here (parser.c:1635):

        const char* value_str = katana_stringify_value(parser, value);
        katana_string_append_characters(parser, value_str, buffer);
        katana_parser_deallocate(parser, (void*) value_str);
        value_str = NULL;

'katana_stringify_value' can actually return NULL, if value is empty KATANA_VALUE_PARSER_LIST.
After that katana_string_append_characters will call strlen(NULL).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant