Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into asan_dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Aug 9, 2023
2 parents 919ffbf + 74ae105 commit 09a7ec8
Show file tree
Hide file tree
Showing 13 changed files with 213 additions and 235 deletions.
384 changes: 180 additions & 204 deletions src/agent/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/agent/coverage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ debuggable-module = { path = "../debuggable-module" }
iced-x86 = "1.20"
log = "0.4.17"
regex = "1.9"
symbolic = { version = "10.1", features = [
symbolic = { version = "12.3", features = [
"debuginfo",
"demangle",
"symcache",
Expand Down
6 changes: 5 additions & 1 deletion src/agent/debuggable-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ iced-x86 = "1.20"
log = "0.4.17"
pdb = "0.8.0"
regex = "1.9"
symbolic = { version = "10.1", features = ["debuginfo", "demangle", "symcache"] }
symbolic = { version = "12.3", features = [
"debuginfo",
"demangle",
"symcache",
] }
thiserror = "1.0"

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions src/agent/debugger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
[dependencies]
anyhow = "1.0"
fnv = "1.0"
goblin = "0.5"
goblin = "0.6"
iced-x86 = "1.20"
log = "0.4"
memmap2 = "0.7"
Expand All @@ -18,4 +18,3 @@ win-util = { path = "../win-util" }

[dependencies.windows]
version = "0.48"

2 changes: 1 addition & 1 deletion src/agent/onefuzz-task/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clap = { version = "4", features = ["cargo", "string"] }
cobertura = { path = "../cobertura" }
coverage = { path = "../coverage" }
debuggable-module = { path = "../debuggable-module" }
crossterm = "0.26"
crossterm = "0.27"
env_logger = "0.10"
flume = "0.10"
futures = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/agent/onefuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
[dependencies]
anyhow = "1.0"
async-trait = "0.1"
base64 = "0.13"
base64 = "0.21"
bytes = "1.4"
dunce = "1.0"
dynamic-library = { path = "../dynamic-library" }
Expand Down
2 changes: 1 addition & 1 deletion src/agent/storage-queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
anyhow = "1.0"
async-trait = "0.1"
backoff = { version = "0.4", features = ["tokio"] }
base64 = "0.13"
base64 = "0.21"
bytes = { version = "1.4", features = ["serde"] }
derivative = "2.2"
flume = "0.10"
Expand Down
11 changes: 7 additions & 4 deletions src/agent/storage-queue/src/azure_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

use anyhow::{Context, Result};
use base64::Engine;
use bytes::Buf;
use reqwest::{Client, Url};
use reqwest_retry::SendRetry;
Expand All @@ -11,6 +12,8 @@ use uuid::Uuid;

pub const EMPTY_QUEUE_DELAY: Duration = Duration::from_secs(10);

const BASE64: base64::engine::GeneralPurpose = base64::engine::general_purpose::STANDARD;

// <QueueMessagesList>
// <QueueMessage>
// <MessageId>7d35e47d-f58e-42da-ba4a-9e6ac7e1214d</MessageId>
Expand Down Expand Up @@ -49,7 +52,7 @@ pub struct AzureQueueMessageSend {

impl AzureQueueMessage {
pub fn parse<T>(&self, parser: impl FnOnce(&[u8]) -> Result<T>) -> Result<T> {
let decoded = base64::decode(&self.message_text)?;
let decoded = BASE64.decode(&self.message_text)?;
parser(&decoded)
}

Expand All @@ -70,7 +73,7 @@ impl AzureQueueMessage {
.error_for_status()
.context("AzureQueueMessage.claim status body")?;
}
let decoded = base64::decode(self.message_text)?;
let decoded = BASE64.decode(self.message_text)?;
let value: T = serde_json::from_slice(&decoded)?;
Ok(value)
}
Expand All @@ -96,7 +99,7 @@ impl AzureQueueMessage {
}

pub fn get<T: DeserializeOwned>(&self) -> Result<T> {
let decoded = base64::decode(&self.message_text)?;
let decoded = BASE64.decode(&self.message_text)?;
let value = serde_json::from_slice(&decoded)?;
Ok(value)
}
Expand Down Expand Up @@ -132,7 +135,7 @@ impl AzureQueueClient {
pub async fn enqueue(&self, data: impl Serialize) -> Result<()> {
let serialized = serde_json::to_string(&data).unwrap();
let body = quick_xml::se::to_string(&AzureQueueMessageSend {
message_text: base64::encode(&serialized),
message_text: BASE64.encode(&serialized),
})
.context("serializing queue message")?;

Expand Down
6 changes: 3 additions & 3 deletions src/cli/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
msal==1.20.0
msal==1.22.0
# install requests >=2.31.0 to fix CVE-2023-32681
requests>=2.31.0
jmespath~=0.10.0
Expand All @@ -12,8 +12,8 @@ azure-storage-blob==12.14.1
azure-applicationinsights==0.1.0
tenacity==8.0.1
docstring_parser==0.8.1
azure-identity==1.10.0
azure-cli-core==2.49.0
azure-identity==1.14.0
azure-cli-core==2.50.0
PyJWT>=2.4.0
opentelemetry-api==1.16.0
opentelemetry-sdk==1.16.0
Expand Down
8 changes: 4 additions & 4 deletions src/deployment/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
azure-cli-core==2.47.0
azure-cli==2.47.0
azure-identity==1.10.0
azure-cli-core==2.50.0
azure-cli==2.50.0
azure-identity==1.14.0
azure-cosmosdb-table==1.0.6
azure-mgmt-eventgrid==10.2.0b2
azure-mgmt-resource==22.0.0
azure-mgmt-resource>=23.1.0b2
azure-mgmt-storage==21.0.0
azure-storage-blob==12.14.1
pyfunctional==1.4.3
Expand Down
10 changes: 2 additions & 8 deletions src/proxy-manager/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils/add-corpus-storage-accounts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
azure-mgmt-storage~=19.0.0
azure-cli-core==2.47.0
azure-cli-core==2.50.0
azure-mgmt-eventgrid==3.0.0rc9
10 changes: 6 additions & 4 deletions src/utils/check-pr/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
azure-common~=1.1.25
azure-identity==1.10.0
azure-common~=1.1.28
azure-identity==1.14.0
PyGithub==1.56
azure-cli-core==2.47.0
msgraph-core==0.2.2
azure-cli-core==2.50.0
azure-cli==2.50.0
azure-core==1.28.0
msgraph-core==0.2.2

0 comments on commit 09a7ec8

Please sign in to comment.