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
72990efc3e
test updates for test_ds unit testing
2019-02-25 13:49:37 -08:00
f9133c3677
stb_ds v0.3: fixes for compiling client code in C++
...
add missing _wrapper suffixes
disable clang rvalue support in C++
disable unit tests in VC6 C++
other tweaks
2019-02-25 13:48:41 -08:00
39c05598a9
Update stb.h version number
2019-02-25 12:05:38 -08:00
0f9254357c
update version numbers
2019-02-25 11:49:12 -08:00
c963e40972
update version numbers
2019-02-25 11:48:42 -08:00
a4111af960
update readme
2019-02-25 11:41:58 -08:00
1aeb8ec201
stb_ds: fix shift warnings in later VS compilers
2019-02-25 11:40:33 -08:00
e704ed0efb
update tests and project files for stb_ds
2019-02-25 11:17:27 -08:00
477471d9a8
add stb_ds.h and tests
2019-02-25 11:16:35 -08:00
aeec66c6ec
Merge branch 'randlong' of https://github.com/flibitijibibo/stb into working
2019-02-25 11:13:03 -08:00
9d8a9e7f16
Merge branch 'fix_issue-701' of https://github.com/rygorous/stb into working
2019-02-25 11:11:37 -08:00
742056dee9
Merge branch 'fix_issue-705' of https://github.com/rygorous/stb into working
2019-02-25 11:11:14 -08:00
5fe7fb52f2
various fixes for clang
...
also fix a comment typo
2019-02-25 11:10:54 -08:00
5715e6faaf
Makefile: update how to build image_write_test
2019-02-24 04:37:37 -08:00
2ce93bf1d8
Merge branch 'fix_issue-707' of https://github.com/rygorous/stb into working
2019-02-24 04:27:18 -08:00
57c7029166
test_image_write.c: change from standalone to integrated with image_test.c
2019-02-24 04:22:47 -08:00
ae431d75e0
stb_rect_pack: Fix two bugs.
...
stbrp__skyline_find_best_pos didn't correctly handle rects too
large to ever fit inside the context. Since that function also
pads the width up to a multiple of the alignment, it makes the
most sense to do that check right after (but before entering
the main packing loop).
While we're here, also fix an off-by-1 bug in the best-fit
heuristic where it didn't want to use the last row in
certain cases.
Fixes issue #701 .
2019-02-23 05:48:11 -08:00
af43e6b006
stb_truetype: Fix warning in comment.
...
Replace ASCII art with slightly crappier ASCII art that is not
going to make compilers complain about trailing backslashes.
Fixes issue #707 .
2019-02-23 05:33:20 -08:00
bbbdc1e811
stb_image: Fix typo in comment.
...
Fixes issue #705 .
2019-02-23 05:25:47 -08:00
e0ee0de26c
tests: Add simple image_write_test smoke test
2019-02-23 05:18:14 -08:00
980add9725
stb_image_write: Fix JPEG writer bug.
2019-02-23 05:17:37 -08:00
0666554276
stb.h rand: A few more long->int fixes
2019-02-18 10:53:26 -05:00
59e9702be5
update readme
2019-02-07 10:24:27 -08:00
63b59b46b0
update version numbers
2019-02-07 10:03:00 -08:00
a23f466de0
"long int" => "long"
2019-02-07 09:49:08 -08:00
6244febf5f
stb_truetype: tweaks to codepoint-missing packing
2019-02-07 09:33:54 -08:00
f11f1e801a
stb_sprintf: credits
2019-02-07 09:23:01 -08:00
08759eb405
Merge branch 'fix-sprintf-int-size-1' of https://github.com/account-login/stb into working
2019-02-07 09:22:06 -08:00
8cf07e85c8
rename stbtt_PackSetSkipMissingGlyphs to stbtt_PackSetSkipMissingCodepoints
2019-02-07 09:21:17 -08:00
c35d1dd8ad
stb_truetype: runtime selection of skipping missing codepoints
2019-02-07 09:20:11 -08:00
eaf78c10b6
Merge branch 'truetype-skip_missing_glyphs' of https://github.com/ocornut/stb into working
2019-02-07 09:04:23 -08:00
9092c0487d
Merge branch 'working'
2019-02-07 09:04:00 -08:00
feb9de355d
stb_image_write: add missing 'static' on internal functions
2019-02-07 09:03:27 -08:00
7463635e52
Merge branch 'patch-3' of https://github.com/NuklearBomb/stb into working
2019-02-07 08:53:19 -08:00
9643f6bd98
stb_sprintf: fix unaligned digitpair[], fix some signed-right-shifts
2019-02-07 08:45:19 -08:00
82310cc5ff
stb_sprintf: fix unaligned digitpair[], fix some signed-right-shifts
2019-02-07 08:44:39 -08:00
d1dc3fe89c
Fix return typo, disambiguate else, and check for the complete fishead identifier
2019-02-07 08:43:59 -08:00
604b9367ee
Add detection for Ogg skeleton metadata
2019-02-07 08:43:59 -08:00
38f86fc461
Merge branch 'fix-leakcheck' of https://github.com/Clownacy/stb into working
2019-02-07 08:34:39 -08:00
ddccc72c5b
stb_image_write: optimize other PNG loops besides previous merge
2019-02-07 08:13:56 -08:00
d27796b585
Merge branch 'stb_image_write_optimization' of https://github.com/jarnoh/stb into working
2019-02-07 08:11:38 -08:00
619cdb6a3b
stb_sprintf: fix 32 vs 64-bit sizes for format widts j/z/t
2019-02-07 07:53:28 -08:00
6e7e5c5787
Merge branch 'fix-unaligned' of https://github.com/stefano-zanotti-88/stb into working
2019-02-07 07:41:53 -08:00
694b61fcb1
stb_image: remove non-ASCII character from credits
2019-02-07 07:39:46 -08:00
0aa5984b6a
Merge branch 'remove-assert' of https://github.com/rombankzero/stb into working
2019-02-07 07:39:03 -08:00
f9d9a419a9
Merge branch 'optimize_stbi__ldr_to_hdr' of https://github.com/technik/stb into working
2019-02-07 07:33:00 -08:00
db691f0c69
Merge branch 'fix_1bit_bmp' of https://github.com/plzombie/stb into working
2019-02-07 07:30:39 -08:00
5428c40870
Merge branch 'textedit-undo_char_position_type' of https://github.com/ocornut/stb into working
2019-02-07 07:28:41 -08:00
9bb4bc1db4
Merge branch 'patch-1' of https://github.com/sherjilozair/stb into working
2019-02-07 07:27:42 -08:00