[klibc] [klibc:master] arm/setjmp.S: fix longjmp
H. Peter Anvin
hpa at zytor.com
Sun Jul 22 08:24:30 PDT 2012
On 07/01/2012 01:57 PM, klibc-bot for Steve McIntyre wrote:
> Commit-ID: d7d16afbdae9bdea83aeb26ac572e6fc4d7d4940
> Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=d7d16afbdae9bdea83aeb26ac572e6fc4d7d4940
> Author: Steve McIntyre <steve at einval.com>
> AuthorDate: Fri, 29 Jun 2012 18:13:34 +0100
> Committer: maximilian attems <max at stro.at>
> CommitDate: Sun, 1 Jul 2012 22:51:00 +0200
>
> [klibc] arm/setjmp.S: fix longjmp
>
> There's a real bug in the ARM assembly version of longjmp in
> usr/klibc/arch/arm/setjmp.S: it will always pass back its first
> argument as a return value, even if it's 0 (see the man page for
> more details). Oddly, the Thumb implementation in the same file
> *is* correct!
>
klibc explicitly considers longjmp(..., 0) to be user error; see the
README file.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
More information about the klibc
mailing list