ソースを参照

test: Fix coverity CID 1439131

Simple uninitialized object that we could free in an HS v3 unit test.

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 5 年 前
コミット
58d74ad943
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/test/test_hs_descriptor.c

+ 2 - 0
src/test/test_hs_descriptor.c

@@ -675,6 +675,8 @@ test_decode_bad_signature(void *arg)
 
   (void) arg;
 
+  memset(&desc_plaintext, 0, sizeof(desc_plaintext));
+
   /* Update approx time to dodge cert expiration */
   update_approx_time(1502661599);