# HG changeset patch # User rathann # Date 1380839978 0 # Node ID 10c91a9d6a2e59ee2aa48620362d4380bfb9ff32 # Parent c53e528905ecef837b7f5da84a13690ee333c763 Fix integer overflow in dvdnav_convert_time(). Currently the calculation will use int and thus overflow for anything larger or equal to 20 hours. Patch by Reimar Dffinger %Reimar^Doeffinger&gmx*de! diff -r c53e528905ec -r 10c91a9d6a2e dvdnav.c --- a/dvdnav.c Thu Oct 03 22:30:48 2013 +0000 +++ b/dvdnav.c Thu Oct 03 22:39:38 2013 +0000 @@ -203,7 +203,7 @@ int64_t result; int64_t frames; - result = (time->hour >> 4 ) * 10 * 60 * 60 * 90000; + result = (time->hour >> 4 ) * 10 * 60 * 60 * 90000ull; result += (time->hour & 0x0f) * 60 * 60 * 90000; result += (time->minute >> 4 ) * 10 * 60 * 90000; result += (time->minute & 0x0f) * 60 * 90000;