mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 14:39:10 +00:00
Merge pull request #3607 from pks-t/pks/coverity-improvements
Coverity improvements for GITERR_CHECK_ALLOC
This commit is contained in:
commit
66ce08a66c
@ -33,6 +33,8 @@ if [ ! -d "$TOOL_BASE" ]; then
|
|||||||
ln -s "$TOOL_DIR" "$TOOL_BASE"/cov-analysis
|
ln -s "$TOOL_DIR" "$TOOL_BASE"/cov-analysis
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp script/user_nodefs.h "$TOOL_BASE"/cov-analysis/config/user_nodefs.h
|
||||||
|
|
||||||
COV_BUILD="$TOOL_BASE/cov-analysis/bin/cov-build"
|
COV_BUILD="$TOOL_BASE/cov-analysis/bin/cov-build"
|
||||||
|
|
||||||
# Configure and build
|
# Configure and build
|
||||||
@ -48,10 +50,9 @@ COVERITY_UNSUPPORTED=1 \
|
|||||||
tar czf libgit2.tgz cov-int
|
tar czf libgit2.tgz cov-int
|
||||||
SHA=$(git rev-parse --short HEAD)
|
SHA=$(git rev-parse --short HEAD)
|
||||||
curl \
|
curl \
|
||||||
--form project=libgit2 \
|
|
||||||
--form token="$COVERITY_TOKEN" \
|
--form token="$COVERITY_TOKEN" \
|
||||||
--form email=bs@github.com \
|
--form email=bs@github.com \
|
||||||
--form file=@libgit2.tgz \
|
--form file=@libgit2.tgz \
|
||||||
--form version="$SHA" \
|
--form version="$SHA" \
|
||||||
--form description="Travis build" \
|
--form description="Travis build" \
|
||||||
http://scan5.coverity.com/cgi-bin/upload.py
|
https://scan.coverity.com/builds?project=libgit2
|
||||||
|
8
script/user_nodefs.h
Normal file
8
script/user_nodefs.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) the libgit2 contributors. All rights reserved.
|
||||||
|
*
|
||||||
|
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
||||||
|
* a Linking Exception. For full terms see the included COPYING file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#nodef GITERR_CHECK_ALLOC(ptr) if (ptr == NULL) { __coverity_panic__(); }
|
Loading…
Reference in New Issue
Block a user