[MPlayer-dev-eng] [PATCH] url opening fix preventing possible segfault

adland adland123 at yahoo.com
Wed Apr 28 04:30:15 CEST 2004


file: libmpdemux/open.c
intention:
this is a patch which returns NULL if we were
 supposed to open a URL and this url was invalid -
 new_url returned null.

(could happen if invalid data was inside a plaintext
 playlist and we used command below
./mplayer -playlist http://host/playlist
)

segfault may then occur in current code as it then
tries to open invalid url as a file.

please consider enclosed patch which instead returns 
in the invalid URL case.

Thanks


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_openurl
Type: text/x-diff
Size: 550 bytes
Desc: patch_openurl
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040427/d50af260/attachment.diff>


More information about the MPlayer-dev-eng mailing list