Explorar o código

Suppress coverity warning about overflowing in tor_memeq.

The unsigned underflow here is defined and intentional.

CID 202482
Nick Mathewson %!s(int64=9) %!d(string=hai) anos
pai
achega
c43e45d0ea
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/common/di_ops.c

+ 1 - 0
src/common/di_ops.c

@@ -130,6 +130,7 @@ tor_memeq(const void *a, const void *b, size_t sz)
    *            1 & ((any_difference - 1) >> 8) == 0
    */
 
+  /*coverity[overflow]*/
   return 1 & ((any_difference - 1) >> 8);
 }