From 67273ef32d5d5a0f8a0fc038948b8348c4387b5c Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 7 Dec 2017 15:25:28 -0800 Subject: [PATCH] op_fetch_and_process_page: Fix int64 overflow Check for overflow with a negative diff. Signed-off-by: Timothy B. Terriberry --- src/opusfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/opusfile.c b/src/opusfile.c index 140503e..8b000a2 100644 --- a/src/opusfile.c +++ b/src/opusfile.c @@ -2078,7 +2078,11 @@ static int op_fetch_and_process_page(OggOpusFile *_of, &&OP_LIKELY(diff0){ /*If we trimmed the entire packet, stop (the spec says encoders -- 2.1.4