Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in / Register
F
ffmpeg
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • submodule
  • ffmpeg
  • Repository

Switch branch/tag
  • ffmpeg
  • libavutil
  • encryption_info.c
Find file
BlameHistoryPermalink
  • Andreas Rheinhardt's avatar
    avutil/encryption_info: Don't pass NULL to memcpy · e6018fda
    Andreas Rheinhardt authored Sep 18, 2019
    The pointer arguments to memcpy (and several other functions of the
    C standard library) are not allowed to be NULL, not even when the number
    of bytes to copy is zero. An AVEncryptionInitInfo's data pointer is
    explicitly allowed to be NULL and yet av_encryption_init_info_add_side_data
    unconditionally used it as a source pointer to copy from. This commit changes
    this so that copying is only done if the number of bytes to copy is > 0.
    
    Fixes ticket #8141 as well as a part of ticket #8150.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Reviewed-by: 's avatarTomas Härdin <tjoppen@acc.umu.se>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    e6018fda
encryption_info.c 10.8 KB
EditWeb IDE

Replace encryption_info.c

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.