A static analyzer for Java, C, C++, and Objective-C

Overview

logo

Infer Build Status

Infer is a static analysis tool for Java, C++, Objective-C, and C. Infer is written in OCaml.

Installation

Read our Getting Started page for details on how to install packaged versions of Infer. To build Infer from source, see INSTALL.md.

Contributing

See CONTRIBUTING.md.

License

Infer is MIT-licensed.

Note: Enabling Java support may require you to download and install components licensed under the GPL.

Issues
  • Failed to build iOS project,how to fix

    Failed to build iOS project,how to fix

    I use : infer --incremental -- xcodebuild -workspace xxx.xcworkspace -scheme xxx -sdk iphonesimulator -configuration Debug -destination 'platform=iOS Simulator,OS=9.2,name=iPhone 6s' CLANG_ENABLE_MODULES=NO clean build

    The following build commands failed: CompileC /Users/jianzhang/Library/Developer/Xcode/DerivedData/xxxxxxxx-aiaocxwzriymuzayasydwppoqjls/Build/Intermediates/Pods.build/Debug-iphonesimulator/MQTTKit.build/Objects-normal/x86_64/logging_mosq.o MQTTKit/libmosquitto/logging_mosq.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Traceback (most recent call last): File "/usr/local/bin/infer", line 178, in main() File "/usr/local/bin/infer", line 142, in main capture_exitcode = imported_module.gen_instance(args, cmd).capture() File "/usr/local/Cellar/infer/0.8.0/libexec/infer/lib/python/inferlib/capture/xcodebuild.py", line 78, in capture utils.stdout(exc.output) File "/usr/local/Cellar/infer/0.8.0/libexec/infer/lib/python/inferlib/utils.py", line 298, in stdout print(encode(s, errors=errors)) File "/usr/local/Cellar/infer/0.8.0/libexec/infer/lib/python/inferlib/utils.py", line 294, in encode return u.encode(encoding=config.LOCALE, errors=errors) AttributeError: 'NoneType' object has no attribute 'encode'

    opened by yanqi8573 30
  • infer failed in Xcode9: infer xcodebuild output error - *** Infer needs a working compilation command to run

    infer failed in Xcode9: infer xcodebuild output error - *** Infer needs a working compilation command to run

    My project is created by Objective-C. And infer v0.12.0 was run successfully for my project in xcode 8 yesterday. Today I update my xcode to xcode 9, use some APIs in iOS 11, and update infer to v0.12.1. Then when I run infer v0.12.1 on Xcode 9 with iOS 11 and LLVM v9.0.0 using the following command:

    infer -- xcodebuild -workspace myProject.xcworkspace -scheme myProject -configuration Debug -sdk iphonesimulator
    

    I got the following results:

    Build Succeeded
    Starting translating 463 files 
    
    *** ERROR: Failed to execute compilation command. Output:
    clang: error: cannot specify -o when generating multiple output files
    *** Infer needs a working compilation command to run.
    

    ..MANY OF THESE ERRORS...then...

    ...
    *** ERROR: Failed to execute compilation command. Output:
    clang: error: cannot specify -o when generating multiple output files
    *** Infer needs a working compilation command to run.
    ..
    
    Nothing to compile. Try running `xcodebuild -workspace myProject.xcworkspace -scheme myProject -configuration Debug -sdk iphonesimulator clean` first.
    
    There was nothing to analyze.
    
    opened by tianshunjian 29
  • Migrate Website to Docusaurus 2 Alpha

    Migrate Website to Docusaurus 2 Alpha

    Hi there! The Docusaurus team is currently developing Docusaurus 2 and are almost done with an MVP that doesn't include translations and versioning features, which means there's feature parity with your website's current usage of Docusaurus.

    Docusaurus 2 brings about many improvements:

    • Client-side rendering with prerendering (site renders without JavaScript!)
    • More flexible appearance - Customizable layouts, CSS modules, etc
    • Embeddable interactive React components within markdown via MDX

    I will be helping you migrate and be the POC throughout the migration process. Let me know what you think!

    cc @yangshun @endiliey @wgao19

    opened by mishal23 28
  • (Unix.Exit_or_signal (Exit_non_zero 66))

    (Unix.Exit_or_signal (Exit_non_zero 66))

    When I run ./gradlew build, I get a BUILD SUCCESSFUL. When I run infer -- ./gradlew build, I get the following error:

    $ ./gradlew build --stacktrace
    ...
    
    BUILD SUCCESSFUL
    
    ...
    $ infer -- ./gradlew build --stacktrace
    Capturing in gradle mode...
    Running and capturing gradle compilation...
    Nothing to compile. Try running `./gradlew clean` first.
    Uncaught exception:
      
      (Unix.Exit_or_signal (Exit_non_zero 66))
    
    Raised at file "src/error.ml", line 7, characters 20-30
    Called from file "backend/infer.ml", line 455, characters 2-21
    

    I'm running OS X El Capitan Version 10.11.6 and Infer 0.10.0.

    opened by Will5 27
  • Issue Building clang

    Issue Building clang

    I tried building clang after java and got stuck in the process.

    details:

    checking for ant... no checking for buck... no checking for mvn... no checking for ndk-build... no checking for ndk-build... no checking for Python module lxml... ok checking for xcpretty... no configure: saving configure flags to ./config.flags configure: creating ./config.status config.status: creating Makefile.autoconf

    Warning: you are not using a release of Infer. The C and Objective-C analyses require a custom clang to be compiled now. This step takes ~30-60 minutes, possibly more.

    To speed this along, you are encouraged to use a release of Infer instead:

    http://fbinfer.com/docs/getting-started.html

    If you are only interested in analyzing Java programs, simply run this script with only the "java" argument:

    ./build-infer.sh java

    Are you sure you want to compile clang? (y/N) y CMake Warning at cmake/modules/HandleLLVMOptions.cmake:143 (message): -fPIC is not supported. Call Stack (most recent call first): cmake/modules/HandleLLVMOptions.cmake:161 (add_flag_or_print_warning) CMakeLists.txt:497 (include)

    CMake Warning (dev) at projects/libcxx/CMakeLists.txt:15 (project): Policy CMP0048 is not set: project() command manages VERSION variables. Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

    The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
    

    This warning is for project developers. Use -Wno-dev to suppress it.

    clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s' clang: warning: argument unused during compilation: '-s'

    This warning is keeping coming and clang is not built

    Thanks Shreyas

    opened by shreyasmrs 25
  • Confuse how to integrate Infer into our Gitlab CI

    Confuse how to integrate Infer into our Gitlab CI

    I am confused how to integrate Infer into our Gitlab CI pipeline at static analysis stage:

    • To slow I use this command follow the wiki,but still scan whole project 1700+ files when CI Runner checkout the branch every time。
    infer --reactive --continue -- xcodebuild -workspace xxx.xcworkspace -scheme xxx -sdk iphonesimulator10.2 -configuration Debug build
    
    • Can seperate two phases? I just want to analyze the commit files ,but Infer must compile first,and use command infer -- <command> Suppose our CI pipeline include build,test,pre-production,production 4 phase. Assuming there are two jobs in the build phase, the first job is build, the second is static analysis, , and infer - <command> combine two jobs, and make the build phase become slow.

    • Can not set the threshold, analyze the results and throw error so that the pipeline to stop

    Please give me a suggestion how to integrate infer into our CI process correctly,thanks!

    opened by sencho 25
  • `infer -- javac Hello.java` fails to run when the current path contains whitespaces

    `infer -- javac Hello.java` fails to run when the current path contains whitespaces

    I have tried to test infer using Hello.java which was located in Desktop/Hello folder in my mac. And it said "Failed to load any Java source code". (Refer below commands that I tried.).

    CD-RWEERASOORI:Desktop rweerasooriya$ infer -v Infer version v0.1.1 Copyright 2009 - present Facebook. All Rights Reserved.

    CD-RWEERASOORI:Desktop rweerasooriya$ java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

    CD-RWEERASOORI:Desktop rweerasooriya$ cd Hello/ CD-RWEERASOORI:Hello rweerasooriya$ ls Hello.java

    CD-RWEERASOORI:Hello rweerasooriya$ infer -- javac Hello.java Fatal error: exception Failure("Failed to load any Java source code") [ERROR] Failure during frontend, original command was

    [u'inferJ', u'-g', u'-a', 'infer', u'javac', 'Hello.java']

    Traceback (most recent call last): File "/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/inferJ", line 19, in stats = analysis.start() File "/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/inferlib.py", line 632, in start if self.capture() == os.EX_OK: File "/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/inferlib.py", line 400, in capture return self.run_infer_frontend() File "/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/inferlib.py", line 391, in run_infer_frontend self.args.analyzer File "/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/inferlib.py", line 318, in run_command raise e subprocess.CalledProcessError: Command '[u'/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/InferJava', u'-results_dir', '/Users/rweerasooriya/Desktop/Hello/infer-out', u'-verbose_out', '/var/folders/x0/_9n0fqgj2zngnvt0642_h384zc4l_4/T/javac_hTItgR.out', u'-models', u'/Users/rweerasooriya/infer-osx-v0.1.1/infer/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2 CD-RWEERASOORI:Hello rweerasooriya$

    bug java 
    opened by randikapw 25
  • javalib incompatibility causes infer -- javac Hello.java to fail with no files analyzed

    javalib incompatibility causes infer -- javac Hello.java to fail with no files analyzed

    the log trace is as below: [email protected]:~/workspace/test$ infer -- javac Hello.java TODO: print error message Starting analysis (Infer version v0.1.0) Fatal error: exception Sys_error("/home/wyw/workspace/test/infer-out/captured: No such file or directory") [ERROR] Failure during create_makefile, original command was

    [u'inferJ', u'-g', u'-a', 'infer', u'javac', 'Hello.java']

    Traceback (most recent call last): File "/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/inferJ", line 19, in stats = analysis.start() File "/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/inferlib.py", line 634, in start self.analyze_and_report() File "/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/inferlib.py", line 613, in analyze_and_report if self.analyze() == os.EX_OK: File "/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/inferlib.py", line 489, in analyze self.args.analyzer File "/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/inferlib.py", line 318, in run_command raise e subprocess.CalledProcessError: Command '[u'/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/InferAnalyze', u'-results_dir', '/home/wyw/workspace/test/infer-out', u'-makefile', u'Makefile', u'-allow_specs_cleanup', u'-models', u'/home/wyw/Downloads/infer-linux64-v0.1.0/infer/infer/bin/../lib/java/models.jar', u'-project_root', '/home/wyw/workspace/test']' returned non-zero exit status 2

    Anyone could explain?

    java 
    opened by wywlds 25
  • Detect instance fields

    Detect instance fields

    Hi again,

    In the checker I am trying to create, I need to know whether a fieldname is an instance field or not. Example:

    class Hello{
      int foo= 0;
    
      public void test(){
        int i = 0;
        i=3+foo; // foo is a an instance field
        System.out.println("ok");
      }
    }
    

    I took a look at the Ident.java_fieldname_is_outer_instance to give me an idea method but I'm not quite sure when appears the string ".this$".

    Do you have any suggestion?

    opened by luiscruz 24
  • Alarm report issue

    Alarm report issue

    Hi Infer team,

    I am making a new checker using the abstract interpretation module of Infer. When reporting alarms, my checker sometimes ignores some of them.

    Here is a brief description of the error reporting part in my checker code.

    let checker { Callbacks.get_proc_desc; proc_name; proc_desc; tenv; } =
      let post = Interprocedural.checker callback get_proc_desc in
      match post with
      | Some post -> 
          (* iteration on found errors *)
          Error.iter (fun e -> 
            Checkers.ST.report_error tenv
              e.proc_name             (* here, I don't use the parameter *)
              e.proc_desc             (* here, I don't use the parameter *)
              "MY CHECKER"
              e.location
              err_description
          ) errors
      | _ -> ()
    

    Basically I followed the tutorial and I think the only differences are the commented parts. ("proc_name" and "proc_desc")

    In my experience, the alarm reporting works well when Infer takes a single file. But it ignores some of them when analyzing multiple files.

    Could you give me an advice?

    Thanks, Kihong

    opened by KihongHeo 23
  • Support java classnames with $$

    Support java classnames with $$

    Many annotation libraries generate class names with $$ in them. It would be great if that could be supported. Currently Infer spits out the following...

    Fatal error: exception Invalid_argument("Error : com.company.project.android.activity.TestActivity$$ViewInjector$1 is not a valid name for a class")
    
    java 
    opened by zsiegel 23
  • Large ERROR RUNNING CAPTURE & the following clang command did not run successfully

    Large ERROR RUNNING CAPTURE & the following clang command did not run successfully

    Please make sure your issue is not addressed in the FAQ.

    Please include the following information:

    • [x] The version of infer from infer --version. Infer version v1.1.0 Copyright 2009 - present Facebook. All Rights Reserved.
    • [x] Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc. MacOS Big Sur & Xcode 13.0
    • [x] Which command you ran, for example infer -- make.
    1. xcodebuild clean build -workspace CodeLib.xcworkspace -scheme CodeLib -sdk iphoneos -configuration Release | xcpretty -r json-compilation-database -o compile_commands.json
    2. infer run --keep-going -o ./infer --compilation-database-escaped compile_commands.json
    • [x] The full output in a paste, for instance a gist. Part I
    [31762][      debug] *** Beginning capture of file /Users/yocivic/code/Temp/CodeLib/Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m ***
    [31762][      debug] Loading the following linters files: /usr/local/Cellar/infer/1.1.0_1/lib/infer/infer/bin/../lib/linter_rules/linters.al
    [31762][      debug] 
    [31762][ intern err] ERROR RUNNING CAPTURE: "Assert_failure src/clang/objcCategory_decl.ml:20:62"
    Raised at ClangFrontend__ObjcCategory_decl.get_classname in file "src/clang/objcCategory_decl.ml", line 20, characters 62-74
    Called from ClangFrontend__ObjcCategory_decl.get_classname_from_category_decl in file "src/clang/objcCategory_decl.ml", line 23, characters 44-94
    Called from ClangFrontend__CFrontend_decl.CFrontend_decl_funct.translate_one_declaration in file "src/clang/cFrontend_decl.ml", line 383, characters 12-133
    Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
    Called from Base__List0.iter in file "src/list0.ml" (inlined), line 25, characters 16-35
    Called from ClangFrontend__CFrontend.compute_icfg in file "src/clang/cFrontend.ml", line 27, characters 6-130
    Called from ClangFrontend__Capture.run_clang_frontend in file "src/clang/Capture.ml", line 94, characters 25-73
    
    
    [31762][ extern err] Error: the following clang command did not run successfully:
    [31762][ extern err]     /usr/local/Cellar/infer/1.1.0_1/lib/infer/facebook-clang-plugins/clang/install/bin/clang-11
    [31762][ extern err]     @/Users/yocivic/code/Temp/CodeLib/infer/tmp/clang_command_.tmp.beb1bc.txt
    [31762][ extern err]   ++Contents of '/Users/yocivic/code/Temp/CodeLib/infer/tmp/clang_command_.tmp.beb1bc.txt':
    [31762][ extern err]     "-cc1" "-load"
    [31762][ extern err]     "/usr/local/Cellar/infer/1.1.0_1/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
    [31762][ extern err]     "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
    [31762][ extern err]     "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
    [31762][ extern err]     "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
    [31762][ extern err]     "thumbv7-apple-ios10.0.0" "-Wundef-prefix=TARGET_OS_"
    [31762][ extern err]     "-Werror=undef-prefix" "-fsyntax-only" "-disable-free"
    [31762][ extern err]     "-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
    [31762][ extern err]     "UPCameraFullLiveViewModel.m" "-mrelocation-model" "pic" "-pic-level" "2"
    [31762][ extern err]     "-mframe-pointer=all" "-fno-rounding-math" "-faligned-alloc-unavailable"
    [31762][ extern err]     "-target-sdk-version=15.0"
    [31762][ extern err]     "-fcompatibility-qualified-id-block-type-checking" "-target-cpu"
    [31762][ extern err]     "generic" "-target-feature" "+soft-float-abi" "-target-abi" "apcs-gnu"
    [31762][ extern err]     "-mfloat-abi" "soft" "-fallow-half-arguments-and-returns"
    [31762][ extern err]     "-debug-info-kind=standalone" "-dwarf-version=4" "-debugger-tuning=lldb"
    [31762][ extern err]     "-target-linker-version" "650.9" "-resource-dir"
    [31762][ extern err]     "/usr/local/Cellar/infer/1.1.0_1/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0"
    [31762][ extern err]     "-dependency-file"
    

    Part II

    [86363][      debug] *** Beginning capture of file /Users/yocivic/code/Temp/CodeLib/Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m ***
    [86363][      debug] Loading the following linters files: /usr/local/Cellar/infer/1.1.0_1/lib/infer/infer/bin/../lib/linter_rules/linters.al
    [86363][      debug] Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m:101:5: ERROR translating statement 'OpaqueValueExpr'
    [86363][      debug] 
    [86363][ intern err] Aborting translation of method 'UPCameraFullLiveViewModel.fetchPlayerDataModel' in file 'Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m'
    Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr
    
    [86363][      debug] Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m:123:5: ERROR translating statement 'OpaqueValueExpr'
    [86363][      debug] 
    [86363][ intern err] Aborting translation of method 'UPCameraFullLiveViewModel.setTalk' in file 'Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m'
    Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr
    Aborting translation of method 'UPCameraFullLiveViewModel.playerStop' in file 'Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m'
    Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr
    Aborting translation of method 'UPCameraFullLiveViewModel.playerContinuePlay' in file 'Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m'
    Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr
    
    [86363][      debug] Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m:249:5: ERROR translating statement 'OpaqueValueExpr'
    [86363][      debug] 
    [86363][ intern err] Aborting translation of method 'UPCameraFullLiveViewModel.handleInteractionAction:success:failure:' in file 'Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m'
    Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr
    Aborting translation of method 'UPCameraFullLiveViewModel.setResolutionSuccess:failure:' in file 'Pods/UPDeviceVideo/UPDeviceVideo/Modules/Camera/VM/UPCameraFullLiveViewModel.m'
    Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr
    
    [86363][      debug] Elapsed: 19.688s.
    [86363][      debug] 
    [86363][ extern err] Error: the following clang command did not run successfully:
    [86363][ extern err]     /usr/local/Cellar/infer/1.1.0_1/lib/infer/facebook-clang-plugins/clang/install/bin/clang-11
    [86363][ extern err]     @/Users/yocivic/code/Temp/CodeLib/infer/tmp/clang_command_.tmp.b39a8a.txt
    [86363][ extern err]   ++Contents of '/Users/yocivic/code/Temp/CodeLib/infer/tmp/clang_command_.tmp.b39a8a.txt':
    [86363][ extern err]     "-cc1" "-load"
    [86363][ extern err]     "/usr/local/Cellar/infer/1.1.0_1/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
    [86363][ extern err]     "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
    [86363][ extern err]     "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
    [86363][ extern err]     "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
    [86363][ extern err]     "thumbv7-apple-ios10.0.0" "-Wundef-prefix=TARGET_OS_"
    [86363][ extern err]     "-Werror=undef-prefix" "-fsyntax-only" "-disable-free"
    [86363][ extern err]     "-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
    [86363][ extern err]     "UPCameraFullLiveViewModel.m" "-mrelocation-model" "pic" "-pic-level" "2"
    [86363][ extern err]     "-mframe-pointer=all" "-fno-rounding-math" "-faligned-alloc-unavailable"
    [86363][ extern err]     "-target-sdk-version=15.0"
    [86363][ extern err]     "-fcompatibility-qualified-id-block-type-checking" "-target-cpu"
    [86363][ extern err]     "generic" "-target-feature" "+soft-float-abi" "-target-abi" "apcs-gnu"
    [86363][ extern err]     "-mfloat-abi" "soft" "-fallow-half-arguments-and-returns"
    [86363][ extern err]     "-debug-info-kind=standalone" "-dwarf-version=4" "-debugger-tuning=lldb"
    [86363][ extern err]     "-target-linker-version" "650.9" "-resource-dir"
    [86363][ extern err]     "/usr/local/Cellar/infer/1.1.0_1/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0"
    [86363][ extern err]     "-dependency-file"
    
    • [ ] If possible, a minimal example to reproduce your problem (for instance, some code where infer reports incorrectly, together with the way you run infer to reproduce the incorrect report).

    I have a private pod, and two versions of the pod, 3.0.1 and 3.0.2. When I ran infer run --keep-going -o ./infer --compilation-database-escaped compile_commands.json, I got a logs file in infer dir. The logs contains large of ERROR RUNNING CAPTURE and the following clang command did not run successfully,like this:

    [31762][ intern err] ERROR RUNNING CAPTURE: "Assert_failure src/clang/objcCategory_decl.ml:20:62"
    Raised at ClangFrontend__ObjcCategory_decl.get_classname in file "src/clang/objcCategory_decl.ml", line 20, characters 62-74
    Called from ClangFrontend__ObjcCategory_decl.get_classname_from_category_decl in file "src/clang/objcCategory_decl.ml", line 23, characters 44-94
    Called from ClangFrontend__CFrontend_decl.CFrontend_decl_funct.translate_one_declaration in file "src/clang/cFrontend_decl.ml", line 383, characters 12-133
    Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
    Called from Base__List0.iter in file "src/list0.ml" (inlined), line 25, characters 16-35
    Called from ClangFrontend__CFrontend.compute_icfg in file "src/clang/cFrontend.ml", line 27, characters 6-130
    Called from ClangFrontend__Capture.run_clang_frontend in file "src/clang/Capture.ml", line 94, characters 25-73
    
    [31762][ extern err] Error: the following clang command did not run successfully:
    [31762][ extern err]     /usr/local/Cellar/infer/1.1.0_1/lib/infer/facebook-clang-plugins/clang/install/bin/clang-11
    [31762][ extern err]     @/Users/yocivic/code/Temp/CodeLib/infer/tmp/clang_command_.tmp.beb1bc.txt
    [31762][ extern err]   ++Contents of '/Users/yocivic/code/Temp/CodeLib/infer/tmp/clang_command_.tmp.beb1bc.txt':
    [31762][ extern err]     "-cc1" "-load"
    [31762][ extern err]     "/usr/local/Cellar/infer/1.1.0_1/lib/infer/infer/bin/../../facebook-clang-plugins/libtooling/build/FacebookClangPlugin.dylib"
    [31762][ extern err]     "-plugin" "BiniouASTExporter" "-plugin-arg-BiniouASTExporter" "-"
    [31762][ extern err]     "-plugin-arg-BiniouASTExporter" "PREPEND_CURRENT_DIR=1"
    [31762][ extern err]     "-plugin-arg-BiniouASTExporter" "MAX_STRING_SIZE=65535" "-cc1" "-triple"
    [31762][ extern err]     "thumbv7-apple-ios10.0.0" "-Wundef-prefix=TARGET_OS_"
    [31762][ extern err]     "-Werror=undef-prefix" "-fsyntax-only" "-disable-free"
    [31762][ extern err]     "-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
    [31762][ extern err]     "UPCameraFullLiveViewModel.m" "-mrelocation-model" "pic" "-pic-level" "2"
    [31762][ extern err]     "-mframe-pointer=all" "-fno-rounding-math" "-faligned-alloc-unavailable"
    [31762][ extern err]     "-target-sdk-version=15.0"
    [31762][ extern err]     "-fcompatibility-qualified-id-block-type-checking" "-target-cpu"
    [31762][ extern err]     "generic" "-target-feature" "+soft-float-abi" "-target-abi" "apcs-gnu"
    [31762][ extern err]     "-mfloat-abi" "soft" "-fallow-half-arguments-and-returns"
    [31762][ extern err]     "-debug-info-kind=standalone" "-dwarf-version=4" "-debugger-tuning=lldb"
    [31762][ extern err]     "-target-linker-version" "650.9" "-resource-dir"
    [31762][ extern err]     "/usr/local/Cellar/infer/1.1.0_1/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0"
    [31762][ extern err]     "-dependency-file"
    

    And I facing a other issue. My private pod contains a class called UPCameraFullLiveViewModel.Between 3.0.1 and 3.0.2 this class has some change, but function A and function B not changed. When I used 3.0.1 the infer not found any null safe issues in this class, the log like above Part I logs. When I used 3.0.2 the infer found some null safe issues in function A and functionB, the log like above Part II logs. That's too odd.

    PS:I tried this xcodebuild -workspace "CodeLib.xcworkspace" -scheme "CodeLib" -sdk iphoneos COMPILER_INDEX_STORE_ENABLE=NO OTHER_CFLAGS="-DNS_FORMAT_ARGUMENT(A)= -D_Nullable_result=_Nullable" clean build | tee xcodebuild.log | xcpretty -r json-compilation-database -o compile_commands.json too. And got same results.

    opened by YLightC 0
  • How to reduce the Infer time for my Project?

    How to reduce the Infer time for my Project?

    1,infer version:V1.1.0 2,macOS Catalina 10.15.3 3,command : infer --keep-going -- xcodebuild -workspace /Users/Desktop/MyProject.xcworkspace -scheme MyProject. -configuration Debug -arch x86_64 ONLY_ACTIVE=NO VALID_ARCHS=x86_64 -UseModernBuildSystem=1 4,It cost one hour to execute Infer commoan a week ago, but now it costs 3 hours without much codes changed in my project.How to reduce the Infer time for my Project? Thank you.

    opened by blooming2017 0
  • How to use quandary-only to analyze iOS project

    How to use quandary-only to analyze iOS project

    I want to use Quandary-only to analyze the iOS project, but I don't know how to use the command line to retrieve the entire project. Meanwhile, I want to monitor the flow of a method's parameters. How should I do it

    opened by timelessRecall 0
  • `incremental-analysis` results in no files being analyzed

    `incremental-analysis` results in no files being analyzed

    The command line option --incremental-analysis (and --continue-analysis as well) results in no files being analyzed. It seems that there isn't any article about the use of the arguments, and the help message is not quite intuitive. Also, the "incremental" analysis of Infer often refer to -r mode, which is s bit incremental but deletes all specs ahead of analysis.

    What is the correct way to use those two arguments for real incremental analysis that only analyzes changed procedures and those that depend on them (NOT those they depend on)? Thanks~

    • [x] The version of infer from infer --version: v1.1.0-4c6dc7053 (needed to add some traces so having to build from the source).
    • [x] Your operating system and version: Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-110-generic x86_64).
    • [x] Which command you ran:
    make clean
    inferc run --meowcat-only -- make
    touch b.c # or edit some procedure for real, irrelevant but still tested
    infer run --incremental-analysis -r --meowcat-only  --changed-files-index b.txt -- make
    
    • [x] The full output in a paste:
    $ make clean
    rm -f a.o b.o c.o meow
    
    $ inferc run --meowcat-only -- make
    Capturing in make/cc mode...
    cc a.c -o a.o -c
    cc b.c -o b.o -c
    cc c.c -o c.o -c
    cc a.o b.o c.o -o meow
    Done.
    Found 3 source files to analyze in /root/tinfer/_make/infer-out
    3/3 100% 6.098ms
    
    $ touch b.c # or edit some procedure for real, irrelevant but still tested
    
    $ infer run --incremental-analysis -r --meowcat-only  --changed-files-index b.txt -- make
    Incremental analysis: invalidating procedures that have been changed
    Incremental analysis: 4 nodes in reverse analysis call graph, 2 of which were invalidated
    Capturing in make/cc mode...
    Done.
    Nothing to compile. Try running `make clean` first.
    There was nothing to analyze.
    
    • [x] If possible, a minimal example to reproduce your problem: As shown in the mysteries --meowcat-only, we've added a dummy checker meowcat to print and record traces. Moving them to any existing checkers and change the argument to --xxx-only yield the same result. Actually, no checkers have been run at this point. No else changes were made to the source code.

    Here is our test project: a.c

    #include <stdio.h>
    #include "a.h"
    #include "b.h"
    
    int main() {
    	printf("%d\n", funcB(0));
    	return 0;
    }
    

    b.c

    #include "b.h"
    #include "c.h"
    
    int funcB(int a) {
    	return funcC(a + 2) + funcC(a + 1);
    }//
    

    c.c

    #include "c.h"
    
    int funcC(int a) {
    	return a + 1;
    }
    

    a.h

    int main();
    

    b.h

    int funcB(int);
    

    c.h

    int funcC(int);
    

    Makefile

    PROG=meow
    
    build: $(PROG)
    	@echo "Done."
    
    $(PROG): a.o b.o c.o
    	$(CC) a.o b.o c.o -o $(PROG)
    
    a.o: a.c a.h b.h c.h
    	$(CC) a.c -o a.o -c
    
    b.o: b.c b.h c.h
    	$(CC) b.c -o b.o -c
    
    c.o: c.c c.h
    	$(CC) c.c -o c.o -c
    
    clean:
    	rm -f a.o b.o c.o $(PROG)
    

    Besides the mentioned commands, many other sequences of commands with different arguments _e.g. with or without -r) were also tested automatically. The behavior --continue-analysis is slightly different, so we could focus on --incremental-analysis for now.

    opened by oO0oO0oO0o0o00 0
  • Error when running infer on ML DL libraries

    Error when running infer on ML DL libraries

    I want to run Infer on numpy library to detect its weaknesses. When I run the following command:

    infer run -- gcc -c /numpy/numpy/numpy/core/src/multiarrayabstractdtypes.c
    

    It throws the following error:

    Capturing in make/cc mode... abstractdtypes.c:5:10: fatal error: 'Python.h' file not found #include <Python.h> ^~~~~~~~~~ 1 error generated. Error: the following clang command did not run successfully: /opt/infer-linux64-v1.0.0/lib/infer/facebook-clang-plugins/clang/install/bin/clang-9 @/media/nimashiri/DATA/vsprojects/ICSE23/ml_repos_cloned/numpy/numpy/numpy/core/src/multiarray/infer-out/tmp/clang_command_.tmp.a9d22f.txt ++Contents of '/media/nimashiri/DATA/vsprojects/ICSE23/ml_repos_cloned/numpy/numpy/numpy/core/src/multiarray/infer-out/tmp/clang_command_.tmp.a9d22f.txt': "-cc1" "-load"...

    How can I run infer against individual source files in project having special compilers, e.g. numpy or tensorflow. These compilers do not use make or cmake explicitly.

    Thanks.

    opened by nimashiri 0
