Kaydet (Commit) cc2cb012 authored tarafından Eike Rathke's avatar Eike Rathke

Assert that caller columns are within bounds

Change-Id: Icf93bb5d57c9a4b6988a2ea34fc3ca23130d7eeb
üst 3976f115
...@@ -1277,7 +1277,10 @@ public: ...@@ -1277,7 +1277,10 @@ public:
mnStartIndex( nCol1 * aSize.row ), mnStartIndex( nCol1 * aSize.row ),
mnStopIndex( (nCol2 + 1) * aSize.row ), mnStopIndex( (nCol2 + 1) * aSize.row ),
mnResult(ResultNotSet), mnResult(ResultNotSet),
mnIndex(0) {} mnIndex(0)
{
assert( nCol1 < aSize.column && nCol2 < aSize.column);
}
size_t getMatching() const { return mnResult; } size_t getMatching() const { return mnResult; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment