Wireshark-commits: [Wireshark-commits] rev 42676: /trunk/epan/ /trunk/epan/: proto.c
Date: Thu, 17 May 2012 10:18:54 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42676

User: darkjames
Date: 2012/05/17 03:18 AM

Log:
 Fix string buffer overflow (bug #7029)
 
 g_strlcpy() always return the size of strlen(src), so in case of truncation it could happen that offset_r > size or offset_e > size.
 Fix it by adding new function protoo_strlcpy() which returns how many bytes was copied to dest buffer.

Directory: /trunk/epan/
  Changes    Path          Action
  +21 -11    proto.c       Modified