coverity 169276-9 - false positive assuming 8b char: char limits index size

This commit is contained in:
Andy Green 2016-08-28 09:39:21 +08:00
parent d11bee7fc5
commit 72502e86f5

View file

@ -29,7 +29,7 @@ sha1_to_lwsgw_hash(unsigned char *hash, lwsgw_hash *shash)
int n;
for (n = 0; n < 20; n++) {
*p++ = hex[hash[n] >> 4];
*p++ = hex[(hash[n] >> 4) & 0xf];
*p++ = hex[hash[n] & 15];
}