You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/02/14 00:07:08 UTC

[jira] Created: (STDCXX-728) [HP aCC 6.16] bogus warning #20200: potential null pointer dereference

[HP aCC 6.16] bogus warning #20200: potential null pointer dereference
----------------------------------------------------------------------

                 Key: STDCXX-728
                 URL: https://issues.apache.org/jira/browse/STDCXX-728
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
         Environment: $ uname -sr && aCC -V            
HP-UX B.11.31
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]

            Reporter: Martin Sebor


This looks like a bug in cadvise/aCC 6:

{noformat}
$ cat t.cpp && aCC +w -c -V t.cpp
int bar ();

int foo (int *a, int i)
{
    int *p;
    if (i) p = a; else p = 0;

    if (i)
        return *p;
    return 0;
}

int foobar (int *a, int i)
{
    int *p;
    if (i) p = a; else p = 0;

    if (bar ())
        if (i)
            return *p;
    return 0;
}
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
"t.cpp", line 20, procedure foobar: warning #20200-D: Potential null pointer
          dereference through p is detected (null definition:t.cpp, line 16)
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-728) [HP aCC 6.16] bogus warning #20200: potential null pointer dereference

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-728:
-----------------------------------

    Assignee:     (was: Martin Sebor)

> [HP aCC 6.16] bogus warning #20200: potential null pointer dereference
> ----------------------------------------------------------------------
>
>                 Key: STDCXX-728
>                 URL: https://issues.apache.org/jira/browse/STDCXX-728
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: $ uname -sr && aCC -V            
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
>            Reporter: Martin Sebor
>
> This looks like a bug in cadvise/aCC 6:
> {noformat}
> $ cat t.cpp && aCC +w -c -V t.cpp
> int bar ();
> int foo (int *a, int i)
> {
>     int *p;
>     if (i) p = a; else p = 0;
>     if (i)
>         return *p;
>     return 0;
> }
> int foobar (int *a, int i)
> {
>     int *p;
>     if (i) p = a; else p = 0;
>     if (bar ())
>         if (i)
>             return *p;
>     return 0;
> }
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> "t.cpp", line 20, procedure foobar: warning #20200-D: Potential null pointer
>           dereference through p is detected (null definition:t.cpp, line 16)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-728) [HP aCC 6.16] bogus warning #20200: potential null pointer dereference

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-728:
-----------------------------------

    Assignee: Martin Sebor

> [HP aCC 6.16] bogus warning #20200: potential null pointer dereference
> ----------------------------------------------------------------------
>
>                 Key: STDCXX-728
>                 URL: https://issues.apache.org/jira/browse/STDCXX-728
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: $ uname -sr && aCC -V            
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>
> This looks like a bug in cadvise/aCC 6:
> {noformat}
> $ cat t.cpp && aCC +w -c -V t.cpp
> int bar ();
> int foo (int *a, int i)
> {
>     int *p;
>     if (i) p = a; else p = 0;
>     if (i)
>         return *p;
>     return 0;
> }
> int foobar (int *a, int i)
> {
>     int *p;
>     if (i) p = a; else p = 0;
>     if (bar ())
>         if (i)
>             return *p;
>     return 0;
> }
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> "t.cpp", line 20, procedure foobar: warning #20200-D: Potential null pointer
>           dereference through p is detected (null definition:t.cpp, line 16)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.