Issue Details (XML | Word | Printable)

Key: STDCXX-754
Type: Sub-task Sub-task
Status: Open Open
Priority: Minor Minor
Assignee: Martin Sebor
Reporter: Scott (Yu) Zhong
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library
STDCXX-726

[HP aCC 6.16] Potential null pointer dereference in cmdopt.cpp

Created: 13/Mar/08 09:01 PM   Updated: 23/Apr/08 12:06 AM
Return to search
Component/s: Test Driver
Affects Version/s: 4.2.0
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 1h
Time Spent - 1h Remaining Estimate - 1h
Time Spent: 1h
Time Spent - 1h Remaining Estimate - 1h

Environment:
$ uname -sr && aCC -V
HP-UX B.11.31
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
Issue Links:
Dependants
 


 Description  « Hide
aCC -c -mt -I/amd/devco/scottz/stdcxx/4.2.x/include -I/build/scottz/12d/include -I/amd/devco/scottz/stdcxx/4.2.x/tests/include -AA +O2 +DD64
+w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +
W4285 +W4286 /amd/devco/scottz/stdcxx/4.2.x/tests/src/cmdopt.cpp

"/amd/devco/scottz/stdcxx/4.2.x/tests/src/cmdopt.cpp", line 537, procedure rw_vsetopts: warning #20200-D: Potential null pointer dereference through next is detected (null definition:/amd/devco/scottz/stdcxx/4.2.x/tests/src/cmdopt.cpp, line 506)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Scott (Yu) Zhong added a comment - 31/Mar/08 04:51 AM
add compile line to description

Martin Sebor added a comment - 23/Apr/08 12:03 AM
r650698 gets rid of one bogus warning only to replace it with another. The compiler now spits out the diagnostics below. Warning #4276 is caused by the compiler bug in STDCXX-889 and the new warning #20200 by the one in STDCXX-764.
aCC -c  -D_RWSTDDEBUG   -mt -I/amd/devco/sebor/stdcxx-4.2.x/include -I/build/sebor/stdcxx-4.2.x-aCC-6.16-15D//include -I/amd/devco/sebor/stdcxx-4.2.x/tests/include  -AA  -g +d  +DD64 +w +W392,655,684,818,819,849 +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 +W4255,4272,4284,4285,4286,4296,4297 +W3348   /amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp
"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 167: warning #4276-D: 
          relational operator "<" always evaluates to 'false'
                 _RWSTD_INT_MIN < opt->minval_
                                ^

"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 181: warning #4276-D: 
          relational operator "<" always evaluates to 'false'
              if (_RWSTD_INT_MIN < opt->minval_)
                                 ^

"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 756: warning #4276-D: 
          relational operator "<" always evaluates to 'false'
                  && (   _RWSTD_INT_MIN < optspec->minval_
                                        ^

"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 1133: remark #4315-D: 
          while loop without body, did you insert an extra ';'?
                  while (isspace (*++s));
                                        ^

"/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp", line 513, procedure rw_vsetopts: warning #20200-D: 
          Potential null pointer dereference through end is detected (null
          definition:/amd/devco/sebor/stdcxx-4.2.x/tests/src/cmdopt.cpp, line
          506)

Martin Sebor added a comment - 23/Apr/08 12:05 AM
Persistent warnings caused by compiler bugs described in STDCXX-764 and STDCXX-889.

Martin Sebor added a comment - 23/Apr/08 12:06 AM
Lowered Priority and deferred until 4.2.2.