Releases(v1.1.0)
  • v1.1.0(Mar 26, 2021)

    This is a new release of Infer, with a binary tarball for Linux. On MacOS, using Homebrew is recommended. Please follow these instructions.

    Frontends

    Build System Integrations

    • Clang upgraded to version 11.0

    Checkers

    • Liveness: properly handle exceptional control flow
    • Pulse:
    • NEW checker Topl(early alpha): An experimental checker framework: write your own analysis as a state machine representing a temporal property over multiple memory objects at once, eg to write a taint analysis. Topl is based on Pulse.
    • Miscellaneous improvements to cost, inferbo, nullsafe, racerd, starvation

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-linux64-v1.1.0.tar.xz
    5f5d453814422e93e2a70998d8946b09a2721628ff427f67ff0123dea87461d4  infer-linux64-v1.1.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v1.1.0.tar.xz(360.56 MB)
  • v1.0.0(Oct 12, 2020)

    This is a binary release of Infer for Linux and MacOS. To use it follow these instructions.

    The Linux binary is built for Ubuntu 18 and may require adjustments to run on other configurations.

    The Mac binary is built for the Catalina version. MacOS users may get an error "developer cannot be verified" and need to allow the app to run manually following these instructions, or alternatively get infer from Homebrew when it is released there.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-*-v1.0.0.tar.xz              
    510eeccc7e6bcc2678ac92a88f8e1cb9c07c3e14d272dcc06834e93845bb120f  infer-linux64-v1.0.0.tar.xz
    4f188959f7c61e2ef3b935c8a9e5e66632d7fcb90c5362336fb8305d4f74d6b7  infer-osx-v1.0.0.tar.xz
    

    Changelog

    Checkers

    AL is now deprecated and may be removed in future versions.

    Annotation Reachability

    • reporting format improvements (the trace is no longer included in the report text, only as metadata)

    Biabduction

    • disable some less-used bug types

    Eradicate

    • remove "Field not mutable" check

    RacerD

    • Now defaults to "angelic" ownership: an unknown function is assumed to return owned objects.
    • No more reports on races on paths rooted on temporary or local variables, as these are unreliably modelled.

    Litho Required Properties: new Java checker to check that all non-optional @Props have been specified when constructing Litho components. Self in Block: new Objective-C checker to detect when an Objective-C block incorrectly captures self Starvation

    • New experimental "global" analysis mode. Enable with --starvation-whole-program

    Miscellaneous improvements to most checkers, in particular Annotation Reachability, Cost Analysis, Eradicate, Inefficient Keyset Iterator, InferBO, Pulse, RacerD, Starvation, and Uninitialized Value.

    Build System Integrations

    • The Gradle integration now captures Java files in parallel
    • New Buck integration for Java, enable with --buck-java-flavor
    • Clang upgraded to version 9.0

    Command Line Interface

    • New subcommand infer help to display information about checkers and issue types.
    • New subcommand infer debug that replaces the uses of infer explore not related to reported issues.
    • --debug no longer disables filtering, you have to pass -g -F to get the previous behaviour back.
    • All disk artefacts (except the Java type environment) are now stored in the SQLite database in infer-out/results.db. The contents of the database can be explored with infer debug.
    • Changed how to select the Buck integration. The old command line interface is still supported but is now deprecated.
      • clang via "flavors", activated with --flavors, now with --buck-clang
      • clang via "compilation DB", activated with --buck-compilation-database, unchanged
      • Java via "genrule", activated with --genrule-master-mode, now with --buck-java
      • Java "without genrules", used to be activated by not specifying any other Buck mode, deleted
      • In addition, there is a new Java integration, activated with --buck-java-flavor
    • The textual version of the report infer-out/bugs.txt has moved to infer-out/report.txt. The bugs.txt file is still created with dummy contents to allow for a smooth transition.
    • Removed the --report-hook option.
    • Properly terminate on Control-C instead of sometimes leaving around zombie processes.
    • Spec files (summaries) are now stored in the database. Explore with infer debug --procedures --procedures-summary.

    Documentation

    • Revamped online documentation for bug types and checkers. See the list of all issue types and the pages for each checker. The infer help command can be used locally to also get this information and more.
    • Access the documentation for previous and future versions online.
    • The https://fbinfer.com/ website now uses Docusaurus 2.

    Internal Changes

    • Folded the facebook-clang-plugins sub-repo inside the infer repository; there is no more git submodule for it.
    • Improve internal documentation of OCaml source code.
    • Build with OCaml 4.11.1 and dune 2.7.1
    • Migrated our Python 2 code to OCaml
    • Split the infer OCaml source code into individual dune libraries.
    • Better defaults for SQLite, and a write daemon to reduce contention.
    • New analysis schedulers that speed up the analysis phase. Enable with --scheduler callgraph or --scheduler restart.
    • Infer no longer builds by default in "opt" mode (optimised, using OCaml’s flambda pass). The default is now "dev", which does not include as many optimisations (hence builds faster) and turns warnings into errors.
    • The starvation checker is now based on SIL instead of HIL.
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v1.0.0.tar.xz(301.07 MB)
    infer-osx-v1.0.0.tar.xz(254.79 MB)
  • v0.17.0(Aug 6, 2019)

    This is a binary release of Infer for Linux and MacOS. To use it follow these instructions.

    Highlights:

    • There’s a new --inefficient-keyset-iterator checker for finding inefficient uses of Java's keyset iterators that retrieve both key and value (on by default).
    • Complete the set of Android thread annotations and Java nullability annotations. Updated artifacts are available on Maven Central.
    • --starvation is now on by default. This analysis catches problems with threads not being able to make progress due to locking issues, incorrect scheduling priorities, etc. For instance, on Android calling Future.get from a UiThread without a sensible timeout will be flagged as a starvation issue.
    • New Objective-C linter for calls to @optional methods: UNSAFE_CALL_TO_OPTIONAL_METHOD, enabled by default.
    • A new call-graph scheduler (--call-graph-schedule) improves performance of the analysis phase of Infer, especially when the number of files to analyze is less than available CPUs.
    • A new flag --oom-threshold allows to throttle the analysis when the amount of free memory is below the provided threshold.
    • New genrule based Buck/Java integration is much faster than the previous one, use with --genrule-master-mode.
    • Infer’s internal clang is now in version 8.0.0.
    • Update to javalib 3.1 provides better compatibility with Java 9 and Java 11. Refer to their change log for more details.
    • Infer can now be built and run on MacOS Mojave without fiddling with SDKROOT (although you still might need it with non-standard toolchain setup).
    • [β] Pulse is a new experimental lifetime analysis for C++, give it a try with --pulse. Beware that it doesn’t report much yet.
    • --ownership checker was superseded by Pulse and removed.

    ... and many other fixes and improvements. For the full list of changes included see here.

    The facebook-clang-plugins version used for this release is https://github.com/facebook/facebook-clang-plugins/commit/9386890e42043d04f9 cd9e7b204cb525d4417c41.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-*-v0.17.0.tar.xz
    de972ba3043f18b29a8eff6cd7612e24f5ffaef038dc7949befeaf490931725e  infer-linux64-v0.17.0.tar.xz
    1a3ef6fb51846ae63ffd7fde3b0255f75bab6157f5de1842606fa32988d101f8  infer-osx-v0.17.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.17.0.tar.xz(251.65 MB)
    infer-osx-v0.17.0.tar.xz(215.90 MB)
  • v0.16.0(Apr 23, 2019)

    This is a binary release of Infer for Linux and MacOS. To use it follow these instructions.

    It's been a long time since the previous release, here are some new features and improvements you can find in this new release:

    Backend analyses:

    • A brand new analysis to compute the runtime cost of methods and functions: passing --cost (off by default) to Infer will output a costs-report.json file describing, among others, the computational complexity of each function in the code using the big-O notation, eg O(1), O(list.length), ...
    • The deadlock detection analysis has been ported to C++ and Objective-C and mainly focuses on self-deadlocks (taking a mutex twice). Activate with --starvation (off by default).
    • The data race detector RacerD has been ported to Objective-C and detects races on fields protected by a C++ mutex. It reports "Thread Safety Violation" and "GuardedBy Violation" errors on Java and "Lock Consistency Violation" on C++ and Objective-C. Activate with --racerd (on by default).
    • A progress bar is displayed while the analysis is running
    • Countless improvements and tweaks, in particular in RacerD and in analyses for C++.

    Frontends:

    • Infer now ships with clang version 7.0.1
    • Support for Java up to version 11

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-*-v0.16.0.tar.xz
    435c415a9a22f41e7f2074b542b035b972a2a8c237d5490285d763bf333a817b  infer-linux64-v0.16.0.tar.xz
    471f06c72754a45d73433623e8092bf9ea1315884b8ebff24d3f79f9a8b0380a  infer-osx-v0.16.0.tar.xz
    

    The facebook-clang-plugins version used for this release is https://github.com/facebook/facebook-clang-plugins/commit/36266f6c86041896bed32ffec0637fefbc4463e0.

    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.16.0.tar.xz(275.26 MB)
    infer-osx-v0.16.0.tar.xz(246.13 MB)
  • v0.15.0(Jun 5, 2018)

    This is a binary release of Infer for Linux and MacOS. To use it follow these instructions.

    Highlights:

    • switch infer license to MIT
    • publish binaries
    • [clang] lots of improvements to the frontend

    More changes in the full list of changes.

    The facebook-clang-plugins version used for this release is https://github.com/facebook/facebook-clang-plugins/commit/f31f7c9c28d8fb9b59c0dacc74a24e4bfe90a904.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-*-v0.15.0.tar.xz
    f6eb98162927735e8c545528bb5a472312e5defcf0761e43c07c73fe214cb18a  infer-linux64-v0.15.0.tar.xz
    0f87b8fd68b62717b8c3c143aeaea38b5102435f80fff484cb570a51cf510f9c  infer-osx-v0.15.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.15.0.tar.xz(241.28 MB)
    infer-osx-v0.15.0.tar.xz(222.36 MB)
  • v0.14.0(Apr 30, 2018)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    Highlights:

    • New checker: --ownership detects a subset of use-after-free issues due to bad manual memory management. This is a rough prototype of Rust-style borrow checker for C++. (enabled by default, C++)
    • New checker: --uninit detects uses of uninitialized values (enabled by default, C/C++/Objective-C)
    • New checker: --racerd now also detects inconsistent lock usage in C++. Also improved the lock domain to reduce false positives for all languages.
    • Improved C++ support: destructors are now properly translated; addresses and pointers are handled more precisely
    • Improved retain cycles detection (Objective-C)
    • Upgraded the internal clang to clang 7
    • [internal] SQLite is being used to store some of infer's analysis artefacts instead of storing them in files on disk. This improves analysis speed and reduces load on the OS.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-*-v0.14.0.tar.xz
    330b4bbb5fbf90c04d4c096ce0d8d713dac72925d68c0e1b55ab30e6d5201bcb  infer-linux64-v0.14.0.tar.xz
    350767bc29acdcb86734a2009e97bdf2a3603db0fbf3f18c59fc07b416977021  infer-osx-v0.14.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.14.0.tar.xz(122.59 MB)
    infer-osx-v0.14.0.tar.xz(115.22 MB)
  • v0.13.1(Feb 2, 2018)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    This is a fix for the 0.13.0 release, whose build broke due to changes in opam.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.13.1.tar.xz
    02ff3c49c83d3a4e967696f8818b1cffcb042c26eefbb2ba8d78c27244b5940c ?infer-linux64-v0.13.1.tar.xz
    182ff5b76ff561408dc52b32611346e097098651a491fb8a0a453a1d098d4299 ?infer-osx-v0.13.1.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.13.1.tar.xz(113.06 MB)
    infer-osx-v0.13.1.tar.xz(97.20 MB)
  • v0.13.0(Oct 19, 2017)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    The main changes are:

    • Infer now runs multiple checkers at the same time by default, including the biabduction analysis that was the previous and only default. In particular, we are pleased to introduce RacerD for race detection in Java. The following checkers are activated by default: annotation reachability (Java), biabduction (C/C++/ObjC, Java), fragment retains view (Java), immutable cast (Java), liveness (C/C++/ObjC), printf args (Java), quandary (C/C++/ObjC, Java), RacerD (C/C++/ObjC, Java), SIOF (C/C++/ObjC). Each checker may report several issue types.
    • Upgraded to clang 5.0
    • Richer DSL for writing linters (AL), and a new default linter for const pointers in Objective-C
    • Lots of perf improvements and bug fixes, and improved logging

    Please note the following breaking changes:

    • -a eradicate is now simply --eradicate and can run alongside other checkers
    • inferTraceBugs is now the explore subcommand: infer explore --help
    • infer now depends on sqlite

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.13.0.tar.xz
    79a7fe8b7a05ea2a685997d9188fef7319c7b3d72064f14dea7a5f23ec50efac ?infer-linux64-v0.13.0.tar.xz
    1abec8df73581d35e018f81285197d82a6f3e6101c528fb8be14405765da155e ?infer-osx-v0.13.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.13.0.tar.xz(112.33 MB)
    infer-osx-v0.13.0.tar.xz(96.94 MB)
  • v0.12.1(Aug 30, 2017)

    This is a hotfix release to update infer's opam dependencies to cope with upgrades of cppo in opam (in particular, #718).

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.12.1.tar.xz
    d26dd519c19345530a92a6ae3f7058af3bd8ddfd7c2c945d116c6fd658be6c4 ?infer-linux64-v0.12.1.tar.xz
    ce76b87bf4f70be594aaddc7402609af6338623fbb448dacca610e10bcb7c60a ?infer-osx-v0.12.1.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.12.1.tar.xz(95.09 MB)
    infer-osx-v0.12.1.tar.xz(79.07 MB)
  • v0.12.0(May 17, 2017)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    This introduces subcommands and man pages for all subcommands. If you are used to infer's command line already, here are some rough equivalences (the commands might not be completely equivalent in some cases):

    • infer [options] -- [build command] becomes infer run [options] -- [build command]
    • infer becomes infer analyze
    • infer -a capture [options] -- [build command] becomes infer capture [options] -- [build command]
    • infer -a compile [options] -- [build command] becomes infer compile [options] -- [build command]

    The previous forms of invocations are still supported but may go away in future releases.

    If you were using them, the internal binaries have disappeared and are replaced as follows:

    • InferPrint [options] becomes infer report [options]
    • InferAnalyze [options] becomes infer analyze [options]

    See man infer, man infer-capture, man infer-analyze, etc. for more details, and let us know if anything is missing.

    This release introduces AL, a language for writing linters against the clang AST. AL lets you check syntactic properties of source code by traversing the AST of the program. Using the included domain-specific language (DSL), you can write your own set of checks.

    As usual, this release also includes lots of fixes and improvements. For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.12.0.tar.xz
    698c9ff83a23fb3d6ffa0d62d5394e691ad5e3352f27bf2d4105afdfd07cc201 ?infer-linux64-v0.12.0.tar.xz
    3b97bcabf85af8feb8d6fd0b8622fe2b4fbf27fa215fab61e3a660b5435b6d21 ?infer-osx-v0.12.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.12.0.tar.xz(94.64 MB)
    infer-osx-v0.12.0.tar.xz(79.24 MB)
  • v0.11.0(Apr 12, 2017)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    Highlights:

    • [Java] ThreadSafety analyzer is now on by default; run it with infer -a checkers .... This checker will try and detect races (unprotected concurrent accesses with at least one write) in classes bearing the @ThreadSafe annotation.
    • Infer now builds using OCaml 4.04.0.

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.11.0.tar.xz
    c2a893d66befc2652a28e9e6481f680fe863512f8c507b52616c5731878c22f0 ?infer-linux64-v0.11.0.tar.xz
    0c435efa311cb70a79b5b8ae9cc4e714651e6653c5542a58cc624f2439d68e36 ?infer-osx-v0.11.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.11.0.tar.xz(93.67 MB)
    infer-osx-v0.11.0.tar.xz(79.21 MB)
  • v0.10.0(Feb 23, 2017)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    • [Clang] C++ support.
    • [Clang] Improved support for cmake and Xcode compilation databases. Use with infer --compilation-database compile_commands.json (for cmake and Buck), or with infer --compilation-database-escaped compile_commands.json (for xcbuild and xcpretty).
    • [C++] New SIOF Checker.
    • [iOS] New linter for target SDK version. Use with infer --iphoneos-target-sdk-version <min version you support> ... or with infer -a linters --iphoneos-target-sdk-version <min version you support> ....
    • [Java] New Thread Safety Checker.
    • [Java] Smarter analysis of dynamic dispatch.
    • [Java] Improved Maven integration.
    • [Java] @SuppressWarnings support removed. Use @SuppressLint instead. android.annotation.SuppressLint is only available on Android, but do let us know if that is an issue for you.

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.10.0.tar.xz
    62287344459e2e467def603f97dac9cfb335a8f2852a51217696db948164780c ?infer-linux64-v0.10.0.tar.xz
    6fdcfe52cee28f57a86e8cd80bf4cac7b2dda83a3cc511f86834636ada14a808 ?infer-osx-v0.10.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.10.0.tar.xz(122.77 MB)
    infer-osx-v0.10.0.tar.xz(80.86 MB)
  • v0.9.5(Feb 10, 2017)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS.

    This includes a fix for #577.

    To use it follow these instructions.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.5.tar.xz
    199f5cc6466db63375774d20bbea8f50e0394380b7e8b258b73a44c2578b5159 ?infer-linux64-v0.9.5.tar.xz
    43d6c68d4e41057be8188877872544bf7c0e6a53a122be64efe06f3f3b772f47 ?infer-osx-v0.9.5.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.5.tar.xz(142.79 MB)
    infer-osx-v0.9.5.tar.xz(97.43 MB)
  • v0.9.4.1(Nov 23, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions. It only contains hotfix to infer 0.9.4 fixing https://github.com/facebook/infer/issues/508

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.4.1.tar.xz
    860f20741bd54f1e058e0e0c4550fc4211016ef93f154938eb173df555a560df ?infer-linux64-v0.9.4.1.tar.xz
    a738a3492a4e0229df8abd745cd88bca8fb547bc3bcca15ec194d6780b07cbda ?infer-osx-v0.9.4.1.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.4.1.tar.xz(142.77 MB)
    infer-osx-v0.9.4.1.tar.xz(98.16 MB)
  • v0.9.4(Nov 18, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    • [Java] preliminary support for Java 8: infer no longer skips methods containing Java 8 code
    • [clang] support for clang compilation databases
    • [Xcode] more robust integration using the compilation database (requires xcpretty)
    • [iOS] added checks for some of the ComponentKit best practices
    • lots of under-the-hood improvements, including perf improvements and bug fixes

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.4.tar.xz
    1b85b84a5f798919d2630b313033e710b1e20fba24f5c751ca1b5e0a3c601cff ?infer-linux64-v0.9.4.tar.xz
    529d147bccf3285ddb7500c22e0c50d6e0cbdb2c7f9b11a84e8005873994b3e2 ?infer-osx-v0.9.4.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.4.tar.xz(142.78 MB)
    infer-osx-v0.9.4.tar.xz(98.15 MB)
  • v0.9.3(Sep 22, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    • Fix issues with using Infer with Clang 4.0 and Xcode 8
    • Various fixes and performance improvements

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.3.tar.xz
    a55a940082690d06c0c05d8b772b8a9eef8b98ecb0ea82f86e5d473bcf878211 ?infer-linux64-v0.9.3.tar.xz
    8bfbb7ee76388393b5cf513984da79c305af3a1e6bbd057f83082f093d3cc0d7 ?infer-osx-v0.9.3.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.3.tar.xz(80.08 MB)
    infer-osx-v0.9.3.tar.xz(70.72 MB)
  • v0.9.2(Aug 23, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.2.tar.xz
    7c374d14affc19c44cd23746696eba7b4422a900e03f8a6b9985d95a05d2d95f ?infer-linux64-v0.9.2.tar.xz
    3935f8be25982a023aba306b66804d73a7316ab833296277c1ec6c3694bfc7c7 ?infer-osx-v0.9.2.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.2.tar.xz(98.71 MB)
    infer-osx-v0.9.2.tar.xz(87.17 MB)
  • v0.9.1(Aug 18, 2016)

    This is a minor source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. It contains bugfixes to 0.9.0, in particular to enable packaging via Homebrew and to fix an issue with locales. To use it follow these instructions.

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.1.tar.xz
    c6dc64db4a6075d4fac32712bbd0e087ecb6d909ac590220acd64bd4a33480c3 ?infer-linux64-v0.9.1.tar.xz
    6dbb1bb7b3e28d99a8c02fd42f2f87894bf0c5564c13645aae679effb8ee8418 ?infer-osx-v0.9.1.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.1.tar.xz(150.96 MB)
    infer-osx-v0.9.1.tar.xz(87.21 MB)
  • v0.9.0(Jul 21, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    Since the changelog is so big, let's just mention these two items:

    • lots of perf improvements and fixes across all analyses (thanks to everyone who reported issues and made pull requests!)
    • [experimental] C++ language support. See --cxx in infer --help. This is still in heavy development and only includes a few bug types. Feedback welcome!

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.9.0.tar.xz
    1596e2d4e67f920349de4950a2b6b98451d5115602826b508eb7b4d8e1b41caf ?infer-linux64-v0.9.0.tar.xz
    3aebf37bbcbb3c17912c24bfd1f2aec7b8d1256f0617cca5ddeab7aeab58b3ce ?infer-osx-v0.9.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.9.0.tar.xz(148.23 MB)
    infer-osx-v0.9.0.tar.xz(87.15 MB)
  • v0.8.1(Apr 25, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    This release includes:

    • [Objective-C and C] upgrade clang to version 3.8.0
    • [all] bugfixes

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.8.1.tar.xz
    7f75ae69d91fb9a8c43163f02a9b2a4919b8ebc42dfb2f729722201a0b18ea6b ?infer-linux64-v0.8.1.tar.xz
    0cd33936966fcb4761251279aa737ca07352fb8a8e864697a1d2cc5735c56ae7 ?infer-osx-v0.8.1.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.8.1.tar.xz(83.26 MB)
    infer-osx-v0.8.1.tar.xz(62.73 MB)
  • v0.8.0(Mar 15, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    • New --reactive mode to rapidly analyze the effects of a code change. Be sure to check out the documentation of the new workflow. As a result, the incremental mode (--incremental) is now deprecated.
    • New XML output, compatible with output from other static analyzers, eg PMD. To use it, pass the --pmd-xml flag to Infer (see infer --help).
    • Use @SuppressWarnings("infer") in your Java projects to annotate methods or classes where Infer shouldn't report.

    This release incorporates a number of contributions (#284 #289 #300 #301) and addresses a number of issues (#279 #281 #283 #288 #291 #294).

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.8.0.tar.xz
    4942ca2c8ad9e76ff6e31c6473b7f360cc95d9db43218dc7747ae34aef6294f4 ?infer-linux64-v0.8.0.tar.xz
    2b494a2b595bd7cf0f0cfaac4e9bece568575a4bcf25cc00161ed34c0319dc58 ?infer-osx-v0.8.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.8.0.tar.xz(62.65 MB)
    infer-osx-v0.8.0.tar.xz(62.82 MB)
  • v0.7.0(Feb 11, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    This release addresses a number of bugs, eg #270 #274 #275 #276. Thanks to all of you who reported bugs!

    There are also new features:

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.7.0.tar.xz
    b8c4f32bc286893aded3302a2915a66fe7e799edbbaf286ffdcc5218866db3ae ?infer-linux64-v0.7.0.tar.xz
    c83753c04bea8ad1dae3877d23d094d963d293b5d926a21ea8ea9443c870404a ?infer-osx-v0.7.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.7.0.tar.xz(62.45 MB)
    infer-osx-v0.7.0.tar.xz(62.80 MB)
  • v0.6.0(Jan 19, 2016)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    New features:

    • [android] fixed intermittent infinite loop
    • [iOS] new check for capturing a C++ reference in an Objective-C block

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 -p infer-*-v0.6.0.tar.xz
    26abc0312c892b53e4b93c22c2c051381ce1012a3d8458e8e2574b27302eec37 infer-linux64-v0.6.0.tar.xz
    8a1c4d0425c0ef3efcf4683cdbeebba63f3dd2fd5e75df4f04142dc9a5a5f15d infer-osx-v0.6.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.6.0.tar.xz(69.43 MB)
    infer-osx-v0.6.0.tar.xz(78.96 MB)
  • v0.5.0(Dec 18, 2015)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    New features:

    • [android] detection of context leaks
    • [android] support for @PerformanceCritical and @Expensive method annotations. Infer will check that an expensive method is never called during the execution of a performance critical method (run it with infer -a checkers -- ...).
    • [iOS] new check to catch strong delegate properties, likely to create retain cycles
    • [iOS] new check to catch direct accesses to atomic properties, which can cause race conditions
    • [all] performance improvements all-around

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ shasum -a 256 infer-*-v0.5.0*.tar.xz
    9d6eefeb63742bd408bc5769e93f34b378b36c0561c8e80035797c1be0c6fc66  infer-linux64-v0.5.0.tar.xz
    6a8547ac0b75a5e2bbeccae2169e39f753a60adbcacb6c94599fd31343a71ce7  infer-osx-v0.5.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.5.0.tar.xz(62.40 MB)
    infer-osx-v0.5.0.tar.xz(62.76 MB)
  • v0.4.0(Oct 13, 2015)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ sha256sum infer-*-v0.4.0.tar.xz
    bb84656153b59ff43f477c2432039195b614ecb5c19ed2a3f73aea7921696730  infer-osx-v0.4.0.tar.xz
    14f6e6d96a450d7acb17de0b26b136851d1b2815edd267e5865ea0af7aaf2887  infer-linux64-v0.4.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.4.0.tar.xz(82.63 MB)
    infer-osx-v0.4.0.tar.xz(88.72 MB)
  • v0.3.0(Aug 20, 2015)

    This is a source release of Infer packaged with pre-built binaries for clang and facebook-clang-plugins for Linux and MacOS. To use it follow these instructions.

    For the full list of changes included see here.

    The sha256 checksums of the tarballs are:

    $ sha256sum infer-*-v0.3.0.tar.xz
    325013468da5b221e81ad3f1ba348e07a87f061c698e46b32d20f94d599ab463  infer-linux64-v0.3.0.tar.xz
    cfd17c647098baff2875f3ff4db994f2ee02e7b5577cde5fe59ee21ec57a2d44  infer-osx-v0.3.0.tar.xz
    
    Source code(tar.gz)
    Source code(zip)
    infer-linux64-v0.3.0.tar.xz(105.22 MB)
    infer-osx-v0.3.0.tar.xz(102.52 MB)
  • v0.2.0(Jun 26, 2015)

    Notable fixes and improvements:

    • [java] analyze class files with $$ in the name (closes #3 more)
    • [java] don't fail on compilation warnings (closes #18)
    • [clang] support __nullable et al. (closes #4)
    • add an Infer:Checkers for printf arguments

    Action required to compile from source when upgrading from a previous version:

    • The version of javalib that Infer requires has changed. You'll need to upgrade it using opam: opam update && opam upgrade. You'll also need to run make -C infer clean before recompiling Infer.
    • The version of the facebook-clang-plugins that Infer requires has changed. You'll need to update the plugins before recompiling Infer: from the directory where Infer sources live, run ./update-fcp.sh && ../facebook-clang-plugin/clang/setup.sh && ./compile-fcp.sh.

    See the full list of changes here.

    Source code(tar.gz)
    Source code(zip)
  • v0.1.1(Jun 18, 2015)

    This release fixes a number of bugs. Non-exhaustive list below.

    • [java] no more crash on class names containing "$$" (closes #3)
    • [java] model for assert (closes #68)
    • [objective-c] support for @import (closes #2)
    • [c family] Infer now always reports on the right line numbers (closes #31)
    • [c family] fix c++ compilation errors (closes #37)
    Source code(tar.gz)
    Source code(zip)
Owner
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
Facebook
Qt-oriented static code analyzer based on the Clang framework

WARNING: master is the development branch. Please use the v1.10 branch. clazy v1.11 clazy is a compiler plugin which allows clang to understand Qt sem

KDE GitHub Mirror 523 Jun 22, 2022
Static analyzer for C/C++ based on the theory of Abstract Interpretation.

IKOS IKOS (Inference Kernel for Open Static Analyzers) is a static analyzer for C/C++ based on the theory of Abstract Interpretation. Introduction IKO

NASA - Software V&V 1.7k Jun 27, 2022
ELF static analysis and injection framework that parse, manipulate and camouflage ELF files.

elfspirit elfspirit is a useful program that parse, manipulate and camouflage ELF files. It provides a variety of functions, including adding or delet

null 11 Jun 15, 2022
Static code checker for C++

cpplint - static code checker for C++ Cpplint is a command-line tool to check C/C++ files for style issues following Google's C++ style guide. Cpplint

null 1.1k Jun 21, 2022
Pharos Static Binary Analysis Framework

Automated static analysis tools for binary programs

Software Engineering Institute 1.2k Jun 22, 2022
CITL's static analysis engine for native code artifacts

citl-static-analyzer Fast binary hardening analysis tooling. Building on Linux The build process varies by Linux distribution, owing to differences be

Cyber Independent Testing Lab 16 Jul 1, 2022
A static analysis tool that helps security researchers scan a list of Windows kernel drivers for common vulnerability patterns in drivers (CVE makers!)

Driver Analyzer A static analysis tool that helps security researchers scan a list of Windows kernel drivers for common vulnerability patterns in driv

BehroozAbbassi 41 Jun 13, 2022
Static analysis of C/C++ code

Cppcheck GitHub Actions Linux Build Status Windows Build Status OSS-Fuzz Coverity Scan Build Status License About the name The original name of this p

Daniel Marjamäki 4.2k Jul 1, 2022
A tool for use with clang to analyze #includes in C and C++ source files

Include What You Use For more in-depth documentation, see docs. Instructions for Users "Include what you use" means this: for every symbol (type, func

null 2.9k Jul 1, 2022
Analysis of Argon and Xenon Collision data to test Bardeen-Cooper-Schrieffer Approximation

Univeristy of North Carolina Wilmington Analysis of Argon and Xenon Collision data to test Bardeen-Cooper-Schrieffer Approximation. Argon Data Tree Fi

William Jarratt 1 Nov 15, 2021
CMetrics measures size and complexity for C files

C metrics package ================= INSTALL ------- see INSTALL file USAGE ----- cmetrics [-h] [-f] [-p] [-n] target_dir positional arguments:

Metrics Grimoire 63 May 27, 2022
Flint++ is cross-platform, zero-dependency port of flint, a lint program for C++ developed and used at Facebook.

Flint++ A Cross Platform Port of Facebook's C++ Linter Flint++ is cross-platform, zero-dependency port of flint, a lint program for C++ developed and

Joss Whittle 253 Jun 24, 2022
Legacy stepper motor analyzer - A DYI minimalist hardware stepper motor analyzer with graphical touch screen.

Simple Stepper Motor Analyzer NOTE: This is the legacy STM32 based design which was replaced by the single board, Raspberry Pi Pico design at https://

Zapta 158 Mar 21, 2022
Static analyzer for C/C++ based on the theory of Abstract Interpretation.

IKOS IKOS (Inference Kernel for Open Static Analyzers) is a static analyzer for C/C++ based on the theory of Abstract Interpretation. Introduction IKO

NASA - Software V&V 1.7k Jun 27, 2022
A LLVM-based static analyzer to produce PyTorch operator dependency graph.

What is this? This is a clone of the deprecated LLVM-based static analyzer from the PyTorch repo, which can be used to produce the PyTorch operator de

Jiakai Liu 5 Dec 15, 2021
Qt-oriented static code analyzer based on the Clang framework

WARNING: master is the development branch. Please use the v1.10 branch. clazy v1.11 clazy is a compiler plugin which allows clang to understand Qt sem

KDE GitHub Mirror 523 Jun 22, 2022
Static analyzer for C/C++ based on the theory of Abstract Interpretation.

IKOS IKOS (Inference Kernel for Open Static Analyzers) is a static analyzer for C/C++ based on the theory of Abstract Interpretation. Introduction IKO

NASA - Software V&V 1.7k Jun 27, 2022
Simple hook that prevent to halt Java Virtual Machine (mostly used in hacking java programs)

JavaExitHook Simple hook that prevent to halt Java Virtual Machine (mostly used in hacking java programs) What is used for? Idea to create that simple

null 11 Dec 28, 2021
distributed builds for C, C++ and Objective C

distcc -- a free distributed C/C++ compiler system by Martin Pool Current Documents: https://distcc.github.io/ Formally http://distcc.org/ "pump" func

distcc 1.7k Jun 30, 2022
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

gRPC - An RPC library and framework gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC

grpc 34.7k Jun 24, 2022
Card game with Objective-C using Allegro 4/5

Card game with Objective-C using Allegro 4/5 , This is an alternative of the real game for personal reasons .

Cerbah Kamel 3 Nov 7, 2021
Binary Ninja plugin & workflow to help analyze Objective-C code

Objective Ninja Objective Ninja is a Binary Ninja plugin to assist in reverse engineering Objective-C code. Beware, Objective Ninja is still in very e

Jon Palmisciano 78 Jun 24, 2022
Macro magic for declaring/calling Objective-C APIs from C11 or C++. Preloads selectors, chooses the correct objc_msgSend to call per method/platform.

OC - Easily Declare/Invoke Objective-C APIs from C11 or C++11 Usage // Call class and instance methods: NSWindow* const nswindow = oc_cls(NSWindow,new

Garett Bass 46 May 31, 2022
A multimedia framework developed from scratch in C/C++, bundled with test programs and a neat media analyzer.

MiniVideo framework MiniVideo is a multimedia framework developed from scratch in C/C++, bundled with small testing programs and a neat media analyser

Emeric 79 Mar 21, 2022
Using a RP2040 Pico as a basic logic analyzer, exporting CSV data to read in sigrok / Pulseview

rp2040-logic-analyzer This project modified the PIO logic analyzer example that that was part of the Raspberry Pi Pico examples. The example now allow

Mark 48 Jun 22, 2022
Simple Stepper Motor Analyzer

A DYI stepper motor analyzer. This is a new design that is based on Raspberry Pi Pico and users a compact single PCB design. NOTE: The legacy STM32 based stepper analyzer was moved to this repository https://github.com/zapta/legacy_stepper_motor_analyzer.

Zapta 86 Jun 14, 2022
Small Extremely Powerful Header Only C++ Lexical Analyzer/String Parser Library

lexpp Small Extremely Powerful Header Only C++ Lexical Analyzer/String Parser Library Lexpp is made with simplicity and size in mind. The entire libra

Jaysmito Mukherjee 49 Jun 21, 2022
Image frequency analyzer

MotionCam Image frequency analyzer Following app uses captured frames (center point from the middle and its color) to analize their potential freqency

Piotr Dymala 1 Jan 2, 2022
NAND (JEDEC / ONFI) Analyzer for Saleae Logic

NandAnalyzer NAND (JEDEC / ONFI) Analyzer for Saleae Logic The plugin was only tested against NV-DDR3 traces (and I use the term "test" lightly). You

null 8 Mar 12, 2022