openvstorage/volumedriver

filedriver may write wrong size

Opened this issue · 0 comments

Hi ,
I found in Container.cpp line if (off - size_ > 0) , off and size_ have difference data format. These will change final result to unsign int data.
When offset is 2 and size_ is 10 , 2-10= -8 changes to unsign int which is bigger than 0.