projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f44cbb7
)
stb: ++safety.
author
Hermet Park
<hermetpark@gmail.com>
Tue, 9 Jul 2019 12:37:59 +0000
(21:37 +0900)
committer
Hermet Park
<hermetpark@gmail.com>
Wed, 10 Jul 2019 01:59:55 +0000
(10:59 +0900)
make it safe not to leave potential dangling pointers.
src/vector/stb/stb_image.h
patch
|
blob
|
history
diff --git
a/src/vector/stb/stb_image.h
b/src/vector/stb/stb_image.h
index
b8ab055
..
8c85e52
100644
(file)
--- a/
src/vector/stb/stb_image.h
+++ b/
src/vector/stb/stb_image.h
@@
-4580,6
+4580,7
@@
static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint3
}
}
STBI_FREE(a->out);
+ a->out = NULL;
image_data += img_len;
image_data_len -= img_len;
}