Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 42676: /trunk/epan/ /trunk/epan/: pr
From: "Maynard, Chris" <[email protected]>
Date: Mon, 28 May 2012 12:53:23 -0400
Was it the intention to call the function, protoo_strlcpy(), or is that a typo and it should be renamed to proto_strlcpy()?

- Chris
From: [email protected] [[email protected]] On Behalf Of [email protected] [[email protected]]
Sent: Thursday, May 17, 2012 6:18 AM
To: [email protected]
Subject: [Wireshark-commits] rev 42676: /trunk/epan/ /trunk/epan/: proto.c


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

 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

Sent via:    Wireshark-commits mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-commits
Unsubscribe: https://wireshark.org/mailman/options/wireshark-commits
             mailto:[email protected]?subject=unsubscribe
CONFIDENTIALITY NOTICE: The information contained in this email message is intended only for use of the intended recipient. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately delete it from your system and notify the sender by replying to this email.  Thank you.