[3318] in Kerberos-V5-bugs
krb5-libs/1066: printf argument mismatches in rpc unit tests
daemon@ATHENA.MIT.EDU (Dan Riley)
Fri Feb 22 15:09:03 2002
Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: krb5-unassigned@rt-11.mit.edu
Resent-Reply-To: krb5-bugs@mit.edu, dsr@mail.lns.cornell.edu
Message-Id: <200202222001.PAA0000019878@lnscu6.lns.cornell.edu>
From: Dan Riley <dsr@mail.lns.cornell.edu>
Reply-To: dsr@mail.lns.cornell.edu
To: krb5-bugs@mit.edu
Errors-To: krb5-bugs-admin@mit.edu
Date: Fri, 22 Feb 2002 15:01:43 -0500 (EST)
>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:
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
http://mailman.mit.edu/mailman/listinfo/krb5-bugs