Skip to content

faup crash at tld-tree.c:295 #106

@DavidZ2019

Description

@DavidZ2019

An application using faup parsing url crashed. Put it in gdb, showed that crashed on tld-tree.c:295.

Then put a printf in the code after line:
p = tld + tld_len - 1;
printf("tld %s tld_len %d p %s\n", tld, tld_len, p);

Got the following output when parsing antispyware.giantcompany.microsoft.akadns.net
tld net tld_len 3 p t
tld akadns.net tld_len 10 p t
tld net tld_len 34 p ESC*

The third output tld_len is 34, which does not make any sense. And the content in p is garbage.

Please check.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions