Displaying 1 result from an estimated 1 matches for "3c9edff".
Did you mean:
13c90dff
2015 Aug 07
1
[PATCH] com32: write_sectors fixes
Based on syslinux 6.03
Memory allocation and copy length should be SECTOR * size for sectors operation.
Signed-off-by: Robert <luyao-c at 360.cn>
diff --git a/com32/gpllib/disk/write.c b/com32/gpllib/disk/write.c
index d183ade..3c9edff 100644
--- a/com32/gpllib/disk/write.c
+++ b/com32/gpllib/disk/write.c
@@ -40,7 +40,7 @@ int write_sectors(const struct driveinfo *drive_info, const unsigned int lba,
void *buf;
int rv = -1;
- buf = lmalloc(size);
+ buf = lmalloc(SECTOR * size);
if (!buf)
return -1;
@@ -4...