avcodec/vorbisdec: Fix off by 1 error in ptns_to_read

Fixes read of uninitialized memory
Fixes: asan_heap-uaf_18dac2b_9_asan_heap-uaf_22eb375_208_beta3_test_small.ogg

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

BUG=419060
Change-Id: Iaf948243bf8767201f73e0c7140eaa65d8833911
1 file changed
tree: 49fd51e09887add1d33aee50ca11d761a59d279a
  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.