diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2017-11-29 08:22:29 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2017-11-29 11:03:48 +0200 |
commit | 4be3e658104061aa3657d48e859204193abd5030 (patch) | |
tree | 38586c9a144fbe9a6c4a68fe598fb8eadc0d6891 /sv.c | |
parent | b123425910491a792e15d8d4105aa2a31e48bdd3 (diff) | |
download | perl-4be3e658104061aa3657d48e859204193abd5030.tar.gz |
assert() that the vlnz is not NULL before using it.
Coverity #169272.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -11711,6 +11711,7 @@ S_format_hexfp(pTHX_ char * const buf, const STRLEN bufsize, const char c, * the top non-zero nybble. */ for (i = vfnz[0], n = 0; i > 1; i >>= 1, n++) { } assert(n < 4); + assert(vlnz); vlnz[1] = 0; for (vshr = vlnz; vshr >= vfnz; vshr--) { vshr[1] |= (vshr[0] & (0xF >> (4 - n))) << (4 - n); |