@BRIAN_____ Are you going remove every single pointer to void too?
-
-
-
@ch3root I don't know how to deal with *all* the void pointers yet, but I will actually change most of them to |uint8_t *|. - End of conversation
New conversation -
-
-
@BRIAN_____ "Looking for tool to find casts in C (semantically)." Coccinelle? http://coccinelle.lip6.fr http://www.openwall.com/lists/oss-security/2010/11/08/9 … -
@solardiz@BRIAN_____ Yes, a simple coccinelle script is easy: @@ expression e; type t; @@ * (t *)e But it doesn't grok typedefs -
@solardiz@BRIAN_____ This one can deal with typedefs: @@ expression *e; expression f; type t; @@ * (t)@e f -
@solardiz@BRIAN_____ Still, it's not bullet-proof. If coccinelle fails to parse a function it skips it. -
@solardiz@BRIAN_____ typedefs hidden in an indirect includes require some tuning. defines require some work too. -
@solardiz Anyway, I provided a cocci script for another case here: https://github.com/briansmith/ring/issues/101#issuecomment-181088610 … So I guess@BRIAN_____ is aware of coccinelle:) -
-
@BRIAN_____@solardiz It's definitely not ideal. It could be made better with some tuning but I doubt it will be bulletproof. - 2 more replies
New conversation -
-
-
@BRIAN_____ clang -Xclang -ast-dump foo.c | grep CStyleCastExpr (or CastExpr). Or write a LLVM RecursiveASTVisitor (more complicated)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@BRIAN_____ clang-tidy? -
@jfbastien@BRIAN_____ I was looking for this exact tool yesterday and didn't find anything good, but this would be an easy clang hack...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.