mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update cpp/ql/lib/semmle/code/cpp/commons/Buffer.qll
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
839640a82f
commit
764a84601f
@@ -71,7 +71,7 @@ private int getSize(VariableAccess va) {
|
|||||||
// Otherwise, we find the "outermost" object and compute the size
|
// Otherwise, we find the "outermost" object and compute the size
|
||||||
// as the difference between the size of the type of the "outermost
|
// as the difference between the size of the type of the "outermost
|
||||||
// object" and the offset of the field relative to that type.
|
// object" and the offset of the field relative to that type.
|
||||||
// For example, consider an access such as:
|
// For example, consider the following structs:
|
||||||
// ```
|
// ```
|
||||||
// struct S {
|
// struct S {
|
||||||
// uint32_t x;
|
// uint32_t x;
|
||||||
|
|||||||
Reference in New Issue
Block a user