[MPlayer-dev-eng] Re: [MPlayer-users] subtitle reader crashes on Solaris

Götz Waschk waschk at informatik.uni-rostock.de
Mon Jul 28 13:33:46 CEST 2003


Am Montag, 28. Juli 2003, 01:09:45 Uhr MET, schrieb Alex Beregszaszi:
> > I've found the problem, it's in subreader.c. On Solaris, you cannot
> > pass a null pointer to sprintf, as in this code snippet:
> > sprintf(tmpresult, "%s %s", f_fname_trim, tmp_sub_id);
> > If tmp_sub_id is a null pointer, this causes a segmentation fault on
> > Solaris. On Linux, the string (null) is generated instead. 
> Hopefully fixed it the right way(tm)

Thanks, it's working find now. There could still be some sprintf calls
left that could create the same problem.  
 
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
    Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"



More information about the MPlayer-dev-eng mailing list