[kcalcore] [Bug 363454] New: [vcc.y:445]: (warning) Size of pointer 'p2' used instead of size of its data.

via KDE Bugzilla bugzilla_noreply at kde.org
Tue May 24 07:38:11 BST 2016


https://bugs.kde.org/show_bug.cgi?id=363454

            Bug ID: 363454
           Summary: [vcc.y:445]: (warning) Size of pointer 'p2' used
                    instead of size of its data.
           Product: kcalcore
           Version: git
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: kdepim-bugs at kde.org
          Reporter: dcb314 at hotmail.com

Source code is

    p2 = malloc(sizeof(char *) * (strlen(p1)+strlen(value)+1));

Suggest new code

    p2 = malloc( strlen(p1) + strlen(value) + 1);



Reproducible: Always

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



More information about the Kdepim-bugs mailing list