项目作者: ApplyPlus

项目描述 :
A wrapper on Git-Apply designed to intelligently apply security patches
高级语言: Python
项目地址: git://github.com/ApplyPlus/ApplyPlus.git
创建时间: 2020-10-20T01:51:12Z
项目社区:https://github.com/ApplyPlus/ApplyPlus

开源协议:MIT License

下载


logo

Running ApplyPlus from source

  1. Install dependencies as described below
  2. From the root of this directory, run-

applyplus.py [-h] [--reverse] pathToPatch

patch_file_name is required and is the patch you are applying

--help will list available subcommands and some
concept guides

--reverse will run git apply --reverse

Installing required packages

Requirments:

  1. Python3.6 (or above)
  2. SrcML
  3. SrcSlice
  4. Python Libraries from PyPI-

pip3 install -r src/requirements.txt

Installing SrcML

https://www.srcml.org/#download

After the installation completes, ensure that srcml can be run from the terminal. If
the Command Not Found error arrises, follow the instructions highlighted in this document
https://osxdaily.com/2018/05/24/command-not-found-mac-terminal-error-fix/.

SrcSclice

A binary for MacOS/Ubuntu devices is provided in this project under the patch_context/srcSliceBuilds folder.

Running Tests

python3 ../vulnerableforks/tests/<test_file_name>