Skip to content

RUSTSEC-2026-0104 0.101.7#10

Merged
t-nelson merged 2 commits into
anza-xyz:anza-0.101.7from
t-nelson:rustsec-2026-0104-0.101.7
Apr 24, 2026
Merged

RUSTSEC-2026-0104 0.101.7#10
t-nelson merged 2 commits into
anza-xyz:anza-0.101.7from
t-nelson:rustsec-2026-0104-0.101.7

Conversation

@t-nelson

Copy link
Copy Markdown

pick upstream fix for RUSTSEC-2026-0104

@t-nelson

Copy link
Copy Markdown
Author

lmao chat check out this retarded shit


diff --git a/src/der.rs b/src/der.rs
index 64018ab..60bd940 100644
--- a/src/der.rs
+++ b/src/der.rs
@@ -671,10 +671,10 @@ mod tests {
         for pad in 1..=255 {
             assert_eq!(
                 bit_string_flags(&mut untrusted::Reader::new(untrusted::Input::from(&[
-                    BITSTRING_TAG,  // BitString
-                    0x01,           // 1 byte of content
-                    pad,            // `pad` bits of padding
-                                    // no data (illegal with padding!)
+                    BITSTRING_TAG, // BitString
+                    0x01,          // 1 byte of content
+                    pad,           // `pad` bits of padding
+                                   // no data (illegal with padding!)
                 ])))
                 .err(),
                 Some(Error::BadDer)
@@ -728,10 +728,10 @@ mod tests {
     fn mispadded_bit_string_flags() {
         assert_eq!(
             super::bit_string_flags(&mut untrusted::Reader::new(untrusted::Input::from(&[
-                BITSTRING_TAG,  // BitString
-                0x02,           // 2 bytes of content
-                0x04,           // 4 bits of padding
-                0xff            // Flag data
+                BITSTRING_TAG, // BitString
+                0x02,          // 2 bytes of content
+                0x04,          // 4 bits of padding
+                0xff           // Flag data
             ])))
             .err(),
             Some(super::Error::BadDer)
Error: Process completed with exit code 1.

@t-nelson t-nelson force-pushed the rustsec-2026-0104-0.101.7 branch from d67247a to 07855d7 Compare April 24, 2026 03:25
@t-nelson

Copy link
Copy Markdown
Author

crush the snek

Comment thread src/der.rs
Comment on lines +674 to +675
BITSTRING_TAG, // BitString
0x01, // 1 byte of content

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need these fields in 0.101 'cause the parser be different

@steviez steviez left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to match upstream (rustls#474)

@t-nelson t-nelson merged commit 33eddb8 into anza-xyz:anza-0.101.7 Apr 24, 2026
20 checks passed
@t-nelson t-nelson deleted the rustsec-2026-0104-0.101.7 branch April 24, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants