TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Autarkie – Instant grammar fuzzing using Rust macros

41 pointsby r929522 days ago

2 comments

mmastrac22 days ago
This is awesome. I&#x27;ve been working on a project to make the PostgreSQL&#x2F;EdgeDB&#x2F;Gel protocols declarative in Rust (see <a href="https:&#x2F;&#x2F;github.com&#x2F;geldata&#x2F;gel-rust&#x2F;blob&#x2F;master&#x2F;gel-pg-protocol&#x2F;src&#x2F;protocol.rs">https:&#x2F;&#x2F;github.com&#x2F;geldata&#x2F;gel-rust&#x2F;blob&#x2F;master&#x2F;gel-pg-proto...</a> for an example) and my approach to fuzzing has been somewhat arbitrary (you can see at the bottom).<p>I&#x27;ve used AFL but never managed to create a consistent fuzzing process using it.<p>This _should_ allow me to add some more extensive fuzz tests than I&#x27;ve currently been using, even though the grammar is binary since we&#x27;re really just &quot;parsing&quot; and &quot;rendering&quot; text that happens to be [u8] rather than str.<p>I don&#x27;t think there&#x27;s been any real discussion of the Postgres message format philosophy, but it&#x27;s a very regular syntax: messages are composed of primitives and lists. Lists are either length-prefixed or zero-suffixed. Everything else is just a combination of these building blocks.
评论 #43823640 未加载
vrm22 days ago
would it be possible to fuzz an arbitrary JSON schema with this? I’ve been looking for such a lib for a while now
评论 #43824400 未加载