[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
some inconsistent buffer declarations in cfengine
From: |
Alex |
Subject: |
some inconsistent buffer declarations in cfengine |
Date: |
Thu, 18 Oct 2001 18:23:55 +0200 |
Mark,
I just compiled cfengine-2.0.a14 on under DEC Unix using the native compiler.
However, I would never be granted access to cfrunCommand. I have tracked this
down to some improper declarations of arrays:
in globals.c we have:
PROTECTED char VUQNAME[maxvarsize];
and then in cfservd.c:
strncpy(VUQNAME,VSYSNAME.nodename,bufsize-1);
overwrites adjacent data.
There are similar problems throughout the code, and I think all the buffers
in globals.c are actually meant to be bufsize in length.
Regards,
Alex
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- some inconsistent buffer declarations in cfengine,
Alex <=