Sean Barrett
be594f1e0b
stb_ds: maybe avoid problem with inferring template type from enum with gcc
ago%!(EXTRA string=6 years)
Sean Barrett
4136af1b23
Merge pull request #789 from sjml/patch-2
...
typo in credit comment
ago%!(EXTRA string=6 years)
Shane Liesegang
0cff58ecf8
very minor, non-urgent :)
ago%!(EXTRA string=6 years)
Sean Barrett
787f1d646a
Update version numbers
ago%!(EXTRA string=6 years)
Sean Barrett
5072185467
stb_image: fix static analyzer warnings
ago%!(EXTRA string=6 years)
Sean Barrett
a895aec686
stb_c_lexer: fix a static analysis warning
ago%!(EXTRA string=6 years)
Sean Barrett
a2d540a689
stb.h: fix clang compile
ago%!(EXTRA string=6 years)
Sean Barrett
b26a31072d
test.sbm: tweak tests so all pass
ago%!(EXTRA string=6 years)
Sean Barrett
846d15c102
image_test: tweak testing to open image in more modes
ago%!(EXTRA string=6 years)
Sean Barrett
bd8d9a88bc
test.sbm: add clang compilation
ago%!(EXTRA string=6 years)
Sean Barrett
8ca86ee1a1
stb_perlin: add non-power-of-two wrapping noise
ago%!(EXTRA string=6 years)
Sean Barrett
26a02f81ca
stb_image: fix bug where bmp claimed to be 24-bit but also claimed to have an alpha bitfield
ago%!(EXTRA string=6 years)
Sean Barrett
61be29d161
stb_ds: fix bug with shgeti not returning correct value
ago%!(EXTRA string=6 years)
Sean Barrett
a5cbacd1c0
Merge branch 'fix-textedit-typo' of https://github.com/mastensg/stb into working
ago%!(EXTRA string=6 years)
Sean Barrett
a5071ad702
Merge branch 'master' of https://github.com/rgriege/stb into working
ago%!(EXTRA string=6 years)
Sean Barrett
70bd711831
Merge branch 'pull-request' of https://github.com/kaesve/stb into working
ago%!(EXTRA string=6 years)
Sean Barrett
5c98e6564b
stb_vorbis: fix typo in CVE number in docs
ago%!(EXTRA string=6 years)
Sean Barrett
130f28df68
update readme
ago%!(EXTRA string=6 years)
Sean Barrett
1b2fa11055
stb_vorbis: bump version number
ago%!(EXTRA string=6 years)
Sean Barrett
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()
ago%!(EXTRA string=6 years)
fluffrabbit
a82e7424d2
extern stb_perlin_noise3_seed
ago%!(EXTRA string=6 years)
Konstantin Podsvirov
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
ago%!(EXTRA string=6 years)
yangfl
5db48d3604
stb_divide: use return value to indicate errors
ago%!(EXTRA string=6 years)
Sean Barrett
c72a95d766
update README
ago%!(EXTRA string=6 years)
Sean Barrett
9f1836f0b1
update version
ago%!(EXTRA string=6 years)
Sean Barrett
f9910f1f9a
Merge branch 'hmlen-null' of https://github.com/phoekz/stb into working
ago%!(EXTRA string=6 years)
Sean Barrett
8f0bade4ae
tweak STBDS_REALLOC/STBDS_FREE change
ago%!(EXTRA string=6 years)
Sean Barrett
258c6e1f50
Merge branch 'use-free' of https://github.com/adurdin/stb into working
ago%!(EXTRA string=6 years)
Sean Barrett
eddae8cc98
Merge branch 'master' into working
ago%!(EXTRA string=6 years)
Vinh Truong
fad8903fe8
Credits
ago%!(EXTRA string=6 years)
Vinh Truong
96021689c8
hmlen and hmlenu now returns 0 on NULL pointer
ago%!(EXTRA string=6 years)
Andy Durdin
2cddbc934d
stb_ds: STBDS_REALLOC and STBDS_FREE only need to be defined for the implementation.
ago%!(EXTRA string=6 years)
Andy Durdin
6b2fb7702f
stb_ds: Allow STBDS_REALLOC and STBDS_FREE defines to customize memory management.
ago%!(EXTRA string=6 years)
Andy Durdin
5a2a8e882f
stb_ds: Use free() instead of realloc(x,0). Fixes #768
ago%!(EXTRA string=6 years)
BlackMATov
4a4c9deaac
stb_image: fix warning (unused parameter ‘bpc’)
...
Fixes issue #745 .
ago%!(EXTRA string=6 years)
Martin Stensgård
6bde00651c
stb_textedit: fix typo: STB_TEXTED_K_RIGHT
ago%!(EXTRA string=6 years)
Sean Barrett
1034f5e5c4
add stb_include.h
ago%!(EXTRA string=6 years)
Brotcrunsher
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.
ago%!(EXTRA string=6 years)
Georgy Macharadze
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.
ago%!(EXTRA string=6 years)
Chris Young
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.
ago%!(EXTRA string=6 years)
Łukasz Ptak
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);
ago%!(EXTRA string=6 years)
Randy
0637408284
fuzz: fix error handling
ago%!(EXTRA string=6 years)
Randy
af516b99ff
fuzz: remove some chunk identifiers from stb_png.dict
...
these chunks are not parsed
ago%!(EXTRA string=6 years)
Randy
cd797f8116
add fuzz target, dictionary, iphone png's
ago%!(EXTRA string=6 years)
rgriege
a5b663f1b0
stb_truetype: update contributors list
ago%!(EXTRA string=6 years)
rgriege
8ac257b00f
stb_truetype: limit to 1 missing glyph in texture
...
When calling stbtt_PackFontRanges, multiple missing glyphs in the range
of codepoints will create multiple copies of the font's missing glyph to
be added to the pixel buffer. Instead, the first codepoint that maps to the missing glyph will add it to the pixel buffer, and all subsequent glyphs will simply copy the stbtt_packedchar data to reference the same region of the buffer.
This does NOT prevent duplication in multiple calls to stbtt_PackFontRange(s) - that would require modifying the packing context, which could be nice but is a bit more intrusive.
ago%!(EXTRA string=6 years)
kaesve
f3ca0dd5ae
Remove redundant scale check in stbtt_GetGlyphSDF
ago%!(EXTRA string=6 years)
Sean Barrett
7638200f0b
Remove old documentation re: SECURE_CRT
ago%!(EXTRA string=6 years)
Sean Barrett
2c2908f505
update version numbers
ago%!(EXTRA string=6 years)
Sean Barrett
d940053a01
Merge branch 'master' into working
ago%!(EXTRA string=6 years)