[tor-bugs] #30743 [Core Tor/Tor]: Write a coccinelle script to catch increment/decrement calls inside log_debug().

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jun 11 23:05:22 UTC 2019


#30743: Write a coccinelle script to catch increment/decrement calls inside
log_debug().
--------------------------+------------------------------------
 Reporter:  nickm         |          Owner:  nickm
     Type:  enhancement   |         Status:  assigned
 Priority:  Medium        |      Milestone:  Tor: 0.4.2.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by nickm):

 Here's a script that catches one case, and the other 3 cases are easy
 enough to infer...
 {{{
 @@
 expression E;
 @@
 *log_debug(... , <+... E-- ...+>, ... );
 }}}

 The problem, though, is that a lot of our files don't parse for coccinelle
 right now, because of our macro madness. We'll need to extend
 `scripts/coccinelle/tor-coccinelle.h` till everything works.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30743#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list