-
- Downloads
Check for IO stream failures in various format's truncate/seek operations
For the formats that support seek and/or truncate operations, many of the C library calls used to determine or set the current position indicator in the file stream were not being checked. In some situations, if an error occurred, a negative value would be returned from the library call. This could then be interpreted inappropriately as positional data. This patch checks the return values from these library calls before using them in subsequent operations. (issue ASTERISK-19655) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/1863/ ........ Merged revisions 362151 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 362152 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- formats/format_g719.c 24 additions, 4 deletionsformats/format_g719.c
- formats/format_g723.c 12 additions, 3 deletionsformats/format_g723.c
- formats/format_g729.c 12 additions, 3 deletionsformats/format_g729.c
- formats/format_gsm.c 43 additions, 12 deletionsformats/format_gsm.c
- formats/format_h263.c 12 additions, 3 deletionsformats/format_h263.c
- formats/format_h264.c 12 additions, 3 deletionsformats/format_h264.c
- formats/format_ilbc.c 12 additions, 3 deletionsformats/format_ilbc.c
- formats/format_pcm.c 55 additions, 10 deletionsformats/format_pcm.c
- formats/format_siren14.c 25 additions, 4 deletionsformats/format_siren14.c
- formats/format_siren7.c 25 additions, 4 deletionsformats/format_siren7.c
- formats/format_sln.c 30 additions, 6 deletionsformats/format_sln.c
- formats/format_vox.c 44 additions, 22 deletionsformats/format_vox.c
- formats/format_wav.c 33 additions, 6 deletionsformats/format_wav.c
- formats/format_wav_gsm.c 31 additions, 6 deletionsformats/format_wav_gsm.c
Loading
Please register or sign in to comment