This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ec3cd
)
hv_iternext can return NULL
author
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 22 Oct 2015 12:35:10 +0000
(08:35 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 24 Oct 2015 00:55:58 +0000
(20:55 -0400)
Coverity #104801
cpan/Devel-PPPort/parts/inc/misc
patch
|
blob
|
blame
|
history
diff --git
a/cpan/Devel-PPPort/parts/inc/misc
b/cpan/Devel-PPPort/parts/inc/misc
index
1cf1e7e
..
aedad05
100644
(file)
--- a/
cpan/Devel-PPPort/parts/inc/misc
+++ b/
cpan/Devel-PPPort/parts/inc/misc
@@
-521,7
+521,9
@@
check_HeUTF8(utf8_key)
hv_store(hash, key, klen, newSVpvs("string"), 0);
hv_iterinit(hash);
ent = hv_iternext(hash);
- mXPUSHp((HeUTF8(ent) == 0 ? "norm" : "utf8"), 4);
+ if (ent) {
+ mXPUSHp((HeUTF8(ent) == 0 ? "norm" : "utf8"), 4);
+ }
hv_undef(hash);