Exploit databaseDownload repository ZIP
GH-1917e82ea4e17d91152ad921475048a4
automateforceai/cve-2018-0202
Sources for CVE-2018-0202
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files60
automateforceai/cve-2018-0202Revision 9964c381baf5
- ↑..Parent directory
- TargetInfo/
- CMakeLists.txt
- Makefile
- README-FPStack.txt
- README-MMX.txt
- README-SSE.txt
- README-UNIMPLEMENTED.txt
- README-X86-64.txt
- README.txt
- SSEDomainFix.cpp
- X86.h
- X86.td
- X86AsmBackend.cpp
- X86AsmPrinter.cpp
- X86AsmPrinter.h
- X86COFFMachineModuleInfo.cpp
- X86COFFMachineModuleInfo.h
- X86CallingConv.td
- X86CodeEmitter.cpp
- X86CompilationCallback_Win64.asm
- X86ELFWriterInfo.cpp
- X86ELFWriterInfo.h
- X86FastISel.cpp
- X86FixupKinds.h
- X86FloatingPoint.cpp
- X86ISelDAGToDAG.cpp
- X86ISelLowering.cpp
- X86ISelLowering.h
- X86Instr64bit.td
- X86InstrBuilder.h
- X86InstrFMA.td
- X86InstrFPStack.td
- X86InstrFormats.td
- X86InstrFragmentsSIMD.td
- X86InstrInfo.cpp
- X86InstrInfo.h
- X86InstrInfo.td
- X86InstrMMX.td
- X86InstrSSE.td
- X86JITInfo.cpp
- X86JITInfo.h
- X86MCAsmInfo.cpp
- X86MCAsmInfo.h
- X86MCCodeEmitter.cpp
- X86MCInstLower.cpp
- X86MCInstLower.h
- X86MachineFunctionInfo.h
- X86RegisterInfo.cpp
- X86RegisterInfo.h
- X86RegisterInfo.td
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
clamav-0.99.3-fix/libclamav/c++/llvm/lib/Target/X86/X86MCAsmInfo.cpp
C++ · 3,363 bytes//===-- X86MCAsmInfo.cpp - X86 asm properties -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declarations of the X86MCAsmInfo properties.
//
//===----------------------------------------------------------------------===//
#include "X86MCAsmInfo.h"
#include "X86TargetMachine.h"
#include "llvm/ADT/Triple.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/Support/CommandLine.h"
using namespace llvm;
enum AsmWriterFlavorTy {
// Note: This numbering has to match the GCC assembler dialects for inline
// asm alternatives to work right.
ATT = 0, Intel = 1
};
static cl::opt<AsmWriterFlavorTy>
AsmWriterFlavor("x86-asm-syntax", cl::init(ATT),
cl::desc("Choose style of code to emit from X86 backend:"),
cl::values(clEnumValN(ATT, "att", "Emit AT&T-style assembly"),
clEnumValN(Intel, "intel", "Emit Intel-style assembly"),
clEnumValEnd));
static const char *const x86_asm_table[] = {
"{si}", "S",
"{di}", "D",
"{ax}", "a",
"{cx}", "c",
"{memory}", "memory",
"{flags}", "",
"{dirflag}", "",
"{fpsr}", "",
"{cc}", "cc",
0,0};
X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) {
AsmTransCBE = x86_asm_table;
AssemblerDialect = AsmWriterFlavor;
bool is64Bit = Triple.getArch() == Triple::x86_64;
TextAlignFillValue = 0x90;
if (!is64Bit)
Data64bitsDirective = 0; // we can't emit a 64-bit unit
// Use ## as a comment string so that .s files generated by llvm can go
// through the GCC preprocessor without causing an error. This is needed
// because "clang foo.s" runs the C preprocessor, which is usually reserved
// for .S files on other systems. Perhaps this is because the file system
// wasn't always case preserving or something.
CommentString = "##";
PCSymbol = ".";
SupportsDebugInformation = true;
DwarfUsesInlineInfoSection = true;
// Exceptions handling
ExceptionsType = ExceptionHandling::Dwarf;
}
X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) {
AsmTransCBE = x86_asm_table;
AssemblerDialect = AsmWriterFlavor;
TextAlignFillValue = 0x90;
PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t";
PCSymbol = ".";
// Set up DWARF directives
HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
// Debug Information
SupportsDebugInformation = true;
// Exceptions handling
ExceptionsType = ExceptionHandling::Dwarf;
// OpenBSD has buggy support for .quad in 32-bit mode, just split into two
// .words.
if (T.getOS() == Triple::OpenBSD && T.getArch() == Triple::x86)
Data64bitsDirective = 0;
}
const MCSection *X86ELFMCAsmInfo::
getNonexecutableStackSection(MCContext &Ctx) const {
return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
0, SectionKind::getMetadata(), false);
}
X86MCAsmInfoCOFF::X86MCAsmInfoCOFF(const Triple &Triple) {
if (Triple.getArch() == Triple::x86_64)
GlobalPrefix = "";
AsmTransCBE = x86_asm_table;
AssemblerDialect = AsmWriterFlavor;
TextAlignFillValue = 0x90;
}