Cornelius Riemenschneider
86268d49ed
C++: Refactor StdContainer.qll.
2021-02-16 11:10:57 +00:00
Geoffrey White
04f15ad43a
C++: BSL support in StdPairConstructor.
2021-02-16 09:49:09 +00:00
Mathias Vorreiter Pedersen
eb8309a17d
Merge pull request #5175 from github/igfoo/thethe
2021-02-15 18:09:32 +01:00
Cornelius Riemenschneider
4a07912006
C++: Small code improvement.
2021-02-15 16:36:49 +00:00
Cornelius Riemenschneider
595bb025f9
C++: Model bsl functions in StdMap.qll.
2021-02-15 16:34:07 +00:00
Cornelius Riemenschneider
b6b90b59eb
C++: Model bsl functions in SmartPointer.qll.
2021-02-15 16:22:52 +00:00
Cornelius Riemenschneider
d9c6f7bc35
C++: Model bsl functions in Scanf.qll.
2021-02-15 16:12:46 +00:00
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
Geoffrey White
7705fc4f98
C++: Add more test cases for iterator taint flow.
2021-02-12 14:54:45 +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
Geoffrey White
d475e55ec0
Update cpp/ql/test/README.md
...
Co-authored-by: hubwriter <hubwriter@github.com >
2021-02-09 15:20:03 +00:00
Geoffrey White
07b263bb2f
Typo.
2021-02-08 20:27:28 +00:00
Geoffrey White
cb16c64540
Call out the issue of copied code for C/C++ example code in the C/C++ CodeQL Tests README.md (where we talk about it for tests).
2021-02-08 19:58:36 +00: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
Jonas Jensen
c945ece80d
Merge pull request #5100 from MathiasVP/fix-changenote-unsigned-difference-expression-compared-zero
...
C++: Add query author and link to original PR in change-note
2021-02-05 11:21:48 +01:00
Geoffrey White
55b0dbd7b8
C++: Autoformat.
2021-02-05 10:02:31 +00:00
Mathias Vorreiter Pedersen
a416a089b4
Update cpp/change-notes/2020-02-04-unsigned-difference-expression-compared-zero.md
...
Co-authored-by: Jonas Jensen <jbj@github.com >
2021-02-05 09:48:54 +01: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
Mathias Vorreiter Pedersen
993abd4499
C++: Add query author and link to original PR in change-note.
2021-02-04 20:23:27 +01: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