Skip to content

Fix crashes in 64 bit Mozilla and Chrome-based applications.#6497

Merged
jcsteh merged 1 commit into
masterfrom
gecko64Crash
Nov 14, 2016
Merged

Fix crashes in 64 bit Mozilla and Chrome-based applications.#6497
jcsteh merged 1 commit into
masterfrom
gecko64Crash

Conversation

@jcsteh

@jcsteh jcsteh commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

Gecko vbuf backend: Don't pass a pointer to a 32 bit int to IAccessible2::get_windowHandle, which expects a pointer to a 64 bit HWND.
HWND is a 64 bit type on x64, but Windows guarantees that only 32 bits are used. However, just because the other bits aren't used doesn't mean they won't be written, thus potentially corrupting the stack.
Crash originally reported by @MarcoZehe in Mozilla bug 1311062.

Gecko vbuf backend: Don't pass a pointer to a 32 bit int to IAccessible2::get_windowHandle, which expects a pointer to a 64 bit HWND.
HWND is a 64 bit type on x64, but Windows guarantees that only 32 bits are used. However, just because the other bits aren't used doesn't mean they won't be written, thus potentially corrupting the stack.
Crash originally reported by @MarcoZehe in Mozilla bug 1311062.
@jcsteh

jcsteh commented Oct 24, 2016

Copy link
Copy Markdown
Contributor Author

@michaelDCurran, can you take a look please? Ta.

@michaelDCurran

Copy link
Copy Markdown
Member

Looks fine.

jcsteh added a commit that referenced this pull request Oct 24, 2016
@jcsteh jcsteh merged commit 87a675d into master Nov 14, 2016
@nvaccessAuto nvaccessAuto added this to the 2016.4 milestone Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants