lavf/mov.c: Avoid OOB in mov_read_udta_string()

Core of patch is from paul@paulmehta.com
Reference https://crbug.com/643952 (udta_string portion)

Signed-off-by: Matt Wolenetz <wolenetz@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9bbdf5d921ef57e1698f64981e4ea04db7c56fb5)

This is upstream's slightly updated version of the udta_string portion
of the previous downstream patch
8622f9398e7c89a664c4c2ceff9d35b89ff17bb5

BUG=643952

Change-Id: I27b9bded293a9220eb8d5cc86e43d99036846f9d
Reviewed-on: https://chromium-review.googlesource.com/441110
Reviewed-by: Fredrik Hubinette <hubbe@chromium.org>
2 files changed
tree: d9d99bbb4b8b2c6c24b6fcd7cb12139afed8fb48
  1. .gitattributes
  2. .gitignore
  3. .travis.yml
  4. BUILD.gn
  5. CONTRIBUTING.md
  6. COPYING.GPLv2
  7. COPYING.GPLv3
  8. COPYING.LGPLv2.1
  9. COPYING.LGPLv3
  10. CREDITS
  11. CREDITS.chromium
  12. Changelog
  13. INSTALL.md
  14. LICENSE.md
  15. MAINTAINERS
  16. Makefile
  17. OWNERS
  18. PRESUBMIT.py
  19. README.chromium
  20. README.md
  21. RELEASE
  22. arch.mak
  23. chromium/
  24. cmdutils.c
  25. cmdutils.h
  26. cmdutils_common_opts.h
  27. cmdutils_opencl.c
  28. codereview.settings
  29. common.mak
  30. compat/
  31. configure
  32. doc/
  33. ffmpeg.c
  34. ffmpeg.h
  35. ffmpeg_cuvid.c
  36. ffmpeg_dxva2.c
  37. ffmpeg_filter.c
  38. ffmpeg_generated.gni
  39. ffmpeg_opt.c
  40. ffmpeg_options.gni
  41. ffmpeg_qsv.c
  42. ffmpeg_vaapi.c
  43. ffmpeg_vdpau.c
  44. ffmpeg_videotoolbox.c
  45. ffmpegsumo.ver
  46. ffplay.c
  47. ffprobe.c
  48. ffserver.c
  49. ffserver_config.c
  50. ffserver_config.h
  51. libavcodec/
  52. libavdevice/
  53. libavfilter/
  54. libavformat/
  55. libavresample/
  56. libavutil/
  57. libpostproc/
  58. library.mak
  59. libswresample/
  60. libswscale/
  61. presets/
  62. tests/
  63. tools/
  64. version.sh
  65. 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 analysis tool to inspect multimedia content.
  • ffserver is a multimedia streaming server for live broadcasts.
  • 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

Coding examples are available in the doc/examples directory.

License

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

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.