[lvm-devel] [PATCH 1/2] Fix read byte from char[-1] position

Alasdair G Kergon agk at redhat.com
Tue Mar 8 13:21:52 UTC 2011


On Wed, Mar 02, 2011 at 07:09:07PM +0100, Zdenek Kabelac wrote:
> When the ->params is empty string - access is made on the byte
> before allocated buffer (catched by valgrind) - in case it would
> constains 0x20 - it would even overwrite this buffer.
> So fix by checking len > 0 before doing such access.
 
Ack.

Alasdair




More information about the lvm-devel mailing list