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

Coverity Scan (CID 1352378) [/player/src/tizgraphcmd.cpp:c_str] : Wrapper object use after free #204

Closed
tizonia opened this issue Mar 6, 2016 · 0 comments
Labels

Comments

@tizonia
Copy link
Collaborator

tizonia commented Mar 6, 2016

  • CID : 1352378
  • Type : Wrapper object use after free
  • Impact : High
  • Status : New
  • First Detected : 02/29/16
  • Classification : Unclassified
  • Severity : Unspecified
  • Component : player
  • Category : Memory - illegal accesses
  • File : /player/src/tizgraphcmd.cpp
  • Function : c_str
/*@observer@*/ const char* graph::cmd::c_str () const
51{
52  std::string cmd_name ("CMD [");
53  cmd_name.append (typeid(evt ()).name ());
54  cmd_name.append ("]");

CID 1352378 (#1 of 1): Wrapper object use after free (WRAPPER_ESCAPE)
1. escape: The internal representation of local cmd_name escapes, but is destroyed when it exits scope.
55  return cmd_name.c_str ();
56}
@tizonia tizonia added the bug label Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants