Package: libosip2-3
Version: 2.2.0-1
Severity: normal
Tags: patch

osip_body_clone doesn't NULL terminate the copied body.

/Mikael Magnusson

Patch from cvs:
diff -u -r1.10 -r1.11
--- osip_body.c 28 Dec 2004 17:40:22 -0000      1.10
+++ osip_body.c 5 Apr 2005 16:36:44 -0000       1.11
@@ -92,9 +92,10 @@
     return -1;


-  copy->body = (char*)osip_malloc(body->length+1);
+  copy->body = (char*)osip_malloc(body->length+2);
   copy->length = body->length;
   memcpy(copy->body,body->body,body->length);
+  copy->body[body->length]='\0';

   if (body->content_type != NULL)
     {

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (950, 'testing'), (900, 'testing'), (150, 'unstable'), (100, 
'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-k7
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)

Versions of packages libosip2-3 depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to