58b2e1490d 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'fix_alloca' of  https://github.com/Clownacy/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								ce54bbc454 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of  https://github.com/AdamKorcz/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								0ccb4f0071 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'rg-matchcolors' of  https://github.com/castano/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								5a8702567a 
								
							
								 
							
						 
						
							
							
								
								credit for PR  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								da888065bf 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of  https://github.com/Vawx/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								fb1cea02f8 
								
							
								 
							
						 
						
							
							
								
								tweak PR  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								add7adc3ea 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'patch-1' of  https://github.com/vickit144/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								fd9c3ea4af 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'bmp-assert' of  https://github.com/zturtleman/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								6f7420a825 
								
							
								 
							
						 
						
							
							
								
								add credits for last few PR merges  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								67881b61ab 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'stbds-arraddn' of  https://github.com/HeroicKatora/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								1c816743b6 
								
							
								 
							
						 
						
							
							
								
								make PR compile in MSVC6  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								cae8e852f6 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'perfect-endpoint-quantization' of  https://github.com/castano/stb  into test  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								cae97bdb17 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'alloca-fix' of  https://github.com/mackron/stb  into test  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								fdafd1aab4 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'loadgif-realloc-sized' of  https://github.com/SasLuca/stb  into test  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								b3a74a5c8a 
								
							
								 
							
						 
						
							
							
								
								fix PR to work on VC6  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								206529e08e 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'unused#801' of  https://github.com/hashitaku/stb  into test  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								dfdb7d9c14 
								
							
								 
							
						 
						
							
							
								
								stb_ds: use keyoffset in key comparison  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								523a14f3e1 
								
							
								 
							
						 
						
							
							
								
								stb_image_write: small buffer to avoid calling fwrite on every pixel  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								802a1df278 
								
							
								 
							
						 
						
							
							
								
								tweak indentation  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								c5b527aa01 
								
							
								 
							
						 
						
							
							
								
								modern seeding of mersenne twister  
							
							
 
							
						 
						
							ago%!(EXTRA string=5 years)  
				
					
						
							
							
								 
						
							
							
								d8df5e9974 
								
							
								 
							
						 
						
							
							
								
								Add myself to the list of contributors  
							
							... 
							
							
 
							
							The pull-request template says to do so. 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								47a3c4f5b5 
								
							
								 
							
						 
						
							
							
								
								stb_vorbis.c - Detect `__NEWLIB__` for `alloca.h`  
							
							... 
							
							
 
							
							This is needed for `stb_vorbis.c` to compile for the Wii U using
devkitPro.
This should theoretically also fix compilation for the Nintendo
Switch, 3DS, and Wii (with devkitPro, that is) as they all also use
Newlib.
Newlib is also used by Cygwin:
https://cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/include/alloca.h;h=5d36318914282280b353aed457e1b1f64947b584;hb=HEAD 
And the Google Native Client:
https://chromium.googlesource.com/native_client/nacl-newlib/+/refs/heads/master/newlib/libc/include/alloca.h 
As you can see from these links, these both provide `alloca.h` as
well, so it appears to be a safe guarantee that `alloca.h` is
available on Newlib. 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								fdec118312 
								
							
								 
							
						 
						
							
							
								
								Added fuzzer for stb_c_lexer  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								c7cf85ffce 
								
							
								 
							
						 
						
							
							
								
								Integrate more accurate index selection by Rich Geldreich.  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								385b65da00 
								
									
								
							
								 
							
						 
						
							
							
								
								remove + 1 from stb_strscpy and offset of -1 (n--) in readdir_raw  
							
							... 
							
							
 
							
							Fix to buffer issue where stb_strscpy would use + 1 for buffer length when stb_p_strcpy_s is called, causing a stack variable corrupted issue.
Fix to readdir_raw to no longer account for stb_strscpy having + 1 in buffer length. 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								b67dabed2a 
								
									
								
							
								 
							
						 
						
							
							
								
								Add arraddn back with void return and deprecated  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								e485c7d353 
								
							
								 
							
						 
						
							
							
								
								Split arraddn into pointer and index return  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								e919bcd32e 
								
							
								 
							
						 
						
							
							
								
								stb_image: fix assert failing when loading BMP  
							
							... 
							
							
 
							
							This fixes two issues with an assert failing. I tested that the
first part fixes  #909  and the second fixes  #897 .
1. Loading 16/24/32-bit BMP from memory caused an assert to fail
(excluding 16-bit BMP with hsz 12).
img_buffer offset was always compared with the buffer for
stbi_load_from_file() but stbi_load_from_memory() uses an external
buffer.
Resolution: Change s->buffer_start to s->img_buffer_original.
2. Loading BMP with large header from file caused assert to fail.
img_buffer points to stbi_uc buffer_start[128] but the largest BMP
supported has a 138 byte header (hsz 124) causing img_buffer to wrap
around to an offset of 10. The assert fails because 138 (header size)
!= 10 (offset in temp read buffer).
Resolution: Add the previously read bytes to the offset in temp read
buffer to get the absolute offset.
The issues were introduced by the commit c440a53d06 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								2e78eb603b 
								
									
								
							
								 
							
						 
						
							
							
								
								Added debugging check on line 1604  
							
							... 
							
							
 
							
							I added the code assert(f->valid_bits >= n);  instead of removing if (f->valid_bits < 0) return 0; to improve code with checking and debugging instead. 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								fcd0a0bfaa 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove if (f->valid_bits < 0) return 0;  on line 1603  
							
							... 
							
							
 
							
							I propose to remove this line because  f->valid_bits will never be less than zero since, in the while loop, you're adding 8 to it. Therefore, it will always evaluate to false. This is to help remove redundant code. 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								e423b41e74 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix arraddn returning index instead of pointer  
							
							... 
							
							
 
							
							The documentation of that operation already said:
> Returns a pointer to the first uninitialized item added.
This also makes a lot of sense, allowing easy initialization. But the
implementation returned the index of the first uninitialized element
instead. 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								254e1c9975 
								
							
								 
							
						 
						
							
							
								
								Perfect quantization of DXT endpoints  
							
							... 
							
							
 
							
							A small change to quantize floating point endpoints to RGB565 as expanded in the DXT spec. For more info see: https://gist.github.com/castano/c92c7626f288f9e99e158520b14a61cf  
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								1d35dc8609 
								
							
								 
							
						 
						
							
							
								
								stb_vorbis: Fix macro redefinition warning on MinGW.  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								c5102ecc4d 
								
							
								 
							
						 
						
							
							
								
								Refactored stbi__load_gif_main to use STBI_REALLOC_SIZED instead of STBI_REALLOC.  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								2e8b2d7f58 
								
							
								 
							
						 
						
							
							
								
								stb_ds.h: fix unused parameter warning  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								a2c91804a3 
								
							
								 
							
						 
						
							
							
								
								stb_sprintf: avoid clang -O3 misaligned access  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								f54acd4e13 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'working'  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								828e6cfdf7 
								
							
								 
							
						 
						
							
							
								
								update test  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								95671cca57 
								
							
								 
							
						 
						
							
							
								
								update version number  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								cd742941e6 
								
							
								 
							
						 
						
							
							
								
								stb_truetype: fix warning  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								37b9b20fde 
								
							
								 
							
						 
						
							
							
								
								update version numbers  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								efdaadcb4a 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of  https://github.com/MarcoLizza/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								2805fe39ab 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'fix_ub_shift' of  https://github.com/wojdyr/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								cb9d4e9547 
								
							
								 
							
						 
						
							
							
								
								sprintf: warning fixes  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								6b38abed1f 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'mine/avoid_warning' of  https://github.com/wojdyr/stb  into working  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								f06f586d18 
								
							
								 
							
						 
						
							
							
								
								sprintf warnings  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								41a6bb58d1 
								
							
								 
							
						 
						
							
							
								
								Other (pedantic) warnings for possible uninitialized variables.  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								43c6bd4e0e 
								
							
								 
							
						 
						
							
							
								
								Fixing (pedantic) cast warnings.  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								6e8c31685f 
								
							
								 
							
						 
						
							
							
								
								Fixing fall-trough (pedantic) warnings.  
							
							
 
							
						 
						
							ago%!(EXTRA string=6 years)  
				
					
						
							
							
								 
						
							
							
								3366d1e797 
								
							
								 
							
						 
						
							
							
								
								stb_sprintf: avoid left shift of negative value  
							
							... 
							
							
 
							
							fix undefined behaviour reported by UBSan:
  runtime error: left shift of negative value -9223372036854775808
and add a test case.
fixes  #800  
							
						 
						
							ago%!(EXTRA string=6 years)