[Spread-users] BUFFER_TOO_SHORT && endian_mismatch >= 0

Tim Peters tim at zope.com
Fri Jul 5 14:48:51 EDT 2002


FYI, it looks to me like the Perl Spread wrapper also passes stack trash to
SP_receive():

	  if((ret=SP_receive(mbox, &stype, sender, newgsize, &ngrps, groups,

in Spread.xs's function GC_receive (from the spread-src-3.16.2 distro).
I've never fully grokked .xs files, but the declaration of stype seems
clear:

	  service stype;
	  struct timeval towait;
	  static char *groups=NULL;

and stype isn't assigned to anywhere before SP_receive is called.





More information about the Spread-users mailing list