krb5-libs/1066: printf argument mismatches in rpc unit tests
Dan Riley
dsr at mail.lns.cornell.edu
Fri Feb 22 15:01:43 EST 2002
>Number: 1066
>Category: krb5-libs
>Synopsis: printf argument mismatches in rpc unit tests
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Fri Feb 22 15:02:01 EST 2002
>Last-Modified:
>Originator: Dan Riley
>Organization:
LNS, Cornell U.
>Release: krb5-1.2.3
>Environment:
System: OSF1 lnscu6.lns.cornell.edu V4.0 1229 alpha
Machine: alpha
>Description:
Two of the fprintf's in the rpc unit tests have argument mismatches.
>How-To-Repeat:
Compile with a very picky compiler and read the warnings (the Tru64
5.1 cc, for instance).
>Fix:
diff -ur krb5-1.2.3/src/lib/rpc/unit-test/client.c krb5/lib/rpc/unit-test/client.c
--- krb5-1.2.3/src/lib/rpc/unit-test/client.c Wed Jan 9 17:27:59 2002
+++ krb5/lib/rpc/unit-test/client.c Thu Dec 6 13:01:48 2001
@@ -217,7 +223,7 @@
if (strncmp(*echo_resp, "Echo: ", 6) &&
strcmp(echo_arg, (*echo_resp) + 6) != 0)
fprintf(stderr, "RPC_TEST_ECHO call %d response wrong: "
- "arg = %s, resp = %s\n", echo_arg, *echo_resp);
+ "arg = %s, resp = %s\n", i, echo_arg, *echo_resp);
gssrpc_xdr_free(xdr_wrapstring, echo_resp);
}
@@ -323,7 +329,7 @@
if (strncmp(*echo_resp, "Echo: ", 6) &&
strcmp(echo_arg, (*echo_resp) + 6) != 0)
fprintf(stderr,
- "RPC_TEST_LENGTHS call %d response wrong\n");
+ "RPC_TEST_LENGTHS call %d response wrong\n", i);
gssrpc_xdr_free(xdr_wrapstring, echo_resp);
}
>Audit-Trail:
>Unformatted:
More information about the krb5-bugs
mailing list