[1380] in Athena Bugs

home help back first fref pref prev next nref lref last post

VAX saber2: incorrect error

daemon@ATHENA.MIT.EDU (John Carr)
Wed Nov 16 03:41:56 1988

To: bugs@ATHENA.MIT.EDU
Date: Wed, 16 Nov 88 03:21:26 EST
From: John Carr <jfc@ATHENA.MIT.EDU>

This is what it said:

    68:   ptr = buf;
 *  69:   if((count = read(sid, buf, sizeof(msghdr)) 
    70:       && count != -1
Using auto variable reconnect`count which has not been set.
(break 1) 28 -> count;
(int) -1077952577 /* garbage value */
(break 1) 29 -> step
Stopped in reconnect() at "client.c":73
 *  73:       ptr = buf + count;
(break 1) 30 -> count;
(int) 1

Since the operands of "&&" are guaranteed to be evaluated in order, this
is legal (count is not referenced until it is set).

  --John Carr

home help back first fref pref prev next nref lref last post