Skip to content

Commit 1f36f55

Browse files
Normalize all text files to LF
Use `* text=auto eol=lf`
1 parent 26abf5d commit 1f36f55

25 files changed

Lines changed: 178 additions & 177 deletions

File tree

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[*]
2-
end_of_line = lf
1+
[*]
2+
end_of_line = lf

.gitattributes

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
1-
# The following file types will be normalized to LF line endings in the Git
2-
# database, and will keep those LF line endings in the working tree even on
3-
# Windows. Any other files will have whatever line endings they had when they
4-
# were committed. If you add new entries below, you should renormalize the
5-
# affected files by running the following from the root of this repo (requires
6-
# Git 2.16 or greater):
1+
# Text files will be normalized to LF line endings in the Git database, and will keep those LF line
2+
# endings in the working tree even on Windows. If you make changes below, you should renormalize the
3+
# affected files by running the following from the root of this repo (requires Git 2.16 or greater):
74
#
85
# git add --renormalize .
96
# git status [just to show what files were renormalized]
107
# git commit -m "Normalize line endings"
11-
#
12-
# Also, please update .editorconfig to handle any new entries as well.
13-
*.ql eol=lf
14-
*.qll eol=lf
15-
*.qlref eol=lf
16-
*.dbscheme eol=lf
17-
*.qhelp eol=lf
18-
*.html eol=lf
19-
*.htm eol=lf
20-
*.xhtml eol=lf
21-
*.xhtm eol=lf
22-
*.js eol=lf
23-
*.mjs eol=lf
24-
*.ts eol=lf
25-
*.json eol=lf
26-
*.yml eol=lf
27-
*.yaml eol=lf
28-
*.c eol=lf
29-
*.cpp eol=lf
30-
*.h eol=lf
31-
*.hpp eol=lf
32-
*.md eol=lf
33-
*.stats eol=lf
34-
*.xml eol=lf
35-
*.sh eol=lf
36-
*.pl eol=lf
37-
*.java eol=lf
38-
*.cs eol=lf
39-
*.py eol=lf
40-
*.lua eol=lf
8+
9+
# Anything Git auto-detects as text gets normalized and checked out as LF
10+
* text=auto eol=lf
11+
12+
# Explicitly set a bunch of known extensions to text, in case auto detection gets confused.
13+
*.ql text
14+
*.qll text
15+
*.qlref text
16+
*.dbscheme text
17+
*.qhelp text
18+
*.html text
19+
*.htm text
20+
*.xhtml text
21+
*.xhtm text
22+
*.js text
23+
*.mjs text
24+
*.ts text
25+
*.json text
26+
*.yml text
27+
*.yaml text
28+
*.c text
29+
*.cpp text
30+
*.h text
31+
*.hpp text
32+
*.md text
33+
*.stats text
34+
*.xml text
35+
*.sh text
36+
*.pl text
37+
*.java text
38+
*.cs text
39+
*.py text
40+
*.lua text
41+
*.expected text

cpp/config/suites/security/cwe-120

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
2-
+ semmlecode-cpp-queries/Security/CWE/CWE-120/UnboundedWrite.ql: /CWE/CWE-120
3-
@name Unbounded write (CWE-120)
4-
+ semmlecode-cpp-queries/Security/CWE/CWE-120/BadlyBoundedWrite.ql: /CWE/CWE-120
5-
@name Badly bounded write (CWE-120)
6-
+ semmlecode-cpp-queries/Security/CWE/CWE-120/OverrunWrite.ql: /CWE/CWE-120
7-
@name Potentially overrunning write (CWE-120)
8-
+ semmlecode-cpp-queries/Security/CWE/CWE-120/OverrunWriteFloat.ql: /CWE/CWE-120
9-
@name Potentially overrunning write with float to string conversion (CWE-120)
10-
+ semmlecode-cpp-queries/Best Practices/Likely Errors/OffsetUseBeforeRangeCheck.ql: /CWE/CWE-120
11-
@name Array offset used before range check (CWE-120)
12-
+ semmlecode-cpp-queries/Likely Bugs/Memory Management/UnsafeUseOfStrcat.ql: /CWE/CWE-120
13-
@name Potentially unsafe use of strcat (CWE-120)
1+
# CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
2+
+ semmlecode-cpp-queries/Security/CWE/CWE-120/UnboundedWrite.ql: /CWE/CWE-120
3+
@name Unbounded write (CWE-120)
4+
+ semmlecode-cpp-queries/Security/CWE/CWE-120/BadlyBoundedWrite.ql: /CWE/CWE-120
5+
@name Badly bounded write (CWE-120)
6+
+ semmlecode-cpp-queries/Security/CWE/CWE-120/OverrunWrite.ql: /CWE/CWE-120
7+
@name Potentially overrunning write (CWE-120)
8+
+ semmlecode-cpp-queries/Security/CWE/CWE-120/OverrunWriteFloat.ql: /CWE/CWE-120
9+
@name Potentially overrunning write with float to string conversion (CWE-120)
10+
+ semmlecode-cpp-queries/Best Practices/Likely Errors/OffsetUseBeforeRangeCheck.ql: /CWE/CWE-120
11+
@name Array offset used before range check (CWE-120)
12+
+ semmlecode-cpp-queries/Likely Bugs/Memory Management/UnsafeUseOfStrcat.ql: /CWE/CWE-120
13+
@name Potentially unsafe use of strcat (CWE-120)

