Skip to content
Prev 24643 / 63424 Next

R on Solaris 10 x64

Hi David,
Tai-Wei (David) Lin wrote:
What's the initial size of tgath_buf? You need to make sure that you are not stepping
out of it i.e. that sum(len[i], for 0<=i<nseq) is not greater than its initial size.
That's for the writing side. Same on the reading side: you need to make sure that
buf+off[curr_seq]+len[i]-1 is a safe place to be for any 0<=i<nseq.

Otherwise, expect bad things to happen. And they are generally not reproducible in a
consistent way. So even if this code never crashes on other systems, it doesn't mean that
it is not broken.

Cheers,
H.