Open in app

Sign in

Write

Sign in

Sergey "Shnatsel" Davidoff
Sergey "Shnatsel" Davidoff

463 Followers

Home

About

Jan 17

How to avoid bounds checks in Rust (without unsafe!)

You can often hear online that indexing into a slice, such as my_slice[i] is slow in Rust and you should do something else instead for performance. The details, however, are murky. …

Rust

22 min read

How to avoid bounds checks in Rust (without unsafe!)
How to avoid bounds checks in Rust (without unsafe!)
Rust

22 min read


May 30, 2021

The simpler alternative to GCC-RS

The GCC-RS project, which can be summed up as “Rewrite the Rust compiler in C++”, got a bit of media attention lately. In this post I’ll try to convince you that all the stated benefits of it can be achieved without necessitating a rewrite by leveraging rustc_codegen_gcc instead. All of…

Rust

6 min read

Rust

6 min read


Jan 16, 2020

Smoke-testing Rust HTTP clients

Back in 2014 I was fetching frontpages of the top million websites to scan them for a particular vulnerability. …

Rust

19 min read

Rust

19 min read


Jan 18, 2019

Security as Rust 2019 goal

Note: I am publishing this on behalf of Secure Code Working Group because we do not have a WG blog established yet. Multiple people have contributed to this post. Rust Secure Code Working Group is a bunch of curious people hanging out in a public chat on the Internet. …

Programming

8 min read

Security as Rust 2019 goal
Security as Rust 2019 goal
Programming

8 min read


Sep 28, 2018

How I’ve found vulnerability in a popular Rust crate (and you can too)

I have recently discovered a zero-day vulnerability in a fairly popular and well-designed Rust crate. In this article I’m going to discuss how I did it and why it wasn’t discovered earlier, and introduce a new tool, libdiffuzz, that I’ve created for the job. …

Rust

10 min read

How I’ve found vulnerability in a popular Rust crate (and you can too)
How I’ve found vulnerability in a popular Rust crate (and you can too)
Rust

10 min read


Aug 18, 2018

How Rust’s standard library was vulnerable for years and nobody noticed

Rust is a new systems programming language that prides itself on memory safety and speed. …

Programming

10 min read

Programming

10 min read


Jul 19, 2018

Auditing popular Rust crates: how a one-line unsafe has nearly ruined everything

Following the actix-web incident (which is fixed now, at least mostly) I decided to poke other popular Rust libraries and see what comes of it. The good news is I’ve poked at 6 popular crates now, and I’ve got not a single actually exploitable vulnerability. I am impressed. When I…

Rust

10 min read

Rust

10 min read

Sergey "Shnatsel" Davidoff

Sergey "Shnatsel" Davidoff

463 Followers

Rust, security, and snark.

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams