Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readtags: handle broken input patterns #1757

Merged

Conversation

masatake
Copy link
Member

@masatake masatake commented May 22, 2018

readtags crashed when giving non-terminated input pattern.

masatake added 3 commits May 22, 2018 12:45
If an input pattern is not terminated with / (or ?), readtags crashed.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
When a broken tags file was given, valgrind reported entry->file is not
initialized. Here, "broken tags file" means a tags file having a line
with a non-terminated pattern.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake changed the title Readtags handling broken input readtags: handle broken input patterns May 22, 2018
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 84.866% when pulling 481f026 on masatake:readtags--handling-broken-input into bf8aa43 on universal-ctags:master.

@masatake masatake merged commit 0b0c73f into universal-ctags:master May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants