Skip to content
Commit 490d18b3 authored by Carlo Kok's avatar Carlo Kok
Browse files

(Minor tweak) Make RegisterContextWindows_x86/x64::GetRegisterInfoAtIndex

return NULL for an invalid register.

The unwind logic asks for the "return address register" which doesn't exist
on x86/x86_64, returns -1 and calls this with -1 as a parameter, ends up 
out of scope of the array bounds for g_register_infos and later SIGSEGVs 
on accessing. This now matches the other GetRegisterInfoAtIndex for
other platforms.

llvm-svn: 271876
parent 26a56ada
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment