Skip to content

Commit

Permalink
Validate input ELF file using Everparse.
Browse files Browse the repository at this point in the history
Everparse generated files are checked in until #834 is fixed.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett committed Apr 4, 2022
1 parent ee0d4e3 commit 8af4d1d
Show file tree
Hide file tree
Showing 19 changed files with 2,812 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@
[submodule "external/parcon"]
path = external/parcon
url = https://github.com/javawizard/parcon.git
[submodule "external/everparse"]
path = external/everparse
url = https://github.com/project-everest/everparse.git
37 changes: 37 additions & 0 deletions ebpf-for-windows.sln
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,21 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "droppacket_km", "tests\samp
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bindmonitor_km", "tests\sample\generated\sys\bindmonitor_km\bindmonitor_sys.vcxproj", "{34481DE6-D212-41A6-8F46-34959FF66B9A}"
ProjectSection(ProjectDependencies) = postProject
{69B97E52-18DC-434E-A6E4-4C0F3E88C44A} = {69B97E52-18DC-434E-A6E4-4C0F3E88C44A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bindmonitor_tailcall_km", "tests\sample\generated\sys\bindmonitor_tailcall_km\bindmonitor_tailcall_sys.vcxproj", "{2B51E0EF-4589-430B-9CCC-D09A4E6FD8B2}"
ProjectSection(ProjectDependencies) = postProject
{69B97E52-18DC-434E-A6E4-4C0F3E88C44A} = {69B97E52-18DC-434E-A6E4-4C0F3E88C44A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Catch2WithMain", "external\Catch2\build\src\Catch2WithMain.vcxproj", "{8BD3552A-2CFB-4A59-AB15-2031B97ADA1E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Catch2", "external\Catch2\build\src\Catch2.vcxproj", "{8D538CBE-01BF-4A2E-A98A-6C368FDF13D7}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "spec_elf", "spec\elf\elf.vcxproj", "{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Expand Down Expand Up @@ -1493,6 +1501,34 @@ Global
{8D538CBE-01BF-4A2E-A98A-6C368FDF13D7}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
{8D538CBE-01BF-4A2E-A98A-6C368FDF13D7}.RelWithDebInfo|x64.Build.0 = RelWithDebInfo|x64
{8D538CBE-01BF-4A2E-A98A-6C368FDF13D7}.RelWithDebInfo|x86.ActiveCfg = RelWithDebInfo|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Debug|ARM.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Debug|ARM64.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Debug|x64.ActiveCfg = Debug|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Debug|x64.Build.0 = Debug|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Debug|x86.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Debug|x86.Build.0 = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|ARM.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|ARM.Build.0 = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|ARM64.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|ARM64.Build.0 = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|x64.ActiveCfg = Debug|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|x64.Build.0 = Debug|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|x86.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.MinSizeRel|x86.Build.0 = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Release|ARM.ActiveCfg = Release|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Release|ARM64.ActiveCfg = Release|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Release|x64.ActiveCfg = Release|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Release|x64.Build.0 = Release|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Release|x86.ActiveCfg = Release|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.Release|x86.Build.0 = Release|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|ARM.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|ARM.Build.0 = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|ARM64.ActiveCfg = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|ARM64.Build.0 = Debug|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|x64.ActiveCfg = Release|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|x64.Build.0 = Release|x64
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|x86.ActiveCfg = Release|Win32
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F}.RelWithDebInfo|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1546,6 +1582,7 @@ Global
{2B51E0EF-4589-430B-9CCC-D09A4E6FD8B2} = {5C9E1337-D8EF-41AB-815D-E1990D19E4E0}
{8BD3552A-2CFB-4A59-AB15-2031B97ADA1E} = {492C9B22-9237-4996-9E33-CA14D3533616}
{8D538CBE-01BF-4A2E-A98A-6C368FDF13D7} = {492C9B22-9237-4996-9E33-CA14D3533616}
{E2B1C5CE-99D2-4732-ACFB-0133F31A450F} = {69CDB6A1-434D-4BC9-9BFF-D12DF7EDBB6B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3D5F862D-74C6-4357-9F95-0B152E33B7B8}
Expand Down
1 change: 1 addition & 0 deletions scripts/.check-license.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Generated files
tools/netsh/resource.h
spec/*

# Other Files
LICENSE.txt
Expand Down
39 changes: 39 additions & 0 deletions spec/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation
SPDX-License-Identifier: MIT
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Platform">
<Import Project="$(SolutionDir)Directory.Build.props"/>
<!-- Override the rules for projects that are not under control of this project -->
<PropertyGroup>
<CodeAnalysisRuleSet>$(SolutionDir)external\Analyze.external.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(AddressSanitizer)'=='True'">
<EnableASAN>true</EnableASAN>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<WarningLevel>Level4</WarningLevel>
<LanguageStandard>stdcpplatest</LanguageStandard>
<TreatWarningAsError>false</TreatWarningAsError>
<SDLCheck>true</SDLCheck>
<SupportJustMyCode>false</SupportJustMyCode>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<IntrinsicFunctions>true</IntrinsicFunctions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<ClCompile>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
</Project>
Loading

0 comments on commit 8af4d1d

Please sign in to comment.