loader: fix memory corruption bug in vdev_read
The bug occurred when a bounce buffer was used and the requested read size was greater than the size of the bounce buffer. This commit also rewrites the read logic so that it is easier to systematically verify all alignment and size cases.
Updated by Electric Monk over 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit cb09bd3c63580aef9fe1999ae4e48a8a5b9cf55c Author: Toomas Soome <firstname.lastname@example.org> Date: 2019-11-14T18:47:04.000Z 11935 loader: fix memory corruption bug in vdev_read Reviewed by: Matthias Scheler <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>