ryanpoulos / LabVIEW-Memory

A library that provides a set of VIs and classes for performing explicit memory operations, such as pointer allocation and deallocation, in LabVIEW.
MIT License
3 stars 3 forks source link

Pointer Write and Read 1D Array methods should check the provided buffer has enough elements allocated. #3

Closed ryanpoulos closed 5 years ago

ryanpoulos commented 5 years ago

Currently, the Pointer class' Read and Write methods for 1D arrays only checks the Pointer to make sure it has a large enough size for the transfer. This is good, but LabVIEW can still crash if the provided buffer array doesn't have enough (count) elements. So it should check both conditions (Pointer size and array size).

mattlutomski commented 5 years ago

Good catch; I'll get it fixed this afternoon.

mattlutomski commented 5 years ago

Merged modified code that fixes this issue from branch #4 back into develop.