Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cwe_checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
cwe_checker
Commits
f45bd69e
Unverified
Commit
f45bd69e
authored
Dec 03, 2021
by
Enkelmann
Committed by
GitHub
Dec 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Cargo and Ghidra dependencies (#206)
parent
4b1e5bc5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
35 deletions
+38
-35
Cargo.lock
Cargo.lock
+29
-26
Dockerfile
Dockerfile
+1
-1
Cargo.toml
src/caller/Cargo.toml
+3
-3
Cargo.toml
src/cwe_checker_lib/Cargo.toml
+4
-4
cwe_215.rs
src/cwe_checker_lib/src/checkers/cwe_215.rs
+1
-1
No files found.
Cargo.lock
View file @
f45bd69e
...
...
@@ -76,12 +76,6 @@ checksum = "d26a6ce4b6a484fa3edb70f7efa6fc430fd2b87285fe8b84304fd0936faa0dc0"
[[package]]
name = "cfg-if"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
...
...
@@ -120,22 +114,21 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "crossbeam-channel"
version = "0.
4.4
"
version = "0.
5.1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87
"
checksum = "
06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4
"
dependencies = [
"cfg-if",
"crossbeam-utils",
"maybe-uninit",
]
[[package]]
name = "crossbeam-utils"
version = "0.
7.2
"
version = "0.
8.5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8
"
checksum = "
d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db
"
dependencies = [
"autocfg",
"cfg-if 0.1.10",
"cfg-if",
"lazy_static",
]
...
...
@@ -185,9 +178,9 @@ dependencies = [
[[package]]
name = "directories"
version = "
3.0.2
"
version = "
4.0.1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e69600ff1703123957937708eb27f7a564e48885c537782722ed0ba3189ce1d7
"
checksum = "
f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210
"
dependencies = [
"dirs-sys",
]
...
...
@@ -217,9 +210,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "fixedbitset"
version = "0.
2
.0"
version = "0.
4
.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3
7ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d
"
checksum = "3
98ea4fabe40b9b0d885340a2a991a44c8a645624075ad966d21f88688e2b69e
"
[[package]]
name = "fnv"
...
...
@@ -245,16 +238,16 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
dependencies = [
"cfg-if
1.0.0
",
"cfg-if",
"libc",
"wasi",
]
[[package]]
name = "goblin"
version = "0.
2
.3"
version = "0.
4
.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
d20fd25aa456527ce4f544271ae4fea65d2eda4a6561ea56f39fb3ee4f7e3884
"
checksum = "
32401e89c6446dcd28185931a01b1093726d0356820ac744023e6850689bf926
"
dependencies = [
"log",
"plain",
...
...
@@ -334,7 +327,7 @@ version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
dependencies = [
"cfg-if
1.0.0
",
"cfg-if",
]
[[package]]
...
...
@@ -350,15 +343,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
[[package]]
name = "memoffset"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9"
dependencies = [
"autocfg",
]
[[package]]
name = "nix"
version = "0.
19.1
"
version = "0.
23.0
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
b2ccba0cfe4fdf15982d1674c69b1fd80bad427d293849982668dfe454bd61f2
"
checksum = "
f305c2c2e4c39a82f7bf0bf65fb557f9070ce06781d4f2454295cc34b1c43188
"
dependencies = [
"bitflags",
"cc",
"cfg-if
1.0.0
",
"cfg-if",
"libc",
"memoffset",
]
[[package]]
...
...
@@ -372,9 +375,9 @@ dependencies = [
[[package]]
name = "petgraph"
version = "0.
5.1
"
version = "0.
6.0
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4
67d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7
"
checksum = "4
a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f
"
dependencies = [
"fixedbitset",
"indexmap",
...
...
Dockerfile
View file @
f45bd69e
...
...
@@ -5,7 +5,7 @@ WORKDIR /cwe_checker
COPY
. .
RUN
cargo build
--release
FROM
fkiecad/ghidra_headless_base:
9.2.1
as runtime
FROM
fkiecad/ghidra_headless_base:
10.0.4
as runtime
RUN
apt-get
-y
update
\
&&
apt-get
-y
install
sudo
\
...
...
src/caller/Cargo.toml
View file @
f45bd69e
...
...
@@ -8,5 +8,5 @@ edition = "2018"
structopt
=
"0.3"
cwe_checker_lib
=
{
path
=
"../cwe_checker_lib"
}
serde_json
=
"1.0"
directories
=
"3.0"
nix
=
"0.19.1"
\ No newline at end of file
directories
=
"4.0.1"
nix
=
"0.23.0"
\ No newline at end of file
src/cwe_checker_lib/Cargo.toml
View file @
f45bd69e
...
...
@@ -10,13 +10,13 @@ regex = "1.4.5"
serde
=
{version
=
"1.0"
,
features
=
[
"derive"
,
"rc"
]
}
serde_json
=
"1.0"
serde_yaml
=
"0.8"
petgraph
=
{
version
=
"0.
5
"
,
features
=
[
"default"
,
"serde-1"
]
}
petgraph
=
{
version
=
"0.
6
"
,
features
=
[
"default"
,
"serde-1"
]
}
fnv
=
"1.0"
# a faster hash function for small keys like integers
anyhow
=
"1.0"
# for easy error types
crossbeam-channel
=
"0.
4
"
crossbeam-channel
=
"0.
5.1
"
derive_more
=
"0.99"
directories
=
"
3.0
"
goblin
=
"0.2"
directories
=
"
4.0.1
"
goblin
=
"0.
4.
2"
itertools
=
"0.10.0"
gcd
=
"2.0"
...
...
src/cwe_checker_lib/src/checkers/cwe_215.rs
View file @
f45bd69e
...
...
@@ -42,7 +42,7 @@ pub fn check_cwe(
match
goblin
::
Object
::
parse
(
binary
)
{
Ok
(
goblin
::
Object
::
Elf
(
elf_binary
))
=>
{
for
section_header
in
elf_binary
.section_headers
{
if
let
Some
(
Ok
(
section_name
))
=
elf_binary
.shdr_strtab
.ge
t
(
section_header
.sh_name
)
{
if
let
Some
(
section_name
)
=
elf_binary
.shdr_strtab
.get_a
t
(
section_header
.sh_name
)
{
if
section_name
.starts_with
(
".debug"
)
{
let
cwe_warning
=
CweWarning
::
new
(
CWE_MODULE
.name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment