We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 544015d commit 980c4cfCopy full SHA for 980c4cf
cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
@@ -98,7 +98,7 @@ private int getSize(VariableAccess va) {
98
// };
99
// ```
100
// Given an object `S2 s2` the size of the buffer `&s2.s.y`
101
- // is the size of the base object type (i.e., `S2`) minutes the offset
+ // is the size of the base object type (i.e., `S2`) minus the offset
102
// of `y` relative to the type `S2` (i.e., `4`). So the size of the
103
// buffer is `12 - 4 = 8`.
104
c = getRootType(va) and
0 commit comments