Commit graph

26 commits

Author SHA1 Message Date
William S Fulton
60af317956 Fix UBSAN errors in ccache-swig
ccache.c:738:18: runtime error: null pointer passed as argument 1, which is declared to never be null
Fixes stderr redirect in testname CCACHE_CPP2, when the CCACHE_CPP2
environment variable is defined.

mdfour.c:91:20: runtime error: left shift of 139 by 24 places cannot be represented in type 'int'
Looks like this brings some stability to the md4 hash calculation.

Closes #2449
2022-11-26 18:18:55 +00:00
Amarnath Valluri
478d5df911 CCache: Fix memory/file descriptor leaks
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
2016-06-17 15:07:36 +03:00
William S Fulton
bee563e788 ccache-swig: apply patch #3586392 from Frederik Deweerdt to fix some error cases - incorrectly using memory after it has been deleted
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:17:52 +00:00
William S Fulton
2e68619a9f add some missing stats and logging
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11039 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 17:52:15 +00:00
William S Fulton
7c81201d28 Fix lack of error logging in some situations and fix failure to work on windows when swig is a pure Win32 (non-cygwin) compile
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-07 02:26:34 +00:00
William S Fulton
46e1ecd2d9 log internal error wrt CCACHE_OUTFILES env variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11032 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-07 00:45:04 +00:00
William S Fulton
ecd75a5c48 Fix CCACHE_STRIPC being set when using swig as the compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11031 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-06 18:13:57 +00:00
William S Fulton
a648bb7f38 Add CCACHE_STRIPC option to remove an unwarranted warning when using ccache with the Solaris Workshop C++ compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-21 23:16:56 +00:00
William S Fulton
ab29ac767a win32 fixes to pass the ccache test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10987 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-19 21:41:05 +00:00
William S Fulton
59a8cdaa58 remove cast needed for windows - doesn't work on linux
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-17 00:28:51 +00:00
William S Fulton
5964f3e27d initial win32 support mostly using ccache-win32-2.4 patches to ccache-2.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-17 00:21:13 +00:00
William S Fulton
3054ed120a Clean up gcc-4.3 warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-07 10:57:43 +00:00
William S Fulton
8cd10cfe2a warning fix for when zlib not available
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-26 21:44:53 +00:00
William S Fulton
1cdc534a65 dont replicate the -nopreprocess command if it is given when using swig as compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-19 00:57:09 +00:00
William S Fulton
a5d91ce4f1 add input and output files to hash for correct operation when swig is the compiler. Automatically detect when swig is the compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-17 22:43:15 +00:00
William S Fulton
e497a9653a create executable name as ccache-swig instead of ccache to avoid conflict with the official ccache
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10918 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-05 16:57:21 +00:00
William S Fulton
59988d9474 initial modifications for ccache to support SWIG
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-05 12:34:15 +00:00
William S Fulton
27e03f3f86 apply debian/patches/12_cachesize_permissions.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:08:28 +00:00
William S Fulton
ac1b517350 apply debian/patches/11_utimes.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:07:51 +00:00
William S Fulton
7ba7198c28 apply debian/patches/10_lru_cleanup.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:06:06 +00:00
William S Fulton
0c20caeddc apply debian/patches/07_cachedirtag.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:04:15 +00:00
William S Fulton
6f3603a05a apply debian/patches/06_md.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:03:52 +00:00
William S Fulton
05ec950cc2 apply debian/patches/04_ignore_profile.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:02:57 +00:00
William S Fulton
72caf5920f apply debian/patches/02_ccache-compressed.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 14:02:32 +00:00
William S Fulton
5236ddf57c apply debian/patches/01_no_home.diff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 13:59:23 +00:00
William S Fulton
482d91951a Import ccache-2.4 source
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 13:37:28 +00:00