diff options
author | leeym <leeym@FreeBSD.org> | 2008-11-17 17:22:58 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2008-11-17 17:22:58 +0800 |
commit | 93581bbcf1ff0e77dc1ca970fe74981e572505a6 (patch) | |
tree | 923c5e1a1b988756d97a75dbef166cdb719fb2ee /databases/libmemcached | |
parent | 7c41310384cc16a8e61f70157ff09c0ab730c987 (diff) | |
download | freebsd-ports-gnome-93581bbcf1ff0e77dc1ca970fe74981e572505a6.tar.gz freebsd-ports-gnome-93581bbcf1ff0e77dc1ca970fe74981e572505a6.tar.zst freebsd-ports-gnome-93581bbcf1ff0e77dc1ca970fe74981e572505a6.zip |
- fix segfault problem if the length of source is zero
- bump PORTREVISION
Submitted by: vanilla
Diffstat (limited to 'databases/libmemcached')
-rw-r--r-- | databases/libmemcached/Makefile | 2 | ||||
-rw-r--r-- | databases/libmemcached/files/patch-libmemcached__memcached_io.c | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/databases/libmemcached/Makefile b/databases/libmemcached/Makefile index b921ac42f28c..7f0e70adc235 100644 --- a/databases/libmemcached/Makefile +++ b/databases/libmemcached/Makefile @@ -7,7 +7,7 @@ PORTNAME= libmemcached PORTVERSION= 0.23 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases MASTER_SITES= http://download.tangent.org/ diff --git a/databases/libmemcached/files/patch-libmemcached__memcached_io.c b/databases/libmemcached/files/patch-libmemcached__memcached_io.c new file mode 100644 index 000000000000..328abfc5f9a2 --- /dev/null +++ b/databases/libmemcached/files/patch-libmemcached__memcached_io.c @@ -0,0 +1,12 @@ +--- libmemcached/memcached_io.c.orig 2008-11-17 01:19:40.000000000 -0800 ++++ libmemcached/memcached_io.c 2008-11-17 01:20:19.000000000 -0800 +@@ -135,6 +135,9 @@ + + difference= (length > ptr->read_buffer_length) ? ptr->read_buffer_length : length; + ++ if (strlen (ptr->read_ptr) == 0) ++ break; ++ + memcpy(buffer_ptr, ptr->read_ptr, difference); + length -= difference; + ptr->read_ptr+= difference; |