Coder Social home page Coder Social logo

kulfi's People

Contributors

arvind1990 avatar quadpixels avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

quadpixels

kulfi's Issues

What is the purpose of the "clone" here?

https://github.com/soar-lab/KULFI/blob/master/src/main/faults.cpp#L180

Why is cloning of this instruction necessary?
From the code, I guess the purpose is to "get a pointer to the next instruction to (*I) without having to deal with the edge case that BINext points to the end of BB" (many injection codes have two branches on whether or not BINext is the end of a Basic Block ".

Update: I guess the purpose of clone() is such that "replaceAllUses" may be used:
https://github.com/soar-lab/KULFI/blob/master/src/main/faults.cpp#L253

But it's also possible to avoid the use of replaceAllUses with something like the following:
BasicBlock::iterator BI2 = BINext;
while(BI2 != BB->end()) {
Instruction* valu = &(*BI2);
valu->replaceUsesOfWith(inst, corruptedPtr);
BI2++;
}

Build for Faults transform fails on Ubuntu

kapura1@devvbox:~/src/oss/llvm-3.2/llvm-3.2.src/lib/Transforms/Faults$ make
llvm[0]: Compiling faults.cpp for Release+Asserts build (PIC)
In file included from faults.cpp:24:
In file included from /home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/Pass.h:374:
In file included from /home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/PassAnalysisSupport.h:23:
In file included from /home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/ADT/SmallVector.h:17:
/home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/Support/AlignOf.h:90:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(1);
^
/home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
char alignas(x) aligned;
^
/home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/Support/AlignOf.h:91:1: error: 'alignas' attribute cannot be applied to types
LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(2);
^
/home/kapura1/src/oss/llvm-3.2/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10: note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
char alignas(x) aligned;
^
Checking the debian archives - llvm 3.2 version has been removed
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714215

Will this work with later versions of llvm ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.