cpp/config/suites/security/cwe-121

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# CWE-121: Stack-based Buffer Overflow
2-
+ semmlecode-cpp-queries/Security/CWE/CWE-121/UnterminatedVarargsCall.ql: /CWE/CWE-121
3-
@name Unterminated variadic call (CWE-121)
1+
# CWE-121: Stack-based Buffer Overflow
2+
+ semmlecode-cpp-queries/Security/CWE/CWE-121/UnterminatedVarargsCall.ql: /CWE/CWE-121
3+
@name Unterminated variadic call (CWE-121)

cpp/config/suites/security/cwe-131

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# CWE-131: Incorrect Calculation of Buffer Size
2-
+ semmlecode-cpp-queries/Security/CWE/CWE-131/NoSpaceForZeroTerminator.ql: /CWE/CWE-131
3-
@name No space for zero terminator (CWE-131)
4-
+ semmlecode-cpp-queries/Critical/SizeCheck.ql: /CWE/CWE-131
5-
@name Not enough memory allocated for pointer type (CWE-131)
6-
+ semmlecode-cpp-queries/Critical/SizeCheck2.ql: /CWE/CWE-131
7-
@name Not enough memory allocated for array of pointer type (CWE-131)
1+
# CWE-131: Incorrect Calculation of Buffer Size
2+
+ semmlecode-cpp-queries/Security/CWE/CWE-131/NoSpaceForZeroTerminator.ql: /CWE/CWE-131
3+
@name No space for zero terminator (CWE-131)
4+
+ semmlecode-cpp-queries/Critical/SizeCheck.ql: /CWE/CWE-131
5+
@name Not enough memory allocated for pointer type (CWE-131)
6+
+ semmlecode-cpp-queries/Critical/SizeCheck2.ql: /CWE/CWE-131
7+
@name Not enough memory allocated for array of pointer type (CWE-131)

cpp/config/suites/security/cwe-134

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# CWE-134: Uncontrolled Format String
2-
+ semmlecode-cpp-queries/Likely Bugs/Format/NonConstantFormat.ql: /CWE/CWE-134
3-
@name Non-constant format string (CWE-134)
4-
# This one runs out of memory. See ODASA-608.
5-
#+ semmlecode-cpp-queries/PointsTo/TaintedFormatStrings.ql: /CWE/CWE-134
6-
+ semmlecode-cpp-queries/Likely Bugs/Format/WrongNumberOfFormatArguments.ql: /CWE/CWE-134
7-
@name Wrong number of arguments to formatting function (CWE-134)
8-
+ semmlecode-cpp-queries/Likely Bugs/Format/WrongTypeFormatArguments.ql: /CWE/CWE-134
9-
@name Wrong type of arguments to formatting function (CWE-134)
10-
+ semmlecode-cpp-queries/Security/CWE/CWE-134/UncontrolledFormatString.ql: /CWE/CWE-134
11-
@name Uncontrolled format string (CWE-134)
12-
+ semmlecode-cpp-queries/Security/CWE/CWE-134/UncontrolledFormatStringThroughGlobalVar.ql: /CWE/CWE-134
13-
@name Uncontrolled format string (through global variable) (CWE-134)
1+
# CWE-134: Uncontrolled Format String
2+
+ semmlecode-cpp-queries/Likely Bugs/Format/NonConstantFormat.ql: /CWE/CWE-134
3+
@name Non-constant format string (CWE-134)
4+
# This one runs out of memory. See ODASA-608.
5+
#+ semmlecode-cpp-queries/PointsTo/TaintedFormatStrings.ql: /CWE/CWE-134
6+
+ semmlecode-cpp-queries/Likely Bugs/Format/WrongNumberOfFormatArguments.ql: /CWE/CWE-134
7+
@name Wrong number of arguments to formatting function (CWE-134)
8+
+ semmlecode-cpp-queries/Likely Bugs/Format/WrongTypeFormatArguments.ql: /CWE/CWE-134
9+
@name Wrong type of arguments to formatting function (CWE-134)
10+
+ semmlecode-cpp-queries/Security/CWE/CWE-134/UncontrolledFormatString.ql: /CWE/CWE-134
11+
@name Uncontrolled format string (CWE-134)
12+
+ semmlecode-cpp-queries/Security/CWE/CWE-134/UncontrolledFormatStringThroughGlobalVar.ql: /CWE/CWE-134
13+
@name Uncontrolled format string (through global variable) (CWE-134)

cpp/ql/test/.project

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>semmlecode-cpp-tests</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
</buildSpec>
9-
<natures>
10-
<nature>com.semmle.plugin.qdt.core.qlnature</nature>
11-
</natures>
12-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>semmlecode-cpp-tests</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
<nature>com.semmle.plugin.qdt.core.qlnature</nature>
11+
</natures>
12+
</projectDescription>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --edg --target --edg win64
1+
semmle-extractor-options: --edg --target --edg win64
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| file://:0:0:0:0 | T |
2-
| file://:0:0:0:0 | int |
3-
| file://:0:0:0:0 | myClass |
4-
| file://:0:0:0:0 | short |
1+
| file://:0:0:0:0 | T |
2+
| file://:0:0:0:0 | int |
3+
| file://:0:0:0:0 | myClass |
4+
| file://:0:0:0:0 | short |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --microsoft
1+
semmle-extractor-options: --microsoft

0 commit comments

Comments
 (0)