Skip to content

Commit 980c4cf

Browse files
MathiasVPCopilot
andauthored
Update cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 544015d commit 980c4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private int getSize(VariableAccess va) {
9898
// };
9999
// ```
100100
// 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
101+
// is the size of the base object type (i.e., `S2`) minus the offset
102102
// of `y` relative to the type `S2` (i.e., `4`). So the size of the
103103
// buffer is `12 - 4 = 8`.
104104
c = getRootType(va) and

0 commit comments

Comments
 (0)