Search squid archive

Re: COSS causing squid Segment Violation on FreeBSD 6.2S

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change:

xmemcpy(p, buf, len);

to be:

if (errflag == 0) {
   assert(len >= 0);
   xmemcpy(p, buf, len);
}

That should stop the crashes but it won't stop the IO errors and I'm not
quite sure whether COSS will return crap to the client request or not.
COSS should at least return a read failure back up to Squid and I'm 
sure things will be fine from there.

Let me know if that stops the crashes and I'll go and commit a patch.



Adrian


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux