CPP: Back out support for 'SysAllocString', as PointsTo doesn't support the free(pointer-to-pointer) pattern in 'SysReAllocString' leading to unaccaptable FPs.

This commit is contained in:
Geoffrey White
2019-03-21 15:38:10 +00:00
parent fbe584f3e1
commit 444259a9ad

View File

@@ -48,10 +48,7 @@ predicate allocationFunction(Function f)
name = "HeapReAlloc" or
name = "VirtualAlloc" or
name = "CoTaskMemAlloc" or
name = "CoTaskMemRealloc" or
name = "SysAllocString" or
name = "SysAllocStringByteLen" or
name = "SysAllocStringLen"
name = "CoTaskMemRealloc"
)
)
}
@@ -103,8 +100,7 @@ predicate freeFunction(Function f, int argNum)
(name = "LocalReAlloc" and argNum = 0) or
(name = "GlobalReAlloc" and argNum = 0) or
(name = "HeapReAlloc" and argNum = 2) or
(name = "CoTaskMemRealloc" and argNum = 0) or
(name = "SysReAllocString" and argNum = 0)
(name = "CoTaskMemRealloc" and argNum = 0)
)
)
}