[FFmpeg-trac] #7527(avformat:new): segfault in libavformat/hlsenc.c hls_delete_old_segments()

FFmpeg trac at avcodec.org
Fri Nov 2 13:46:52 EET 2018


#7527: segfault in libavformat/hlsenc.c hls_delete_old_segments()
------------------------------------+------------------------------------
             Reporter:  caspy       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  hls crash   |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by stevenliu):

 Replying to [comment:6 caspy]:
 > Replying to [comment:5 stevenliu]:
 > > https://patchwork.ffmpeg.org/patch/10889/
 > >
 > > This is better than the first patch.
 > this patch fixes the issue too.
 >
 >
 > please, take a look few lines bellow, there is one more unconditional
 access to 'dirname' in subtitles block:
 > {{{
 > if ((segment->sub_filename[0] != '\0')) {
 > ...
 > av_strlcpy(sub_path, dirname, sub_path_size);
 > av_strlcat(sub_path, segment->sub_filename, sub_path_size);
 > }}}

 yes you are right, let me think about how to fix it.
 > but i do not use subtitles and know nothing about them. so, i will not
 be able to test this part.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7527#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list