Fix thinko in hek_eq_pvn_flags
authorFather Chrysostomos <sprout@cpan.org>
Sat, 24 Sep 2011 13:29:10 +0000 (06:29 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 6 Oct 2011 20:01:02 +0000 (13:01 -0700)
commitd35fec6c72b590957f6515638a64a6e4d0adddf8
tree1757ffddbacf905ef632a7a15c66b3db9b93478a
parent4643eb699312fbf71d4184f6fac9af209f2bfb50
Fix thinko in hek_eq_pvn_flags

Doing memEQ(str1, str2, len2) without checking the length
first will cause memEQ("forth","fort"...) to compare equal and
memEQ("fort","forth"...) to read unallocated memory.

This was only a potential future problem, as none of the callers reach
this branch.
hv.c