mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
stb_image_write.h: applied mainstream PR/1337 patch
fixes potential invalid memory access https://github.com/nothings/stb/pull/1337
This commit is contained in:
parent
520397d93e
commit
c1c9f3b7fe
4 changed files with 7 additions and 4 deletions
|
@ -139,6 +139,7 @@ QuakeSpasm 0.94.0 has initial support for playing the 2021 re-release content: C
|
|||
<sect1> Changes in 0.94.6<p>
|
||||
<itemize>
|
||||
<item> Server protocol size check fixes for sounds and particles.
|
||||
<item> An invalid memory access fix in the jpg screenshot writer.
|
||||
<item> Backported a few fixes to the bundled SDL2-2.0.22 version.
|
||||
<item> Minor build fix for C++ compilers.
|
||||
</itemize>
|
||||
|
|
|
@ -381,7 +381,7 @@ static int stbiw__jpg_processDU(stbi__write_context *s, int *bitBuf, int *bitCnt
|
|||
int startpos = i;
|
||||
int nrzeroes;
|
||||
unsigned short bits[2];
|
||||
for (; DU[i]==0 && i<=end0pos; ++i) {
|
||||
for (; i<=end0pos && DU[i]==0; ++i) {
|
||||
}
|
||||
nrzeroes = i-startpos;
|
||||
if ( nrzeroes >= 16 ) {
|
||||
|
|
|
@ -18,14 +18,13 @@
|
|||
|
||||
<P>
|
||||
<H2><A NAME="toc3">3.</A> <A HREF="Quakespasm.html#s3">Hints </A></H2>
|
||||
|
||||
<UL>
|
||||
<LI><A NAME="toc3.1">3.1</A> <A HREF="Quakespasm.html#ss3.1">Music Playback</A>
|
||||
<LI><A NAME="toc3.2">3.2</A> <A HREF="Quakespasm.html#ss3.2">Controller Support</A>
|
||||
</UL>
|
||||
|
||||
<P>
|
||||
<H2><A NAME="toc4">4.</A> <A HREF="Quakespasm.html#s4">Compiling and Installation</A></H2>
|
||||
|
||||
<UL>
|
||||
<LI><A NAME="toc4.1">4.1</A> <A HREF="Quakespasm.html#ss4.1">Linux/Unix </A>
|
||||
<LI><A NAME="toc4.2">4.2</A> <A HREF="Quakespasm.html#ss4.2">Windows </A>
|
||||
|
@ -33,8 +32,8 @@
|
|||
<LI><A NAME="toc4.4">4.4</A> <A HREF="Quakespasm.html#ss4.4">Quake '2021 re-release' </A>
|
||||
</UL>
|
||||
<P>
|
||||
<H2><A NAME="toc5">5.</A> <A HREF="Quakespasm.html#s5">Changes</A></H2>
|
||||
|
||||
<H2><A NAME="toc5">5.</A> <A HREF="Quakespasm.html#s5">Changes</A></H2>
|
||||
<UL>
|
||||
<LI><A NAME="toc5.1">5.1</A> <A HREF="Quakespasm.html#ss5.1">Changes in 0.94.6</A>
|
||||
<LI><A NAME="toc5.2">5.2</A> <A HREF="Quakespasm.html#ss5.2">Changes in 0.94.5</A>
|
||||
|
@ -219,6 +218,7 @@ Compile time options include
|
|||
<P>
|
||||
<UL>
|
||||
<LI> Server protocol size check fixes for sounds and particles.</LI>
|
||||
<LI> An invalid memory access fix in the jpg screenshot writer.</LI>
|
||||
<LI> Backported a few fixes to the bundled SDL2-2.0.22 version.</LI>
|
||||
<LI> Minor build fix for C++ compilers.</LI>
|
||||
</UL>
|
||||
|
|
|
@ -269,6 +269,8 @@
|
|||
|
||||
o Server protocol size check fixes for sounds and particles.
|
||||
|
||||
o An invalid memory access fix in the jpg screenshot writer.
|
||||
|
||||
o Backported a few fixes to the bundled SDL2-2.0.22 version.
|
||||
|
||||
o Minor build fix for C++ compilers.
|
||||
|
|
Loading…
Reference in a new issue