jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit
Ivan Frade e4c28665b6 BaseReceivePack: Validate incoming .gitmodules files
The main concern are submodule urls starting with '-' that could pass as
options to an unguarded tool.

Pass through the parser the ids of blobs identified as .gitmodules
files in the ObjectChecker. Load the blobs and parse/validate them
in SubmoduleValidator.

Change-Id: Ia0cc32ce020d288f995bf7bc68041fda36be1963
Signed-off-by: Ivan Frade <ifrade@google.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2018-10-05 23:49:00 +02:00
..
api Merge branch 'stable-4.6' into stable-4.7 2018-06-20 16:06:54 +09:00
attributes Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
diff Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
dircache Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
events Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
fnmatch FileNameMatcherTest: Use Character.valueOf rather than new Character 2016-10-19 15:09:37 +09:00
gitrepo Cleanup and test trailing slash handling in ManifestParser 2017-04-11 00:37:38 +02:00
ignore Ignore trailing spaces in directory rule patterns 2016-09-14 07:43:52 -04:00
indexdiff Fix symlink content comparison on MacOS in tree walk 2016-10-11 00:20:23 +02:00
internal/storage Use constant for ".lock" 2018-09-07 12:13:53 +02:00
junit Clarify the semantics of DfsRefDatabase#compareAndPut 2016-08-25 19:12:39 -07:00
lib ObjectChecker: Report .gitmodules files found in the pack 2018-10-05 21:45:54 +02:00
merge Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
nls Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
notes Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
patch Organize imports 2016-11-14 13:25:20 -08:00
revplot Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
revwalk RevFlagSetTest: Fix compilation error flagged by error prone 2017-03-18 16:47:16 +01:00
storage/file Remove hardcoded target/trash from test cases 2013-11-01 19:57:47 -07:00
submodule SubmoduleAddCommand: Reject submodule URIs that look like cli options 2018-10-05 21:38:22 +02:00
symlinks SymlinksTest: Open git and TreeWalk in try-with-resource 2016-02-05 14:05:22 +09:00
test/resources Fix loop in auto gc 2016-11-07 22:31:10 +01:00
transport BaseReceivePack: Validate incoming .gitmodules files 2018-10-05 23:49:00 +02:00
treewalk Correct the boolean logic for filtering paths 2017-02-28 23:56:33 +01:00
util ChangeIdUtilTest: Remove unused notestCommitDashV 2018-08-30 15:25:38 +09:00