[Bug 217881] devel/cppcheck: version 1.77 always crashes on amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 17 21:54:15 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217881

            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 at FreeBSD.org
          Reporter: ngie at FreeBSD.org
          Assignee: amdmi3 at FreeBSD.org
             Flags: maintainer-feedback?(amdmi3 at FreeBSD.org)

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

int
main(void)
{
        void *memory;

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

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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list