Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2017 21:54:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217881] devel/cppcheck: version 1.77 always crashes on amd64
Message-ID:  <bug-217881-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217881

            Bug ID: 217881
           Summary: devel/cppcheck: version 1.77 always crashes on amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: amdmi3@FreeBSD.org
          Reporter: ngie@FreeBSD.org
          Assignee: amdmi3@FreeBSD.org
             Flags: maintainer-feedback?(amdmi3@FreeBSD.org)

$ cat ~/calloc_test.c
#include <stdlib.h>
#include <stdio.h>

int
main(void)
{
        void *memory;

        memory =3D calloc(1, 0);
        printf("memory is NULL: %d\n", memory =3D=3D NULL);
        free(memory);

        memory =3D calloc(0, 1);
        printf("memory is NULL: %d\n", memory =3D=3D NULL);
        free(memory);

        return (0);
}
$ cppcheck ~/calloc_test.c
Segmentation fault (core dumped)
$

--=20
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-217881-13>