[Bug 192630] New: [patch] databases/rrdtool: rrdupdate crash on amd64 systems

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 13 01:30:03 UTC 2014


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 at FreeBSD.org
          Reporter: henry.hu.sh at 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.


More information about the freebsd-ports-bugs mailing list