search for: objectsizeoffsetevaluator

Displaying 4 results from an estimated 4 matches for "objectsizeoffsetevaluator".

2016 May 23
1
BoundsChecking Pass
...sis/MemoryBuiltins.cpp > I have a question on this. As I read the code I was wondering how the run-time part was implemented. I was looking for something like a redefinition of malloc&free functions but I found no clue. Now I'm wondering if it's reduced to the run-time action of the ObjectSizeOffsetEvaluator class? This one is used to get the size&offset of the current array pointer. > > Hope this helps. Please let us know if you have more questions. > This already helped a lot, thank you! > > Nuno > Pierre -------------- next part -------------- An HTML attachment was scrub...
2016 May 22
0
BoundsChecking Pass
Hi Pierre, I'm the author of the BoundsChecking pass. It's true there's little documentation about it (only mentioned in: http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#availablle-checks). You can run it with 'clang -fsanitize=bounds' or 'opt -bounds-checking'. The BoundsChecking pass, AddressSanitizer and BaggyBoundsCheck are all different code bases,
2016 Mar 16
4
Problem with __builtin_object_size when it depends on a condition
Optimizer doesn't know how to calculate the object size when it finds condition that cannot be eliminated. There is example: ----------------------------------------------- #include<stdlib.h> #define STATIC_BUF_SIZE 10 #define LARGER_BUF_SIZE 30 size_t foo(int flag) { char *cptr; char chararray[LARGER_BUF_SIZE]; char chararray2[STATIC_BUF_SIZE]; if(flag) cptr =
2016 May 20
2
BoundsChecking Pass
Hi, I am a final year French student doing an internship at the University of Portsmouth. As I was taking hands on AddressSanitizer I took a look at BoundsChecking (both are in the lib/Transforms/Instrumentation folder). I found nothing on it except for the LLVM Documentation and references to BaggyBoundsCheck (which is not the same project. As far as I understood it is part of the SAFECode