Displaying 2 results from an estimated 2 matches for "e5212a9".
Did you mean:
352129
2011 Jul 16
1
crash in extlinux/main
Hi,
I found a bug in extlinux/main.c. Writing a bootloader on a file mounted via
/dev/mapper in Lunix it crashed on me with a segment fault.
The bug is here:
if (!ioctl(devfd, HDIO_GETGEO, &geo)) {
Since we are already called with geo as a pointer the & is wrong as the
pointer itself will be overwritten.
This works:
int get_geometry(int devfd, uint64_t totalbytes, struct
2011 Apr 15
0
[GIT PULL] syslinux command-line
...te option properly
extlinux/main.c | 15 +--------------
libinstaller/syslxcom.c | 13 +++++++++++++
libinstaller/syslxcom.h | 1 +
linux/syslinux.c | 4 ++++
4 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 21369e4..e5212a9 100755
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -503,19 +503,6 @@ int install_file(const char *path, int devfd, struct
stat *rst)
return 1;
}
-/*
- * SYSLINUX installs the string 'SYSLINUX' at offset 3 in the boot
- * sector; this is consistent with FAT filesystems. Earlier versi...