mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
common array: -- sanitizer errors
runtime error: null pointer passed as argument 1, which is declared to never be null @Issue: https://github.com/Samsung/thorvg/issues/543
This commit is contained in:
parent
e1eabf7dc3
commit
480bd8376e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue