Hi,
I just noted that tvb_get_string is quite expensive looking at the code I can 
see that it calls tvb_memcpy both routines have length check
Which seems unnecessary I've included a patch for review. Feel free to apply if 
it looks OK. There may be similar cases if someone cares to take a look :)
Regards
Anders

Attachment: tvbuff.patch
Description: tvbuff.patch

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to