Sean Barrett
3ecc60f25a
add version history update for stb_image
ago%!(EXTRA string=2 years)
Sean Barrett
6199bf7713
update stb_image to 2.28
ago%!(EXTRA string=2 years)
Sean Barrett
7c14c47e2f
Merge branch 'sean_image'
ago%!(EXTRA string=2 years)
Sean Barrett
1891060782
a fix
ago%!(EXTRA string=2 years)
Fabian Giesen
40eb865b3b
stb_image: header scan mode always needs to check for tRNS
...
For paletted images, header-scanning mode (used by stbi_info) kept
going after the image header to see if a tRNS (transparency) chunk
shows up to correctly determine the channel count, but we would
immediately return after IHDR for non-paletted images.
This is incorrect. We also change our reported channel count on
RGB images with a tRNS chunk, therefore non-paletted images also
have to resume scanning further chunks.
Update the logic to keep scanning regardless and report the
correct channel count from stbi_info for RGB images with tRNS
(constant alpha channel).
Fixes issue #1419 .
ago%!(EXTRA string=2 years)
Fabian Giesen
24fa1ff2e9
stb_image: Fix broken indenting introduced earlier
ago%!(EXTRA string=2 years)
Fabian Giesen
0613e9c043
stb_image: Tweak end-of-JPEG junk scanning loop.
...
Be a bit more picky about what we consider a valid marker.
0xff 0x00 (stuffed 0 byte) should not count.
Fixes issue #1409 .
ago%!(EXTRA string=2 years)
Fabian Giesen
1096389590
stb_image: Accept some extra data between BMP header and payload
...
Limit to 1k, which is the maximum size of a 256-entry palette that
would ordinarily go there. It feels sensible to relax this a bit but
we don't want to go overboard.
Fixes issue #1325 .
ago%!(EXTRA string=2 years)
Fabian Giesen
51d295e33e
stb_image: Add trailing semicolon to usage example
...
Fixes issue #1330 reported by lunasorcery.
ago%!(EXTRA string=2 years)
Fabian Giesen
038b6ab9ec
stb_image: Avoid stdint.h on 32-bit Symbian.
...
As suggested by "mupfdev" on Github. We don't have a way to test
here but seems simple enough.
Fixes issue #1321 .
ago%!(EXTRA string=2 years)
Fabian Giesen
b15b04321d
Merge branch 'NeilBickford-NV-neilbickford/additional-image-fixes' into dev
ago%!(EXTRA string=2 years)
Fabian Giesen
4d160de463
stb_image: Fix name of stbi_set_unpremultiply_on_load_thread impl
...
Bug reported by N-R-K. Fixes #1276 .
ago%!(EXTRA string=2 years)
Fabian Giesen
e5da6acacd
Merge branch 'neilbickford/image_hdr_pgm_fixes' into dev
ago%!(EXTRA string=2 years)
Neil Bickford
9f22cc9008
stb_image PNG: Checks for invalid DEFLATE codes.
...
Specifically, this rejects length codes 286 and 287, and distance codes 30 and 31.
This avoids a scenario in which a file could contain a table in which
0 corresponded to length code 287, which would result in writing 0 bits.
Signed-off-by: Neil Bickford <nbickford@nvidia.com>
ago%!(EXTRA string=2 years)
Neil Bickford
5cfc2a744a
Zero-initialize stbi__jpeg to avoid intermittent errors found by fuzz-testing
ago%!(EXTRA string=2 years)
Neil Bickford
47164e4086
Add checks for signed integer overflow; further guard against cases where stbi__grow_buffer_unsafe doesn't read all bits required.
ago%!(EXTRA string=2 years)
Neil Bickford
96fe76c213
Add range checks to fix a few crash issues in stb_image issues 1289 and 1291
ago%!(EXTRA string=2 years)
Neil Bickford
84b94010a7
Add checks for PNM integer read overflows, add a 1GB limit on IDAT chunk sizes to fix an OOM issue, and check for a situation where a sequence of bad Huffman code reads could result in a left shift by a negative number.
ago%!(EXTRA string=2 years)
Neil Bickford
2a02ff76b5
Fixes two stb_image issues that could occur with specially constructed HDR and PGM files.
...
Signed-off-by: Neil Bickford <nbickford@nvidia.com>
ago%!(EXTRA string=2 years)
Sean Barrett
8b5f1f37b5
update readme
ago%!(EXTRA string=3 years)
Sean Barrett
bc00c178ac
Merge branch 'master' of https://github.com/nothings/stb
ago%!(EXTRA string=3 years)
Sean Barrett
4af130e863
stb_perlin.h: restore file now that patent is expired
ago%!(EXTRA string=3 years)
Sean Barrett
af1a5bc352
Update bug_report.md
ago%!(EXTRA string=4 years)
Sean Barrett
37e21f17b2
Update bug_report.md
ago%!(EXTRA string=4 years)
Sean Barrett
b9e1d86edc
Create config.yml
ago%!(EXTRA string=4 years)
Sean Barrett
b1826c9894
Update issue templates
ago%!(EXTRA string=4 years)
Sean Barrett
c0c982601f
stb_truetype 1.26: fix rendering glitches
ago%!(EXTRA string=4 years)
Sean Barrett
ef861421e2
stb.h: stb_splitpath correctly handles relative paths with explicit drive specifiers
ago%!(EXTRA string=4 years)
Sean Barrett
59e7dec3e8
delete file covered by patents
ago%!(EXTRA string=4 years)
Sean Barrett
08e89524f6
Merge branch 'dev' of https://github.com/nothings/stb into dev
ago%!(EXTRA string=4 years)
Fabian Giesen
5ba0baaa26
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 .
ago%!(EXTRA string=4 years)
Sean Barrett
c404b789ca
stb_truetype: fix sample code drawing characters upside-down
ago%!(EXTRA string=4 years)
Sean Barrett
1401f2257d
clean up project file
ago%!(EXTRA string=4 years)
Sean Barrett
7c65d5621f
fix compiling with NO_HDR NO_LINEAR
ago%!(EXTRA string=4 years)
Sean Barrett
be901954b2
stb_truetype: fix sample code drawing characters upside-down
ago%!(EXTRA string=4 years)
Sean Barrett
7de8f7999b
Merge branch 'master' into dev
ago%!(EXTRA string=4 years)
Sean Barrett
3a1174060a
opengl stb_truetype demo app
ago%!(EXTRA string=4 years)
Sean Barrett
4adb57af42
clean up project file
ago%!(EXTRA string=4 years)
Sean Barrett
cd6b6f70ec
fix compiling with NO_HDR NO_LINEAR
ago%!(EXTRA string=4 years)
Sean Barrett
a0a939058c
update README
ago%!(EXTRA string=4 years)
Sean Barrett
5a0bb8b1c1
update readme
ago%!(EXTRA string=4 years)
Sean Barrett
c4ef8e1fdc
fix version date
ago%!(EXTRA string=4 years)
Sean Barrett
7023e273f1
fix stb_dxt version
ago%!(EXTRA string=4 years)
Fabian Giesen
5324597dcb
README: update stb_dxt version for fix
ago%!(EXTRA string=4 years)
Fabian Giesen
3cfb892cf3
stb_dxt: Fix bug in table generator
...
Forgot to put the *100 back, oops.
ago%!(EXTRA string=4 years)
Sean Barrett
1ee679ca2e
update version numbers
ago%!(EXTRA string=4 years)
Sean Barrett
fd7807e92d
stb_c_lexer: allow including stb_c_lexer.h without defining overrides (all tokens are always defined; token values have changed)
ago%!(EXTRA string=4 years)
Sean Barrett
0be82e4814
stb_truetype: fix incorrect antialiasing computation in v2 rasterizer, and handle certain cases where math blew up
ago%!(EXTRA string=4 years)
Sean Barrett
e05ecc05ee
Fix compiling-as-C-pre-C99 issues
ago%!(EXTRA string=4 years)
Sean Barrett
38c15ee7cf
Merge pull request #1165 from randy408/dev-fix
...
Fix CIFuzz integration
ago%!(EXTRA string=4 years)