From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] ntldr support
Date: Mon, 10 Aug 2009 20:57:38 +0200 [thread overview]
Message-ID: <4A806DA2.3070006@t-online.de> (raw)
In-Reply-To: <20090810115224.GJ9344@thorin>
Robert Millan wrote:
>> It probably would make sense that the 'ntldr' command does simple
>> signature checks and fail on unknown files unless '--force' is specified.
>>
>
> You mean checking for the PE signature? Yes, this would be nice too.
>
>
A check of the first byte (jmp, 0xe9) and some file size range check
(e.g. 0x30000...0x40000) may be enough for a first ntldr command. May
also work for bootmgr.exe.
EXE ("MZ") and PE headers appear at larger offsets:
ntldr from XP SP2: size 251184, EXE header at 0x4d30, PE at 0x4e00
ntldr from XP SP3: size 251712, EXE header at 0x4d40, PE at 0x4e10
bootmgr.exe from Vista: ???
grub4dos checks for ntldr as follows:
- file starts with 0xe9, 0x??, 0x01,
- first sector does not end with bootsector signature 0x55,0xaa,
- file size exceeds 0x30000.
--
Regards
Christian Franke
next prev parent reply other threads:[~2009-08-10 18:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-02 23:24 [PATCH] ntldr support Robert Millan
2009-08-04 18:36 ` Christian Franke
2009-08-04 19:27 ` Robert Millan
2009-08-04 20:09 ` Vladimir 'phcoder' Serbinenko
2009-08-05 5:35 ` Christian Franke
2009-08-07 10:58 ` Robert Millan
2009-08-07 11:17 ` Michal Suchanek
2009-08-07 11:43 ` Robert Millan
2009-08-07 22:55 ` Michal Suchanek
2009-08-08 21:44 ` Christian Franke
2009-08-08 11:45 ` Yves Blusseau
2009-08-08 11:55 ` Vladimir 'phcoder' Serbinenko
2009-08-08 21:57 ` Christian Franke
2009-08-10 11:52 ` Robert Millan
2009-08-10 18:57 ` Christian Franke [this message]
2009-08-10 19:55 ` Vladimir 'phcoder' Serbinenko
2009-08-10 21:00 ` Christian Franke
-- strict thread matches above, loose matches on Subject: below --
2009-10-25 23:28 Nando
2009-10-26 1:05 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A806DA2.3070006@t-online.de \
--to=christian.franke@t-online.de \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.