FreeBSD Bugzilla – Bug 192630
[patch] databases/rrdtool: rrdupdate crash on amd64 systems
Last modified: 2014-08-30 19:01:48 UTC
Created attachment 145745 [details]
patch rrdupdate.c to fix the problem
rrdupdate/rrdinfo in rrdtool crashes when executed.
The reason is that, in rrdupdate.c, basename() is used, but libgen.h is not included.
As a result, basename is implicitly declared. Its return type is considered as int, which only has 32 bits. On 64-bit systems, because its real return type is char*, the higher 32 bits would be cut off, and the return value is trashed.
The attached patch fixes this problem.
This has already been fixed upstream in
But there is no release after that.
over to maintainer for approval
A commit references this bug:
Date: Sat Aug 30 19:01:17 UTC 2014
New revision: 366668
Fix runtime on amd64
Sorry for the portrevision churn, forgot this with previous commit.
Submitted by: Henry Hu <firstname.lastname@example.org>