]> git.tuebingen.mpg.de Git - paraslash.git/commit
play: Fix some integer overflows().
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 19 Apr 2024 18:35:02 +0000 (20:35 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 18 May 2024 20:28:32 +0000 (22:28 +0200)
commit15d09694e9dbb4766621061786c5ea225c54c961
treef6035ec239d4b264099f4292b2cb62c64defcd00
parent068b2514407313f3a9291acdd265d94b26359d55
play: Fix some integer overflows().

If one factor of a product is a chunk number, we need to be careful
with respect to integer overflows. This patch adds casts which force
64 bit arithmetics to avoid that.

The overflows were observed while navigating a ~4 hour mp3 file.
play.c