mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1192844: Accept 0xCC padding in WindowsDllDetourPatcher::CreateTrampoline. r=m_kato
--HG-- extra : rebase_source : 6711e475036ea3fe98bb054b79e10ad8d54692fb
This commit is contained in:
parent
84a436a89b
commit
789b31656d
@ -427,13 +427,13 @@ protected:
|
||||
|
||||
while (nBytes < 13) {
|
||||
|
||||
// if found JMP 32bit offset, next bytes must be NOP
|
||||
// if found JMP 32bit offset, next bytes must be NOP or INT3
|
||||
if (pJmp32 >= 0) {
|
||||
if (origBytes[nBytes++] != 0x90) {
|
||||
return;
|
||||
if (origBytes[nBytes] == 0x90 || origBytes[nBytes] == 0xcc) {
|
||||
nBytes++;
|
||||
continue;
|
||||
}
|
||||
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
if (origBytes[nBytes] == 0x0f) {
|
||||
nBytes++;
|
||||
|
Loading…
Reference in New Issue
Block a user