
News about #Rustlang Security & Fuzzing. Not affiliated with @rustlang core team. 🎉 #Rust security Audit and Fuzzing training is now available 🥳
- Tweets326
- Following4.2K
- Followers3.6K
- Likes624

ALT Bar graph titled "Memory unsafe code and Memory safety vulnerabilities" 2019, Android 10, a bit more than 75% new memory unsafe code, and about 75% memory safety vulnerabilities. 2020, Android 11, a bit less than 75% new memory unsafe code, and about 70% memory safety vulnerabilities. 2021, Android 12, about 65% new memory unsafe code, and about 50% memory safety vulnerabilities. 2022, Android 13, about 45% new memory unsafe code, and about 35% memory safety vulnerabilities.

ALT Me: Explain what `rustc --diagnostic-format=limerick` does. ChatGPT: rustc --diagnostic-format=limerick is a command line flag for the Rust compiler (rustc) that changes the format of the error messages and warnings it produces to be in the form of a limerick. This means that the messages will be written in a five-line rhyming poem with a specific syllable count for each line. This can make the messages more entertaining and easier to remember, but may not provide as much detailed information as the default format. Me: Give an example. ChatGPT: Here is an example of an error message in the limerick format: A variable called "x" you declared, But its type was not properly clarified, The compiler it cried, "You must specify!" Or your code will not be verified.

ALT Six tables showing the machine instructions for the atomic operations on ARMv8, ARMv8.1 and x86-64, for non-atomic, relaxed, acquire, release, acquire plus release, and sequentially consistent memory ordering. The six tables are labeled: load, store, swap, fetch op, compare exchange, fence. The full contents don't fit in the alt text, but here are the main takeaways: On x86, in each table, the instructions are the same for all (atomic) memory orderings, except seqcst store using a XCHG instruction instead of a MOV, and seqcst fence using MFENCE instead of nothing. On ARM, the acquire plus release instructions are equivalent to the sequentially consistent instructions in all cases. On ARMv8, the swap, fetch op and strong compare exchange are implemented as loops using the LDXR and STXR instructions. But on ARMv8.1, they are all implemented as a single instruction. On x86, fetch op is implemented with a lock prefix for some operations, and as a CMPXCHG loop for some others.











