search for: strlen_ptr

Displaying 5 results from an estimated 5 matches for "strlen_ptr".

2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...s? > > This is an example of a program that exercises the replacement function and > wrapper features. > > > -------------------------------------------------------------------------------- > #include <stddef.h> > #include <string.h> > > size_t len(size_t (*strlen_ptr)(const char *), const char *str) { > return strlen_ptr(str); > } > > int main(void) { > return len(strlen, "foo"); > } > > -------------------------------------------------------------------------------- > > In this example, 'len' is rewritten to...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
Hi Peter, After discovering several bugs in ArgumentPromotion and DeadArgumentElimination where llvm::Functions were replaced with similar functions (with the same name) to transform their type in some way, I started looking at all calls to llvm::Function::takeName to see if there were any other debug info quality bugs in similar callers. One such caller is the DataFlowSanitizer, and I don't
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...unction >>> and >>> wrapper features. >>> >>> >>> -------------------------------------------------------------------------------- >>> #include <stddef.h> >>> #include <string.h> >>> >>> size_t len(size_t (*strlen_ptr)(const char *), const char *str) { >>> return strlen_ptr(str); >>> } >>> >>> int main(void) { >>> return len(strlen, "foo"); >>> } >>> >>> --------------------------------------------------------------------------...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...gt; > > >>> > > >>> > -------------------------------------------------------------------------------- > > >>> #include <stddef.h> > > >>> #include <string.h> > > >>> > > >>> size_t len(size_t (*strlen_ptr)(const char *), const char *str) { > > >>> return strlen_ptr(str); > > >>> } > > >>> > > >>> int main(void) { > > >>> return len(strlen, "foo"); > > >>> } > > >>> > > >&gt...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...> > > -------------------------------------------------------------------------------- > > > > >>> #include <stddef.h> > > > > >>> #include <string.h> > > > > >>> > > > > >>> size_t len(size_t (*strlen_ptr)(const char *), const char *str) { > > > > >>> return strlen_ptr(str); > > > > >>> } > > > > >>> > > > > >>> int main(void) { > > > > >>> return len(strlen, "foo"); > > >...