Date: Wed, 13 Aug 2014 01:30:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192630] New: [patch] databases/rrdtool: rrdupdate crash on amd64 systems Message-ID: <bug-192630-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192630 Bug ID: 192630 Summary: [patch] databases/rrdtool: rrdupdate crash on amd64 systems Product: Ports Tree Version: Latest Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: henry.hu.sh@gmail.com Created attachment 145745 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145745&action=edit 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 https://github.com/oetiker/rrdtool-1.x/commit/d0bd4217d9fb69db9f94363087936cf93fa9b4ea But there is no release after that. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192630-13>