Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2015 16:44:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 204769] usr/src/crypto/openssh/digest-libc.c:150: possible bad size ?
Message-ID:  <bug-204769-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 204769
           Summary: usr/src/crypto/openssh/digest-libc.c:150: possible bad
                    size ?
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: dcb314@hotmail.com

[usr/src/crypto/openssh/digest-libc.c:150]: (warning) Size of pointer 'ret'
used instead of size of its data.

Source code is

   if (digest == NULL || (ret = calloc(1, sizeof(ret))) == NULL)

Maybe better code

   if (digest == NULL || (ret = calloc(1, sizeof(*ret))) == NULL)

-- 
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-204769-8>