diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2016-02-03 08:11:14 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2016-02-07 08:23:46 -0500 |
commit | 4b5c941e759b9302cc3663703de38cb61f3554db (patch) | |
tree | a0edb975713e68c82a21ba54255867f14170eedd /pp_hot.c | |
parent | 71d19c377e6e65ed965e367cd3b5d2233e093857 (diff) | |
download | perl-4b5c941e759b9302cc3663703de38cb61f3554db.tar.gz |
assert() that itersvp is non-NULL.
Coverity CID 135011 Explicit null derefenced
In pp_iter() there are multiple derefers of *itersvp, but at the
setting of itersvp the CxITERVAR() can return NULL, add an assert()
to catch the badness in debug builds (as the Coverity builds are).
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2632,6 +2632,7 @@ PP(pp_iter) cx = CX_CUR(); itersvp = CxITERVAR(cx); + assert(itersvp); switch (CxTYPE(cx)) { |