libsoup.soup-uri.awn.1.patch
- From: "Andrew W. Nosenko" <andrew w nosenko gmail com>
- To: libsoup-list gnome org
- Subject: libsoup.soup-uri.awn.1.patch
- Date: Thu, 28 Sep 2006 14:55:01 +0300
2006-09-28 Andrew W. Nosenko <andrew w nosenko gmail com>
* libsoup/soup-uri.c (soup_uri_get_protocol):
Avoid buffer overrun when 'len' == 128.
--
Andrew W. Nosenko <andrew w nosenko gmail com>
2006-09-28 Andrew W. Nosenko <andrew w nosenko gmail com>
* libsoup/soup-uri.c (soup_uri_get_protocol):
Avoid buffer overrun when 'len' == 128.
Index: libsoup/soup-uri.c
===================================================================
RCS file: /cvs/gnome/libsoup/libsoup/soup-uri.c,v
retrieving revision 1.32
diff -u -p -r1.32 soup-uri.c
--- libsoup/soup-uri.c 14 Jun 2005 15:34:22 -0000 1.32
+++ libsoup/soup-uri.c 28 Sep 2006 11:51:54 -0000
@@ -18,7 +18,7 @@ soup_uri_get_protocol (const char *proto
{
char proto_buf[128];
- g_return_val_if_fail (len < sizeof (proto_buf), 0);
+ g_return_val_if_fail (len < sizeof (proto_buf)-1, 0);
memcpy (proto_buf, proto, len);
proto_buf[len] = '\0';
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]