param_key: fix some address handling
commitcae9c11f83bb43601899f46aef1a1d070f87ee5c
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 13:38:07 +0000 (16 16:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 13:38:07 +0000 (16 16:38 +0300)
treed44be00300561390629026c3c4706611de9d06bd
parent6df9a0a380befefed25afde976501c27b1a545ed
param_key: fix some address handling

This patch got tangled with another thing I was working on and so it's
sort of a mess.  Somehow the key part of the param/key are getting
truncated in the database and I'm not sure where it happens.  It's probably
better to just not record anything instead of recording a truncated key.
The data is useless and not recording it will save disk space.  I added a
bunch of checks for snprintf() truncation and that's not the bug so I
stopped looking...

But the important part of this commit is that it improves how addresses are
handled.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_param_key.c