MCPcopy Create free account
hub / github.com/Tencent/TscanCode / checkInsecureCmdLineArgs

Method checkInsecureCmdLineArgs

trunk/lib/checkbufferoverrun.cpp:1749–1788  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Checking for buffer overflow caused by copying command line arguments into fixed-sized buffers without checking to make sure that the command line arguments will not overflow the buffer. int main(int argc, char* argv[]) { char prog[10]; strcpy(prog, argv[0]); <-- Possible buffer overrun } ----------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
tokAtMethod · 0.80
linkAtMethod · 0.80

Tested by

no test coverage detected