shithub: libvpx

Download patch

ref: 43df64a9ac32491a25772ac9c678f45b2b7004d2
parent: f7364c05748b70a1e0fd57849665a9d9f0990803
author: James Zern <jzern@google.com>
date: Fri May 7 15:35:25 EDT 2021

img_alloc_helper: make align var unsigned

quiets an integer sanitizer warning:
vpx/src/vpx_image.c:101:25: runtime error: implicit conversion from
type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed
the value to 4294967294 (32-bit, unsigned)

Change-Id: Ifeac31cc80811081c1ba10aadaa94dc36cd46efa

--- a/vpx/src/vpx_image.c
+++ b/vpx/src/vpx_image.c
@@ -22,7 +22,7 @@
                                      unsigned char *img_data) {
   unsigned int h, w, s, xcs, ycs, bps;
   unsigned int stride_in_bytes;
-  int align;
+  unsigned int align;
 
   if (img != NULL) memset(img, 0, sizeof(vpx_image_t));