ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 42676: /trunk/epan/ /trunk/epan/: pr

From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
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: wireshark-commits-bounces@xxxxxxxxxxxxx [wireshark-commits-bounces@xxxxxxxxxxxxx] On Behalf Of darkjames@xxxxxxxxxxxxx [darkjames@xxxxxxxxxxxxx]
Sent: Thursday, May 17, 2012 6:18 AM
To: wireshark-commits@xxxxxxxxxxxxx
Subject: [Wireshark-commits] rev 42676: /trunk/epan/ /trunk/epan/: proto.c

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

___________________________________________________________________________
Sent via:    Wireshark-commits mailing list <wireshark-commits@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-commits
Unsubscribe: https://wireshark.org/mailman/options/wireshark-commits
             mailto:wireshark-commits-request@xxxxxxxxxxxxx?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.