mirror of
https://github.com/monero-project/monero.git
synced 2025-05-08 02:05:04 -04:00
Fixed issues found by static analysis
- rolling_median: tried to free uninitialized pointer in a constructor - net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv - bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
This commit is contained in:
parent
b7425c14c8
commit
c0c75ac19d
3 changed files with 5 additions and 6 deletions
|
@ -141,7 +141,6 @@ public:
|
|||
|
||||
rolling_median_t(rolling_median_t &&m)
|
||||
{
|
||||
free(data);
|
||||
memcpy(this, &m, sizeof(rolling_median_t));
|
||||
m.data = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue