mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 17:50:16 +02:00
* Fixed UnhookSignal when RTL_SIGDEFAULT is passed. The bug have caused crash on aarch64-android due to out of bounds read of the rtlsig2ossig[] array.
git-svn-id: trunk@39860 -
This commit is contained in:
parent
ada940e80d
commit
23006d16f5
@ -274,7 +274,7 @@ procedure UnhookSignal(RtlSigNum: Integer; OnlyIfHooked: Boolean = True);
|
||||
fillchar(act,sizeof(act),0);
|
||||
pointer(act.sa_handler):=pointer(SIG_DFL);
|
||||
end;
|
||||
if (fpsigaction(rtlsig2ossig[RtlSigNum],@act,nil)=0) then
|
||||
if (fpsigaction(rtlsig2ossig[i],@act,nil)=0) then
|
||||
siginfo[i].hooked:=false;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user