Git log: commit d65b38211e8932ff47d21bd5381cbe9b3cabe881
Author: yangfl <yangfl@users.noreply.github.com>
Date: Sun Jan 23 16:48:59 2022 +0800
debian: update to 0.0~git20210910.af1a5bc+ds
commit e56706da14dd636d5f9f5d0e9ebb828768d9df38
Merge: b5ba864 c570e75
Author: yangfl <yangfl@users.noreply.github.com>
Date: Sun Jan 23 16:56:40 2022 +0800
Merge tag 'upstream/0.0_git20210910.af1a5bc+ds'
commit c570e75cb4ed8b9fd357ae6bc4dcf840339fbcab
Author: yangfl <yangfl@users.noreply.github.com>
Date: Sun Jan 23 16:55:45 2022 +0800
Import Upstream version 0.0~git20210910.af1a5bc+ds
commit af1a5bc352164740c1cc1354942b1c6b72eacb8a
Author: Sean Barrett <sean2@nothings.org>
Date: Fri Sep 10 00:48:29 2021 -0700
Update bug_report.md
commit 37e21f17b2269fdc49cb0de83064d3af5f2962f6
Author: Sean Barrett <sean2@nothings.org>
Date: Fri Sep 10 00:47:35 2021 -0700
Update bug_report.md
commit b9e1d86edc4e526e494855bcb46d02f3269d58aa
Author: Sean Barrett <sean2@nothings.org>
Date: Fri Sep 10 00:43:51 2021 -0700
Create config.yml
commit b1826c9894c048e18cce45a289ee1db3fde7f40b
Author: Sean Barrett <sean2@nothings.org>
Date: Fri Sep 10 00:41:32 2021 -0700
Update issue templates
commit c0c982601f40183e74d84a61237e968dca08380e
Author: Sean Barrett <seanb@radgametools.com>
Date: Sat Aug 28 04:52:41 2021 -0700
stb_truetype 1.26: fix rendering glitches
commit ef861421e2bc467e01eafc3d13864d931cf5014d
Author: Sean Barrett <seanb@radgametools.com>
Date: Sat Aug 28 03:20:04 2021 -0700
stb.h: stb_splitpath correctly handles relative paths with explicit drive specifiers
commit 59e7dec3e8bb0a8d4050d03c2dc32cf71ffa87c6
Author: Sean Barrett <seanb@radgametools.com>
Date: Fri Aug 13 13:57:23 2021 -0700
delete file covered by patents
commit 08e89524f693651819c4de2a29685b36301a08b1
Merge: be90195 5ba0baa
Author: Sean Barrett <seanb@radgametools.com>
Date: Fri Aug 13 13:57:07 2021 -0700
Merge branch 'dev' of https://github.com/nothings/stb into dev
commit 5ba0baaa269b3fd681828e0e3b3ac0f1472eaf40
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sun Jul 25 20:24:10 2021 -0700
stb_image: Reject fractional JPEG component subsampling ratios
The component resamplers are not written to support this and I've
never seen it happen in a real (non-crafted) JPEG file so I'm
fine rejecting this as outright corrupt.
Fixes issue #1178.
commit c404b789ca01a00cd244240484f7eccdd639ef06
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 23:47:20 2021 -0700
stb_truetype: fix sample code drawing characters upside-down
commit 1401f2257d1c8b6417b442bdf59e7c185be7f9d9
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 15:58:08 2021 -0700
clean up project file
commit 7c65d5621f00c3304a3d4dcc8c036b37cf8fec9b
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 15:57:39 2021 -0700
fix compiling with NO_HDR NO_LINEAR
commit be901954b254b020b0b99d0e7ff95c2cbdb08df0
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 23:47:20 2021 -0700
stb_truetype: fix sample code drawing characters upside-down
commit 7de8f7999b564d588ef6be12b1a763fdacd5a66e
Merge: 4adb57a 3a11740
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 23:47:13 2021 -0700
Merge branch 'master' into dev
commit 3a1174060a7dd4eb652d4e6854bc4cd98c159200
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 21:27:12 2021 -0700
opengl stb_truetype demo app
commit 4adb57af424cbdd1a27937995a11509cc65e0217
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 15:58:08 2021 -0700
clean up project file
commit cd6b6f70ec2be6ee80e142c6b7388d0d00d41b2f
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 15:57:39 2021 -0700
fix compiling with NO_HDR NO_LINEAR
commit a0a939058c579ddefd4c5671b046f29d12aeae01
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 01:50:47 2021 -0700
update README
commit 5a0bb8b1c1b1ca3f4e2485f4114c1c8ea021b781
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 01:39:27 2021 -0700
update readme
commit c4ef8e1fdcc67d5c60501760e0068b9f83f53ca7
Author: Sean Barrett <seanb@radgametools.com>
Date: Mon Jul 12 01:23:29 2021 -0700
fix version date
commit 7023e273f1513b68b8d4086077c6faca555d50df
Author: Sean Barrett <seanb@radgametools.com>
Date: Sun Jul 11 18:06:46 2021 -0700
fix stb_dxt version
commit 5324597dcb80510f71db05246b3932cb9876b9e4
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sun Jul 11 17:58:19 2021 -0700
README: update stb_dxt version for fix
commit 3cfb892cf3144eb0bd4d85f84695193fb6f007c0
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sun Jul 11 17:56:55 2021 -0700
stb_dxt: Fix bug in table generator
Forgot to put the *100 back, oops.
commit 1ee679ca2ef753a528db5ba6801e1067b40481b8
Author: Sean Barrett <seanb@radgametools.com>
Date: Sun Jul 11 17:07:54 2021 -0700
update version numbers
commit fd7807e92d8ba5740615362b453bab2d9ecbc8a4
Author: Sean Barrett <seanb@radgametools.com>
Date: Sun Jul 11 16:37:34 2021 -0700
stb_c_lexer: allow including stb_c_lexer.h without defining overrides (all tokens are always defined; token values have changed)
commit 0be82e4814eaad3b9af6261ee1355608a0d04b0e
Author: Sean Barrett <seanb@radgametools.com>
Date: Sun Jul 11 16:26:02 2021 -0700
stb_truetype: fix incorrect antialiasing computation in v2 rasterizer, and handle certain cases where math blew up
commit e05ecc05ee556773f67c51fbf8a52b2a63cb91d2
Author: Sean Barrett <seanb@radgametools.com>
Date: Sun Jul 11 15:26:16 2021 -0700
Fix compiling-as-C-pre-C99 issues
commit 38c15ee7cf8dfe0c166ddb74456ac4c8eccd032f
Merge: 818ac26 af4c673
Author: Sean Barrett <sean2@nothings.org>
Date: Sun Jul 11 13:28:24 2021 -0700
Merge pull request #1165 from randy408/dev-fix
Fix CIFuzz integration
commit af4c6731749c0b4a940d0055d254b5fd2f911062
Author: Randy <randy408@protonmail.com>
Date: Sat Jul 10 15:51:11 2021 +0200
change directory for seed corpus downloads
commit a0a8653a7d33a2d43966d46601b20af0bfe00cf6
Author: Randy <randy408@protonmail.com>
Date: Sat Jul 10 15:29:39 2021 +0200
attempt to fix issue with CIFuzz
commit 818ac26785a77cd011403a21eeedc5725abdd591
Author: ocornut <omarcornut@gmail.com>
Date: Fri Jul 9 13:17:06 2021 +0200
stb_rect_pack: making functions cdecl for msvc qsort
commit c8e3d3086dd86e5abeb548e8b4f54ec82d627739
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 9 18:49:15 2021 -0700
stb_truetype: Small tweaks to make PVS Studio happy
No actual bugs as far as I can tell.
Fixes issue #1162.
commit 5bf78b8f231cea48b6d7030aa86f910f6dd37d6b
Author: Sean Barrett <seanb@radgametools.com>
Date: Fri Jul 9 05:37:56 2021 -0700
stb_truetype: fix bad declaration
commit 99e13217cef36ff06fa29153df088d0b83e2d775
Merge: 4bb337d 2b667e4
Author: Sean Barrett <seanb@radgametools.com>
Date: Fri Jul 9 05:37:19 2021 -0700
Merge branch 'dev' of https://github.com/nothings/stb into dev
commit 4bb337ddf0a4122bc1547a17f13f1932e228c1ad
Author: Sean Barrett <seanb@radgametools.com>
Date: Fri Jul 9 05:36:53 2021 -0700
test including stb_c_lexer header independnet of implementation
commit 2b667e4d30e8fd04aebec170763a2c118f635652
Author: Fabian Giesen <rygorous@gmail.com>
Date: Thu Jul 8 00:32:38 2021 -0700
stb_rect_pack: Several minor fixes
1. Always use large rects mode to avoid definition of stbrp_coord
in header file depending on implementation #defines
2. Expose STBRP__MAXVAL to users
3. Fix value of STBRP__MAXVAL for large rect mode (stbrp_coord
is a 32-bit int, so needs to be <=0x7fffffff, 0xffffffff
doesn't work)
4. Add comment at the top about which #define to set to get the
implementation.
Fixes issue #1143, or rather, replaces that pull request.
commit 1e1efbdc75487a6c29d76314eb174a6a346a4d8e
Author: Fabian Giesen <rygorous@gmail.com>
Date: Thu Jul 8 00:24:00 2021 -0700
stb_image_write: Make globals extern "C" in C++
Fixes issue #921
commit d2476c384527020cf145d359e8a2a5689e1c51cd
Author: Fabian Giesen <rygorous@gmail.com>
Date: Thu Jul 8 00:21:08 2021 -0700
stb_sprintf: GCC compilation fix
Fixes issue #1010.
commit 06b6009e3be9985a47829976c3c00711bb51d4f3
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 15:51:56 2021 -0700
stb_sprintf: Fix unused variable warning with STB_SPRINTF_NOFLOAT
Fixes issue #986.
commit 3be65f1c0c5e605bcc3d75a6466328ddb9e68945
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 15:43:47 2021 -0700
stb_sprintf: Small simplification
This was intentional but we might as well just set cs=0
directly here.
Fixes issue #997.
commit 013884b53b3e346c8d497ca65b438857ffefbad9
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 15:38:42 2021 -0700
stb_sprintf: Fix string length calc
Factor out string length computation into helper func, comment
it a bit more, always use a limit to avoid 32b unsigned overflow,
and avoid reading past the bounds of non-0-terminated strings given
with specified precision.
Fixes issue #966.
commit 2af2e692197267092f737db562817231feb3b5be
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 14:59:13 2021 -0700
stb_ds: Fix addn when n=0
In this case, the array pointer may still be 0 even after the
maybegrow.
Fixes issue #1015.
commit b14a80784c689979b75f6e8929a7d7b4b4a86678
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 14:35:46 2021 -0700
stb_image_write: Support writing BMPs with alpha
Fixes issue #1159.
commit 315e979f34a1f8479bfc82481fb60fd22965fd1d
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 04:10:52 2021 -0700
stb_truetype: Add protoype for stbtt_FindSVGDoc
Fixes issue #979.
commit 8af4d40950e38301d3ce8c6cda380aa28ba8c710
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 03:58:30 2021 -0700
stb_c_lexer: Move token enum defn to header portion
Required some tinkering, hope I didn't mess the logic up.
This now requires the config section to be set for the header
file, and different sites that include it should agree on what
the values are. This is kind of iffy but hard to avoid.
Fixes issue #647.
commit afc9c16bfd5be9ce81e0e0e1255b47d38218c773
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 03:43:15 2021 -0700
stb_truetype: Change spelling of fallthrough comment
To pacify GCC warnings at -Wimplicit-fallthrough=4. Why the
all-caps version works and the others don't, I'm not sure; the
GCC manual page lists regular expressions that GCC is checking for
but does not say which regular expression syntax variant it's using,
whether it's looking for a substring match or a full match for
the comment, and what exactly the text being matched against is
for a single-line comment. Sigh.
Fixes issue #507.
commit 46c259ff903a4951f1acf0e129b9648a54eb8b75
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 03:32:04 2021 -0700
stb_sprintf: PUBLICDEC on declarations, as intended
The code was using PUBLICDEF on both declarations and
definitions.
Fixes issue #458.
commit 9fe3b4bb52ff671809d72afa7e5dead88d292cb1
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 03:12:33 2021 -0700
stb_truetype: GPOS handling formatting changes
Was using 4-character spaces and otherwise formatted unlike the
rest of the code, fix this. Also get rid of the outer switch in
GetGlyphGPOSInfoAdvance with just one case; just use an if.
No behavioral changes.
commit 1252a3e6415353bb8f82cc52fc392c4073634eca
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 02:58:28 2021 -0700
stb_truetype: GPOS parsing fixes
Glyphs not assigned a glyph class should default to class 0 as
per the OpenType spec. Also, change the code to treat malformed
data as an error to be handled, not an assert, and change the
way the version checking works.
Fixes the issue mentioned in PR #1035. Also, this part of the
code is indented incorrectly; will fix that in a subsequent
commit.
commit e59050549285deb717d8a2245586c0b8c2a3d38a
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 02:45:41 2021 -0700
stb_truetype: GCC warning fix
GCC warns about a potentially uninitialized variable here. It's
not (or at least I don't see how), but fix it anyway.
commit db6e91b7d867f33eb5e9c5012324e2702a1eeedd
Author: Andrew Kensler <andrew@eastfarthing.com>
Date: Sat Jul 3 23:39:43 2021 -0700
Store uncompressed if compression was worse
If the data was uncompressible and this deflate implementation expanded
by more than the overhead of simply storing it uncompressed, fall back
to deflate's uncompressed storage mode. This bounds the maximum deflated
size at the original size plus an overhead of 6 fixed bytes with another
5 bytes per 32767 byte block.
Fixes issue #948.
commit 14c224c84e51af5b4932f2a410e66a06f20c8cf7
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 01:45:29 2021 -0700
stb_image_resize: Remove ill-advised asserts.
These mostly add very little and have caused problems for people,
nor does it make sense to require this when the underlying
computations are performed in floating-point arithmetic depending
on ratios of user-passed in image dimensions.
Arbitrary absolute epsilons here would just be garbage; we could
try and compute desired relative error bounds based on the
determined scale values, but this still leaves the questions of
what purpose this would even serve, which is unclear.
Leave the filter kernel asserts as comment for documentation
of what the behavior would be with exact math, but don't actually
bother asserting here.
Fixes issue #736.
commit e7f9f92c9d466fac3b42a2b4a3e6849df7bea51c
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 01:33:35 2021 -0700
stb_divide: Update changelog
commit ab69a04d0a222eac2c08e79c3f3236de23e60355
Merge: c38ec91 fc5b791
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 01:30:58 2021 -0700
Merge branch 'dev' of github.com:nothings/stb into dev
commit c38ec91d229cbe56167f8af865c05b3d92db705f
Author: Fabian Giesen <rygorous@gmail.com>
Date: Wed Jul 7 01:27:15 2021 -0700
stb_divide: Fix integer overflow issues
We've established the signs of values before so we can carefully
jiggle the expressions to be guaranteed overflow-free; the tests
for <0 here were meant to check if the value was "still negative",
i.e. if the sum did not underflow below INT_MIN, and we can
rewrite that using algebra to be overflow-free.
We need an extra case in the Euclidean dvision for
INT_MIN / INT_MIN which is a bit annoying but trivial; finally,
for two's complement platforms, note that abs(x) = (x > 0) ? x : -x
does not work (since for x=INT_MIN, -x still gives INT_MIN),
but the equivalent formulation for _negative_ absolute value
(x < 0) ? x : -x is always in range and overflow-free, so
rewrite the relevant expressions using that negative absolute
value instead.
Fixes issue #741.
commit fc5b791228c85cae0a4652254b78e35846504fe1
Author: Sean Barrett <seanb@radgametools.com>
Date: Wed Jul 7 01:21:37 2021 -0700
stb_truetype: fix SDF handling of multiple move_to commands in a row
commit ca0e6d06d8ae055823a5b11fe64a0b05cb6ae3e3
Author: Sean Barrett <seanb@radgametools.com>
Date: Wed Jul 7 00:57:43 2021 -0700
stb_c_lexer: don't define default macro definitions on non-implementation includes
commit 84e7a4ae24fdea454c29ae629abf17d41bc4d697
Author: Sean Barrett <seanb@radgametools.com>
Date: Wed Jul 7 00:43:40 2021 -0700
stb_c_lexer: fix NUL eof test so it compiles
commit 08e4b186504bf5ffd869de886b966a361dd97217
Merge: a32aeef dcb1116
Author: Sean Barrett <seanb@radgametools.com>
Date: Wed Jul 7 00:39:10 2021 -0700
Merge branch 'dev' of https://github.com/nothings/stb into dev
commit a32aeefd6bc270231b0000573699dabc05321c5a
Merge: 95372dc 2d82cd1
Author: Sean Barrett <seanb@radgametools.com>
Date: Wed Jul 7 00:34:43 2021 -0700
Merge branch 'patch-1' of https://github.com/t-mw/stb into dev
commit 95372dc4f881900e51284f85c63312d75aee8f17
Author: Sean Barrett <seanb@radgametools.com>
Date: Wed Jul 7 00:29:19 2021 -0700
stb.h: fix bug in stb_readdir caused by change to stb_strncpy
commit dcb1116f1351bc8edad059d9ca432e8f322ba922
Author: Randy <randy408@protonmail.com>
Date: Thu Nov 26 02:18:13 2020 +0100
ossfuzz: improve code coverage
fix .gif pattern matching
add netpbm test images derived from the public domain pngsuite
added more image types (downloaded in Dockerfile)
commit b77192742d5ae5746131f379da8157443128be6d
Author: Randy <randy408@protonmail.com>
Date: Wed Nov 25 14:04:52 2020 +0100
oss-fuzz: integrate with CIFuzz
commit 9f985460226d7939d7fd71f81b5e38dda4b06651
Author: Devendranath Thadi <devendranath.thadi3@gmail.com>
Date: Wed Nov 25 06:48:14 2020 +0000
Travis-ci: added support for ppc64le
commit 6ca560c9afba1bb850e07683988583a045c8dc78
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 21:40:31 2021 -0700
stb_image: Update documentation for de-iPhone flag
It's default off, not default on.
Fixes issue #651.
commit 15d2dc5c5159e0e48b06287d123961256ab67c27
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 21:25:41 2021 -0700
stb_tilemap_editor: Update contributors
commit 77eedd4fcfb6d25eb8fd2f306384fdaf733103ad
Author: Werner Stoop <wstoop@gmail.com>
Date: Fri Apr 9 20:03:01 2021 +0200
stb_tilemap_editor: Several fixes.
Re-added calls to `stbte__hittest()`, fixed some compiler errors.
Also fixed some GCC warnings about unused variables when
STBTE__COLORPICKER and STBTE_ALLOW_LINK is not defined.
commit 21bfcbbc3dfb3ed8a9c8f86d68de9dbb93eb5768
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 21:07:34 2021 -0700
stb_tilemap_editor: Update version, credits
commit b18c989dc2c7c2d3852b819271a848d8159dc749
Author: Rob Loach <robloach@gmail.com>
Date: Fri Apr 16 04:21:42 2021 -0400
stb_tilemap_editor: Fix variable usage
commit 7e10880f53572ad2c1a949a9311f813a41bedbdd
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:47:30 2021 -0700
stb_image: Update credits
commit 2c8cd33e2eb331f94c27c0cbe79694216f434339
Author: Vladimír Vondruš <mosra@centrum.cz>
Date: Mon Apr 6 18:06:34 2020 +0200
stb_image: make unpremultiply and de-iPhone flags thread_local.
Follows the change done for vertical flipping in
eb48fbdcede98f93dab3a5e42ce5b0072b739cf1 for these two options as well.
commit b691fc430594cbe3a99b32e53bf8a20decc89d97
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:39:35 2021 -0700
stb_truetype: Remove dead assignments
Confirmed from the OpenType spec that there's nothing missing
here. (These were just annotations listing the total sizes of
the tables, but this is not used for anything here.)
Fixes issue #704.
commit 44f046af0c6f1d79ef6f189d69ac670bbfba4ac4
Author: ocornut <omarcornut@gmail.com>
Date: Mon Jul 5 17:22:24 2021 +0200
stb_textedit: Fix paste failure handling breaking undo stack
Could lead to freezes.
Fixes issue #734.
commit eb677dda6e6a495c903cd5428ec7ebc840674f49
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:25:16 2021 -0700
stb_textedit: Update credit, version history
commit 85bc8060be3f517477f2e785c31851c6214376f2
Author: Louis Schnellbach <xipiryon@gmail.com>
Date: Thu Nov 19 15:59:51 2020 +0100
Support for Page Up/Down
(changes from ocornut/imgui/commit/ec945f44)
commit 76a0a00874a5075bf590d1fd2f40de1836aea567
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:19:51 2021 -0700
stb.h: _MSC_VER in readdir_raw -> _WIN32
For MinGW.
commit e817b4a998abdd7dfdacab5d76384b310f54f4f0
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:17:12 2021 -0700
stb_ds: Fix typos in docs.
commit ba5cc43d33fd06875c254d46a301ec188aa441a7
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:10:22 2021 -0700
stb_truetype: Fix stbtt__solve_cubic comment
commit a5d989c358a47e1f0245e11040904a9d7fbf9786
Author: Fabian Giesen <rygorous@gmail.com>
Date: Tue Jul 6 20:07:12 2021 -0700
stb_truetype: Tabs->spaces
Whitespace only.
commit 1e82fd4a4ebe9ccc70dd86776a47a24ff02769fd
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sun Jul 4 22:17:57 2021 -0700
stb_image: BMP v4/v5 header parsing fixes
As per MS's own docs, should ignore the r/g/b bitmasks in the
header unless BI_BITFIELDS compression is selected. Factor out
setting the default masks since that now exists in two branches.
Add some more checking for unsupported compression formats and
illegal bpp/compression combinations while I'm at it.
Fixes issue #783.
commit 5c0cc31fb027993fabf9e9b448a31488e5dc47e4
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sat Jul 3 01:00:46 2021 -0700
stb_image: Update credits
commit 69a7dd32a81fc290822c24a19efc4d36d7f2607c
Author: Eugene Golushkov <e.golushkov@nospam-gmail.com>
Date: Thu Oct 1 03:20:30 2020 +0300
stb_image: fix building by MSVC for Windows 10 on ARM
commit a0231a9e949e4407de63999f860a29f5d87e5181
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sat Jul 3 00:46:04 2021 -0700
stb_image: Key Win32 UTF-8 support off _WIN32 not _MSC_VER
So that it also works on MinGW.
Fixes issue #729.
commit e3a63f37934514ad08174f2194c3bf0e6b6e4720
Author: Fabian Giesen <rygorous@gmail.com>
Date: Sat Jul 3 00:38:30 2021 -0700
stb_image: Fix wrong buffer sizes passed to MultiByteToWideChar
Fixes issue #772.
commit 3870fb6a937d39c640ee5e8a12e36ac3efb94722
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 23:06:44 2021 -0700
stb_image: Reorder format test sequence
Put the formats that start with a clear magic number first,
the dodgy ones that don't have much of a distinctive header
should be tested for later after we've ruled out the clearer
ones.
Fixes issue #787, hopefully. (Never got a clean repro.)
commit e795306bbc866c51323e0172d3079c2abf5a7d24
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 22:52:15 2021 -0700
stb_image: Document image size limits
Both the buffer size limits and the image dimension limits.
Fixes issue #672.
commit ba739e54edea02c807cf6bd93e1b19bad5bfa726
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 22:31:41 2021 -0700
readme: Add "how to use these libs" section
Try to be a bit more explicit still.
Fixes issue #903, or so I hope.
commit d343a29fe6513e02cd4e1cba6a13f6f848515dcd
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 22:01:23 2021 -0700
stb_image: Erorr in BMP should error, not assert.
There was both the assert and the error check; should just be
the error check.
Fixes issue #881 (or rather, part of it).
commit 41e93836d957fe4eca5a59de466d5cbcdbf43713
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 21:57:25 2021 -0700
stb_image: UB fix in stbi__get32le
Need to do the second-part shift on uint32 not int.
commit cf00c67c5724b92343a1af3637a067aa31cc4531
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 21:38:44 2021 -0700
stb_image: Update comment
As per recent patches, we do support 16-bit PNMs.
commit 48632c175231eb0289f0cf3c83e8d2d68dec5bd9
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 21:09:11 2021 -0700
stb_image: Avoid left-shifts of signed values
It's implementation-specified behavior. Writing this code and then
relying on compiler strength reduction to turn it back into shifts
feels extremely silly but it is what it is.
Fixes issue #1097.
commit 026013546cd889986b8395deae43b9793f4471f6
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 20:59:22 2021 -0700
stb_image: Avoid shift of signed values in extend_receive
Use an equivalent formulation that has sgn=0 or 1, not 0 or -1.
This avoids right-shifting signed values, at least in this place.
Fixes issue #1061.
commit 4d067e8b2bbf5eb5b3d0715e55f38634b9a1f36b
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 18:42:01 2021 -0700
stb_image, stb_image_write: Fix compare sign warnings
For the stb_image fix, also replace the magic 288 with a more
descriptive name while I'm at it.
Fixes #1100
commit 1d7bf858778f816d233de8d1e4ecb81b5ca840ea
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 18:28:41 2021 -0700
stb_image: Fix lrot definition, small extend_receive tweak
Define lrot in a way that doesn't involve UB when n==0.
Also, the previous patch ensures that n <= 15 for all callers
of stbi__extend_receive, so can remove the (less restrictive)
bounds check for 0 <= n < 17 (the bounds of stbi__bmask)
entirely.
Fixes issue #1065.
commit a3f2897b85760d1e98fedbe31fcf2ddf089c169e
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 18:10:49 2021 -0700
stb_image: Fix bug on JPEGs with malformed DC deltas
extend_receive implicitly requires n <= 15 (code length);
the maximum that actually makes sense for 8-bit baseline JPEG is
11, but 15 is the natural limit for us because the AC coding path
stores the number of magnitude bits in a nibble.
Check that DC delta bits are in range before attempting to call
extend_receive.
Fixes issue #1108.
commit 50072f66589f52f51eb5b3f56b9272ea8ec1fdac
Author: Fabian Giesen <rygorous@gmail.com>
Date: Fri Jul 2 17:50:34 2021 -0700
stb_image: Check results of all mallocs.
A few were missing. Make sure to always report ouf-of-memory
errors.
Fixes issue #1056.
commit 67b247ba4966081c1506e4d7ff2daf99cf0f8fe4
Author: Fabian Giesen <rygorous@gmail.com>
Date: Thu Jul 1 17:49:11 2021 -0700
README: updated supported stb_image and stb_image_write formats