* [gentoo-commits] gentoo-x86 commit in sys-fs/mtpfs/files: mtpfs-0.9-overflow.patch
@ 2011-06-30 10:16 Kacper Kowalik (xarthisius)
0 siblings, 0 replies; 2+ messages in thread
From: Kacper Kowalik (xarthisius) @ 2011-06-30 10:16 UTC (permalink / raw
To: gentoo-commits
xarthisius 11/06/30 10:16:21
Added: mtpfs-0.9-overflow.patch
Log:
Initial import wrt bug 189304, thanks to everyone involved
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch?rev=1.1&content-type=text/plain
Index: mtpfs-0.9-overflow.patch
===================================================================
Prevent possible overflow of destination buffer, as
strncat appends the first num characters of source
to destination, _plus_ a terminating null-character.
Patch written by Kacper Kowalik <xarthisius@gentoo.org>
--- a/id3read.c
+++ b/id3read.c
@@ -269,7 +269,7 @@
if (strlen (trackstr) == 1) {
strcat (trackno, "0");
}
- strncat (trackno, trackstr, sizeof (trackno));
+ strncat (trackno, trackstr, sizeof (trackno)-1);
g_free (trackstr);
g_free (posstr);
} else {
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-fs/mtpfs/files: mtpfs-0.9-overflow.patch
@ 2012-05-24 2:48 Samuli Suominen (ssuominen)
0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2012-05-24 2:48 UTC (permalink / raw
To: gentoo-commits
ssuominen 12/05/24 02:48:46
Removed: mtpfs-0.9-overflow.patch
Log:
old
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-24 2:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 10:16 [gentoo-commits] gentoo-x86 commit in sys-fs/mtpfs/files: mtpfs-0.9-overflow.patch Kacper Kowalik (xarthisius)
-- strict thread matches above, loose matches on Subject: below --
2012-05-24 2:48 Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox