async.c and dict.c in libhiredis.a in hiredis through 0.14.0 allow a NULL pointer dereference because malloc return values are unchecked.
To install Redis::hiredis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Redis::hiredis
CPAN shell
perl -MCPAN -e shell install Redis::hiredis
For more information on module installation, please visit the detailed CPAN module installation guide.