查看原文
其他

【Rust日报】2024-02-20 cve-rs 编写安全代码来让 Rust 不内存安全!

Koalr Rust语言中文社区 2024-05-09

cve-rs 编写安全代码来让 Rust 不内存安全!

cve-rs 允许你编写安全代码来在 Rust 程序中引入内存安全漏洞。给出的所有的例子都没有使用 unsafe 代码块。

cve-rs 主要实现了这三种安全问题:

  • Use after free
  • Buffer overflow
  • Segmentation fault


ReadMore: 

https://github.com/Speykious/cve-rs/tree/main

又一个 Rust 实现的命令行版贪吃蛇游戏

cargo install snakepipe

# basic usage
snakepipe gamestate|snakepipe render

# change the defaults
snakepipe gamestate --frame-duration 80 --width 70 --height 20 --snakepipe-length 15|snakepipe render

# call help on any of the commands
snakepipe --help

ReadMore: https://github.com/topheman/snake-pipe-rust


使用 Rust 编写一个语言解释器

目前已经更新了 6 篇文章了, 涵盖简介、词法分析、语法分析、类型表示、执行环境、执行I 等,对编译原理感兴趣的可以关注一下

ReadMore: https://buildingwithrust.substack.com/archive



From 日报小组 Koalr

社区学习交流平台订阅:

  • Rustcc论坛: 支持rss
  • 微信公众号:Rust语言中文社区


继续滑动看下一个
向上滑动看下一个

您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存