Sean Barrett
dc6089f05b
tweak fill byte PR
ago%!(EXTRA string=8 years)
Sean Barrett
a6dc061137
tweak 16-bit quantization for clarity
ago%!(EXTRA string=8 years)
Sean Barrett
786ac92daa
tweak RGB-to-Y conversion
ago%!(EXTRA string=8 years)
Sean Barrett
47685c5f84
remove deprecated old-precision jpg path from stb_image.h
...
tweak license reference wording
ago%!(EXTRA string=8 years)
Sean Barrett
e248e30954
change license to public-domain AND mit (based on twitter vote)
ago%!(EXTRA string=8 years)
Jeremy Sawicki
344c3f73d5
stb_image: JPEG: Accept fill bytes in stbi__grow_buffer_unsafe
ago%!(EXTRA string=8 years)
Jeremy Sawicki
e08d398671
stb_image: JPEG: Accept 16-bit quantization tables
ago%!(EXTRA string=8 years)
Jeremy Sawicki
34fa37bbb4
stb_image: JPEG: Accept any component IDs
ago%!(EXTRA string=8 years)
Jeremy Sawicki
cb7ffb2408
stb_image: Update contributors
ago%!(EXTRA string=8 years)
Jeremy Sawicki
552c548a0e
stb_image: JPEG: Convert RGB to grayscale properly
ago%!(EXTRA string=8 years)
themanagainstthetank
7e989db555
update stb_image.h
...
int raw_data[4] to 0, or the compiler bugs
ago%!(EXTRA string=8 years)
Sean Barrett
96620a3a54
update version numbers
ago%!(EXTRA string=8 years)
Sean Barrett
dead3815e2
credits
ago%!(EXTRA string=8 years)
Sean Barrett
48710234f2
credits; 1/2/4-bit png fix; easy font spacing; NO_STDIO in image_write
ago%!(EXTRA string=8 years)
Thomas Ruf
f07727a28a
stb_image.h: large structures on the stack
...
more of "allocate large structures on the stack", this time in the forgotten stbi__jpeg_test
-> avoids the infamous _chkstk() when working with CRT
ago%!(EXTRA string=9 years)
sammyhw
ec9db6f84b
allow for all 16 bits
ago%!(EXTRA string=9 years)
Sean Barrett
b61b7a74fa
update version info
ago%!(EXTRA string=9 years)
Sean Barrett
4a1523f60a
make tga load function static to avoid link errors on multiple instances
ago%!(EXTRA string=9 years)
Sean Barrett
7759a2a93d
fix "misleading indentation" gcc warning
ago%!(EXTRA string=9 years)
Sean Barrett
7736399517
return 16-bit PSDs through 16-bit API (untested)
ago%!(EXTRA string=9 years)
Sean Barrett
e0700d8e2c
16-bit png changes
ago%!(EXTRA string=9 years)
Sean Barrett
239a6718e1
rename stbi_load parameters to reduce confusion
ago%!(EXTRA string=9 years)
jon
2a170daee5
warning fixes, more RGBE fix
ago%!(EXTRA string=9 years)
jon
a2defc3d7a
added support for RGBE header HDR files
ago%!(EXTRA string=9 years)
Fabian Giesen
6b66033e18
stb_image: Fix memory leak and missing out-of-mem check.
...
stbi__process_frame_header had two bugs when dealing with progressive
JPEGs:
1. when malloc failed allocating raw_data, previous components'
raw_coeff didn't get freed
2. no out-of-memory check in raw_coeff allocation
Fix both and share a bit more cleanup code in general.
ago%!(EXTRA string=9 years)
Fabian Giesen
62f372754f
stb_image: Fix HDR/PSD RLE decoders.
...
Runs need to be bounds checked.
Fixes issues #315 , #317 .
ago%!(EXTRA string=9 years)
Fabian Giesen
02190634c2
stb_image: Overflow checking for image allocs.
...
Adds some helpers that check whether a product of multiple
factors (that need to be non-negative: this is enforced)
summed with another non-negative value overflows when
performed as int. Since stb_image mostly works in ints,
this seems like the safest route. Limits size of images
to 2GB but several of the decoders already enforce this
limit (or even lower ones).
Also adds wrappers for malloc that combine a mul-add-with-
overflow-check with the actual malloc, and return NULL
on failure. Then use them when allocating something that
is the product of multiple factors.
For image formats, also add a top-level "is this too big?"
check that gives a more useful error message; otherwise,
the failed mallocs result in an "out of memory" error.
The idea is that the top-level checks should be the primary
way to catch these bugs (and produce a useful error message).
But a misleading error message is still vastly preferable to
a buffer overflow exploit.
Fixes issues #310 , #313 , #314 , #318 . (Verified with the
provided test images)
Along the way, this fixes a previously unnoticed bug in
ldr_to_hdr / hdr_to_ldr (missing NULL check); these functions
are called with the result of an image decoder, so NULLs can
definitely happen.
Another bug noticed along the way is that handling of
interlaced 16-bit PNGs was incorrect. Fixing this (along
with the previous modifications) fixes issue #311 .
Yet another bug noticed during this change is that reduce_png
did not check the right pointer during its out of memory
check. Fix that too.
ago%!(EXTRA string=9 years)
Fabian Giesen
8c8d735eb7
stb_image: More input validation in deflate decoder
...
Fixes issue #312 .
ago%!(EXTRA string=9 years)
Sean Barrett
fdca443892
fix crash in 2.11
ago%!(EXTRA string=9 years)
Sean Barrett
6e4154737c
update version numbers, documentation, and contributors
ago%!(EXTRA string=9 years)
Sean Barrett
7a694bdcca
re-enable SSE2 code on x64 except with gcc
ago%!(EXTRA string=9 years)
Sean Barrett
201af99d9f
return correct # of channels for PNG
ago%!(EXTRA string=9 years)
Sean Barrett
591c7f8cb3
remove white matting when loading transparent PSD
ago%!(EXTRA string=9 years)
Sean Barrett
a013c036f3
initialize bmp mr/mg/mb/ma properly
ago%!(EXTRA string=9 years)
Sean Barrett
50479cb07c
stb_image: allow jpegs that are rgb not YCrCb
ago%!(EXTRA string=9 years)
Matthew Gregan
94f2ceac15
Fix typo in stbi__parse_uncompressed_block
ago%!(EXTRA string=9 years)
Thatcher Ulrich
7e1ee2d386
Allocate large structure using malloc instead of stack.
ago%!(EXTRA string=9 years)
Thatcher Ulrich
291ad22e84
Replace large stack allocations with dynamic allocations.
ago%!(EXTRA string=9 years)
Craig Donner
ee6978cb68
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
ago%!(EXTRA string=9 years)
Craig Donner
49b65c0873
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
ago%!(EXTRA string=9 years)
Socks the Fox
eb84b2179b
Initial 16 bit per channel PNG support
ago%!(EXTRA string=9 years)
Sean Barrett
30015ef464
attempt to fix unused var warnings in stb_image 2.09
ago%!(EXTRA string=9 years)
Sean Barrett
472c4c82a4
update version history
ago%!(EXTRA string=9 years)
Sean Barrett
ac748cba9b
update contributor list, version history, version number
ago%!(EXTRA string=9 years)
Sean Barrett
82ca643ef3
change previous explicitly-sized realloc support to be new API and unbreak old API
ago%!(EXTRA string=9 years)
Sean Barrett
c8e50127c5
contributor list
ago%!(EXTRA string=9 years)
Sean Barrett
9cb29b6b39
update and reorganize contributor list
ago%!(EXTRA string=9 years)
Sean Barrett
e30b75af8b
update contributor list
ago%!(EXTRA string=9 years)
Sean Barrett
1964d53d70
update version number and version history with everything committed to date
ago%!(EXTRA string=9 years)
Romain Bailly
7e741ffc1e
Added the old size as argument to the STBI_REALLOC() and STBIW_REALLOC() macros
ago%!(EXTRA string=9 years)