[Buildroot] [Bug 10216] New: package/x11r7/mcookie/mcookie.c:207: bad size ?

bugzilla at busybox.net bugzilla at busybox.net
Wed Aug 9 20:26:15 UTC 2017


https://bugs.busybox.net/show_bug.cgi?id=10216

            Bug ID: 10216
           Summary: package/x11r7/mcookie/mcookie.c:207: bad size ?
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: dcb314 at hotmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

buildroot-2017.08-rc1/package/x11r7/mcookie/mcookie.c:207]: (warning) Size of
pointer 'ctx' used instead of size of its data.

Source code is

    memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */

Maybe better code

    memset(ctx, 0, sizeof(*ctx));    /* In case it's sensitive */

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the buildroot mailing list