Skip to content

How to track all std::string values in a C++ project #4305

@cryptomadco

Description

@cryptomadco

I want to know how may I have a codeql script so I can track all values belongs to std::string class

Example source codes are :

#include

int main(){
	std::string name;
	name = "Hall";
	std::cout << name << std::endl;
        name = "Hello!"
        name = "0xdeadbeef"
	return 0;
}

In the above case, I need an analysis script so it can gives me all three strings Hall , Hello and 0xdeadbeef .

Just could not find anything useful for that std::string in codeql .

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions