pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47860: vtund SIGSEGV on amd64



>Number:         47860
>Category:       pkg
>Synopsis:       vtund SIGSEGV on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 27 07:40:00 +0000 2013
>Originator:     Frank Kardel
>Release:        NetBSD 6.99.20
>Organization:
        
>Environment:
System: NetBSD gateway.kardel.name 6.99.20 NetBSD 6.99.20 (GATEWAY) #3: Sat May 
25 15:10:16 CEST 2013 
kardel%pip.kardel.name@localhost:/usr/src/sys/arch/amd64/compile/GATEWAY amd64
Architecture: x86_64
Machine: amd64
>Description:
        vtund (vtun-3.0.2nb1) trips over a SIGSEGV when doing lzo operations on 
amd64.
        The SIGSEGV is cause by an inappropriate type for the length argument.
>How-To-Repeat:
        attempt to set up a vtund tummel with LZO compression on amd64.
        SIGSEGV happen after the tunnel is set up.
>Fix:
Additional patch (patch-lfd__lzo.c) for vtun-3.0.2nb1:

$NetBSD$

--- lfd_lzo.c.orig      2008-01-07 22:35:35.000000000 +0000
+++ lfd_lzo.c
@@ -103,7 +103,7 @@ int free_lzo()
  */  
 int comp_lzo(int len, char *in, char **out)
 { 
-     unsigned int zlen = 0;    
+     lzo_uint zlen = 0;    
      int err;
      
      if( (err=lzo1x_compress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){
@@ -117,7 +117,7 @@ int comp_lzo(int len, char *in, char **o
 
 int decomp_lzo(int len, char *in, char **out)
 {
-     unsigned int zlen = 0;
+     lzo_uint zlen = 0;
      int err;
 
      if( (err=lzo1x_decompress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){




Home | Main Index | Thread Index | Old Index