Mailinglist Archive: opensuse-bugs (4203 mails)

< Previous Next >
[Bug 739069] zypper segfaults with some proxy values

https://bugzilla.novell.com/show_bug.cgi?id=739069

https://bugzilla.novell.com/show_bug.cgi?id=739069#c8


Michael Andres <ma@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 - None |P3 - Medium
AssignedTo|zypp-maintainers@xxxxxxxxxx |dimstar@xxxxxxxxxxxx
|o.novell.com |

--- Comment #8 from Michael Andres <ma@xxxxxxxx> 2012-01-31 19:10:18 CET ---
Dominique, would you mind having a look at this?


Seems to be a generic libproxy issue (not limited to the sysconfig module):

$ export HTTP_PROXY="http://proxy.suse.de:3128";
$ export NO_PROXY=" 1.2.3.4/5" # !!leading WS
$ _PX_DEBUG=1 proxy http://www.suse.de
Using config: 23envvar_config_extension
Using ignore: 1.2.3.4/5
Segmentation fault


1) stripping whitepace when splitting at the ',' would be nice. I saw several
people running into this issue.


2) After a quick look at libproxy-0.4.7/modules/ignore_ip.cpp

(- I wonder which form of delete is right: 'delete' or 'delete[]', both cannot
be.)


- With the leading ' ' in ignore

137: ign_ip = sockaddr_from_string(ignore.substr(0, ignore.find('/')));

returns NULL and it crashes in

151: net_ip = sockaddr_from_cidr(ign_ip->sa_family, cidr);

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >