vthib / authenticode-parser Goto Github PK
View Code? Open in Web Editor NEWRust bindings for the authenticode-parser library
License: Apache License 2.0
Rust bindings for the authenticode-parser library
License: Apache License 2.0
The parser has started panicking with nightly rustc when file with SHA-256 af3f20a9272489cbef4281c8c86ad42ccfb04ccedd3ada1e8c26939c726a4c8e
is scanned.
It looks like std::slice::from_raw_parts
is now checking that the pointer it receives is not null. The documentation for this function says:
data
must be non-null and aligned even for zero-length slices
Apparently, this wasn't enforced until now.
In line 130 in the snippet below, the signatures
pointer passed to from_raw_parts
is null when the file is scanned.
authenticode-parser/src/lib.rs
Lines 118 to 130 in d7fb5de
The following comment doesn't hold true for this particular file:
// - The `*mut sys::Authenticode` pointers in the array are guaranteed to be non-null
// (checked by auditing the C code).
This may be a bug in the C library, but I think its worth modifying this code to making it more robust.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.