We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cbdd492 + 516ef8d commit faaa2ceCopy full SHA for faaa2ce
cpp/ql/lib/change-notes/2022-04-25-windows-pool-allocation-functions.md
@@ -0,0 +1,4 @@
1
+---
2
+category: minorAnalysis
3
4
+* More Windows pool allocation functions are now detected as `AllocationFunction`s.
cpp/ql/lib/semmle/code/cpp/models/implementations/Allocation.qll
@@ -42,10 +42,13 @@ private class MallocAllocationFunction extends AllocationFunction {
42
this.hasGlobalName([
43
// --- Windows Memory Management for Windows Drivers
44
"ExAllocatePool", // ExAllocatePool(type, size)
45
+ "ExAllocatePool2", // ExAllocatePool2(flags, size, tag)
46
+ "ExAllocatePool3", // ExAllocatePool3(flags, size, tag, extparams, extparamscount)
47
"ExAllocatePoolWithTag", // ExAllocatePool(type, size, tag)
48
"ExAllocatePoolWithTagPriority", // ExAllocatePoolWithTagPriority(type, size, tag, priority)
49
"ExAllocatePoolWithQuota", // ExAllocatePoolWithQuota(type, size)
50
"ExAllocatePoolWithQuotaTag", // ExAllocatePoolWithQuotaTag(type, size, tag)
51
+ "ExAllocatePoolZero", // ExAllocatePoolZero(type, size, tag)
52
"IoAllocateMdl", // IoAllocateMdl(address, size, flag, flag, irp)
53
"IoAllocateErrorLogEntry", // IoAllocateErrorLogEntry(object, size)
54
// --- Windows Global / Local legacy allocation
0 commit comments