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:
4809c23
)
vector stb: check oom for safety.
59/200259/1
accepted/tizen/unified/20190225.232726
submit/tizen/20190222.001114
submit/tizen/20190222.044455
submit/tizen/20190225.055416
submit/tizen/20190225.071954
author
Hermet Park
<hermetpark@gmail.com>
Thu, 21 Feb 2019 01:58:44 +0000
(10:58 +0900)
committer
Hermet Park
<hermetpark@gmail.com>
Thu, 21 Feb 2019 02:00:59 +0000
(11:00 +0900)
Change-Id: I35d9eff0dde7b9ba2b2d5a1a6a9b1f85a14261c3
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
d284fd0
..
b52db63
100644
(file)
--- a/
src/vector/stb/stb_image.h
+++ b/
src/vector/stb/stb_image.h
@@
-3771,6
+3771,10
@@
static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)
{
int result;
stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg)));
+ if (!j) {
+ stbi__errpuc("outofmem", "Out of memory");
+ return 0;
+ }
j->s = s;
result = stbi__jpeg_info_raw(j, x, y, comp);
STBI_FREE(j);