debuginfod: sqlite3_sharedprefix_fn should not compare past end of string
authorMark Wielaard <mark@klomp.org>
Sat, 4 Dec 2021 12:07:04 +0000 (13:07 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 5 Dec 2021 17:20:26 +0000 (18:20 +0100)
commit32ceb411faec6ca61ee04707fe014efa15e9a5df
tree271d5fcc6586ac3e2a26b90b60f7cf65c181c85c
parentb4c0791d3e2ad29ee7111e8df1200bc08d6e4671
debuginfod: sqlite3_sharedprefix_fn should not compare past end of string

gcc address sanitizer detected a read after the end of string in
sqlite3_sharedprefix_fn. Make sure to stop comparing the strings when
seeing the zero terminator.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/debuginfod.cxx