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

Method stlSuspiciousOutOfBoundsWithoutSizeCheck

trunk/lib/checkstl.cpp:1803–1882  ·  view source on GitHub ↗

Add stl vector sizeOf check 20150611 void bla(std::vector &v) v[10] = 1; // shoud have checked like "if (v.size()>10) default close

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

endMethod · 0.80
tokAtMethod · 0.80
findMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected