File: tests-uninitialized.patch

package info (click to toggle)
libotr 4.1.1-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,172 kB
  • sloc: sh: 22,154; ansic: 11,887; makefile: 125
file content (14 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Freading uninitialized data in the tests
Author: Aurelien Jarno <aurel32@debian.org>
Bug-Debian: https://bugs.debian.org/932927

--- libotr-4.1.1.orig/tests/unit/test_auth.c
+++ libotr-4.1.1/tests/unit/test_auth.c
@@ -67,6 +67,7 @@ static void test_auth_clear(void)
 	OtrlAuthInfo *auth = &ctx.auth;
 
 	/* API call. */
+	otrl_auth_new(&ctx);
 	otrl_auth_clear(auth);
 
 	ok(auth->authstate == OTRL_AUTHSTATE_NONE &&