search for: patcharea

Displaying 4 results from an estimated 4 matches for "patcharea".

Did you mean: patch_area
2016 Mar 07
1
[PATCH 4/5] installers: fix a possible buffer overflow when looking for LDLINUX_MAGIC
On 2016.03.07 03:27, Shao Miller via Syslinux wrote: > - Casting to a uintptr_t is ugly (and not C89, not that Syslinux cares > about that) Yeah, I'd have liked to avoid that too, but some compilers will complain about pointer arithmetic logic, unless you specifically use uintptr_t. But, considering your other very valid point, let me see if I can work something better here, that
2012 Aug 02
0
[PATCH 1/3] ALPHA: make sector size dynamic in extlinux
...@@ static inline void *ptr(void *img, uint16_t *offset_p) */ int syslinux_patch(const sector_t *sectp, int nsectors, int stupid, int raid_mode, - const char *subdir, const char *subvol) + const char *subdir, const char *subvol, + unsigned sector_size) { struct patch_area *patcharea; struct ext_patch_area *epa; struct syslinux_extent *ex; uint32_t *wp; - int nsect = ((boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT) + 2; + int nsect = ((boot_image_len + sector_size - 1) / sector_size) + 2; uint32_t csum; int i, dw, nptrs; struct fat_...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512. Currently it fixes extlinux, MBR for GPT and ext partitions. Other code is unaffected. This set of patches has been tested on a read Dell machine running a beta firmware.
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by @@ -117,13 +117,33 @@ section .text ; These pointers are used by the installer and ; must be first in the binary -Pointers: dw Int13Start +Pointers: dw SafeHook dw Int15Start dw PatchArea dw TotalSize dw IretPtr IretPtr equ Int13Start.iret +SafeHook: + jmp Int13Start + db 0 ; Pad to three bytes + db ''$INT13SF'' ; Signature for "safe hook" + db ''MEMDISK '' ; Vendor ID + dd 0 ; SEG:OFF of previous INT 13h hook + ; Mu...