Hal-5700X@sh.itjust.works to Technology@lemmy.worldEnglish · edit-221 hours agoLinux Kernel Rust Code Sees Its First CVE Vulnerabilitywww.phoronix.comexternal-linkmessage-square30fedilinkarrow-up1116arrow-down12cross-posted to: linux@programming.devhackernews
arrow-up1114arrow-down1external-linkLinux Kernel Rust Code Sees Its First CVE Vulnerabilitywww.phoronix.comHal-5700X@sh.itjust.works to Technology@lemmy.worldEnglish · edit-221 hours agomessage-square30fedilinkcross-posted to: linux@programming.devhackernews
minus-squareTechnus@lemmy.ziplinkfedilinkEnglisharrow-up49arrow-down1·17 hours agoBecause Rust lets you choose when something is unsafe vs writing all unsafe in code all the time: Note the other 159 kernel CVEs issued today for fixes in the C portion of the codebase
minus-squaresetVeryLoud(true);@lemmy.calinkfedilinkEnglisharrow-up1·1 hour agoI wonder if this can be adjusted for LoC count in each language
minus-squareryannathans@aussie.zonelinkfedilinkEnglisharrow-up6arrow-down2·16 hours agoYes same concept as other languages like C#
minus-squareTechnus@lemmy.ziplinkfedilinkEnglisharrow-up7arrow-down2·11 hours agoYou go ahead and write an OS kernel in C# then.
minus-squareryannathans@aussie.zonelinkfedilinkEnglisharrow-up5·8 hours agoWhy the hell would you do that
minus-squareboonhet@sopuli.xyzlinkfedilinkEnglisharrow-up3·10 hours agoHere, someone already wrote a bare bones one. Of course that also uses an unsafe block lol
Because Rust lets you choose when something is unsafe vs writing all unsafe in code all the time:
I wonder if this can be adjusted for LoC count in each language
Yes same concept as other languages like C#
You go ahead and write an OS kernel in C# then.
Why the hell would you do that
Here, someone already wrote a bare bones one. Of course that also uses an unsafe block lol