You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PAC Files with myIpAddress() used seem to cause a reference error #1
What steps will reproduce the problem? 1. Use included myip.dat as input for the pacparser test sample
2. The dat file as all lines commented out apart from the one with myIpAddress() What is the expected output? What do you see instead? Expected output - a valid proxy as returned by the file.
Returned output -
JSERROR: c:\myip.dat:11:
ReferenceError: myIpAddress is not defined What version of the product are you using? On what operating system? pacparser 1.0.3, Windows 2003 Server, Visual Studio 2003. Please provide any additional information below. I have tried almost all the different types of pac files that can be found on the internet. This
seems to be the only function that gives a problem.
I am not sure how prevelant usage of myIpAddress() is, but would be a nice addition to the
library.
Activity
manugarg commentedon Sep 26, 2014
From manugarg on April 14, 2008 07:11:54
This looks like a Windows specific error as you pac file works perfectly fine on Linux:
manugarg
@hobbiton:~/Desktop$ python -c 'import pacparser; printpacparser.just_find_proxy("myip.dat", "http://www.google.com")'
DIRECT
I don't have access to a Windows system right now. I'll take a look at it soon.
manugarg commentedon Sep 26, 2014
From manugarg on April 14, 2008 07:40:55
(No comment was entered for this change.)
Status: Accepted
manugarg commentedon Sep 26, 2014
From manugarg on April 17, 2008 03:13:50
This issue has been fixed in the latest version in repository. For changes details: https://code.google.com/p/pacparser/source/detail?r=62
Status: Started
Owner: manugarg
manugarg commentedon Sep 26, 2014
From manugarg on April 18, 2008 12:39:12
This issue has been fixed in the new release of pacparser: 1.0.4. Please look at the
changelog for more details about the release.
Thanks nbharatvarma for reporting this issue :)
Status: Fixed
fix: use calloc in read_file_into_str to avoid tainted index write (#267