Website Summary Files Commits Branches @commit @diff @stats
path: root / cgit.css
diff options
context:
space:
mode:
Commit33bc949a1e927e14479568518bd92e70998e25f8 (patch)
Author
 John Keeping <john@keeping.me.uk>
2016-01-16 11:03:07 +0000
Committer
 Jason A. Donenfeld <Jason@zx2c4.com>
2016-01-17 17:05:39 +0100
Files4b31bd761caeea599aad3dad07d39341a900a112 /cgit.css
cgit-33bc949a1e927e14479568518bd92e70998e25f8.tar
cgit-33bc949a1e927e14479568518bd92e70998e25f8.tar.gz
cgit-33bc949a1e927e14479568518bd92e70998e25f8.zip
Parent3fbfced7401cfcbb8006a9a6ce4add6b37a41a55 (diff)
cache: don't check for match with no key
We call open_slot() from cache_ls() without a key since we simply want to read the path out of the header. Should the file happen to contain an empty key then we end up calling memcmp() with NULL and a non-zero length. Fix this by assigning slot->match only if a key is set, which is always will be in the code paths where we use slot->match. Coverity-id: 13807 Signed-off-by: John Keeping <john@keeping.me.uk>
0 files changed, 0 insertions, 0 deletions