diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2019-07-12 13:56:23 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2019-07-12 13:56:23 +0300 |
commit | 9d266efbc0c1170215397ae669165911b5a828d6 (patch) | |
tree | a2114834feebae8e8913ef19555f95c1bdcb6e16 /src/http/modules/perl/ngx_http_perl_module.c | |
parent | 4a0771f9a62eccf168e651a502e67ec17d1cd6c7 (diff) | |
download | nginx-9d266efbc0c1170215397ae669165911b5a828d6.tar.gz nginx-9d266efbc0c1170215397ae669165911b5a828d6.zip |
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.
Diffstat (limited to 'src/http/modules/perl/ngx_http_perl_module.c')
0 files changed, 0 insertions, 0 deletions