mirror of https://github.com/pbatard/rufus.git
Browse Source
[misc] fix Coverity warnings
[misc] fix Coverity warnings
* Also re-instate the _coverity.cmd script and try to fix AppVeyor Coverity uploadspull/1574/head

No known key found for this signature in database
GPG Key ID: 38E0CF5E69EDD671
7 changed files with 45 additions and 17 deletions
-
26_coverity.cmd
-
11appveyor.yml
-
2src/bled/bb_archive.h
-
4src/drive.c
-
7src/format.c
-
2src/parser.c
-
10src/rufus.rc
@ -0,0 +1,26 @@ |
|||
@rem *** Internal developer script to run Coverity *** |
|||
@echo off |
|||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" |
|||
set COV_DIR=B:\cov-analysis-win64-2019.03 |
|||
set PATH=%PATH%;%COV_DIR%\bin |
|||
set PWD=%~dp0 |
|||
set TARGET=x86 |
|||
rmdir cov-int /s /q >NUL 2>NUL |
|||
rmdir %TARGET% /s /q >NUL 2>NUL |
|||
del cov-int.zip >NUL 2>NUL |
|||
mkdir cov-int |
|||
cov-build --dir cov-int msbuild rufus.sln /p:Configuration=Release,Platform=%TARGET% /maxcpucount |
|||
rem *** for when/if Coverity manage to clean their act |
|||
rem cov-build --dir cov-int C:\msys64\usr\bin\bash -cl "export PATH=/mingw32/bin:$PATH; cd /c/rufus; ./configure --build=i686-w64-mingw32 --host=i686-w64-mingw32 --disable-debug; make -j4" |
|||
rem *** zip script by Peter Mortensen - http://superuser.com/a/111266/286681 |
|||
echo Set objArgs = WScript.Arguments> zip.vbs |
|||
echo InputFolder = objArgs(0)>> zip.vbs |
|||
echo ZipFile = objArgs(1)>> zip.vbs |
|||
echo CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar)>> zip.vbs |
|||
echo Set objShell = CreateObject("Shell.Application")>> zip.vbs |
|||
echo Set source = objShell.NameSpace(InputFolder)>> zip.vbs |
|||
echo objShell.NameSpace(ZipFile).CopyHere(source)>> zip.vbs |
|||
echo wScript.Sleep 8000>> zip.vbs |
|||
CScript zip.vbs %PWD%cov-int %PWD%cov-int.zip |
|||
del zip.vbs |
|||
pause |
Write
Preview
Loading…
Cancel
Save
Reference in new issue