Liste des Groupes | Revenir à cl misc |
John Ames <commodorejohn@gmail.com> writes:On Tue, 2 Apr 2024 15:30:09 -0000 (UTC)>
candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
wrote:
>It still protects writing to memory outside that buffer, right?>
[snip]
"Protecting memory" doesn't mean "no page fault," though, just that it
won't scribble all over some other process's memory.
The regions each side of the stack are marked not-present. This supports
automatic stack expansion, within the resource limit for the stack on
one side, and will produce a SIGSEGV or SIGBUS on the other end.
>
>But I am curious>
how universally various freenix distributions these days just let the
application segfault vs. using that as a cue to allocate additional
stack space; a quick test with WSL (Debian somethingorother) runs that
test without complaint, but I don't have a genuine *nix box to hand to
try it with.
All linux will allocate space, up to the stack resource limit.
Les messages affichés proviennent d'usenet.