Skip to content

Ticket #7912: Properly preprocess files with decreasing line numbers, due to #line directives#874

Merged
danmar merged 1 commit into
cppcheck-opensource:masterfrom
simartin:ticket_7912
Mar 5, 2017
Merged

Ticket #7912: Properly preprocess files with decreasing line numbers, due to #line directives#874
danmar merged 1 commit into
cppcheck-opensource:masterfrom
simartin:ticket_7912

Conversation

@simartin
Copy link
Copy Markdown
Contributor

@simartin simartin commented Mar 5, 2017

This ticket shows that we don't preprocess files that have "decreasing line numbers" (due to using #line): we don't properly space separate tokens in Preprocessor::getcode(), and end up doing "use after free"... This patch fixes this.

…asing line numbers, due to #line directives.
@danmar danmar merged commit 2daf7f5 into cppcheck-opensource:master Mar 5, 2017
@simartin simartin deleted the ticket_7912 branch March 5, 2017 21:36
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