Uh oh!
There was an error while loading. Please reload this page.
der: implement a buffered pem reader - #839
Conversation
| /// Inner PEM decoder. | ||
| decoder: Decoder<'i>, | ||
| /// Inner PEM decoder wrapped in a BufReader. | ||
| reader: RefCell<utils::BufReader<'i>>, |
There was a problem hiding this comment.
I don't see how there could ever be two instances of borrow for this refcell and I think this is safe
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
baloo
commented
Jan 5, 2023
oooh, fun! I triggered the fuzzer! |
tarcieri
commented
Jan 5, 2023
@baloo looking at this so far it feels like a lot of indirection. You have It feels to me like |
baloo
commented
Jan 5, 2023
Yeah, it could very well be, |
Uh oh!
There was an error while loading. Please reload this page.
baloo
commented
Jan 5, 2023
I'd be easier if I was to just base64 decode the whole payload and have that in a buffer. Any opinion? |
Uh oh!
There was an error while loading. Please reload this page.
baloo
commented
Jan 5, 2023
|
tarcieri
commented
Jan 5, 2023
That's how the existing
They do that because they use the If this feature is implemented correctly, it can eliminate the The |
dc87e09 to
2fc939bCompareThis also fixes the pem reader for `x509-cert::Certificate`
2fc939b to
c73c449Compare
This fixes the parsing of x509 certificates from Pem format and brings a test for it.