[rrdtool-maint] Bug#805391: Bug#805391: src:rrdtool: FTBFS on mips: `FAIL: tune2`

Jean-Michel Vourgère nirgal at debian.org
Sun Dec 20 09:37:31 UTC 2015

Control: tags -1 -help +pending

Niko Tyni wrote:
> (...)
> The problem is that rrd_write() ends up calling memcpy(3) on overlapping
> memory areas, which is explicitly prohibited in its documentation. With
> libc6 2.19-20 on mips, this started zeroing out part of the areas under
> some conditions. 
> (...)

Great job! Thanks a lot. :)

Aurelien Jarno wrote:
> Can't you replace memcpy calls with overlapping areas with a memmove
> instead?

Indeed. Thank you.

I expected memcpy to do nothing when source=destination. Definitely the
kind of mistake I could have made.

More information about the pkg-rrdtool-maint mailing list