Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 18 Apr 2024 12:36:32 +0200
From: Florian Weimer <fweimer@...hat.com>
To: Keith Packard <keithp@...thp.com>
Cc: libc-coord@...ts.openwall.com
Subject: Re: Preventing re-use of jmp_buf?

* Keith Packard:

> I've got a bug report in the X libraries where a code path accidentally
> re-used a jmp_buf as a parameter to longjmp. This caused quite the
> confusing error report.
>
> Would it be reasonable to have longjmp modify jmp_buf on the way through
> so that a second usage could be trapped?

I think it's possible to meet all the preconditions for longjmp and call
it multiple times after a setjmp call, on the same buffer.  Therefore, I
don't think this would be a conforming or just compatible change.

Thanks,
Florian

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.