]> git.kaiwu.me - nginx.git/commit
Perl: handling of allocation errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 12 Jul 2019 10:56:23 +0000 (13:56 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 12 Jul 2019 10:56:23 +0000 (13:56 +0300)
commit9d266efbc0c1170215397ae669165911b5a828d6
treea2114834feebae8e8913ef19555f95c1bdcb6e16
parent4a0771f9a62eccf168e651a502e67ec17d1cd6c7
Perl: handling of allocation errors.

Previously, allocation errors in nginx.xs were more or less ignored,
potentially resulting in incorrect code execution in specific low-memory
conditions.  This is changed to use ctx->error bit and croak(), similarly
to how output errors are now handled.

Note that this is mostly a cosmetic change, as Perl itself exits on memory
allocation errors, and hence nginx with Perl is hardly usable in low-memory
conditions.
src/http/modules/perl/nginx.xs