win: Fix an out-of-bounds array access
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Tue, 30 Aug 2011 00:21:09 +0000 (20:21 -0400)
committerPaulo Alcantara <pcacjr@gmail.com>
Sun, 11 Sep 2011 04:09:59 +0000 (04:09 +0000)
commitd782f2a2aec66486a62d41dbd4bca3b95fa295a8
tree15921bbb500e2267ed4d233e835daf9bec74c7ed
parent8edf44b7fb1a4f29029b93c63285c4431358bbe1
win: Fix an out-of-bounds array access

We should not attempt to make a map of more LDLINUX.SYS
sectors than we have.  Simply multiplying a cluster count
times the number of sectors per cluster does not account
for unused sectors in the last used cluster.

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
win/syslinux.c