cppcheck analysis of ns2_2.35~RC6-2.dsc
- ./asim/asim.cc:542 [error] - Resource leak: f
- ./asim/asimstd.cc:404 [error] - Resource leak: f
- ./dccp/dccp_ackv.cc:490 [error] - Uninitialized variable: items
- ./delaybox/delaybox.cc:983 [error] - Undefined behaviour: str is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./delaybox/delaybox.cc:987 [error] - Undefined behaviour: str is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./delaybox/delaybox.cc:990 [error] - Undefined behaviour: str is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./delaybox/delaybox.cc:995 [error] - Undefined behaviour: str is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./delaybox/delaybox.cc:998 [error] - Undefined behaviour: str is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./delaybox/delaybox.cc:298 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./delaybox/delaybox.cc:308 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./diffserv/ew.cc:110 [error] - instance of "TBrateLimitor" object destroyed immediately
- ./diffusion3/filters/rmst/rmst.cc:168 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./diffusion3/filters/rmst/rmst_filter.cc:1757 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./dsdv/dsdv.cc:112 [error] - Undefined behaviour: buf is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./dsr/flowstruct.cc:203 [error] - Mismatching allocation and deallocation: DRTable::table
- ./dsr/flowstruct.cc:64 [error] - Mismatching allocation and deallocation: FlowTable::table
- ./imep/rxmit_queue.cc:80 [error] - Memory leak: r
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/cmu-scen-gen/setdest/setdest2.cc:116 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./indep-utils/dosreduce/dosreduce.c:123 [error] - Mismatching allocation and deallocation: fp
- ./indep-utils/dosreduce/dosreduce.c:472 [error] - Memory leak: attackers
- ./indep-utils/dosreduce/dosreduce.c:471 [error] - Memory leak: FT
- ./mcast/srm.h:131 [error] - Undefined behaviour: msgids is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- mdart/mdart_function.h:215 [error] - Returning pointer to auto variable
- ./mdart/mdart_dht.cc:143 [error] - Dereferenced iterator 'entry_' has been erased
- ./mdart/mdart_dht.cc:297 [error] - Dereferenced iterator 'entry_' has been erased
- ./mdart/mdart_dht.cc:309 [error] - Dereferenced iterator 'entry_' has been erased
- ./mdart/mdart_ndp.cc:274 [error] - Dereferenced iterator 'neighbor_' has been erased
- ./mdart/mdart_queue.cc:288 [error] - Dereferenced iterator 'entry_' has been erased
- ./mdart/mdart_table.cc:65 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./mdart/mdart_table.cc:102 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./mobile/dem.cc:146 [error] - Allocation with open, if doesn't release it.
- ./packmime/packmime_HTTP.cc:114 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./packmime/packmime_HTTP.cc:123 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./packmime/packmime_OL_ranvar.cc:184 [error] - Possible null pointer dereference: myrng - otherwise it is redundant to check if myrng is null at line 185
- ./packmime/packmime_OL_ranvar.cc:337 [error] - Possible null pointer dereference: myrng - otherwise it is redundant to check if myrng is null at line 339
- ./packmime/packmime_ranvar.cc:321 [error] - Division by zero
- ./packmime/packmime_ranvar.cc:648 [error] - Division by zero
- ./packmime/packmime_ranvar.cc:659 [error] - Division by zero
- ./puma/puma.h:62 [error] - Memory leak: MessageCache::rear
- ./realaudio/realaudio.cc:197 [error] - Resource leak: fp
- ./satellite/satroute.cc:80 [error] - Possible null pointer dereference: old
- ./satellite/satroute.cc:81 [error] - Possible null pointer dereference: old
- ./src_rtg/sragent.cc:265 [error] - Possible null pointer dereference: old
- ./tcp/linux/ns-linux-c.c:110 [error] - Memory leak: p
- ./tcp/tcp-sink.cc:490 [error] - Memory leak: SackStack::SFE_
- ./tmix/tmix.cc:160 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./tmix/tmix_delaybox.cc:147 [error] - Dangerous iterator usage. After erase the iterator is invalid so dereferencing it or comparing it with another iterator is invalid.
- ./tools/rng.cc:856 [error] - Array 'name_[100]' index 100 out of bounds
- ./trace/basetrace.cc:66 [error] - Mismatching allocation and deallocation: BaseTrace::wrk_
- ./trace/basetrace.cc:67 [error] - Mismatching allocation and deallocation: BaseTrace::nwrk_
- ./trace/traffictrace.cc:190 [error] - Resource leak: fp
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 21 Mar 2011 06:58:09 +0000, based on results by cppcheck 1.46