Handle run-time out-of-bounds access for wire real arrays (issue #556).
(cherry picked from commit 3dda39bce3)
This commit is contained in:
parent
2b7ee675ee
commit
9ac6154068
|
|
@ -724,6 +724,9 @@ double __vpiArray::get_word_r(unsigned address)
|
|||
return val;
|
||||
}
|
||||
|
||||
if (address >= get_size())
|
||||
return 0.0;
|
||||
|
||||
assert(nets);
|
||||
vpiHandle word = nets[address];
|
||||
struct __vpiRealVar*vsig = dynamic_cast<__vpiRealVar*>(word);
|
||||
|
|
|
|||
Loading…
Reference in New Issue