TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Autarkie – Instant grammar fuzzing using Rust macros

41 点作者 r929513 天前

2 条评论

mmastrac13 天前
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 未加载
vrm13 天前
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 未加载