projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a6bc9
)
common array: -- sanitizer errors
author
Hermet Park
<chuneon.park@samsung.com>
Thu, 1 Jul 2021 08:38:34 +0000
(17:38 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Fri, 2 Jul 2021 01:51:31 +0000
(10:51 +0900)
runtime error: null pointer passed as argument 1, which is declared to never be null
@Issue: https://github.com/Samsung/thorvg/issues/543
Change-Id: I4a584f715cc71a7c0aeca921586e6b8f1fa1a7fe
src/lib/tvgArray.h
patch
|
blob
|
history
diff --git
a/src/lib/tvgArray.h
b/src/lib/tvgArray.h
index
e1f494b
..
c254047
100644
(file)
--- a/
src/lib/tvgArray.h
+++ b/
src/lib/tvgArray.h
@@
-75,7
+75,7
@@
struct Array
void operator=(const Array& rhs)
{
reserve(rhs.count);
- memcpy(data, rhs.data, sizeof(T) * reserved);
+
if (rhs.count > 0)
memcpy(data, rhs.data, sizeof(T) * reserved);
count = rhs.count;
}