ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rholo4.c
(Generate patch)

Comparing ray/src/hd/rholo4.c (file contents):
Revision 3.19 by gwlarson, Wed Aug 12 17:55:11 1998 UTC vs.
Revision 3.20 by gwlarson, Tue Oct 6 18:09:49 1998 UTC

# Line 105 | Line 105 | int    block;
105                  return(2);              /* acceptable failure */
106          }
107          if (msg.nbytes) {               /* get the message body */
108 +                if (msg.nbytes < 0)
109 +                        error(INTERNAL, "anti-message from display process");
110                  buf = (char *)malloc(msg.nbytes);
111                  if (buf == NULL)
112                          error(SYSTEM, "out of memory in disp_check");
# Line 229 | Line 231 | int    type, nbytes;
231   char    *p;
232   {
233          MSGHEAD msg;
234 <
234 >                                        /* consistency checks */
235 > #ifdef DEBUG
236 >        if (nbytes < 0 || nbytes > 0 & p == NULL)
237 >                error(CONSISTENCY, "bad buffer handed to disp_result");
238 > #endif
239          if (dpout == NULL)
240                  return;
241          msg.type = type;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines