Skip to content

UBSan error signed integer overflow: 1073741824 * 4 cannot be represented in type 'int' in cmd_overlay_add #18128

@rdevshp

Description

@rdevshp

mpv Information

mpv v0.41.0-744-g304426c39 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
 built on Jun 10 2026 16:29:10
libplacebo version: v7.360.1 (v7.360.1)
FFmpeg version: 7.1.4-0+deb13u1
FFmpeg library versions:
   libavcodec      61.19.101
   libavfilter     10.5.100
   libavformat     61.7.102
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100

Other Information

N/A

Reproduction Steps

Run the repro

Expected Behavior

No UB

Actual Behavior

UB

Log File

log.txt

Sample Files

compile_repro.sh

I carefully read all instruction and confirm that I did the following:

  • I tested and confirmed that the issue exists with the latest release version or newer.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions