Wireshark-commits: [Wireshark-commits] rev 35706: /trunk/ /trunk/: tap-megaco-common.c
Date: Sun, 30 Jan 2011 21:56:08 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=35706

User: wmeier
Date: 2011/01/30 01:56 PM

Log:
 When searching a list, validate pointer before (not after) trying to use it.
 
 In this particular case, the code logic may ensure that
  the search thru the list never hits the end of the list so that a
  crash because of an attempt to deref a NULL pointer never happens.
 
 Issue found via msvc level 4 warning "code not reachable".

Directory: /trunk/
  Changes    Path                   Action
  +6 -4      tap-megaco-common.c    Modified