We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 823c767 commit c160e0bCopy full SHA for c160e0b
1 file changed
cpp/ql/lib/semmle/code/cpp/models/interfaces/Allocation.qll
@@ -133,13 +133,15 @@ abstract class HeuristicAllocationExpr extends Expr {
133
134
/**
135
* Gets a constant multiplier for the allocation size given by `getSizeExpr`,
136
- * in bytes.
+ * in bytes. This predicate should be used with caution as it can be
137
+ * inaccurate for allocations identified using heuristics.
138
*/
139
int getSizeMult() { none() }
140
141
142
* Gets the size of this allocation in bytes, if it is a fixed size and that
- * size can be determined.
143
+ * size can be determined. This predicate should be used with caution as it
144
+ * can be inaccurate for allocations identified using heuristics.
145
146
int getSizeBytes() { none() }
147
0 commit comments