[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stack overflow is basically broken
From: |
Marc Espie |
Subject: |
stack overflow is basically broken |
Date: |
Sat, 29 Sep 2001 18:46:52 +0200 |
User-agent: |
Mutt/1.2.5i |
The routines to detect stack overflow throuh segv are basically
broken. The idea may be fine, but it ends up calling a sigv handler
that uses gettext, printf, stdout... all of which are definitely NOT
sig-safe. Pity, because the hardcode routine is basically very careful
to use write(2), to avoid this.
I haven't checked that translation magic is signal-safe.
- I doubt it;
- stdio is not signal-safe in any kind of portable setting anyways.
- stack overflow is basically broken,
Marc Espie <=