Skip to content

Commit 1f36f55

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

File tree

25 files changed

+178
-177
lines changed

25 files changed

+178
-177
lines changed

.editorconfig

+2-2
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

+37-36
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

+13-13
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

+3-3
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

+7-7
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

+13-13
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

+12-12
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>
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
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 |
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --microsoft
1+
semmle-extractor-options: --microsoft
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --microsoft --edg --target --edg win64
1+
semmle-extractor-options: --microsoft --edg --target --edg win64
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --microsoft --edg --target --edg win32
1+
semmle-extractor-options: --microsoft --edg --target --edg win32
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tstWindows.c eol=crlf
1+
tstWindows.c eol=crlf
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// g
1+
// g
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --microsoft
1+
semmle-extractor-options: --microsoft

csharp/ql/test/.project

+12-12
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-csharp-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-csharp-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>
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
using System;
2-
3-
namespace Assembly2
4-
{
5-
public delegate int del2(int x);
6-
7-
public class Class2 : Attribute
8-
{
9-
}
10-
11-
public class Class3 : Attribute
12-
{
13-
public class Class4
14-
{
15-
}
16-
public class Class5<T>
17-
{
18-
}
19-
}
20-
}
1+
using System;
2+
3+
namespace Assembly2
4+
{
5+
public delegate int del2(int x);
6+
7+
public class Class2 : Attribute
8+
{
9+
}
10+
11+
public class Class3 : Attribute
12+
{
13+
public class Class4
14+
{
15+
}
16+
public class Class5<T>
17+
{
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
using System;
2-
using Assembly2;
3-
4-
namespace Assembly1
5-
{
6-
[Class3()]
7-
public delegate Class2 del1(Class3 c3);
8-
9-
[Class3()]
10-
public class Class1
11-
{
12-
[Class2()]
13-
static public Class2 a;
14-
static public Class2 b() { return new Class2(); }
15-
[Class3()]
16-
static public Class3.Class4 c(Class3 x) { return new Class3.Class4(); }
17-
[Class2()]
18-
static public int d() { return 1; }
19-
static public del2 e() { return f; }
20-
static public int f(int x) { return x; }
21-
static public Class3.Class5<Class2> g(Class3.Class5<Class2> x) { return x; }
22-
}
23-
}
1+
using System;
2+
using Assembly2;
3+
4+
namespace Assembly1
5+
{
6+
[Class3()]
7+
public delegate Class2 del1(Class3 c3);
8+
9+
[Class3()]
10+
public class Class1
11+
{
12+
[Class2()]
13+
static public Class2 a;
14+
static public Class2 b() { return new Class2(); }
15+
[Class3()]
16+
static public Class3.Class4 c(Class3 x) { return new Class3.Class4(); }
17+
[Class2()]
18+
static public int d() { return 1; }
19+
static public del2 e() { return f; }
20+
static public int f(int x) { return x; }
21+
static public Class3.Class5<Class2> g(Class3.Class5<Class2> x) { return x; }
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| 1 |
1+
| 1 |
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| tokens.cs:5:15:5:17 | I1 |
2-
| tokens.cs:10:12:10:14 | S1 |
3-
| tokens.cs:14:11:14:13 | C1 |
1+
| tokens.cs:5:15:5:17 | I1 |
2+
| tokens.cs:10:12:10:14 | S1 |
3+
| tokens.cs:14:11:14:13 | C1 |
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
| ReadOnlyContainer.cs:9:16:9:17 | v1 | The contents of this container are never initialized. |
2-
| ReadOnlyContainer.cs:13:13:13:14 | v2 | The contents of this container are never initialized. |
3-
| ReadOnlyContainer.cs:30:16:30:17 | v3 | The contents of this container are never initialized. |
4-
| ReadOnlyContainer.cs:55:13:55:14 | v4 | The contents of this container are never initialized. |
5-
| ReadOnlyContainer.cs:76:13:76:14 | v5 | The contents of this container are never initialized. |
6-
| ReadOnlyContainer.cs:82:13:82:14 | v6 | The contents of this container are never initialized. |
7-
| ReadOnlyContainer.cs:88:13:88:14 | v7 | The contents of this container are never initialized. |
8-
| ReadOnlyContainer.cs:91:13:91:14 | v8 | The contents of this container are never initialized. |
9-
| ReadOnlyContainer.cs:96:13:96:14 | v9 | The contents of this container are never initialized. |
10-
| ReadOnlyContainer.cs:99:13:99:15 | v10 | The contents of this container are never initialized. |
1+
| ReadOnlyContainer.cs:9:16:9:17 | v1 | The contents of this container are never initialized. |
2+
| ReadOnlyContainer.cs:13:13:13:14 | v2 | The contents of this container are never initialized. |
3+
| ReadOnlyContainer.cs:30:16:30:17 | v3 | The contents of this container are never initialized. |
4+
| ReadOnlyContainer.cs:55:13:55:14 | v4 | The contents of this container are never initialized. |
5+
| ReadOnlyContainer.cs:76:13:76:14 | v5 | The contents of this container are never initialized. |
6+
| ReadOnlyContainer.cs:82:13:82:14 | v6 | The contents of this container are never initialized. |
7+
| ReadOnlyContainer.cs:88:13:88:14 | v7 | The contents of this container are never initialized. |
8+
| ReadOnlyContainer.cs:91:13:91:14 | v8 | The contents of this container are never initialized. |
9+
| ReadOnlyContainer.cs:96:13:96:14 | v9 | The contents of this container are never initialized. |
10+
| ReadOnlyContainer.cs:99:13:99:15 | v10 | The contents of this container are never initialized. |
1111
| ReadOnlyContainer.cs:121:13:121:15 | v11 | The contents of this container are never initialized. |
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#Tue Nov 04 11:42:37 GMT 2008
2-
eclipse.preferences.version=1
3-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4-
org.eclipse.jdt.core.compiler.compliance=1.5
5-
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6-
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7-
org.eclipse.jdt.core.compiler.source=1.5
1+
#Tue Nov 04 11:42:37 GMT 2008
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4+
org.eclipse.jdt.core.compiler.compliance=1.5
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.5
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TestWindows.java eol=crlf
1+
TestWindows.java eol=crlf
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TestWindows.java eol=crlf
1+
TestWindows.java eol=crlf
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# This file intentionally contains a mix of different line endings
2-
tst1.js -text
1+
# This file intentionally contains a mix of different line endings
2+
tst1.js -text

0 commit comments

Comments
 (0)