projects
/
platform
/
core
/
uifw
/
tts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5bc47b2
)
Merge "Fix defect that is detected by static analysis tool" into tizen
accepted/tizen/unified/20220922.114004
author
Wonnam Jang
<wn.jang@samsung.com>
Wed, 21 Sep 2022 10:53:29 +0000
(10:53 +0000)
committer
Gerrit Code Review
<gerrit@review>
Wed, 21 Sep 2022 10:53:29 +0000
(10:53 +0000)
tests/src/tts_unittests.cpp
patch
|
blob
|
history
diff --git
a/tests/src/tts_unittests.cpp
b/tests/src/tts_unittests.cpp
index
f49e97e
..
fe20c80
100644
(file)
--- a/
tests/src/tts_unittests.cpp
+++ b/
tests/src/tts_unittests.cpp
@@
-186,6
+186,10
@@
static void __get_test_PCM_Data()
}
char* data = (char*)calloc(sizeof(char), size);
+ if (NULL == data) {
+ fclose(fp_in);
+ return;
+ }
size_t read_size = fread(data, sizeof(char), size, fp_in);
fclose(fp_in);