projects
/
platform
/
adaptation
/
npu
/
trix-engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
466fb1a
)
Fix save issue
author
Jiho Chu
<jiho.chu@samsung.com>
Tue, 10 Sep 2024 02:43:06 +0000
(11:43 +0900)
committer
Jiho Chu
<jiho.chu@samsung.com>
Tue, 10 Sep 2024 02:46:49 +0000
(11:46 +0900)
Fix svace issue: 210505
- check memory alloc fail
Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
utils/trinity_test/stress_test.cc
patch
|
blob
|
history
diff --git
a/utils/trinity_test/stress_test.cc
b/utils/trinity_test/stress_test.cc
index 01de0ff140968d91bf6086fd25e9aba9006d376a..cadc184ffbe932ca3ec539eb1178dfd504d37e91 100644
(file)
--- a/
utils/trinity_test/stress_test.cc
+++ b/
utils/trinity_test/stress_test.cc
@@
-202,6
+202,8
@@
StressTester::runAllocMemory () {
for (int j = 0; j < alloc_num_; j++) {
generic_buffer* buffer = (generic_buffer*) malloc (sizeof (*buffer));
+ if (!buffer)
+ return -1;
if (alloc_random_)
buffer->size = dis (gen);