Opened 11 years ago

Last modified 9 years ago

#1418 new defect

libmpdemux/demux_ty_osd.c Overlapping data buffer line, multiple errors

Reported by: dvice_null@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

"If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined." http://www.opengroup.org/onlinepubs/000095399/functions/printf.html

E.g. on line 709 you have:
sprintf ( line, "%sGENRE:", line );

Here is a list of similar errors in that file:
[libmpdemux/demux_ty_osd.c:709]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:713]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:722]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:726]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:728]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:730]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:732]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:809]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:812]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:813]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:816]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:826]: (error) Overlapping data buffer line
[libmpdemux/demux_ty_osd.c:827]: (error) Overlapping data buffer line

Change History (1)

comment:1 Changed 9 years ago by compn

  • Owner changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.