Skip to content

Fix issue 9783: wrong lifetime analysis temporary assigned to object#2711

Merged
danmar merged 9 commits into
cppcheck-opensource:mainfrom
pfultz2:invalid-container-unknown-type
Sep 2, 2020
Merged

Fix issue 9783: wrong lifetime analysis temporary assigned to object#2711
danmar merged 9 commits into
cppcheck-opensource:mainfrom
pfultz2:invalid-container-unknown-type

Conversation

@pfultz2

@pfultz2 pfultz2 commented Jul 16, 2020

Copy link
Copy Markdown
Contributor

No description provided.

@danmar danmar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reuse encodeXml

Comment thread lib/utils.h Outdated
return "th";
}

inline std::string encodeXml(const std::string& data)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove ErrorLogger::toxml and use this instead. but this function needs some additional handling we have in ErrorLogger::toxml also.

Comment thread lib/utils.h Outdated
}
return buffer;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errorlogger has some similar XML encoding code...
Not sure if can easily be used here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfultz2

pfultz2 commented Sep 1, 2020

Copy link
Copy Markdown
Contributor Author

I was completely unaware of ErrorLogger::toxml function.

@danmar danmar merged commit 32df807 into cppcheck-opensource:main Sep 2, 2020
@pfultz2 pfultz2 deleted the invalid-container-unknown-type branch April 19, 2021 21:46
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.

3 participants