Forum: CFEngine Help
Subject: Re: Expansion overflow constructing string. Increase CF_EXPANDSIZE
macro.
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,25040,25064#msg-25064
It means you have a string that, upon variable expansion, came out to more than
8064 characters long (2*4096-128), which is the internal buffer size. Maybe it
should be broken into smaller pieces?
src/cf.defs.h:425:#define CF_BUFSIZE 4096
src/cf.defs.h:431:#define CF_EXPANDSIZE (2*CF_BUFSIZE)
src/cf.defs.h:433:#define CF_BUFFERMARGIN 128
src/expand.c:
if ((strlen(str1) + len) > (CF_EXPANDSIZE - CF_BUFFERMARGIN))
{
CfOut(cf_error, "",
"Expansion overflow constructing string. Increase CF_EXPANDSIZE
macro. Tried to add %s to %s\n", str2,
str1);
return true;
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine