Sean Barrett
4067b6d28b
Merge branch 'kc/fix-coverity-issues-1' of https://github.com/krcroft/stb into work2
2020-02-02 10:02:25 -08:00
Sean Barrett
6a6e028e26
Merge branch 'fix-vs2019-warning' of https://github.com/Reedbeta/stb into work2
2020-02-02 10:01:51 -08:00
Sean Barrett
454da539a2
Merge branch 'stbiw_update_jpeg' of https://github.com/DanielGibson/stb into work2
2020-02-02 10:01:04 -08:00
Sean Barrett
1586318a00
Merge branch 'master' of https://github.com/Try/stb into work2
2020-02-02 09:53:28 -08:00
Sean Barrett
cc99be2a9f
Merge branch 'quell-clang-wcast-align' of https://github.com/a-e-k/stb into work2
2020-02-02 09:51:34 -08:00
Sean Barrett
fad1aa50c9
Merge branch 'fix-stb_include_strings' of https://github.com/sp0lsh/stb into work2
2020-02-02 09:46:48 -08:00
Sean Barrett
ca1b58154d
Merge branch 'working' into work2
2020-02-02 09:45:56 -08:00
Sean Barrett
acd1c66aa4
Merge branch 'fix806' of https://github.com/kolbma/stb into work2
2020-02-02 09:45:35 -08:00
Sean Barrett
d882f542e9
Merge branch 'vorbis_seek_fixes' of https://github.com/dougallj/stb into work2
2020-02-02 09:44:21 -08:00
Sean Barrett
fd4f1f702e
Merge branch 'master' of https://github.com/haferburg/stb into work2
2020-02-02 09:42:24 -08:00
Sean Barrett
95dc062d3f
Merge branch 'cnlohr-fix-stb-include-newline' of https://github.com/cnlohr/stb into work2
2020-02-02 09:41:43 -08:00
Sean Barrett
15ae70a371
Merge branch 'work2' into working
2020-02-02 09:40:38 -08:00
Sean Barrett
69a39c14cc
Merge branch 'fix-clang-warning' of https://github.com/zanshi/stb into work2
2020-02-02 09:40:26 -08:00
Sean Barrett
5a3f1ebd54
Merge branch 'master' of https://github.com/Kelimion/stb into work2
2020-02-02 09:34:23 -08:00
Sean Barrett
6877b1afd3
Merge branch 'fix_issue_746' of https://github.com/BlackMATov/stb into work2
2020-02-02 08:52:48 -08:00
Sean Barrett
a0245ff803
Merge branch 'stderr' of https://github.com/dimkr/stb into work2
2020-02-02 08:44:27 -08:00
Sean Barrett
e80419cd29
Merge branch 'work2' into working
2020-02-02 08:26:07 -08:00
Sean Barrett
647906759c
Merge branch 'master' of https://github.com/fluffrabbit/stb into work2
2020-02-02 08:25:48 -08:00
Sean Barrett
f2dd751a34
Merge branch 'stb-easy-font-fix-multiple-definition-errors' of https://github.com/podsvirov/stb into work2
2020-02-02 08:24:40 -08:00
Sean Barrett
81d1537579
Merge branch 'fix_issue_745' of https://github.com/BlackMATov/stb into work2
2020-02-02 08:21:46 -08:00
Sean Barrett
cffff7c90a
Merge branch 'work2' into working
2020-02-02 08:17:09 -08:00
Sean Barrett
28cc61a1ff
stb_image: fix previous fix
2020-02-02 08:16:58 -08:00
Sean Barrett
770e4dbe50
Merge branch 'patch-2' of https://github.com/Brotcrunsher/stb into work2
2020-02-02 08:16:26 -08:00
Sean Barrett
f9ec936e7e
Merge branch 'patch-1' of https://github.com/GMacharadze/stb into work2
2020-02-02 08:14:23 -08:00
Sean Barrett
fe6bef2307
stb_truetype: clean up svg support
2020-02-02 08:14:00 -08:00
Sean Barrett
ade80f4609
Merge branch 'svg' of https://github.com/chris-y/stb into work2
2020-02-02 08:07:01 -08:00
Sean Barrett
e943476f7f
stb_sprintf: support hh
2020-02-02 08:04:34 -08:00
Sean Barrett
d4871226e4
Merge branch 'upstream' of https://github.com/yangfl/stb into work2
2020-02-02 08:04:09 -08:00
Sean Barrett
ecf2a56f6d
Merge branch 'patch-1' of https://github.com/StylishTriangles/stb into work2
2020-02-02 08:03:06 -08:00
Sean Barrett
c046a25fd7
Merge branch 'fuzz' of https://github.com/randy408/stb into work2
2020-02-02 08:00:39 -08:00
Sean Barrett
3f5db89baf
stb_sprintf: redo ASAN fixes after problematic merge
2020-02-02 07:49:41 -08:00
Sean Barrett
e802821e4d
stb_sprintf: PR 613
2020-02-02 07:47:53 -08:00
Sean Barrett
81b4fd7342
test_sprintf: clean up for MSVC6 & integration to codebase
2020-02-02 07:37:20 -08:00
Sean Barrett
5a2c8901b2
stb_dxt: documentation change for constant alpha
2020-02-02 07:37:10 -08:00
Sean Barrett
3223673e86
Merge branch 'test_sprintf' of https://github.com/wojdyr/stb into work2
2020-02-02 07:21:45 -08:00
Sean Barrett
f792c3b982
Merge branch 'work2' into working
2020-02-02 07:12:14 -08:00
Sean Barrett
c716696e28
Merge branch 'stb_sprintf-asan' of https://github.com/h-s-c/stb into work2
2020-02-02 07:11:57 -08:00
Sean Barrett
57de42c23f
disable broken tilemap editor build
2020-02-02 07:06:27 -08:00
Sean Barrett
eb48fbdced
stb_image: use thread-locals for vertically_flip flag and g_failure_reason
2020-02-02 07:06:05 -08:00
Sean Barrett
7cce4c3ad9
stb_ds: remove accidental #include
2020-02-01 08:15:04 -08:00
Sean Barrett
4a7a434c2d
various tests and infrastructure fixes
2020-02-01 04:21:41 -08:00
Sean Barrett
c440a53d06
stb_image: fix reading BMP with explicit masks
2020-02-01 04:19:28 -08:00
Sean Barrett
d693c6103a
stb_ds.h: thread-safe functions; pointer-returning functions; change return value of arraddn
2020-02-01 04:18:23 -08:00
Sean Barrett
aa482fc4a1
stb.h: perfect hashing functions requires opting-in with "#define STB_PERFECT_HASH"; fix some missing parenthesis in stb_arr macros
2020-02-01 03:43:33 -08:00
Kevin Croft
58e0c4438d
STB Vorbis: eliminate inaccessible branch
...
The eliminated code removes the (ch == 1) branch, which is scoped
within this if condition: `if (rtype == 2 && ch != 1)`, therefore
the (ch == 1) branch will never be taken.
Fixes #842 .
2019-12-04 22:09:14 -08:00
Kevin Croft
3b491aa07c
STB Vorbis: prevent division by zero in decode_resign if ch == 0
...
In the call to decode_residue:
decode_residue(f, residue_buffers, ch, n2, r, do_not_decode);
The channel count is previously intialized as zero and incremented
based on a for-loop (f->channels) plus a conditional,
if (map->chan[j].mux == i). If this doesn't happen then 'ch'
remains zero.
Once inside decode_residue(..), the code has three branches based
on channel count: stereo (ch == 2), mono (ch == 1), and then the
exception if it's neither of those (simple 'else'). It's in here
where a zero-valued 'ch' can be used as the denominator in these
calculations:
int c_inter = z % ch
p_inter = z/ch;
Obviously this 'else' branch is meant for channel counts greater
than two an not for zero channels; so this change simply makes
that branch only valid if (ch > 2).
2019-12-04 22:09:13 -08:00
Daniel Gibson
15516199e5
stb_image_write: Update JPEG code to jo_jpeg 1.60
...
For quality <= 90, it now supports subsampling U and V
so it encodes smaller files.
See https://www.jonolick.com/home/jo_jpeg-release-160 for more info
about jo_jpeg 1.60
2019-12-01 09:41:49 -01:00
Nathan Reed
4306eea3cb
Fix VS2019 warning
...
- VS2019 on /W4 warns about applying '*' to enums. Fixed by casting to int.
2019-11-30 14:39:24 -08:00
Try
4148eb4d90
stb_image: fix CRC reading at the end of IEND chunk in png file
2019-11-18 19:25:38 +01:00
Andrew Kensler
57b9ea6510
Quell -Wcast-align warnings from Clang
...
The stbi__sbraw() macro in stb_image_write.h causes Clang to spew about 24
warnings complaining that "cast from 'unsigned char *' to 'int *' increases
required alignment from 1 to 4" when compiled with the -Wcast-align option.
In practice, this is spurious so long as STBIW_MALLOC() and STBIW_REALLOC()
follow the usual alignment semantics for malloc() and realloc() in that they
align sufficiently for any built-in type.
To quell the warning, we can cast through a void pointer as an intermediary.
2019-11-16 00:17:00 -08:00