gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] [1.1pre9] double free?


From: Yasushi Saito - at home
Subject: Re: [Gnu-arch-users] [1.1pre9] double free?
Date: Wed, 26 Nov 2003 09:15:34 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2

I noticed this problem as well. The problem, I guess, is that when environment variable http_proxy is set, then this function frees a wrong pointer on exit. I'll attach a fix. I also submitted a bug report.

yaz



*** pfs-dav.c~  Tue Nov 25 14:16:58 2003
--- pfs-dav.c   Wed Nov 26 01:01:50 2003
***************
*** 225,232 ****
  
    if (proxy && !str_cmp_prefix ("http://";, proxy))
      {
!       proxy += 7;
!       proxy_port = str_chr_index (proxy, ':');
  
        if (proxy_port)
          {
--- 225,232 ----
  
    if (proxy && !str_cmp_prefix ("http://";, proxy))
      {
!       t_uchar *proxy_name = proxy + 7;
!       proxy_port = str_chr_index (proxy_name, ':');
  
        if (proxy_port)
          {
***************
*** 236,242 ****
                safe_printfmt (2, "ill formated http proxy port number from 
$http_proxy\n");
                exit (2);
              }
!           ne_session_proxy (answer->sess, proxy, proxy_port_num);
          }
      }
  
--- 236,242 ----
                safe_printfmt (2, "ill formated http proxy port number from 
$http_proxy\n");
                exit (2);
              }
!           ne_session_proxy (answer->sess, proxy_name, proxy_port_num);
          }
      }
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]