1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- fix segfault problem if the length of source is zero

- bump PORTREVISION

Submitted by:	vanilla
This commit is contained in:
Yen-Ming Lee 2008-11-17 09:22:58 +00:00
parent 10f8471df0
commit 579208a091
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222964
2 changed files with 13 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= libmemcached
PORTVERSION= 0.23
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://download.tangent.org/

View File

@ -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;