Files
tor/changes
Nick Mathewson 387cfccee4 Add a coccinelle script to look for {inc,dec}rements in log_debug
We want to forbid this pattern since, unlike the other log_*()
macros, log_debug() conditionally evaluates its arguments only if
debug-level logging is enabled.  Thus, a call to
    log_debug("%d", x++);
will only increment x if debugging logs are enabled, which is
probably not what the programmer intended.

One bug caused by this pattern was #30628.

This script detects log_debug( ) calls with any of E++, E--, ++E,
or --E in their arguments, where E is an arbitrary expression.

Closes ticket 30743.
2019-09-18 13:43:42 -04:00
..
2019-06-11 15:15:19 +10:00
2019-08-26 20:02:11 -04:00
2019-07-23 12:44:43 +03:00
2019-08-23 00:06:55 +10:00
2019-06-17 08:56:06 -04:00
2019-07-18 09:28:08 -04:00
2019-06-11 11:59:30 -04:00
2019-06-23 13:38:49 +03:00
2019-05-21 14:56:53 +03:00
2019-06-14 13:28:10 +03:00
2019-06-25 11:42:41 -05:00
2019-06-25 12:51:25 -04:00
2019-08-26 09:33:29 -04:00
2019-09-05 11:15:30 +10:00
2019-06-27 14:52:12 -04:00
2019-08-05 10:31:02 -04:00
2019-08-05 17:48:06 -04:00
2019-09-04 10:31:45 -04:00
2019-08-06 13:13:36 -04:00
2019-09-05 16:20:31 -04:00
2019-09-04 12:06:27 -04:00