Fix read-after-free in matroska_read_seek().

In matroska_read_seek(), |tracks| is assigned at the begining of the function.
However, functions like matroska_parse_cues() could reallocate the tracks so
that |tracks| can get invalidated.

This CL assigns |tracks| only before we use it so that it won't be invalidated.

BUG=427266
TEST=Test case in associated bug passes now.

Change-Id: I9c7065fe8f4311ca846076281df2282d190ed344
1 file changed
tree: 1c385d0c24893166d83b50dfde1b86c5accad0cb
  1. chromium/
  2. compat/
  3. doc/
  4. libavcodec/
  5. libavdevice/
  6. libavfilter/
  7. libavformat/
  8. libavresample/
  9. libavutil/
  10. libpostproc/
  11. libswresample/
  12. libswscale/
  13. presets/
  14. tests/
  15. tools/
  16. .gitignore
  17. arch.mak
  18. BUILD.gn
  19. Changelog
  20. cmdutils.c
  21. cmdutils.h
  22. cmdutils_common_opts.h
  23. cmdutils_opencl.c
  24. codereview.settings
  25. common.mak
  26. configure
  27. COPYING.GPLv2
  28. COPYING.GPLv3
  29. COPYING.LGPLv2.1
  30. COPYING.LGPLv3
  31. CREDITS
  32. ffmpeg.c
  33. ffmpeg.gyp
  34. ffmpeg.h
  35. ffmpeg_dxva2.c
  36. ffmpeg_filter.c
  37. ffmpeg_generated.gni
  38. ffmpeg_generated.gypi
  39. ffmpeg_opt.c
  40. ffmpeg_options.gni
  41. ffmpeg_vda.c
  42. ffmpeg_vdpau.c
  43. ffplay.c
  44. ffprobe.c
  45. ffserver.c
  46. INSTALL.md
  47. library.mak
  48. LICENSE.md
  49. MAINTAINERS
  50. Makefile
  51. OWNERS
  52. PRESUBMIT.py
  53. README.chromium
  54. README.md
  55. RELEASE
  56. RELEASE_NOTES
  57. version.sh
  58. xcode_hack.c
README.md

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analisys tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Conding examples are available in the doc/example directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.