Cornelius Riemenschneider
b670e5b04b
C++: Model bsl functions in Printf.qll.
2021-02-15 16:12:35 +00:00
Ian Lynagh
ba6e6337f3
C++: Fix TopLevelFunction's qldoc
2021-02-15 16:08:03 +00:00
Cornelius Riemenschneider
fd2e0292c3
C++: Model bsl functions in Strtok.qll.
2021-02-15 16:00:37 +00:00
Cornelius Riemenschneider
fd91a972a5
C++: Model bsl functions in Strcpy.qll.
2021-02-15 15:43:31 +00:00
Cornelius Riemenschneider
9d19752d9a
C++: Model bsl functions in Strcat.qll.
2021-02-15 15:42:34 +00:00
Cornelius Riemenschneider
3afe934a05
C++: Model bsl functions in Swap.qll.
2021-02-15 15:40:17 +00:00
Cornelius Riemenschneider
28d5ef919c
Merge pull request #5158 from geoffw0/modelsbsl3
...
C++: StdString BSL support
2021-02-15 16:32:30 +01:00
Cornelius Riemenschneider
c9af97b742
C++: Model bsl functions in Pure.qll.
2021-02-15 12:31:16 +00:00
Cornelius Riemenschneider
79e3bf80c3
C++: Simplify code.
2021-02-15 12:13:25 +00:00
Cornelius Riemenschneider
da38377e36
C++: Simplify code.
2021-02-15 12:12:29 +00:00
Cornelius Riemenschneider
2a3d20d9a9
C++: Refactor Memset.qll and include bsl model.
2021-02-15 12:36:18 +01:00
Cornelius Riemenschneider
a9071a62a0
C++: Refactor Memcpy.qll and include bsl model.
2021-02-15 12:15:17 +01:00
Mathias Vorreiter Pedersen
0f9b044814
C++: Model vector versions of BSD-style reads and writes.
2021-02-15 12:04:51 +01:00
Cornelius Riemenschneider
f79b3144e3
C++: Refactor IdentityFunction.qll.
2021-02-15 11:31:31 +01:00
Geoffrey White
6d452521f7
C++: Move StdBasicStringStream to a more logical location.
2021-02-12 17:42:33 +00:00
Geoffrey White
74f05d569b
C++: BSL support.
2021-02-12 17:41:32 +00:00
Geoffrey White
d362b5aa65
C++: StdSet should be private as well.
2021-02-12 16:29:44 +00:00
Geoffrey White
df91b8182c
C++: Deprecate StdPairClass properly.
2021-02-12 16:24:45 +00:00
Geoffrey White
1edfd04598
C++: BSL Support.
2021-02-12 15:56:47 +00:00
Geoffrey White
3cfb0a21fe
C++: Fix Iterator.qll taint/data flows for operator+=.
2021-02-12 14:54:47 +00:00
Geoffrey White
61b0d6a0cd
C++: Fix Iterator.qll non-member operator+= charpred.
2021-02-12 14:54:46 +00:00
Geoffrey White
da06b2a615
C++: Improve Iterator.qll layout and QLDoc.
2021-02-12 14:54:46 +00:00
Geoffrey White
90dbbbb0c2
C++: Update Iterator.qll.
2021-02-12 14:54:46 +00:00
Mathias Vorreiter Pedersen
729c7f2371
C++: Add deprecated alias to RemoteFlowSourceFunction and LocalFlowSourceFunction.
2021-02-12 10:53:34 +01:00
Mathias Vorreiter Pedersen
b1c7cb6396
C++: Address review comments.
2021-02-12 10:37:27 +01:00
Geoffrey White
354f21f2c3
C++: BSL support.
2021-02-11 16:57:20 +00:00
Mathias Vorreiter Pedersen
91627cbd88
C++: Add models for BSD-style send and recv functions.
2021-02-11 17:21:32 +01:00
Geoffrey White
21b2999722
C++: Update StdSet.qll.
2021-02-11 16:01:55 +00:00
Geoffrey White
33b5802ff6
C++: Update StdPair.qll (just for consistency).
2021-02-11 16:01:44 +00:00
Tom Hvitved
1f9b42f9ab
Data flow: Sync files
2021-02-09 20:10:23 +01:00
Jonas Jensen
7859c5234a
Merge pull request #5085 from geoffw0/msprintf2
...
C++: Fix FormattingFunction regression.
2021-02-06 16:06:35 +01:00
Jonas Jensen
6e5d56cbcb
Merge pull request #5097 from geoffw0/qldoceg11
...
C++: QLDoc Improvements
2021-02-05 12:00:35 +01:00
Geoffrey White
55b0dbd7b8
C++: Autoformat.
2021-02-05 10:02:31 +00:00
NateD-MSFT
9470a99092
Add KeGetCurrentProcessorNumberEx to CQE-457 whitelist
...
Windows driver developers may call KeGetCurrentProcessorNumberEx in their driver. This function optionally may initialize a provided structure, but this initialization always occurs. The return value is the current processor being run on. As such, this query incorrectly marks calls to KeGetCurrentProcessorNumberEx that initialize a structure that is later used as risky, even though in reality the initialization always succeeds.
See https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/nf-ntddk-kegetcurrentprocessornumberex
2021-02-04 13:32:09 -08:00
Geoffrey White
2160edc789
C++: Clean up bits I didn't finish.
2021-02-04 17:16:45 +00:00
Geoffrey White
1f928c2910
CPP: Examples Element.qll.
2021-02-04 17:08:29 +00:00
Geoffrey White
8ae01789b1
CPP: Examples Specifier.qll.
2021-02-04 17:08:29 +00:00
Geoffrey White
500097ca76
CPP: Examples Preprocessor.qll.
2021-02-04 17:08:29 +00:00
Geoffrey White
4b9532c6f7
CPP: Examples Namespace.qll.
2021-02-04 17:08:29 +00:00
Geoffrey White
69c7c83bc2
Merge pull request #5094 from MathiasVP/promote-UnsignedDifferenceExpressionComparedZero
...
Promote cpp/unsigned-difference-expression-compared-zero out of experimental
2021-02-04 16:54:45 +00:00
Mathias Vorreiter Pedersen
cf0e464ab9
Merge branch 'promote-UnsignedDifferenceExpressionComparedZero' of github.com:MathiasVP/ql into promote-UnsignedDifferenceExpressionComparedZero
2021-02-04 17:24:59 +01:00
Mathias Vorreiter Pedersen
6a97d02247
C++: Address review comments.
2021-02-04 17:24:14 +01:00
Mathias Vorreiter Pedersen
161e5679a7
Apply suggestions from code review
...
Co-authored-by: hubwriter <hubwriter@github.com >
2021-02-04 16:47:45 +01:00
Geoffrey White
7c54512859
Merge pull request #5010 from ihsinme/ihsinme-patch-220
...
CPP: Add query for CWE-570 detect and handle memory allocation errors.
2021-02-04 15:17:28 +00:00
Mathias Vorreiter Pedersen
707f532e10
C++: Fix bad join-order using a poor man's unbind operator.
2021-02-04 16:11:34 +01:00
Mathias Vorreiter Pedersen
fd596ebbbb
C++: Move cpp/unsigned-difference-expression-compared-zero out of experimental.
2021-02-04 16:10:34 +01:00
Mathias Vorreiter Pedersen
c1c9f963b9
C++: Fix qhelp in cpp/unsigned-difference-expression-compared-zero.
2021-02-04 16:10:30 +01:00
Mathias Vorreiter Pedersen
d3d56fb0af
Merge pull request #5011 from ihsinme/ihsinme-patch-221
...
CPP: add query for CWE-788 Access of memory location after the end of a buffer using strlen.
2021-02-04 14:25:27 +01:00
Mathias Vorreiter Pedersen
9b39163411
Merge pull request #5076 from MathiasVP/improve-UnsignedDifferenceExpressionComparedZero
...
C++: Improve cpp/unsigned-difference-expression-compared-zero
2021-02-04 14:05:30 +01:00
ihsinme
43045c1f03
Update WrongInDetectingAndHandlingMemoryAllocationErrors.ql
2021-02-04 15:47:16 +03:00