File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 50
50
sudo apt-get update
51
51
sudo apt-get -y -q install ffmpeg libavcodec-extra
52
52
python -m pip install --upgrade pip setuptools wheel
53
- pip install -q -r <(sed '/^scipy/d;/^matplotlib/d;/^pandas/d;/^statsmodels/d;/^numba/d;/^jax/d;/^h5py/d;/^Pillow/d;/^pytest/d;/^pytest-mock/d;/^torch/d;/^torchaudio/d;/^torchvision/d;/^xgboost/d;/^requests/d;/^tensorflow/d;/^keras/d;/^kornia/d;/^librosa/d;/^tqdm/d;/^timm/d;/^catboost/d;/^scikit-learn/d;/^GPy/d' requirements_test.txt)
53
+ pip install -q -r <(sed '/^scipy/d;/^matplotlib/d;/^pandas/d;/^statsmodels/d;/^numba/d;/^jax/d;/^h5py/d;/^Pillow/d;/^pytest/d;/^pytest-mock/d;/^torch/d;/^torchaudio/d;/^torchvision/d;/^xgboost/d;/^requests/d;/^tensorflow/d;/^keras/d;/^kornia/d;/^librosa/d;/^tqdm/d;/^timm/d;/^catboost/d;/^scikit-learn/d;/^GPy/d;/^lief/d ' requirements_test.txt)
54
54
pip install scipy==1.5.4
55
55
pip install matplotlib==3.3.4
56
56
pip install pandas==1.1.5
77
77
pip install catboost==1.1.1
78
78
pip install scikit-learn==0.24.2
79
79
pip install GPy==1.10.0
80
+ pip install lief==0.12.3
80
81
pip list
81
82
- name : Run ${{ matrix.name }} Tests
82
83
run : pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/test_tensorflow_lingvo.py --framework=${{ matrix.framework }} --durations=0
Original file line number Diff line number Diff line change 48
48
sudo apt-get update
49
49
sudo apt-get -y -q install ffmpeg libavcodec-extra
50
50
python -m pip install --upgrade pip setuptools wheel
51
- pip install -q -r <(sed '/^pandas/d;/^scipy/d;/^matplotlib/d;/^xgboost/d;/^tensorflow/d;/^keras/d;/^jax/d;/^torch/d;/^Pillow/d;/^h5py/d;/^kornia/d;/^scikit-learn/d;/^pytest-mock/d;/^GPy/d' requirements_test.txt)
51
+ pip install -q -r <(sed '/^pandas/d;/^scipy/d;/^matplotlib/d;/^xgboost/d;/^tensorflow/d;/^keras/d;/^jax/d;/^torch/d;/^Pillow/d;/^h5py/d;/^kornia/d;/^scikit-learn/d;/^pytest-mock/d;/^GPy/d;/^lief/d ' requirements_test.txt)
52
52
pip install pandas==1.3.5
53
53
pip install scipy==1.7.2
54
54
pip install matplotlib==3.5.3
66
66
pip install scikit-learn==1.0.2
67
67
pip install pytest-mock~=3.11.1
68
68
pip install GPy~=1.10.0
69
+ pip install lief==0.12.3
69
70
pip list
70
71
- name : Run Tests
71
72
run : ./run_tests.sh ${{ matrix.framework }}
Original file line number Diff line number Diff line change @@ -627,10 +627,11 @@ def get_peinfo(
627
627
cleaned_dump = {}
628
628
629
629
binary_load = lief .parse (filepath ) # pylint: disable=I1101
630
- if binary_load is None :
631
- raise ValueError ("Failed to load binary." )
632
- else :
630
+ if binary_load is not None :
633
631
binary = binary_load
632
+ else :
633
+ raise ValueError ("Failed to load binary." )
634
+
634
635
for section in binary .sections :
635
636
section_info = {}
636
637
slack = section .sizeof_raw_data - section .virtual_size # type: ignore
@@ -695,10 +696,10 @@ def insert_section(
695
696
lief .logging .disable ()
696
697
697
698
binary_parse = lief .PE .parse (datapoint )
698
- if binary_parse is None :
699
- raise ValueError ("Failed to load binary." )
700
- else :
699
+ if binary_parse is not None :
701
700
binary = binary_parse
701
+ else :
702
+ raise ValueError ("Failed to load binary." )
702
703
703
704
name_in_use = True
704
705
while name_in_use :
You can’t perform that action at this time.
0 commit comments