bcb2815ab3
stb_ds: add documentation for STBDS_UNIT_TESTS, -std=c++0x
2019-08-11 17:03:05 -07:00
c7343d4263
more Travis fixing
2019-08-11 16:45:14 -07:00
897c33133f
more travis testing
2019-08-11 16:42:27 -07:00
5037e236ed
try to work around Travis old GCC errors
2019-08-11 15:55:39 -07:00
76254f7758
Merge branch 'master' of https://github.com/nothings/stb
2019-08-11 14:39:51 -07:00
be594f1e0b
stb_ds: maybe avoid problem with inferring template type from enum with gcc
2019-08-11 14:37:45 -07:00
4136af1b23
Merge pull request #789 from sjml/patch-2
...
typo in credit comment
2019-08-11 14:08:32 -07:00
0cff58ecf8
very minor, non-urgent :)
2019-08-11 23:02:34 +02:00
787f1d646a
Update version numbers
2019-08-11 05:38:37 -07:00
5072185467
stb_image: fix static analyzer warnings
2019-08-11 05:19:33 -07:00
a895aec686
stb_c_lexer: fix a static analysis warning
2019-08-11 05:19:00 -07:00
a2d540a689
stb.h: fix clang compile
2019-08-11 05:18:24 -07:00
b26a31072d
test.sbm: tweak tests so all pass
2019-08-11 05:17:42 -07:00
846d15c102
image_test: tweak testing to open image in more modes
2019-08-11 04:58:48 -07:00
bd8d9a88bc
test.sbm: add clang compilation
2019-08-11 04:57:39 -07:00
8ca86ee1a1
stb_perlin: add non-power-of-two wrapping noise
2019-08-11 04:56:12 -07:00
26a02f81ca
stb_image: fix bug where bmp claimed to be 24-bit but also claimed to have an alpha bitfield
2019-08-11 04:54:52 -07:00
61be29d161
stb_ds: fix bug with shgeti not returning correct value
2019-08-11 04:53:51 -07:00
a5cbacd1c0
Merge branch 'fix-textedit-typo' of https://github.com/mastensg/stb into working
2019-08-11 04:33:11 -07:00
a5071ad702
Merge branch 'master' of https://github.com/rgriege/stb into working
2019-08-11 04:32:14 -07:00
70bd711831
Merge branch 'pull-request' of https://github.com/kaesve/stb into working
2019-08-11 04:26:55 -07:00
5c98e6564b
stb_vorbis: fix typo in CVE number in docs
2019-08-11 04:26:23 -07:00
130f28df68
update readme
2019-08-09 12:37:57 -07:00
1b2fa11055
stb_vorbis: bump version number
2019-08-09 04:13:24 -07:00
98fdfc6df8
Fix seven bugs discovered and fixed by ForAllSecure:
...
CVE-2019-13217: heap buffer overflow in start_decoder()
CVE-2019-13218: stack buffer overflow in compute_codewords()
CVE-2019-13219: uninitialized memory in vorbis_decode_packet_rest()
CVE-2019-13220: out-of-range read in draw_line()
CVE-2019-13221: issue with large 1D codebooks in lookup1_values()
CVE-2019-13222: unchecked NULL returned by get_window()
CVE-2019-13223: division by zero in predict_point()
2019-08-09 04:05:22 -07:00
a82e7424d2
extern stb_perlin_noise3_seed
2019-08-03 19:15:41 -06:00
5ac55a3359
stb_easy_font: fix multiple definition errors
...
There changes fix posible multiple definition errors when
include stb_easy_font.h header to more then one source file.
Closes #777
2019-07-09 22:27:35 +03:00
5db48d3604
stb_divide: use return value to indicate errors
2019-07-04 19:11:55 +08:00
c72a95d766
update README
2019-06-17 05:44:12 -07:00
9f1836f0b1
update version
2019-06-17 05:43:52 -07:00
f9910f1f9a
Merge branch 'hmlen-null' of https://github.com/phoekz/stb into working
2019-06-17 05:26:21 -07:00
8f0bade4ae
tweak STBDS_REALLOC/STBDS_FREE change
2019-06-17 05:25:44 -07:00
258c6e1f50
Merge branch 'use-free' of https://github.com/adurdin/stb into working
2019-06-17 05:17:36 -07:00
eddae8cc98
Merge branch 'master' into working
2019-06-17 05:15:18 -07:00
fad8903fe8
Credits
2019-06-01 12:08:59 +03:00
96021689c8
hmlen and hmlenu now returns 0 on NULL pointer
2019-06-01 12:07:19 +03:00
2cddbc934d
stb_ds: STBDS_REALLOC and STBDS_FREE only need to be defined for the implementation.
2019-05-27 11:14:17 +02:00
6b2fb7702f
stb_ds: Allow STBDS_REALLOC and STBDS_FREE defines to customize memory management.
2019-05-27 11:07:30 +02:00
5a2a8e882f
stb_ds: Use free() instead of realloc(x,0). Fixes #768
2019-05-27 11:04:28 +02:00
4a4c9deaac
stb_image: fix warning (unused parameter ‘bpc’)
...
Fixes issue #745 .
2019-05-15 14:12:52 +07:00
6bde00651c
stb_textedit: fix typo: STB_TEXTED_K_RIGHT
2019-05-04 23:11:35 +02:00
1034f5e5c4
add stb_include.h
2019-05-04 08:19:18 -07:00
f7d1cd581e
Allowing Compound Glyphs with numberOfContours < -1
...
While it is recommended that the numberOfContours are set to -1 for compound glyphs, it is allowed to have any negative value. Source: https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6glyf.html
However, I don't know if this happens in practice.
2019-04-30 16:30:03 +02:00
4e0c494515
stb_image: fixed 'out' nulled but not freed upon failure
...
If realloc fails it returns NULL and out pointer becomes invalid. To
fix this it is necessary to store realloc return value in temporary
pointer and then compare it with NULL. If it equals NULL then return
error and source pointer will still valid.
This error was caught by cppcheck:
Common realloc mistake: 'out' nulled but not freed upon failure.
2019-04-22 14:30:12 +03:00
0a1016331c
Add functions to extract SVG glyphs from font.
...
The fucntions are:
stbtt_GetCodepointSVG - provides a pointer to the SVG data in the supplied argument, and returns the length of this data
stbtt_GetGlyphSVG - As above but takes the glyph index instead of the codepoint
Note that the returned data may be deflate compressed.
2019-04-14 18:22:04 +01:00
48ffc6bc55
Fix gcc warning: expression always true
...
stb_image.h:5113:18: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
STBI_ASSERT(v >= 0 && v < 256);
2019-03-16 23:00:14 +01:00
0637408284
fuzz: fix error handling
2019-03-12 00:59:20 +01:00
af516b99ff
fuzz: remove some chunk identifiers from stb_png.dict
...
these chunks are not parsed
2019-03-12 00:14:16 +01:00
cd797f8116
add fuzz target, dictionary, iphone png's
2019-03-11 23:56:45 +01:00
a5b663f1b0
stb_truetype: update contributors list
2019-03-07 19:48:23 -06:00