From caa4e6745a76a23bb80127cf54c0d65096ae684c Mon Sep 17 00:00:00 2001
From: Kevin Backhouse <kev@semmle.com>
Date: Tue, 30 Apr 2019 09:26:18 +0100
Subject: [PATCH] Avoid negative integer overflow when `filesize <
 io_->tell()`.

This fixes #791.
---
 src/webpimage.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/webpimage.cpp b/src/webpimage.cpp
index 9d7272c..6fe2ddb 100644
--- a/src/webpimage.cpp
+++ b/src/webpimage.cpp
@@ -45,6 +45,7 @@
 #include "tiffimage_int.hpp"
 #include "convert.hpp"
 #include "enforce.hpp"
+#include "safe_op.hpp"
 
 #include <cmath>
 #include <iomanip>
-- 
2.23.0

