• Filip Roséen's avatar
    demux/xiph_metadata: prevent integer overflow (#17593) · f931a00f
    Filip Roséen authored
    The previous implementation assumed that a 32-bit integer would fit
    in an `int`, something which is not guaranteed and might cause an
    integer overflow.
    These changes changes the declared type of the relevant variables, by
    also making a slight amount of clean-up on the affected paths, such
      - merging declaration and initialization
      - fixing redundant if-conditions
    fixes #17593
    Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
xiph_metadata.h 2.76 KB