parent
ef9867791b
commit
2adbc50838
@ -1 +1 @@
|
|||||||
SOURCES/stb-beebb24b945efdea3b9bba23affb8eb3ba8982e7.tar.gz
|
SOURCES/stb-ae721c50eaf761660b4f90cc590453cdb0c2acd0.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
d0196e6258e2a58d18e06f1482743c9ddb5d3cad SOURCES/stb-beebb24b945efdea3b9bba23affb8eb3ba8982e7.tar.gz
|
18ae1a0bda4c97a38795672537b1e585b0c18aa4 SOURCES/stb-ae721c50eaf761660b4f90cc590453cdb0c2acd0.tar.gz
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
From 6e715778416b229799f85b49fa3ffc0400428f89 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Jeff Roberts (LA)" <jeffr@radgametools.com>
|
|
||||||
Date: Thu, 19 Oct 2023 17:42:58 -0700
|
|
||||||
Subject: [PATCH] Fixed asan error on tiny input images
|
|
||||||
|
|
||||||
---
|
|
||||||
stb_image_resize2.h | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/stb_image_resize2.h b/stb_image_resize2.h
|
|
||||||
index e0c428246..1d7bed5bd 100644
|
|
||||||
--- a/stb_image_resize2.h
|
|
||||||
+++ b/stb_image_resize2.h
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-/* stb_image_resize2 - v2.01 - public domain image resizing
|
|
||||||
+/* stb_image_resize2 - v2.02 - public domain image resizing
|
|
||||||
|
|
||||||
by Jeff Roberts (v2) and Jorge L Rodriguez
|
|
||||||
http://github.com/nothings/stb
|
|
||||||
@@ -3697,7 +3697,7 @@ static int stbir__pack_coefficients( int num_contributors, stbir__contributors*
|
|
||||||
float * coeffs = coefficents + widest * ( num_contributors - 1 );
|
|
||||||
|
|
||||||
// go until no chance of clipping (this is usually less than 8 lops)
|
|
||||||
- while ( ( ( contribs->n0 + widest*2 ) >= row_width ) && ( contribs >= contributors ) )
|
|
||||||
+ while ( ( contribs >= contributors ) && ( ( contribs->n0 + widest*2 ) >= row_width ) )
|
|
||||||
{
|
|
||||||
// might we clip??
|
|
||||||
if ( ( contribs->n0 + widest ) > row_width )
|
|
Loading…
Reference in new issue