前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】2024-02-20 cve-rs 编写安全代码来让 Rust 不内存安全!

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

作者头像
MikeLoveRust
发布2024-02-28 17:47:01
1330
发布2024-02-28 17:47:01
举报

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 实现的命令行版贪吃蛇游戏

代码语言:javascript
复制
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

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2024-02-21,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Rust语言学习交流 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • cve-rs 编写安全代码来让 Rust 不内存安全!
  • 又一个 Rust 实现的命令行版贪吃蛇游戏
  • 使用 Rust 编写一个语言解释器
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档