libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [patch] fetch16 and fetch32 should not assert


From: Paul Pluzhnikov
Subject: [Libunwind-devel] [patch] fetch16 and fetch32 should not assert
Date: Tue, 4 Apr 2017 18:16:40 -0700

Greetings,

In src/ppc64/Gstep.c, we use fetch32 to fetch instruction from the
inferior process. In  UNW_REMOTE case, fetch32 asserts that the
address we are fetching from is aligned.

But if the inferior is corrupt, we can get unaligned IP, and hit the assert.

Attached patch removes the assert, and makes fetch32 (and fetch16)
return -UNW_EINVAL instead.

-- 
Paul Pluzhnikov

Attachment: libunwind-20170404.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]